[2025-02-10 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:00:06 [end_date_ymd] => 2025-02-10 00:00:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:00:06' and `end` < '2025-02-10 00: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-10 00:00:20] Production.INFO: count ==718 [2025-02-10 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 21:00:06 - End Time 2025-02-10 00:00:06 [2025-02-10 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440581', 'tblTempUsageDetail_20' ) start [2025-02-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440581', 'tblTempUsageDetail_20' ) end [2025-02-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440581', 'tblTempVendorCDR_20' ) start [2025-02-10 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440581', 'tblTempVendorCDR_20' ) end [2025-02-10 00:00:20] Production.INFO: ProcessCDR(1,14440581,1,1,2) [2025-02-10 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440581', 'tblTempUsageDetail_20' ) start [2025-02-10 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440581', 'tblTempUsageDetail_20' ) end [2025-02-10 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:00:26] Production.INFO: ==20719== Releasing lock... [2025-02-10 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:00:26] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:01:06 [end_date_ymd] => 2025-02-10 00:01:06 [RateCDR] => 1 ) [2025-02-10 00:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:01:06' and `end` < '2025-02-10 00:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:01:19] Production.INFO: count ==691 [2025-02-10 00:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:01:06 - End Time 2025-02-10 00:01:06 [2025-02-10 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440587', 'tblTempUsageDetail_20' ) start [2025-02-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440587', 'tblTempUsageDetail_20' ) end [2025-02-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440587', 'tblTempVendorCDR_20' ) start [2025-02-10 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440587', 'tblTempVendorCDR_20' ) end [2025-02-10 00:01:19] Production.INFO: ProcessCDR(1,14440587,1,1,2) [2025-02-10 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440587', 'tblTempUsageDetail_20' ) start [2025-02-10 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440587', 'tblTempUsageDetail_20' ) end [2025-02-10 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:01:22] Production.INFO: ==20813== Releasing lock... [2025-02-10 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:02:05 [end_date_ymd] => 2025-02-10 00:02:05 [RateCDR] => 1 ) [2025-02-10 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:02:05' and `end` < '2025-02-10 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:02:24] Production.INFO: count ==211 [2025-02-10 00:02:25] Production.ERROR: pbx CDR StartTime 2025-02-09 21:02:05 - End Time 2025-02-10 00:02:05 [2025-02-10 00:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440592', 'tblTempUsageDetail_20' ) start [2025-02-10 00:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440592', 'tblTempUsageDetail_20' ) end [2025-02-10 00:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440592', 'tblTempVendorCDR_20' ) start [2025-02-10 00:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440592', 'tblTempVendorCDR_20' ) end [2025-02-10 00:02:25] Production.INFO: ProcessCDR(1,14440592,1,1,2) [2025-02-10 00:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440592', 'tblTempUsageDetail_20' ) start [2025-02-10 00:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440592', 'tblTempUsageDetail_20' ) end [2025-02-10 00:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:02:28] Production.INFO: ==20885== Releasing lock... [2025-02-10 00:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:02:28] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:03:06 [end_date_ymd] => 2025-02-10 00:03:06 [RateCDR] => 1 ) [2025-02-10 00:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:03:06' and `end` < '2025-02-10 00:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:03:23] Production.INFO: count ==210 [2025-02-10 00:03:23] Production.ERROR: pbx CDR StartTime 2025-02-09 21:03:06 - End Time 2025-02-10 00:03:06 [2025-02-10 00:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440597', 'tblTempUsageDetail_20' ) start [2025-02-10 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440597', 'tblTempUsageDetail_20' ) end [2025-02-10 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440597', 'tblTempVendorCDR_20' ) start [2025-02-10 00:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440597', 'tblTempVendorCDR_20' ) end [2025-02-10 00:03:23] Production.INFO: ProcessCDR(1,14440597,1,1,2) [2025-02-10 00:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440597', 'tblTempUsageDetail_20' ) start [2025-02-10 00:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440597', 'tblTempUsageDetail_20' ) end [2025-02-10 00:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:03:26] Production.INFO: ==21003== Releasing lock... [2025-02-10 00:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:03:26] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:04:05 [end_date_ymd] => 2025-02-10 00:04:05 [RateCDR] => 1 ) [2025-02-10 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:04:05' and `end` < '2025-02-10 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:04:18] Production.INFO: count ==210 [2025-02-10 00:04:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:04:05 - End Time 2025-02-10 00:04:05 [2025-02-10 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440602', 'tblTempUsageDetail_20' ) start [2025-02-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440602', 'tblTempUsageDetail_20' ) end [2025-02-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440602', 'tblTempVendorCDR_20' ) start [2025-02-10 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440602', 'tblTempVendorCDR_20' ) end [2025-02-10 00:04:18] Production.INFO: ProcessCDR(1,14440602,1,1,2) [2025-02-10 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440602', 'tblTempUsageDetail_20' ) start [2025-02-10 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440602', 'tblTempUsageDetail_20' ) end [2025-02-10 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:04:21] Production.INFO: ==21082== Releasing lock... [2025-02-10 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:05:05 [end_date_ymd] => 2025-02-10 00:05:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:05:05' and `end` < '2025-02-10 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-10 00:05:19] Production.INFO: count ==209 [2025-02-10 00:05:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:05:05 - End Time 2025-02-10 00:05:05 [2025-02-10 00:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440607', 'tblTempUsageDetail_20' ) start [2025-02-10 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440607', 'tblTempUsageDetail_20' ) end [2025-02-10 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440607', 'tblTempVendorCDR_20' ) start [2025-02-10 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440607', 'tblTempVendorCDR_20' ) end [2025-02-10 00:05:19] Production.INFO: ProcessCDR(1,14440607,1,1,2) [2025-02-10 00:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440607', 'tblTempUsageDetail_20' ) start [2025-02-10 00:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440607', 'tblTempUsageDetail_20' ) end [2025-02-10 00:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:05:22] Production.INFO: ==21156== Releasing lock... [2025-02-10 00:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:06:05 [end_date_ymd] => 2025-02-10 00:06:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:06:05' and `end` < '2025-02-10 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-10 00:06:18] Production.INFO: count ==209 [2025-02-10 00:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:06:05 - End Time 2025-02-10 00:06:05 [2025-02-10 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440612', 'tblTempUsageDetail_20' ) start [2025-02-10 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440612', 'tblTempUsageDetail_20' ) end [2025-02-10 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440612', 'tblTempVendorCDR_20' ) start [2025-02-10 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440612', 'tblTempVendorCDR_20' ) end [2025-02-10 00:06:18] Production.INFO: ProcessCDR(1,14440612,1,1,2) [2025-02-10 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440612', 'tblTempUsageDetail_20' ) start [2025-02-10 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440612', 'tblTempUsageDetail_20' ) end [2025-02-10 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:06:21] Production.INFO: ==21227== Releasing lock... [2025-02-10 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:07:06 [end_date_ymd] => 2025-02-10 00:07:06 [RateCDR] => 1 ) [2025-02-10 00: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-09 21:07:06' and `end` < '2025-02-10 00: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-10 00:07:21] Production.INFO: count ==202 [2025-02-10 00:07:21] Production.ERROR: pbx CDR StartTime 2025-02-09 21:07:06 - End Time 2025-02-10 00:07:06 [2025-02-10 00:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440617', 'tblTempUsageDetail_20' ) start [2025-02-10 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440617', 'tblTempUsageDetail_20' ) end [2025-02-10 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440617', 'tblTempVendorCDR_20' ) start [2025-02-10 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440617', 'tblTempVendorCDR_20' ) end [2025-02-10 00:07:21] Production.INFO: ProcessCDR(1,14440617,1,1,2) [2025-02-10 00:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440617', 'tblTempUsageDetail_20' ) start [2025-02-10 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440617', 'tblTempUsageDetail_20' ) end [2025-02-10 00:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:07:24] Production.INFO: ==21304== Releasing lock... [2025-02-10 00:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:07:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:08:05 [end_date_ymd] => 2025-02-10 00:08:05 [RateCDR] => 1 ) [2025-02-10 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:08:05' and `end` < '2025-02-10 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:08:20] Production.INFO: count ==201 [2025-02-10 00:08:20] Production.ERROR: pbx CDR StartTime 2025-02-09 21:08:05 - End Time 2025-02-10 00:08:05 [2025-02-10 00:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440622', 'tblTempUsageDetail_20' ) start [2025-02-10 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440622', 'tblTempUsageDetail_20' ) end [2025-02-10 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440622', 'tblTempVendorCDR_20' ) start [2025-02-10 00:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440622', 'tblTempVendorCDR_20' ) end [2025-02-10 00:08:20] Production.INFO: ProcessCDR(1,14440622,1,1,2) [2025-02-10 00:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440622', 'tblTempUsageDetail_20' ) start [2025-02-10 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440622', 'tblTempUsageDetail_20' ) end [2025-02-10 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:08:23] Production.INFO: ==21385== Releasing lock... [2025-02-10 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:08:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:09:05 [end_date_ymd] => 2025-02-10 00:09:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:09:05' and `end` < '2025-02-10 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-10 00:09:47] Production.INFO: count ==200 [2025-02-10 00:09:47] Production.ERROR: pbx CDR StartTime 2025-02-09 21:09:05 - End Time 2025-02-10 00:09:05 [2025-02-10 00:09:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:09:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440627', 'tblTempUsageDetail_20' ) start [2025-02-10 00:09:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440627', 'tblTempUsageDetail_20' ) end [2025-02-10 00:09:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440627', 'tblTempVendorCDR_20' ) start [2025-02-10 00:09:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440627', 'tblTempVendorCDR_20' ) end [2025-02-10 00:09:47] Production.INFO: ProcessCDR(1,14440627,1,1,2) [2025-02-10 00:09:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:09:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:09:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:09:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:09:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440627', 'tblTempUsageDetail_20' ) start [2025-02-10 00:09:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440627', 'tblTempUsageDetail_20' ) end [2025-02-10 00:09:51] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:09:51] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:09:51] Production.INFO: ==21462== Releasing lock... [2025-02-10 00:09:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:09:51] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:10:06 [end_date_ymd] => 2025-02-10 00:10:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:10:06' and `end` < '2025-02-10 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-10 00:10:23] Production.INFO: count ==201 [2025-02-10 00:10:23] Production.ERROR: pbx CDR StartTime 2025-02-09 21:10:06 - End Time 2025-02-10 00:10:06 [2025-02-10 00:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440633', 'tblTempUsageDetail_20' ) start [2025-02-10 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440633', 'tblTempUsageDetail_20' ) end [2025-02-10 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440633', 'tblTempVendorCDR_20' ) start [2025-02-10 00:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440633', 'tblTempVendorCDR_20' ) end [2025-02-10 00:10:23] Production.INFO: ProcessCDR(1,14440633,1,1,2) [2025-02-10 00:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440633', 'tblTempUsageDetail_20' ) start [2025-02-10 00:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440633', 'tblTempUsageDetail_20' ) end [2025-02-10 00:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:10:26] Production.INFO: ==21538== Releasing lock... [2025-02-10 00:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:10:26] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:11:05 [end_date_ymd] => 2025-02-10 00:11:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:11:05' and `end` < '2025-02-10 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-10 00:11:20] Production.INFO: count ==196 [2025-02-10 00:11:20] Production.ERROR: pbx CDR StartTime 2025-02-09 21:11:05 - End Time 2025-02-10 00:11:05 [2025-02-10 00:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440638', 'tblTempUsageDetail_20' ) start [2025-02-10 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440638', 'tblTempUsageDetail_20' ) end [2025-02-10 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440638', 'tblTempVendorCDR_20' ) start [2025-02-10 00:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440638', 'tblTempVendorCDR_20' ) end [2025-02-10 00:11:20] Production.INFO: ProcessCDR(1,14440638,1,1,2) [2025-02-10 00:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440638', 'tblTempUsageDetail_20' ) start [2025-02-10 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440638', 'tblTempUsageDetail_20' ) end [2025-02-10 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:11:23] Production.INFO: ==21617== Releasing lock... [2025-02-10 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:11:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:12:05 [end_date_ymd] => 2025-02-10 00:12:05 [RateCDR] => 1 ) [2025-02-10 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:12:05' and `end` < '2025-02-10 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:12:18] Production.INFO: count ==192 [2025-02-10 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:12:05 - End Time 2025-02-10 00:12:05 [2025-02-10 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440643', 'tblTempUsageDetail_20' ) start [2025-02-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440643', 'tblTempUsageDetail_20' ) end [2025-02-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440643', 'tblTempVendorCDR_20' ) start [2025-02-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440643', 'tblTempVendorCDR_20' ) end [2025-02-10 00:12:18] Production.INFO: ProcessCDR(1,14440643,1,1,2) [2025-02-10 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440643', 'tblTempUsageDetail_20' ) start [2025-02-10 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440643', 'tblTempUsageDetail_20' ) end [2025-02-10 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:12:21] Production.INFO: ==21690== Releasing lock... [2025-02-10 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:13:06 [end_date_ymd] => 2025-02-10 00:13:06 [RateCDR] => 1 ) [2025-02-10 00: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-09 21:13:06' and `end` < '2025-02-10 00: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-10 00:13:18] Production.INFO: count ==192 [2025-02-10 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:13:06 - End Time 2025-02-10 00:13:06 [2025-02-10 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440648', 'tblTempUsageDetail_20' ) start [2025-02-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440648', 'tblTempUsageDetail_20' ) end [2025-02-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440648', 'tblTempVendorCDR_20' ) start [2025-02-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440648', 'tblTempVendorCDR_20' ) end [2025-02-10 00:13:19] Production.INFO: ProcessCDR(1,14440648,1,1,2) [2025-02-10 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440648', 'tblTempUsageDetail_20' ) start [2025-02-10 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440648', 'tblTempUsageDetail_20' ) end [2025-02-10 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:13:22] Production.INFO: ==21773== Releasing lock... [2025-02-10 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:14:04 [end_date_ymd] => 2025-02-10 00:14:04 [RateCDR] => 1 ) [2025-02-10 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:14:04' and `end` < '2025-02-10 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:14:17] Production.INFO: count ==190 [2025-02-10 00:14:17] Production.ERROR: pbx CDR StartTime 2025-02-09 21:14:04 - End Time 2025-02-10 00:14:04 [2025-02-10 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440653', 'tblTempUsageDetail_20' ) start [2025-02-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440653', 'tblTempUsageDetail_20' ) end [2025-02-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440653', 'tblTempVendorCDR_20' ) start [2025-02-10 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440653', 'tblTempVendorCDR_20' ) end [2025-02-10 00:14:17] Production.INFO: ProcessCDR(1,14440653,1,1,2) [2025-02-10 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440653', 'tblTempUsageDetail_20' ) start [2025-02-10 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440653', 'tblTempUsageDetail_20' ) end [2025-02-10 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:14:22] Production.INFO: ==21847== Releasing lock... [2025-02-10 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:14:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:15:05 [end_date_ymd] => 2025-02-10 00:15:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:15:05' and `end` < '2025-02-10 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-10 00:15:18] Production.INFO: count ==185 [2025-02-10 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:15:05 - End Time 2025-02-10 00:15:05 [2025-02-10 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440658', 'tblTempUsageDetail_20' ) start [2025-02-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440658', 'tblTempUsageDetail_20' ) end [2025-02-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440658', 'tblTempVendorCDR_20' ) start [2025-02-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440658', 'tblTempVendorCDR_20' ) end [2025-02-10 00:15:18] Production.INFO: ProcessCDR(1,14440658,1,1,2) [2025-02-10 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440658', 'tblTempUsageDetail_20' ) start [2025-02-10 00:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440658', 'tblTempUsageDetail_20' ) end [2025-02-10 00:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:15:23] Production.INFO: ==21927== Releasing lock... [2025-02-10 00:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:15:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:16:05 [end_date_ymd] => 2025-02-10 00:16:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:16:05' and `end` < '2025-02-10 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-10 00:16:18] Production.INFO: count ==185 [2025-02-10 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:16:05 - End Time 2025-02-10 00:16:05 [2025-02-10 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440663', 'tblTempUsageDetail_20' ) start [2025-02-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440663', 'tblTempUsageDetail_20' ) end [2025-02-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440663', 'tblTempVendorCDR_20' ) start [2025-02-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440663', 'tblTempVendorCDR_20' ) end [2025-02-10 00:16:18] Production.INFO: ProcessCDR(1,14440663,1,1,2) [2025-02-10 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440663', 'tblTempUsageDetail_20' ) start [2025-02-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440663', 'tblTempUsageDetail_20' ) end [2025-02-10 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:16:21] Production.INFO: ==22003== Releasing lock... [2025-02-10 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:17:05 [end_date_ymd] => 2025-02-10 00:17:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:17:05' and `end` < '2025-02-10 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-10 00:17:18] Production.INFO: count ==181 [2025-02-10 00:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:17:05 - End Time 2025-02-10 00:17:05 [2025-02-10 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440668', 'tblTempUsageDetail_20' ) start [2025-02-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440668', 'tblTempUsageDetail_20' ) end [2025-02-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440668', 'tblTempVendorCDR_20' ) start [2025-02-10 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440668', 'tblTempVendorCDR_20' ) end [2025-02-10 00:17:18] Production.INFO: ProcessCDR(1,14440668,1,1,2) [2025-02-10 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440668', 'tblTempUsageDetail_20' ) start [2025-02-10 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440668', 'tblTempUsageDetail_20' ) end [2025-02-10 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:17:22] Production.INFO: ==22077== Releasing lock... [2025-02-10 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:18:05 [end_date_ymd] => 2025-02-10 00:18:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:18:05' and `end` < '2025-02-10 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-10 00:18:19] Production.INFO: count ==180 [2025-02-10 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:18:05 - End Time 2025-02-10 00:18:05 [2025-02-10 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440673', 'tblTempUsageDetail_20' ) start [2025-02-10 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440673', 'tblTempUsageDetail_20' ) end [2025-02-10 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440673', 'tblTempVendorCDR_20' ) start [2025-02-10 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440673', 'tblTempVendorCDR_20' ) end [2025-02-10 00:18:19] Production.INFO: ProcessCDR(1,14440673,1,1,2) [2025-02-10 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440673', 'tblTempUsageDetail_20' ) start [2025-02-10 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440673', 'tblTempUsageDetail_20' ) end [2025-02-10 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:18:22] Production.INFO: ==22203== Releasing lock... [2025-02-10 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:18:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:19:05 [end_date_ymd] => 2025-02-10 00:19:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:19:05' and `end` < '2025-02-10 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-10 00:19:18] Production.INFO: count ==180 [2025-02-10 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:19:05 - End Time 2025-02-10 00:19:05 [2025-02-10 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440678', 'tblTempUsageDetail_20' ) start [2025-02-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440678', 'tblTempUsageDetail_20' ) end [2025-02-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440678', 'tblTempVendorCDR_20' ) start [2025-02-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440678', 'tblTempVendorCDR_20' ) end [2025-02-10 00:19:18] Production.INFO: ProcessCDR(1,14440678,1,1,2) [2025-02-10 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440678', 'tblTempUsageDetail_20' ) start [2025-02-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440678', 'tblTempUsageDetail_20' ) end [2025-02-10 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:19:21] Production.INFO: ==22278== Releasing lock... [2025-02-10 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:20:06 [end_date_ymd] => 2025-02-10 00:20:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:20:06' and `end` < '2025-02-10 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-10 00:20:19] Production.INFO: count ==186 [2025-02-10 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:20:06 - End Time 2025-02-10 00:20:06 [2025-02-10 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440684', 'tblTempUsageDetail_20' ) start [2025-02-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440684', 'tblTempUsageDetail_20' ) end [2025-02-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440684', 'tblTempVendorCDR_20' ) start [2025-02-10 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440684', 'tblTempVendorCDR_20' ) end [2025-02-10 00:20:19] Production.INFO: ProcessCDR(1,14440684,1,1,2) [2025-02-10 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440684', 'tblTempUsageDetail_20' ) start [2025-02-10 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440684', 'tblTempUsageDetail_20' ) end [2025-02-10 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:20:23] Production.INFO: ==22355== Releasing lock... [2025-02-10 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:20:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:21:04 [end_date_ymd] => 2025-02-10 00:21:04 [RateCDR] => 1 ) [2025-02-10 00: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-09 21:21:04' and `end` < '2025-02-10 00: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-10 00:21:17] Production.INFO: count ==185 [2025-02-10 00:21:17] Production.ERROR: pbx CDR StartTime 2025-02-09 21:21:04 - End Time 2025-02-10 00:21:04 [2025-02-10 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440689', 'tblTempUsageDetail_20' ) start [2025-02-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440689', 'tblTempUsageDetail_20' ) end [2025-02-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440689', 'tblTempVendorCDR_20' ) start [2025-02-10 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440689', 'tblTempVendorCDR_20' ) end [2025-02-10 00:21:17] Production.INFO: ProcessCDR(1,14440689,1,1,2) [2025-02-10 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440689', 'tblTempUsageDetail_20' ) start [2025-02-10 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440689', 'tblTempUsageDetail_20' ) end [2025-02-10 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:21:21] Production.INFO: ==22430== Releasing lock... [2025-02-10 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:22:05 [end_date_ymd] => 2025-02-10 00:22:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:22:05' and `end` < '2025-02-10 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-10 00:22:20] Production.INFO: count ==185 [2025-02-10 00:22:20] Production.ERROR: pbx CDR StartTime 2025-02-09 21:22:05 - End Time 2025-02-10 00:22:05 [2025-02-10 00:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440694', 'tblTempUsageDetail_20' ) start [2025-02-10 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440694', 'tblTempUsageDetail_20' ) end [2025-02-10 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440694', 'tblTempVendorCDR_20' ) start [2025-02-10 00:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440694', 'tblTempVendorCDR_20' ) end [2025-02-10 00:22:20] Production.INFO: ProcessCDR(1,14440694,1,1,2) [2025-02-10 00:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440694', 'tblTempUsageDetail_20' ) start [2025-02-10 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440694', 'tblTempUsageDetail_20' ) end [2025-02-10 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:22:23] Production.INFO: ==22508== Releasing lock... [2025-02-10 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:22:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:23:05 [end_date_ymd] => 2025-02-10 00:23:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:23:05' and `end` < '2025-02-10 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-10 00:23:18] Production.INFO: count ==185 [2025-02-10 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:23:05 - End Time 2025-02-10 00:23:05 [2025-02-10 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440699', 'tblTempUsageDetail_20' ) start [2025-02-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440699', 'tblTempUsageDetail_20' ) end [2025-02-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440699', 'tblTempVendorCDR_20' ) start [2025-02-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440699', 'tblTempVendorCDR_20' ) end [2025-02-10 00:23:18] Production.INFO: ProcessCDR(1,14440699,1,1,2) [2025-02-10 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440699', 'tblTempUsageDetail_20' ) start [2025-02-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440699', 'tblTempUsageDetail_20' ) end [2025-02-10 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:23:21] Production.INFO: ==22583== Releasing lock... [2025-02-10 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:23:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:24:05 [end_date_ymd] => 2025-02-10 00:24:05 [RateCDR] => 1 ) [2025-02-10 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:24:05' and `end` < '2025-02-10 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:24:18] Production.INFO: count ==178 [2025-02-10 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:24:05 - End Time 2025-02-10 00:24:05 [2025-02-10 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440704', 'tblTempUsageDetail_20' ) start [2025-02-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440704', 'tblTempUsageDetail_20' ) end [2025-02-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440704', 'tblTempVendorCDR_20' ) start [2025-02-10 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440704', 'tblTempVendorCDR_20' ) end [2025-02-10 00:24:18] Production.INFO: ProcessCDR(1,14440704,1,1,2) [2025-02-10 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440704', 'tblTempUsageDetail_20' ) start [2025-02-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440704', 'tblTempUsageDetail_20' ) end [2025-02-10 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:24:21] Production.INFO: ==22656== Releasing lock... [2025-02-10 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:25:05 [end_date_ymd] => 2025-02-10 00:25:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:25:05' and `end` < '2025-02-10 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-10 00:25:18] Production.INFO: count ==178 [2025-02-10 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:25:05 - End Time 2025-02-10 00:25:05 [2025-02-10 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440709', 'tblTempUsageDetail_20' ) start [2025-02-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440709', 'tblTempUsageDetail_20' ) end [2025-02-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440709', 'tblTempVendorCDR_20' ) start [2025-02-10 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440709', 'tblTempVendorCDR_20' ) end [2025-02-10 00:25:18] Production.INFO: ProcessCDR(1,14440709,1,1,2) [2025-02-10 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440709', 'tblTempUsageDetail_20' ) start [2025-02-10 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440709', 'tblTempUsageDetail_20' ) end [2025-02-10 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:25:21] Production.INFO: ==22733== Releasing lock... [2025-02-10 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:26:05 [end_date_ymd] => 2025-02-10 00:26:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:26:05' and `end` < '2025-02-10 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-10 00:26:18] Production.INFO: count ==177 [2025-02-10 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:26:05 - End Time 2025-02-10 00:26:05 [2025-02-10 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440714', 'tblTempUsageDetail_20' ) start [2025-02-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440714', 'tblTempUsageDetail_20' ) end [2025-02-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440714', 'tblTempVendorCDR_20' ) start [2025-02-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440714', 'tblTempVendorCDR_20' ) end [2025-02-10 00:26:18] Production.INFO: ProcessCDR(1,14440714,1,1,2) [2025-02-10 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440714', 'tblTempUsageDetail_20' ) start [2025-02-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440714', 'tblTempUsageDetail_20' ) end [2025-02-10 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:26:21] Production.INFO: ==22811== Releasing lock... [2025-02-10 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:27:05 [end_date_ymd] => 2025-02-10 00:27:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:27:05' and `end` < '2025-02-10 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-10 00:27:18] Production.INFO: count ==177 [2025-02-10 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:27:05 - End Time 2025-02-10 00:27:05 [2025-02-10 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440719', 'tblTempUsageDetail_20' ) start [2025-02-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440719', 'tblTempUsageDetail_20' ) end [2025-02-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440719', 'tblTempVendorCDR_20' ) start [2025-02-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440719', 'tblTempVendorCDR_20' ) end [2025-02-10 00:27:18] Production.INFO: ProcessCDR(1,14440719,1,1,2) [2025-02-10 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440719', 'tblTempUsageDetail_20' ) start [2025-02-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440719', 'tblTempUsageDetail_20' ) end [2025-02-10 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:27:21] Production.INFO: ==22887== Releasing lock... [2025-02-10 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:28:05 [end_date_ymd] => 2025-02-10 00:28:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:28:05' and `end` < '2025-02-10 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-10 00:28:18] Production.INFO: count ==172 [2025-02-10 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:28:05 - End Time 2025-02-10 00:28:05 [2025-02-10 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440724', 'tblTempUsageDetail_20' ) start [2025-02-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440724', 'tblTempUsageDetail_20' ) end [2025-02-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440724', 'tblTempVendorCDR_20' ) start [2025-02-10 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440724', 'tblTempVendorCDR_20' ) end [2025-02-10 00:28:18] Production.INFO: ProcessCDR(1,14440724,1,1,2) [2025-02-10 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440724', 'tblTempUsageDetail_20' ) start [2025-02-10 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440724', 'tblTempUsageDetail_20' ) end [2025-02-10 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:28:21] Production.INFO: ==22968== Releasing lock... [2025-02-10 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:29:06 [end_date_ymd] => 2025-02-10 00:29:06 [RateCDR] => 1 ) [2025-02-10 00: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-09 21:29:06' and `end` < '2025-02-10 00: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-10 00:29:19] Production.INFO: count ==171 [2025-02-10 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:29:06 - End Time 2025-02-10 00:29:06 [2025-02-10 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440729', 'tblTempUsageDetail_20' ) start [2025-02-10 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440729', 'tblTempUsageDetail_20' ) end [2025-02-10 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440729', 'tblTempVendorCDR_20' ) start [2025-02-10 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440729', 'tblTempVendorCDR_20' ) end [2025-02-10 00:29:19] Production.INFO: ProcessCDR(1,14440729,1,1,2) [2025-02-10 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440729', 'tblTempUsageDetail_20' ) start [2025-02-10 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440729', 'tblTempUsageDetail_20' ) end [2025-02-10 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:29:22] Production.INFO: ==23045== Releasing lock... [2025-02-10 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:29:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:30:06 [end_date_ymd] => 2025-02-10 00:30:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:30:06' and `end` < '2025-02-10 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-10 00:30:19] Production.INFO: count ==174 [2025-02-10 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:30:06 - End Time 2025-02-10 00:30:06 [2025-02-10 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440735', 'tblTempUsageDetail_20' ) start [2025-02-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440735', 'tblTempUsageDetail_20' ) end [2025-02-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440735', 'tblTempVendorCDR_20' ) start [2025-02-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440735', 'tblTempVendorCDR_20' ) end [2025-02-10 00:30:19] Production.INFO: ProcessCDR(1,14440735,1,1,2) [2025-02-10 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440735', 'tblTempUsageDetail_20' ) start [2025-02-10 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440735', 'tblTempUsageDetail_20' ) end [2025-02-10 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:30:22] Production.INFO: ==23123== Releasing lock... [2025-02-10 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:31:05 [end_date_ymd] => 2025-02-10 00:31:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:31:05' and `end` < '2025-02-10 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-10 00:31:18] Production.INFO: count ==186 [2025-02-10 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:31:05 - End Time 2025-02-10 00:31:05 [2025-02-10 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440740', 'tblTempUsageDetail_20' ) start [2025-02-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440740', 'tblTempUsageDetail_20' ) end [2025-02-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440740', 'tblTempVendorCDR_20' ) start [2025-02-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440740', 'tblTempVendorCDR_20' ) end [2025-02-10 00:31:18] Production.INFO: ProcessCDR(1,14440740,1,1,2) [2025-02-10 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440740', 'tblTempUsageDetail_20' ) start [2025-02-10 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440740', 'tblTempUsageDetail_20' ) end [2025-02-10 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:31:21] Production.INFO: ==23200== Releasing lock... [2025-02-10 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:31:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:32:05 [end_date_ymd] => 2025-02-10 00:32:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:32:05' and `end` < '2025-02-10 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-10 00:32:19] Production.INFO: count ==182 [2025-02-10 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:32:05 - End Time 2025-02-10 00:32:05 [2025-02-10 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440745', 'tblTempUsageDetail_20' ) start [2025-02-10 00:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440745', 'tblTempUsageDetail_20' ) end [2025-02-10 00:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440745', 'tblTempVendorCDR_20' ) start [2025-02-10 00:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440745', 'tblTempVendorCDR_20' ) end [2025-02-10 00:32:20] Production.INFO: ProcessCDR(1,14440745,1,1,2) [2025-02-10 00:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440745', 'tblTempUsageDetail_20' ) start [2025-02-10 00:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440745', 'tblTempUsageDetail_20' ) end [2025-02-10 00:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:32:23] Production.INFO: ==23280== Releasing lock... [2025-02-10 00:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:32:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:33:05 [end_date_ymd] => 2025-02-10 00:33:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:33:05' and `end` < '2025-02-10 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-10 00:33:18] Production.INFO: count ==182 [2025-02-10 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:33:05 - End Time 2025-02-10 00:33:05 [2025-02-10 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440750', 'tblTempUsageDetail_20' ) start [2025-02-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440750', 'tblTempUsageDetail_20' ) end [2025-02-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440750', 'tblTempVendorCDR_20' ) start [2025-02-10 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440750', 'tblTempVendorCDR_20' ) end [2025-02-10 00:33:18] Production.INFO: ProcessCDR(1,14440750,1,1,2) [2025-02-10 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440750', 'tblTempUsageDetail_20' ) start [2025-02-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440750', 'tblTempUsageDetail_20' ) end [2025-02-10 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:33:22] Production.INFO: ==23360== Releasing lock... [2025-02-10 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:34:05 [end_date_ymd] => 2025-02-10 00:34:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:34:05' and `end` < '2025-02-10 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-10 00:34:19] Production.INFO: count ==181 [2025-02-10 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:34:05 - End Time 2025-02-10 00:34:05 [2025-02-10 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440755', 'tblTempUsageDetail_20' ) start [2025-02-10 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440755', 'tblTempUsageDetail_20' ) end [2025-02-10 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440755', 'tblTempVendorCDR_20' ) start [2025-02-10 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440755', 'tblTempVendorCDR_20' ) end [2025-02-10 00:34:19] Production.INFO: ProcessCDR(1,14440755,1,1,2) [2025-02-10 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440755', 'tblTempUsageDetail_20' ) start [2025-02-10 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440755', 'tblTempUsageDetail_20' ) end [2025-02-10 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:34:22] Production.INFO: ==23476== Releasing lock... [2025-02-10 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:35:06 [end_date_ymd] => 2025-02-10 00:35:06 [RateCDR] => 1 ) [2025-02-10 00:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:35:06' and `end` < '2025-02-10 00:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:35:19] Production.INFO: count ==179 [2025-02-10 00:35:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:35:06 - End Time 2025-02-10 00:35:06 [2025-02-10 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440760', 'tblTempUsageDetail_20' ) start [2025-02-10 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440760', 'tblTempUsageDetail_20' ) end [2025-02-10 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440760', 'tblTempVendorCDR_20' ) start [2025-02-10 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440760', 'tblTempVendorCDR_20' ) end [2025-02-10 00:35:19] Production.INFO: ProcessCDR(1,14440760,1,1,2) [2025-02-10 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440760', 'tblTempUsageDetail_20' ) start [2025-02-10 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440760', 'tblTempUsageDetail_20' ) end [2025-02-10 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:35:22] Production.INFO: ==23551== Releasing lock... [2025-02-10 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:36:05 [end_date_ymd] => 2025-02-10 00:36:05 [RateCDR] => 1 ) [2025-02-10 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:36:05' and `end` < '2025-02-10 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:36:18] Production.INFO: count ==173 [2025-02-10 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:36:05 - End Time 2025-02-10 00:36:05 [2025-02-10 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440765', 'tblTempUsageDetail_20' ) start [2025-02-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440765', 'tblTempUsageDetail_20' ) end [2025-02-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440765', 'tblTempVendorCDR_20' ) start [2025-02-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440765', 'tblTempVendorCDR_20' ) end [2025-02-10 00:36:18] Production.INFO: ProcessCDR(1,14440765,1,1,2) [2025-02-10 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440765', 'tblTempUsageDetail_20' ) start [2025-02-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440765', 'tblTempUsageDetail_20' ) end [2025-02-10 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:36:21] Production.INFO: ==23625== Releasing lock... [2025-02-10 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:37:06 [end_date_ymd] => 2025-02-10 00:37:06 [RateCDR] => 1 ) [2025-02-10 00:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:37:06' and `end` < '2025-02-10 00:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:37:19] Production.INFO: count ==172 [2025-02-10 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:37:06 - End Time 2025-02-10 00:37:06 [2025-02-10 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440770', 'tblTempUsageDetail_20' ) start [2025-02-10 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440770', 'tblTempUsageDetail_20' ) end [2025-02-10 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440770', 'tblTempVendorCDR_20' ) start [2025-02-10 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440770', 'tblTempVendorCDR_20' ) end [2025-02-10 00:37:19] Production.INFO: ProcessCDR(1,14440770,1,1,2) [2025-02-10 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440770', 'tblTempUsageDetail_20' ) start [2025-02-10 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440770', 'tblTempUsageDetail_20' ) end [2025-02-10 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:37:22] Production.INFO: ==23699== Releasing lock... [2025-02-10 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:37:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:38:05 [end_date_ymd] => 2025-02-10 00:38:05 [RateCDR] => 1 ) [2025-02-10 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:38:05' and `end` < '2025-02-10 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:38:19] Production.INFO: count ==172 [2025-02-10 00:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:38:05 - End Time 2025-02-10 00:38:05 [2025-02-10 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440775', 'tblTempUsageDetail_20' ) start [2025-02-10 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440775', 'tblTempUsageDetail_20' ) end [2025-02-10 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440775', 'tblTempVendorCDR_20' ) start [2025-02-10 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440775', 'tblTempVendorCDR_20' ) end [2025-02-10 00:38:19] Production.INFO: ProcessCDR(1,14440775,1,1,2) [2025-02-10 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440775', 'tblTempUsageDetail_20' ) start [2025-02-10 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440775', 'tblTempUsageDetail_20' ) end [2025-02-10 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:38:23] Production.INFO: ==23773== Releasing lock... [2025-02-10 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:38:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:39:06 [end_date_ymd] => 2025-02-10 00:39:06 [RateCDR] => 1 ) [2025-02-10 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:39:06' and `end` < '2025-02-10 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:39:19] Production.INFO: count ==171 [2025-02-10 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:39:06 - End Time 2025-02-10 00:39:06 [2025-02-10 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440780', 'tblTempUsageDetail_20' ) start [2025-02-10 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440780', 'tblTempUsageDetail_20' ) end [2025-02-10 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440780', 'tblTempVendorCDR_20' ) start [2025-02-10 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440780', 'tblTempVendorCDR_20' ) end [2025-02-10 00:39:19] Production.INFO: ProcessCDR(1,14440780,1,1,2) [2025-02-10 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440780', 'tblTempUsageDetail_20' ) start [2025-02-10 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440780', 'tblTempUsageDetail_20' ) end [2025-02-10 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:39:22] Production.INFO: ==23854== Releasing lock... [2025-02-10 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:39:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:40:06 [end_date_ymd] => 2025-02-10 00:40:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:40:06' and `end` < '2025-02-10 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-10 00:40:18] Production.INFO: count ==180 [2025-02-10 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:40:06 - End Time 2025-02-10 00:40:06 [2025-02-10 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440786', 'tblTempUsageDetail_20' ) start [2025-02-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440786', 'tblTempUsageDetail_20' ) end [2025-02-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440786', 'tblTempVendorCDR_20' ) start [2025-02-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440786', 'tblTempVendorCDR_20' ) end [2025-02-10 00:40:18] Production.INFO: ProcessCDR(1,14440786,1,1,2) [2025-02-10 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440786', 'tblTempUsageDetail_20' ) start [2025-02-10 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440786', 'tblTempUsageDetail_20' ) end [2025-02-10 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:40:21] Production.INFO: ==23930== Releasing lock... [2025-02-10 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:40:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:41:05 [end_date_ymd] => 2025-02-10 00:41:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:41:05' and `end` < '2025-02-10 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-10 00:41:18] Production.INFO: count ==188 [2025-02-10 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:41:05 - End Time 2025-02-10 00:41:05 [2025-02-10 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440791', 'tblTempUsageDetail_20' ) start [2025-02-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440791', 'tblTempUsageDetail_20' ) end [2025-02-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440791', 'tblTempVendorCDR_20' ) start [2025-02-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440791', 'tblTempVendorCDR_20' ) end [2025-02-10 00:41:18] Production.INFO: ProcessCDR(1,14440791,1,1,2) [2025-02-10 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440791', 'tblTempUsageDetail_20' ) start [2025-02-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440791', 'tblTempUsageDetail_20' ) end [2025-02-10 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:41:21] Production.INFO: ==24014== Releasing lock... [2025-02-10 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:41:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:42:05 [end_date_ymd] => 2025-02-10 00:42:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:42:05' and `end` < '2025-02-10 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-10 00:42:19] Production.INFO: count ==188 [2025-02-10 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:42:05 - End Time 2025-02-10 00:42:05 [2025-02-10 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440796', 'tblTempUsageDetail_20' ) start [2025-02-10 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440796', 'tblTempUsageDetail_20' ) end [2025-02-10 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440796', 'tblTempVendorCDR_20' ) start [2025-02-10 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440796', 'tblTempVendorCDR_20' ) end [2025-02-10 00:42:19] Production.INFO: ProcessCDR(1,14440796,1,1,2) [2025-02-10 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440796', 'tblTempUsageDetail_20' ) start [2025-02-10 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440796', 'tblTempUsageDetail_20' ) end [2025-02-10 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:42:22] Production.INFO: ==24089== Releasing lock... [2025-02-10 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:42:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:43:05 [end_date_ymd] => 2025-02-10 00:43:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:43:05' and `end` < '2025-02-10 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-10 00:43:19] Production.INFO: count ==189 [2025-02-10 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:43:05 - End Time 2025-02-10 00:43:05 [2025-02-10 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440801', 'tblTempUsageDetail_20' ) start [2025-02-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440801', 'tblTempUsageDetail_20' ) end [2025-02-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440801', 'tblTempVendorCDR_20' ) start [2025-02-10 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440801', 'tblTempVendorCDR_20' ) end [2025-02-10 00:43:19] Production.INFO: ProcessCDR(1,14440801,1,1,2) [2025-02-10 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440801', 'tblTempUsageDetail_20' ) start [2025-02-10 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440801', 'tblTempUsageDetail_20' ) end [2025-02-10 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:43:22] Production.INFO: ==24163== Releasing lock... [2025-02-10 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:43:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:44:04 [end_date_ymd] => 2025-02-10 00:44:04 [RateCDR] => 1 ) [2025-02-10 00:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:44:04' and `end` < '2025-02-10 00: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-10 00:44:17] Production.INFO: count ==189 [2025-02-10 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-09 21:44:04 - End Time 2025-02-10 00:44:04 [2025-02-10 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440806', 'tblTempUsageDetail_20' ) start [2025-02-10 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440806', 'tblTempUsageDetail_20' ) end [2025-02-10 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440806', 'tblTempVendorCDR_20' ) start [2025-02-10 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440806', 'tblTempVendorCDR_20' ) end [2025-02-10 00:44:17] Production.INFO: ProcessCDR(1,14440806,1,1,2) [2025-02-10 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440806', 'tblTempUsageDetail_20' ) start [2025-02-10 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440806', 'tblTempUsageDetail_20' ) end [2025-02-10 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:44:20] Production.INFO: ==24236== Releasing lock... [2025-02-10 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:44:20] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:45:05 [end_date_ymd] => 2025-02-10 00:45:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:45:05' and `end` < '2025-02-10 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-10 00:45:18] Production.INFO: count ==190 [2025-02-10 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:45:05 - End Time 2025-02-10 00:45:05 [2025-02-10 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440811', 'tblTempUsageDetail_20' ) start [2025-02-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440811', 'tblTempUsageDetail_20' ) end [2025-02-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440811', 'tblTempVendorCDR_20' ) start [2025-02-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440811', 'tblTempVendorCDR_20' ) end [2025-02-10 00:45:18] Production.INFO: ProcessCDR(1,14440811,1,1,2) [2025-02-10 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440811', 'tblTempUsageDetail_20' ) start [2025-02-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440811', 'tblTempUsageDetail_20' ) end [2025-02-10 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:45:21] Production.INFO: ==24312== Releasing lock... [2025-02-10 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:46:05 [end_date_ymd] => 2025-02-10 00:46:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:46:05' and `end` < '2025-02-10 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-10 00:46:18] Production.INFO: count ==191 [2025-02-10 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:46:05 - End Time 2025-02-10 00:46:05 [2025-02-10 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440816', 'tblTempUsageDetail_20' ) start [2025-02-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440816', 'tblTempUsageDetail_20' ) end [2025-02-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440816', 'tblTempVendorCDR_20' ) start [2025-02-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440816', 'tblTempVendorCDR_20' ) end [2025-02-10 00:46:18] Production.INFO: ProcessCDR(1,14440816,1,1,2) [2025-02-10 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440816', 'tblTempUsageDetail_20' ) start [2025-02-10 00:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440816', 'tblTempUsageDetail_20' ) end [2025-02-10 00:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:46:23] Production.INFO: ==24386== Releasing lock... [2025-02-10 00:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:46:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:47:05 [end_date_ymd] => 2025-02-10 00:47:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:47:05' and `end` < '2025-02-10 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-10 00:47:18] Production.INFO: count ==194 [2025-02-10 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:47:05 - End Time 2025-02-10 00:47:05 [2025-02-10 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440821', 'tblTempUsageDetail_20' ) start [2025-02-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440821', 'tblTempUsageDetail_20' ) end [2025-02-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440821', 'tblTempVendorCDR_20' ) start [2025-02-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440821', 'tblTempVendorCDR_20' ) end [2025-02-10 00:47:18] Production.INFO: ProcessCDR(1,14440821,1,1,2) [2025-02-10 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440821', 'tblTempUsageDetail_20' ) start [2025-02-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440821', 'tblTempUsageDetail_20' ) end [2025-02-10 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:47:21] Production.INFO: ==24459== Releasing lock... [2025-02-10 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:48:06 [end_date_ymd] => 2025-02-10 00:48:06 [RateCDR] => 1 ) [2025-02-10 00: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-09 21:48:06' and `end` < '2025-02-10 00: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-10 00:48:18] Production.INFO: count ==195 [2025-02-10 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:48:06 - End Time 2025-02-10 00:48:06 [2025-02-10 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440826', 'tblTempUsageDetail_20' ) start [2025-02-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440826', 'tblTempUsageDetail_20' ) end [2025-02-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440826', 'tblTempVendorCDR_20' ) start [2025-02-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440826', 'tblTempVendorCDR_20' ) end [2025-02-10 00:48:19] Production.INFO: ProcessCDR(1,14440826,1,1,2) [2025-02-10 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440826', 'tblTempUsageDetail_20' ) start [2025-02-10 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440826', 'tblTempUsageDetail_20' ) end [2025-02-10 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:48:22] Production.INFO: ==24531== Releasing lock... [2025-02-10 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:49:04 [end_date_ymd] => 2025-02-10 00:49:04 [RateCDR] => 1 ) [2025-02-10 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:49:04' and `end` < '2025-02-10 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:49:18] Production.INFO: count ==203 [2025-02-10 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:49:04 - End Time 2025-02-10 00:49:04 [2025-02-10 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440831', 'tblTempUsageDetail_20' ) start [2025-02-10 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440831', 'tblTempUsageDetail_20' ) end [2025-02-10 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440831', 'tblTempVendorCDR_20' ) start [2025-02-10 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440831', 'tblTempVendorCDR_20' ) end [2025-02-10 00:49:18] Production.INFO: ProcessCDR(1,14440831,1,1,2) [2025-02-10 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440831', 'tblTempUsageDetail_20' ) start [2025-02-10 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440831', 'tblTempUsageDetail_20' ) end [2025-02-10 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:49:22] Production.INFO: ==24643== Releasing lock... [2025-02-10 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:50:06 [end_date_ymd] => 2025-02-10 00:50:06 [RateCDR] => 1 ) [2025-02-10 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-09 21:50:06' and `end` < '2025-02-10 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-10 00:50:19] Production.INFO: count ==210 [2025-02-10 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:50:06 - End Time 2025-02-10 00:50:06 [2025-02-10 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440837', 'tblTempUsageDetail_20' ) start [2025-02-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440837', 'tblTempUsageDetail_20' ) end [2025-02-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440837', 'tblTempVendorCDR_20' ) start [2025-02-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440837', 'tblTempVendorCDR_20' ) end [2025-02-10 00:50:19] Production.INFO: ProcessCDR(1,14440837,1,1,2) [2025-02-10 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440837', 'tblTempUsageDetail_20' ) start [2025-02-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440837', 'tblTempUsageDetail_20' ) end [2025-02-10 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:50:22] Production.INFO: ==24725== Releasing lock... [2025-02-10 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:51:05 [end_date_ymd] => 2025-02-10 00:51:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:51:05' and `end` < '2025-02-10 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-10 00:51:18] Production.INFO: count ==220 [2025-02-10 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:51:05 - End Time 2025-02-10 00:51:05 [2025-02-10 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440842', 'tblTempUsageDetail_20' ) start [2025-02-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440842', 'tblTempUsageDetail_20' ) end [2025-02-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440842', 'tblTempVendorCDR_20' ) start [2025-02-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440842', 'tblTempVendorCDR_20' ) end [2025-02-10 00:51:18] Production.INFO: ProcessCDR(1,14440842,1,1,2) [2025-02-10 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440842', 'tblTempUsageDetail_20' ) start [2025-02-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440842', 'tblTempUsageDetail_20' ) end [2025-02-10 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:51:21] Production.INFO: ==24804== Releasing lock... [2025-02-10 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:52:05 [end_date_ymd] => 2025-02-10 00:52:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:52:05' and `end` < '2025-02-10 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-10 00:52:20] Production.INFO: count ==226 [2025-02-10 00:52:20] Production.ERROR: pbx CDR StartTime 2025-02-09 21:52:05 - End Time 2025-02-10 00:52:05 [2025-02-10 00:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440847', 'tblTempUsageDetail_20' ) start [2025-02-10 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440847', 'tblTempUsageDetail_20' ) end [2025-02-10 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440847', 'tblTempVendorCDR_20' ) start [2025-02-10 00:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440847', 'tblTempVendorCDR_20' ) end [2025-02-10 00:52:20] Production.INFO: ProcessCDR(1,14440847,1,1,2) [2025-02-10 00:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440847', 'tblTempUsageDetail_20' ) start [2025-02-10 00:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440847', 'tblTempUsageDetail_20' ) end [2025-02-10 00:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:52:24] Production.INFO: ==24883== Releasing lock... [2025-02-10 00:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:52:24] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:53:05 [end_date_ymd] => 2025-02-10 00:53:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:53:05' and `end` < '2025-02-10 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-10 00:53:18] Production.INFO: count ==230 [2025-02-10 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:53:05 - End Time 2025-02-10 00:53:05 [2025-02-10 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440852', 'tblTempUsageDetail_20' ) start [2025-02-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440852', 'tblTempUsageDetail_20' ) end [2025-02-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440852', 'tblTempVendorCDR_20' ) start [2025-02-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440852', 'tblTempVendorCDR_20' ) end [2025-02-10 00:53:18] Production.INFO: ProcessCDR(1,14440852,1,1,2) [2025-02-10 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440852', 'tblTempUsageDetail_20' ) start [2025-02-10 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440852', 'tblTempUsageDetail_20' ) end [2025-02-10 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:53:22] Production.INFO: ==24958== Releasing lock... [2025-02-10 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:53:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:54:05 [end_date_ymd] => 2025-02-10 00:54:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:54:05' and `end` < '2025-02-10 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-10 00:54:18] Production.INFO: count ==239 [2025-02-10 00:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:54:05 - End Time 2025-02-10 00:54:05 [2025-02-10 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440857', 'tblTempUsageDetail_20' ) start [2025-02-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440857', 'tblTempUsageDetail_20' ) end [2025-02-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440857', 'tblTempVendorCDR_20' ) start [2025-02-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440857', 'tblTempVendorCDR_20' ) end [2025-02-10 00:54:18] Production.INFO: ProcessCDR(1,14440857,1,1,2) [2025-02-10 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440857', 'tblTempUsageDetail_20' ) start [2025-02-10 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440857', 'tblTempUsageDetail_20' ) end [2025-02-10 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:54:22] Production.INFO: ==25036== Releasing lock... [2025-02-10 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:55:04 [end_date_ymd] => 2025-02-10 00:55:04 [RateCDR] => 1 ) [2025-02-10 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:55:04' and `end` < '2025-02-10 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:55:17] Production.INFO: count ==242 [2025-02-10 00:55:17] Production.ERROR: pbx CDR StartTime 2025-02-09 21:55:04 - End Time 2025-02-10 00:55:04 [2025-02-10 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440862', 'tblTempUsageDetail_20' ) start [2025-02-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440862', 'tblTempUsageDetail_20' ) end [2025-02-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440862', 'tblTempVendorCDR_20' ) start [2025-02-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440862', 'tblTempVendorCDR_20' ) end [2025-02-10 00:55:17] Production.INFO: ProcessCDR(1,14440862,1,1,2) [2025-02-10 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440862', 'tblTempUsageDetail_20' ) start [2025-02-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440862', 'tblTempUsageDetail_20' ) end [2025-02-10 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:55:21] Production.INFO: ==25111== Releasing lock... [2025-02-10 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:56:05 [end_date_ymd] => 2025-02-10 00:56:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:56:05' and `end` < '2025-02-10 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-10 00:56:18] Production.INFO: count ==258 [2025-02-10 00:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:56:05 - End Time 2025-02-10 00:56:05 [2025-02-10 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440867', 'tblTempUsageDetail_20' ) start [2025-02-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440867', 'tblTempUsageDetail_20' ) end [2025-02-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440867', 'tblTempVendorCDR_20' ) start [2025-02-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440867', 'tblTempVendorCDR_20' ) end [2025-02-10 00:56:18] Production.INFO: ProcessCDR(1,14440867,1,1,2) [2025-02-10 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440867', 'tblTempUsageDetail_20' ) start [2025-02-10 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440867', 'tblTempUsageDetail_20' ) end [2025-02-10 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:56:22] Production.INFO: ==25185== Releasing lock... [2025-02-10 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:57:04 [end_date_ymd] => 2025-02-10 00:57:04 [RateCDR] => 1 ) [2025-02-10 00:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:57:04' and `end` < '2025-02-10 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:57:17] Production.INFO: count ==258 [2025-02-10 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-09 21:57:04 - End Time 2025-02-10 00:57:04 [2025-02-10 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440869', 'tblTempUsageDetail_20' ) start [2025-02-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440869', 'tblTempUsageDetail_20' ) end [2025-02-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440869', 'tblTempVendorCDR_20' ) start [2025-02-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440869', 'tblTempVendorCDR_20' ) end [2025-02-10 00:57:17] Production.INFO: ProcessCDR(1,14440869,1,1,2) [2025-02-10 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440869', 'tblTempUsageDetail_20' ) start [2025-02-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440869', 'tblTempUsageDetail_20' ) end [2025-02-10 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:57:22] Production.INFO: ==25259== Releasing lock... [2025-02-10 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:58:05 [end_date_ymd] => 2025-02-10 00:58:05 [RateCDR] => 1 ) [2025-02-10 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-09 21:58:05' and `end` < '2025-02-10 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-10 00:58:18] Production.INFO: count ==258 [2025-02-10 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 21:58:05 - End Time 2025-02-10 00:58:05 [2025-02-10 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440877', 'tblTempUsageDetail_20' ) start [2025-02-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440877', 'tblTempUsageDetail_20' ) end [2025-02-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440877', 'tblTempVendorCDR_20' ) start [2025-02-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440877', 'tblTempVendorCDR_20' ) end [2025-02-10 00:58:18] Production.INFO: ProcessCDR(1,14440877,1,1,2) [2025-02-10 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440877', 'tblTempUsageDetail_20' ) start [2025-02-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440877', 'tblTempUsageDetail_20' ) end [2025-02-10 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:58:21] Production.INFO: ==25333== Releasing lock... [2025-02-10 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:58:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 21:59:04 [end_date_ymd] => 2025-02-10 00:59:04 [RateCDR] => 1 ) [2025-02-10 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 21:59:04' and `end` < '2025-02-10 00:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 00:59:19] Production.INFO: count ==258 [2025-02-10 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 21:59:04 - End Time 2025-02-10 00:59:04 [2025-02-10 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440878', 'tblTempUsageDetail_20' ) start [2025-02-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440878', 'tblTempUsageDetail_20' ) end [2025-02-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440878', 'tblTempVendorCDR_20' ) start [2025-02-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440878', 'tblTempVendorCDR_20' ) end [2025-02-10 00:59:19] Production.INFO: ProcessCDR(1,14440878,1,1,2) [2025-02-10 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440878', 'tblTempUsageDetail_20' ) start [2025-02-10 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440878', 'tblTempUsageDetail_20' ) end [2025-02-10 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 00:59:22] Production.INFO: ==25405== Releasing lock... [2025-02-10 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 00:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:00:05 [end_date_ymd] => 2025-02-10 01:00:05 [RateCDR] => 1 ) [2025-02-10 01: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-09 22:00:05' and `end` < '2025-02-10 01: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-10 01:00:18] Production.INFO: count ==296 [2025-02-10 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:00:05 - End Time 2025-02-10 01:00:05 [2025-02-10 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440887', 'tblTempUsageDetail_20' ) start [2025-02-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440887', 'tblTempUsageDetail_20' ) end [2025-02-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440887', 'tblTempVendorCDR_20' ) start [2025-02-10 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440887', 'tblTempVendorCDR_20' ) end [2025-02-10 01:00:18] Production.INFO: ProcessCDR(1,14440887,1,1,2) [2025-02-10 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440887', 'tblTempUsageDetail_20' ) start [2025-02-10 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440887', 'tblTempUsageDetail_20' ) end [2025-02-10 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:00:21] Production.INFO: ==25485== Releasing lock... [2025-02-10 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:01:06 [end_date_ymd] => 2025-02-10 01:01:06 [RateCDR] => 1 ) [2025-02-10 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:01:06' and `end` < '2025-02-10 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:01:19] Production.INFO: count ==327 [2025-02-10 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:01:06 - End Time 2025-02-10 01:01:06 [2025-02-10 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440893', 'tblTempUsageDetail_20' ) start [2025-02-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440893', 'tblTempUsageDetail_20' ) end [2025-02-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440893', 'tblTempVendorCDR_20' ) start [2025-02-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440893', 'tblTempVendorCDR_20' ) end [2025-02-10 01:01:19] Production.INFO: ProcessCDR(1,14440893,1,1,2) [2025-02-10 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440893', 'tblTempUsageDetail_20' ) start [2025-02-10 01:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440893', 'tblTempUsageDetail_20' ) end [2025-02-10 01:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:01:24] Production.INFO: ==25576== Releasing lock... [2025-02-10 01:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:01:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:02:05 [end_date_ymd] => 2025-02-10 01:02:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:02:05' and `end` < '2025-02-10 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-10 01:02:19] Production.INFO: count ==327 [2025-02-10 01:02:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:02:05 - End Time 2025-02-10 01:02:05 [2025-02-10 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440898', 'tblTempUsageDetail_20' ) start [2025-02-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440898', 'tblTempUsageDetail_20' ) end [2025-02-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440898', 'tblTempVendorCDR_20' ) start [2025-02-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440898', 'tblTempVendorCDR_20' ) end [2025-02-10 01:02:19] Production.INFO: ProcessCDR(1,14440898,1,1,2) [2025-02-10 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440898', 'tblTempUsageDetail_20' ) start [2025-02-10 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440898', 'tblTempUsageDetail_20' ) end [2025-02-10 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:02:24] Production.INFO: ==25648== Releasing lock... [2025-02-10 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:02:24] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:03:05 [end_date_ymd] => 2025-02-10 01:03:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:03:05' and `end` < '2025-02-10 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-10 01:03:19] Production.INFO: count ==327 [2025-02-10 01:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:03:05 - End Time 2025-02-10 01:03:05 [2025-02-10 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440903', 'tblTempUsageDetail_20' ) start [2025-02-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440903', 'tblTempUsageDetail_20' ) end [2025-02-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440903', 'tblTempVendorCDR_20' ) start [2025-02-10 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440903', 'tblTempVendorCDR_20' ) end [2025-02-10 01:03:19] Production.INFO: ProcessCDR(1,14440903,1,1,2) [2025-02-10 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440903', 'tblTempUsageDetail_20' ) start [2025-02-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440903', 'tblTempUsageDetail_20' ) end [2025-02-10 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:03:22] Production.INFO: ==25723== Releasing lock... [2025-02-10 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:04:05 [end_date_ymd] => 2025-02-10 01:04:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:04:05' and `end` < '2025-02-10 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-10 01:04:19] Production.INFO: count ==328 [2025-02-10 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:04:05 - End Time 2025-02-10 01:04:05 [2025-02-10 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440908', 'tblTempUsageDetail_20' ) start [2025-02-10 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440908', 'tblTempUsageDetail_20' ) end [2025-02-10 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440908', 'tblTempVendorCDR_20' ) start [2025-02-10 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440908', 'tblTempVendorCDR_20' ) end [2025-02-10 01:04:19] Production.INFO: ProcessCDR(1,14440908,1,1,2) [2025-02-10 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440908', 'tblTempUsageDetail_20' ) start [2025-02-10 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440908', 'tblTempUsageDetail_20' ) end [2025-02-10 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:04:23] Production.INFO: ==25799== Releasing lock... [2025-02-10 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:04:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:05:05 [end_date_ymd] => 2025-02-10 01:05:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:05:05' and `end` < '2025-02-10 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-10 01:05:18] Production.INFO: count ==367 [2025-02-10 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:05:05 - End Time 2025-02-10 01:05:05 [2025-02-10 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440913', 'tblTempUsageDetail_20' ) start [2025-02-10 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440913', 'tblTempUsageDetail_20' ) end [2025-02-10 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440913', 'tblTempVendorCDR_20' ) start [2025-02-10 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440913', 'tblTempVendorCDR_20' ) end [2025-02-10 01:05:18] Production.INFO: ProcessCDR(1,14440913,1,1,2) [2025-02-10 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440913', 'tblTempUsageDetail_20' ) start [2025-02-10 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440913', 'tblTempUsageDetail_20' ) end [2025-02-10 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:05:23] Production.INFO: ==25916== Releasing lock... [2025-02-10 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:05:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:06:05 [end_date_ymd] => 2025-02-10 01:06:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:06:05' and `end` < '2025-02-10 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-10 01:06:17] Production.INFO: count ==367 [2025-02-10 01:06:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:06:05 - End Time 2025-02-10 01:06:05 [2025-02-10 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440918', 'tblTempUsageDetail_20' ) start [2025-02-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440918', 'tblTempUsageDetail_20' ) end [2025-02-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440918', 'tblTempVendorCDR_20' ) start [2025-02-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440918', 'tblTempVendorCDR_20' ) end [2025-02-10 01:06:18] Production.INFO: ProcessCDR(1,14440918,1,1,2) [2025-02-10 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440918', 'tblTempUsageDetail_20' ) start [2025-02-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440918', 'tblTempUsageDetail_20' ) end [2025-02-10 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:06:21] Production.INFO: ==25987== Releasing lock... [2025-02-10 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:06:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:07:05 [end_date_ymd] => 2025-02-10 01:07:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:07:05' and `end` < '2025-02-10 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-10 01:07:18] Production.INFO: count ==371 [2025-02-10 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:07:05 - End Time 2025-02-10 01:07:05 [2025-02-10 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440923', 'tblTempUsageDetail_20' ) start [2025-02-10 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440923', 'tblTempUsageDetail_20' ) end [2025-02-10 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440923', 'tblTempVendorCDR_20' ) start [2025-02-10 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440923', 'tblTempVendorCDR_20' ) end [2025-02-10 01:07:18] Production.INFO: ProcessCDR(1,14440923,1,1,2) [2025-02-10 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440923', 'tblTempUsageDetail_20' ) start [2025-02-10 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440923', 'tblTempUsageDetail_20' ) end [2025-02-10 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:07:22] Production.INFO: ==26065== Releasing lock... [2025-02-10 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:07:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:08:05 [end_date_ymd] => 2025-02-10 01:08:05 [RateCDR] => 1 ) [2025-02-10 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:08:05' and `end` < '2025-02-10 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:08:18] Production.INFO: count ==367 [2025-02-10 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:08:05 - End Time 2025-02-10 01:08:05 [2025-02-10 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440928', 'tblTempUsageDetail_20' ) start [2025-02-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440928', 'tblTempUsageDetail_20' ) end [2025-02-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440928', 'tblTempVendorCDR_20' ) start [2025-02-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440928', 'tblTempVendorCDR_20' ) end [2025-02-10 01:08:18] Production.INFO: ProcessCDR(1,14440928,1,1,2) [2025-02-10 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440928', 'tblTempUsageDetail_20' ) start [2025-02-10 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440928', 'tblTempUsageDetail_20' ) end [2025-02-10 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:08:21] Production.INFO: ==26144== Releasing lock... [2025-02-10 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:09:05 [end_date_ymd] => 2025-02-10 01:09:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:09:05' and `end` < '2025-02-10 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-10 01:09:19] Production.INFO: count ==367 [2025-02-10 01:09:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:09:05 - End Time 2025-02-10 01:09:05 [2025-02-10 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440933', 'tblTempUsageDetail_20' ) start [2025-02-10 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440933', 'tblTempUsageDetail_20' ) end [2025-02-10 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440933', 'tblTempVendorCDR_20' ) start [2025-02-10 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440933', 'tblTempVendorCDR_20' ) end [2025-02-10 01:09:19] Production.INFO: ProcessCDR(1,14440933,1,1,2) [2025-02-10 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440933', 'tblTempUsageDetail_20' ) start [2025-02-10 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440933', 'tblTempUsageDetail_20' ) end [2025-02-10 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:09:22] Production.INFO: ==26220== Releasing lock... [2025-02-10 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:10:05 [end_date_ymd] => 2025-02-10 01:10:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:10:05' and `end` < '2025-02-10 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-10 01:10:18] Production.INFO: count ==374 [2025-02-10 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:10:05 - End Time 2025-02-10 01:10:05 [2025-02-10 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440939', 'tblTempUsageDetail_20' ) start [2025-02-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440939', 'tblTempUsageDetail_20' ) end [2025-02-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440939', 'tblTempVendorCDR_20' ) start [2025-02-10 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440939', 'tblTempVendorCDR_20' ) end [2025-02-10 01:10:18] Production.INFO: ProcessCDR(1,14440939,1,1,2) [2025-02-10 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440939', 'tblTempUsageDetail_20' ) start [2025-02-10 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440939', 'tblTempUsageDetail_20' ) end [2025-02-10 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:10:23] Production.INFO: ==26296== Releasing lock... [2025-02-10 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:10:23] Production.INFO: 31 MB #Memory Used# [2025-02-10 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:11:05 [end_date_ymd] => 2025-02-10 01:11:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:11:05' and `end` < '2025-02-10 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-10 01:11:18] Production.INFO: count ==390 [2025-02-10 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:11:05 - End Time 2025-02-10 01:11:05 [2025-02-10 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440944', 'tblTempUsageDetail_20' ) start [2025-02-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440944', 'tblTempUsageDetail_20' ) end [2025-02-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440944', 'tblTempVendorCDR_20' ) start [2025-02-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440944', 'tblTempVendorCDR_20' ) end [2025-02-10 01:11:18] Production.INFO: ProcessCDR(1,14440944,1,1,2) [2025-02-10 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440944', 'tblTempUsageDetail_20' ) start [2025-02-10 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440944', 'tblTempUsageDetail_20' ) end [2025-02-10 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:11:21] Production.INFO: ==26378== Releasing lock... [2025-02-10 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:12:05 [end_date_ymd] => 2025-02-10 01:12:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:12:05' and `end` < '2025-02-10 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-10 01:12:18] Production.INFO: count ==386 [2025-02-10 01:12:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:12:05 - End Time 2025-02-10 01:12:05 [2025-02-10 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440949', 'tblTempUsageDetail_20' ) start [2025-02-10 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440949', 'tblTempUsageDetail_20' ) end [2025-02-10 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440949', 'tblTempVendorCDR_20' ) start [2025-02-10 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440949', 'tblTempVendorCDR_20' ) end [2025-02-10 01:12:19] Production.INFO: ProcessCDR(1,14440949,1,1,2) [2025-02-10 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440949', 'tblTempUsageDetail_20' ) start [2025-02-10 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440949', 'tblTempUsageDetail_20' ) end [2025-02-10 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:12:22] Production.INFO: ==26450== Releasing lock... [2025-02-10 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:13:05 [end_date_ymd] => 2025-02-10 01:13:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:13:05' and `end` < '2025-02-10 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-10 01:13:19] Production.INFO: count ==386 [2025-02-10 01:13:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:13:05 - End Time 2025-02-10 01:13:05 [2025-02-10 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440954', 'tblTempUsageDetail_20' ) start [2025-02-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440954', 'tblTempUsageDetail_20' ) end [2025-02-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440954', 'tblTempVendorCDR_20' ) start [2025-02-10 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440954', 'tblTempVendorCDR_20' ) end [2025-02-10 01:13:19] Production.INFO: ProcessCDR(1,14440954,1,1,2) [2025-02-10 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440954', 'tblTempUsageDetail_20' ) start [2025-02-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440954', 'tblTempUsageDetail_20' ) end [2025-02-10 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:13:22] Production.INFO: ==26525== Releasing lock... [2025-02-10 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:14:05 [end_date_ymd] => 2025-02-10 01:14:05 [RateCDR] => 1 ) [2025-02-10 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:14:05' and `end` < '2025-02-10 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:14:18] Production.INFO: count ==391 [2025-02-10 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:14:05 - End Time 2025-02-10 01:14:05 [2025-02-10 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440959', 'tblTempUsageDetail_20' ) start [2025-02-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440959', 'tblTempUsageDetail_20' ) end [2025-02-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440959', 'tblTempVendorCDR_20' ) start [2025-02-10 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440959', 'tblTempVendorCDR_20' ) end [2025-02-10 01:14:18] Production.INFO: ProcessCDR(1,14440959,1,1,2) [2025-02-10 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440959', 'tblTempUsageDetail_20' ) start [2025-02-10 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440959', 'tblTempUsageDetail_20' ) end [2025-02-10 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:14:23] Production.INFO: ==26597== Releasing lock... [2025-02-10 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:14:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:15:05 [end_date_ymd] => 2025-02-10 01:15:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:15:05' and `end` < '2025-02-10 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-10 01:15:18] Production.INFO: count ==391 [2025-02-10 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:15:05 - End Time 2025-02-10 01:15:05 [2025-02-10 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440964', 'tblTempUsageDetail_20' ) start [2025-02-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440964', 'tblTempUsageDetail_20' ) end [2025-02-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440964', 'tblTempVendorCDR_20' ) start [2025-02-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440964', 'tblTempVendorCDR_20' ) end [2025-02-10 01:15:18] Production.INFO: ProcessCDR(1,14440964,1,1,2) [2025-02-10 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440964', 'tblTempUsageDetail_20' ) start [2025-02-10 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440964', 'tblTempUsageDetail_20' ) end [2025-02-10 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:15:21] Production.INFO: ==26674== Releasing lock... [2025-02-10 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:16:06 [end_date_ymd] => 2025-02-10 01:16:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:16:06' and `end` < '2025-02-10 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-10 01:16:20] Production.INFO: count ==393 [2025-02-10 01:16:20] Production.ERROR: pbx CDR StartTime 2025-02-09 22:16:06 - End Time 2025-02-10 01:16:06 [2025-02-10 01:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440969', 'tblTempUsageDetail_20' ) start [2025-02-10 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440969', 'tblTempUsageDetail_20' ) end [2025-02-10 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440969', 'tblTempVendorCDR_20' ) start [2025-02-10 01:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440969', 'tblTempVendorCDR_20' ) end [2025-02-10 01:16:20] Production.INFO: ProcessCDR(1,14440969,1,1,2) [2025-02-10 01:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440969', 'tblTempUsageDetail_20' ) start [2025-02-10 01:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440969', 'tblTempUsageDetail_20' ) end [2025-02-10 01:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:16:23] Production.INFO: ==26748== Releasing lock... [2025-02-10 01:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:16:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:17:05 [end_date_ymd] => 2025-02-10 01:17:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:17:05' and `end` < '2025-02-10 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-10 01:17:18] Production.INFO: count ==393 [2025-02-10 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:17:05 - End Time 2025-02-10 01:17:05 [2025-02-10 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440974', 'tblTempUsageDetail_20' ) start [2025-02-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440974', 'tblTempUsageDetail_20' ) end [2025-02-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440974', 'tblTempVendorCDR_20' ) start [2025-02-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440974', 'tblTempVendorCDR_20' ) end [2025-02-10 01:17:18] Production.INFO: ProcessCDR(1,14440974,1,1,2) [2025-02-10 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440974', 'tblTempUsageDetail_20' ) start [2025-02-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440974', 'tblTempUsageDetail_20' ) end [2025-02-10 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:17:21] Production.INFO: ==26822== Releasing lock... [2025-02-10 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:18:05 [end_date_ymd] => 2025-02-10 01:18:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:18:05' and `end` < '2025-02-10 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-10 01:18:18] Production.INFO: count ==393 [2025-02-10 01:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:18:05 - End Time 2025-02-10 01:18:05 [2025-02-10 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440979', 'tblTempUsageDetail_20' ) start [2025-02-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440979', 'tblTempUsageDetail_20' ) end [2025-02-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440979', 'tblTempVendorCDR_20' ) start [2025-02-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440979', 'tblTempVendorCDR_20' ) end [2025-02-10 01:18:18] Production.INFO: ProcessCDR(1,14440979,1,1,2) [2025-02-10 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440979', 'tblTempUsageDetail_20' ) start [2025-02-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440979', 'tblTempUsageDetail_20' ) end [2025-02-10 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:18:21] Production.INFO: ==26899== Releasing lock... [2025-02-10 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:18:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:19:04 [end_date_ymd] => 2025-02-10 01:19:04 [RateCDR] => 1 ) [2025-02-10 01:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:19:04' and `end` < '2025-02-10 01:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:19:17] Production.INFO: count ==392 [2025-02-10 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:19:04 - End Time 2025-02-10 01:19:04 [2025-02-10 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440984', 'tblTempUsageDetail_20' ) start [2025-02-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440984', 'tblTempUsageDetail_20' ) end [2025-02-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440984', 'tblTempVendorCDR_20' ) start [2025-02-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440984', 'tblTempVendorCDR_20' ) end [2025-02-10 01:19:18] Production.INFO: ProcessCDR(1,14440984,1,1,2) [2025-02-10 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440984', 'tblTempUsageDetail_20' ) start [2025-02-10 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440984', 'tblTempUsageDetail_20' ) end [2025-02-10 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:19:21] Production.INFO: ==26974== Releasing lock... [2025-02-10 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:20:06 [end_date_ymd] => 2025-02-10 01:20:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:20:06' and `end` < '2025-02-10 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-10 01:20:18] Production.INFO: count ==398 [2025-02-10 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:20:06 - End Time 2025-02-10 01:20:06 [2025-02-10 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440990', 'tblTempUsageDetail_20' ) start [2025-02-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440990', 'tblTempUsageDetail_20' ) end [2025-02-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440990', 'tblTempVendorCDR_20' ) start [2025-02-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440990', 'tblTempVendorCDR_20' ) end [2025-02-10 01:20:19] Production.INFO: ProcessCDR(1,14440990,1,1,2) [2025-02-10 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440990', 'tblTempUsageDetail_20' ) start [2025-02-10 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440990', 'tblTempUsageDetail_20' ) end [2025-02-10 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:20:22] Production.INFO: ==27090== Releasing lock... [2025-02-10 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:21:04 [end_date_ymd] => 2025-02-10 01:21:04 [RateCDR] => 1 ) [2025-02-10 01: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-09 22:21:04' and `end` < '2025-02-10 01: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-10 01:21:17] Production.INFO: count ==395 [2025-02-10 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-09 22:21:04 - End Time 2025-02-10 01:21:04 [2025-02-10 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440995', 'tblTempUsageDetail_20' ) start [2025-02-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14440995', 'tblTempUsageDetail_20' ) end [2025-02-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440995', 'tblTempVendorCDR_20' ) start [2025-02-10 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14440995', 'tblTempVendorCDR_20' ) end [2025-02-10 01:21:17] Production.INFO: ProcessCDR(1,14440995,1,1,2) [2025-02-10 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14440995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14440995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14440995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14440995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440995', 'tblTempUsageDetail_20' ) start [2025-02-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14440995', 'tblTempUsageDetail_20' ) end [2025-02-10 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:21:21] Production.INFO: ==27166== Releasing lock... [2025-02-10 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:22:05 [end_date_ymd] => 2025-02-10 01:22:05 [RateCDR] => 1 ) [2025-02-10 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:22:05' and `end` < '2025-02-10 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:22:20] Production.INFO: count ==394 [2025-02-10 01:22:20] Production.ERROR: pbx CDR StartTime 2025-02-09 22:22:05 - End Time 2025-02-10 01:22:05 [2025-02-10 01:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441000', 'tblTempUsageDetail_20' ) start [2025-02-10 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441000', 'tblTempUsageDetail_20' ) end [2025-02-10 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441000', 'tblTempVendorCDR_20' ) start [2025-02-10 01:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441000', 'tblTempVendorCDR_20' ) end [2025-02-10 01:22:20] Production.INFO: ProcessCDR(1,14441000,1,1,2) [2025-02-10 01:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441000', 'tblTempUsageDetail_20' ) start [2025-02-10 01:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441000', 'tblTempUsageDetail_20' ) end [2025-02-10 01:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:22:23] Production.INFO: ==27243== Releasing lock... [2025-02-10 01:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:23:05 [end_date_ymd] => 2025-02-10 01:23:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:23:05' and `end` < '2025-02-10 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-10 01:23:17] Production.INFO: count ==394 [2025-02-10 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:23:05 - End Time 2025-02-10 01:23:05 [2025-02-10 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441005', 'tblTempUsageDetail_20' ) start [2025-02-10 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441005', 'tblTempUsageDetail_20' ) end [2025-02-10 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441005', 'tblTempVendorCDR_20' ) start [2025-02-10 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441005', 'tblTempVendorCDR_20' ) end [2025-02-10 01:23:18] Production.INFO: ProcessCDR(1,14441005,1,1,2) [2025-02-10 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441005', 'tblTempUsageDetail_20' ) start [2025-02-10 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441005', 'tblTempUsageDetail_20' ) end [2025-02-10 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:23:21] Production.INFO: ==27317== Releasing lock... [2025-02-10 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:24:06 [end_date_ymd] => 2025-02-10 01:24:06 [RateCDR] => 1 ) [2025-02-10 01: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-09 22:24:06' and `end` < '2025-02-10 01: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-10 01:24:19] Production.INFO: count ==394 [2025-02-10 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:24:06 - End Time 2025-02-10 01:24:06 [2025-02-10 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441010', 'tblTempUsageDetail_20' ) start [2025-02-10 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441010', 'tblTempUsageDetail_20' ) end [2025-02-10 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441010', 'tblTempVendorCDR_20' ) start [2025-02-10 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441010', 'tblTempVendorCDR_20' ) end [2025-02-10 01:24:19] Production.INFO: ProcessCDR(1,14441010,1,1,2) [2025-02-10 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441010', 'tblTempUsageDetail_20' ) start [2025-02-10 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441010', 'tblTempUsageDetail_20' ) end [2025-02-10 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:24:22] Production.INFO: ==27388== Releasing lock... [2025-02-10 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:24:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:25:05 [end_date_ymd] => 2025-02-10 01:25:05 [RateCDR] => 1 ) [2025-02-10 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:25:05' and `end` < '2025-02-10 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:25:18] Production.INFO: count ==391 [2025-02-10 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:25:05 - End Time 2025-02-10 01:25:05 [2025-02-10 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441015', 'tblTempUsageDetail_20' ) start [2025-02-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441015', 'tblTempUsageDetail_20' ) end [2025-02-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441015', 'tblTempVendorCDR_20' ) start [2025-02-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441015', 'tblTempVendorCDR_20' ) end [2025-02-10 01:25:18] Production.INFO: ProcessCDR(1,14441015,1,1,2) [2025-02-10 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441015', 'tblTempUsageDetail_20' ) start [2025-02-10 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441015', 'tblTempUsageDetail_20' ) end [2025-02-10 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:25:21] Production.INFO: ==27462== Releasing lock... [2025-02-10 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:26:05 [end_date_ymd] => 2025-02-10 01:26:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:26:05' and `end` < '2025-02-10 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-10 01:26:18] Production.INFO: count ==391 [2025-02-10 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:26:05 - End Time 2025-02-10 01:26:05 [2025-02-10 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441020', 'tblTempUsageDetail_20' ) start [2025-02-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441020', 'tblTempUsageDetail_20' ) end [2025-02-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441020', 'tblTempVendorCDR_20' ) start [2025-02-10 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441020', 'tblTempVendorCDR_20' ) end [2025-02-10 01:26:18] Production.INFO: ProcessCDR(1,14441020,1,1,2) [2025-02-10 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441020', 'tblTempUsageDetail_20' ) start [2025-02-10 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441020', 'tblTempUsageDetail_20' ) end [2025-02-10 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:26:21] Production.INFO: ==27537== Releasing lock... [2025-02-10 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:27:05 [end_date_ymd] => 2025-02-10 01:27:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:27:05' and `end` < '2025-02-10 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-10 01:27:20] Production.INFO: count ==387 [2025-02-10 01:27:20] Production.ERROR: pbx CDR StartTime 2025-02-09 22:27:05 - End Time 2025-02-10 01:27:05 [2025-02-10 01:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441025', 'tblTempUsageDetail_20' ) start [2025-02-10 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441025', 'tblTempUsageDetail_20' ) end [2025-02-10 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441025', 'tblTempVendorCDR_20' ) start [2025-02-10 01:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441025', 'tblTempVendorCDR_20' ) end [2025-02-10 01:27:20] Production.INFO: ProcessCDR(1,14441025,1,1,2) [2025-02-10 01:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441025', 'tblTempUsageDetail_20' ) start [2025-02-10 01:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441025', 'tblTempUsageDetail_20' ) end [2025-02-10 01:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:27:23] Production.INFO: ==27614== Releasing lock... [2025-02-10 01:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:27:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:28:05 [end_date_ymd] => 2025-02-10 01:28:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:28:05' and `end` < '2025-02-10 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-10 01:28:18] Production.INFO: count ==383 [2025-02-10 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:28:05 - End Time 2025-02-10 01:28:05 [2025-02-10 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441030', 'tblTempUsageDetail_20' ) start [2025-02-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441030', 'tblTempUsageDetail_20' ) end [2025-02-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441030', 'tblTempVendorCDR_20' ) start [2025-02-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441030', 'tblTempVendorCDR_20' ) end [2025-02-10 01:28:18] Production.INFO: ProcessCDR(1,14441030,1,1,2) [2025-02-10 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441030', 'tblTempUsageDetail_20' ) start [2025-02-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441030', 'tblTempUsageDetail_20' ) end [2025-02-10 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:28:21] Production.INFO: ==27688== Releasing lock... [2025-02-10 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:29:05 [end_date_ymd] => 2025-02-10 01:29:05 [RateCDR] => 1 ) [2025-02-10 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:29:05' and `end` < '2025-02-10 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:29:18] Production.INFO: count ==383 [2025-02-10 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:29:05 - End Time 2025-02-10 01:29:05 [2025-02-10 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441035', 'tblTempUsageDetail_20' ) start [2025-02-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441035', 'tblTempUsageDetail_20' ) end [2025-02-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441035', 'tblTempVendorCDR_20' ) start [2025-02-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441035', 'tblTempVendorCDR_20' ) end [2025-02-10 01:29:18] Production.INFO: ProcessCDR(1,14441035,1,1,2) [2025-02-10 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441035', 'tblTempUsageDetail_20' ) start [2025-02-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441035', 'tblTempUsageDetail_20' ) end [2025-02-10 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:29:22] Production.INFO: ==27765== Releasing lock... [2025-02-10 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:30:06 [end_date_ymd] => 2025-02-10 01:30:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:30:06' and `end` < '2025-02-10 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-10 01:30:18] Production.INFO: count ==391 [2025-02-10 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:30:06 - End Time 2025-02-10 01:30:06 [2025-02-10 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441041', 'tblTempUsageDetail_20' ) start [2025-02-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441041', 'tblTempUsageDetail_20' ) end [2025-02-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441041', 'tblTempVendorCDR_20' ) start [2025-02-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441041', 'tblTempVendorCDR_20' ) end [2025-02-10 01:30:19] Production.INFO: ProcessCDR(1,14441041,1,1,2) [2025-02-10 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441041', 'tblTempUsageDetail_20' ) start [2025-02-10 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441041', 'tblTempUsageDetail_20' ) end [2025-02-10 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:30:22] Production.INFO: ==27840== Releasing lock... [2025-02-10 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:30:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:31:05 [end_date_ymd] => 2025-02-10 01:31:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:31:05' and `end` < '2025-02-10 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-10 01:31:18] Production.INFO: count ==391 [2025-02-10 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:31:05 - End Time 2025-02-10 01:31:05 [2025-02-10 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441046', 'tblTempUsageDetail_20' ) start [2025-02-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441046', 'tblTempUsageDetail_20' ) end [2025-02-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441046', 'tblTempVendorCDR_20' ) start [2025-02-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441046', 'tblTempVendorCDR_20' ) end [2025-02-10 01:31:18] Production.INFO: ProcessCDR(1,14441046,1,1,2) [2025-02-10 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441046', 'tblTempUsageDetail_20' ) start [2025-02-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441046', 'tblTempUsageDetail_20' ) end [2025-02-10 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:31:21] Production.INFO: ==27922== Releasing lock... [2025-02-10 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:31:21] Production.INFO: 32 MB #Memory Used# [2025-02-10 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:32:05 [end_date_ymd] => 2025-02-10 01:32:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:32:05' and `end` < '2025-02-10 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-10 01:32:19] Production.INFO: count ==391 [2025-02-10 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:32:05 - End Time 2025-02-10 01:32:05 [2025-02-10 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441051', 'tblTempUsageDetail_20' ) start [2025-02-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441051', 'tblTempUsageDetail_20' ) end [2025-02-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441051', 'tblTempVendorCDR_20' ) start [2025-02-10 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441051', 'tblTempVendorCDR_20' ) end [2025-02-10 01:32:19] Production.INFO: ProcessCDR(1,14441051,1,1,2) [2025-02-10 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441051', 'tblTempUsageDetail_20' ) start [2025-02-10 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441051', 'tblTempUsageDetail_20' ) end [2025-02-10 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:32:23] Production.INFO: ==27999== Releasing lock... [2025-02-10 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:32:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:33:05 [end_date_ymd] => 2025-02-10 01:33:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:33:05' and `end` < '2025-02-10 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-10 01:33:19] Production.INFO: count ==391 [2025-02-10 01:33:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:33:05 - End Time 2025-02-10 01:33:05 [2025-02-10 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441056', 'tblTempUsageDetail_20' ) start [2025-02-10 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441056', 'tblTempUsageDetail_20' ) end [2025-02-10 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441056', 'tblTempVendorCDR_20' ) start [2025-02-10 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441056', 'tblTempVendorCDR_20' ) end [2025-02-10 01:33:19] Production.INFO: ProcessCDR(1,14441056,1,1,2) [2025-02-10 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441056', 'tblTempUsageDetail_20' ) start [2025-02-10 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441056', 'tblTempUsageDetail_20' ) end [2025-02-10 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:33:22] Production.INFO: ==28071== Releasing lock... [2025-02-10 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:34:04 [end_date_ymd] => 2025-02-10 01:34:04 [RateCDR] => 1 ) [2025-02-10 01:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:34:04' and `end` < '2025-02-10 01:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:34:18] Production.INFO: count ==388 [2025-02-10 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:34:04 - End Time 2025-02-10 01:34:04 [2025-02-10 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441061', 'tblTempUsageDetail_20' ) start [2025-02-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441061', 'tblTempUsageDetail_20' ) end [2025-02-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441061', 'tblTempVendorCDR_20' ) start [2025-02-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441061', 'tblTempVendorCDR_20' ) end [2025-02-10 01:34:18] Production.INFO: ProcessCDR(1,14441061,1,1,2) [2025-02-10 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441061', 'tblTempUsageDetail_20' ) start [2025-02-10 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441061', 'tblTempUsageDetail_20' ) end [2025-02-10 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:34:22] Production.INFO: ==28149== Releasing lock... [2025-02-10 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:34:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:35:05 [end_date_ymd] => 2025-02-10 01:35:05 [RateCDR] => 1 ) [2025-02-10 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:35:05' and `end` < '2025-02-10 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:35:18] Production.INFO: count ==388 [2025-02-10 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:35:05 - End Time 2025-02-10 01:35:05 [2025-02-10 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441066', 'tblTempUsageDetail_20' ) start [2025-02-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441066', 'tblTempUsageDetail_20' ) end [2025-02-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441066', 'tblTempVendorCDR_20' ) start [2025-02-10 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441066', 'tblTempVendorCDR_20' ) end [2025-02-10 01:35:18] Production.INFO: ProcessCDR(1,14441066,1,1,2) [2025-02-10 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441066', 'tblTempUsageDetail_20' ) start [2025-02-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441066', 'tblTempUsageDetail_20' ) end [2025-02-10 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:35:21] Production.INFO: ==28224== Releasing lock... [2025-02-10 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:36:05 [end_date_ymd] => 2025-02-10 01:36:05 [RateCDR] => 1 ) [2025-02-10 01:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:36:05' and `end` < '2025-02-10 01:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:36:18] Production.INFO: count ==387 [2025-02-10 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:36:05 - End Time 2025-02-10 01:36:05 [2025-02-10 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441071', 'tblTempUsageDetail_20' ) start [2025-02-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441071', 'tblTempUsageDetail_20' ) end [2025-02-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441071', 'tblTempVendorCDR_20' ) start [2025-02-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441071', 'tblTempVendorCDR_20' ) end [2025-02-10 01:36:18] Production.INFO: ProcessCDR(1,14441071,1,1,2) [2025-02-10 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441071', 'tblTempUsageDetail_20' ) start [2025-02-10 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441071', 'tblTempUsageDetail_20' ) end [2025-02-10 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:36:21] Production.INFO: ==28342== Releasing lock... [2025-02-10 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:36:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:37:05 [end_date_ymd] => 2025-02-10 01:37:05 [RateCDR] => 1 ) [2025-02-10 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:37:05' and `end` < '2025-02-10 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:37:18] Production.INFO: count ==383 [2025-02-10 01:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:37:05 - End Time 2025-02-10 01:37:05 [2025-02-10 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441076', 'tblTempUsageDetail_20' ) start [2025-02-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441076', 'tblTempUsageDetail_20' ) end [2025-02-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441076', 'tblTempVendorCDR_20' ) start [2025-02-10 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441076', 'tblTempVendorCDR_20' ) end [2025-02-10 01:37:18] Production.INFO: ProcessCDR(1,14441076,1,1,2) [2025-02-10 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441076', 'tblTempUsageDetail_20' ) start [2025-02-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441076', 'tblTempUsageDetail_20' ) end [2025-02-10 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:37:21] Production.INFO: ==28415== Releasing lock... [2025-02-10 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:37:21] Production.INFO: 32 MB #Memory Used# [2025-02-10 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:38:06 [end_date_ymd] => 2025-02-10 01:38:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:38:06' and `end` < '2025-02-10 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-10 01:38:19] Production.INFO: count ==381 [2025-02-10 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:38:06 - End Time 2025-02-10 01:38:06 [2025-02-10 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441081', 'tblTempUsageDetail_20' ) start [2025-02-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441081', 'tblTempUsageDetail_20' ) end [2025-02-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441081', 'tblTempVendorCDR_20' ) start [2025-02-10 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441081', 'tblTempVendorCDR_20' ) end [2025-02-10 01:38:19] Production.INFO: ProcessCDR(1,14441081,1,1,2) [2025-02-10 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441081', 'tblTempUsageDetail_20' ) start [2025-02-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441081', 'tblTempUsageDetail_20' ) end [2025-02-10 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:38:22] Production.INFO: ==28492== Releasing lock... [2025-02-10 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:39:05 [end_date_ymd] => 2025-02-10 01:39:05 [RateCDR] => 1 ) [2025-02-10 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:39:05' and `end` < '2025-02-10 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:39:18] Production.INFO: count ==378 [2025-02-10 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:39:05 - End Time 2025-02-10 01:39:05 [2025-02-10 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441086', 'tblTempUsageDetail_20' ) start [2025-02-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441086', 'tblTempUsageDetail_20' ) end [2025-02-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441086', 'tblTempVendorCDR_20' ) start [2025-02-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441086', 'tblTempVendorCDR_20' ) end [2025-02-10 01:39:18] Production.INFO: ProcessCDR(1,14441086,1,1,2) [2025-02-10 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441086', 'tblTempUsageDetail_20' ) start [2025-02-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441086', 'tblTempUsageDetail_20' ) end [2025-02-10 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:39:21] Production.INFO: ==28563== Releasing lock... [2025-02-10 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:40:06 [end_date_ymd] => 2025-02-10 01:40:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:40:06' and `end` < '2025-02-10 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-10 01:40:19] Production.INFO: count ==388 [2025-02-10 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:40:06 - End Time 2025-02-10 01:40:06 [2025-02-10 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441092', 'tblTempUsageDetail_20' ) start [2025-02-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441092', 'tblTempUsageDetail_20' ) end [2025-02-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441092', 'tblTempVendorCDR_20' ) start [2025-02-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441092', 'tblTempVendorCDR_20' ) end [2025-02-10 01:40:19] Production.INFO: ProcessCDR(1,14441092,1,1,2) [2025-02-10 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441092', 'tblTempUsageDetail_20' ) start [2025-02-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441092', 'tblTempUsageDetail_20' ) end [2025-02-10 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:40:22] Production.INFO: ==28658== Releasing lock... [2025-02-10 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:41:05 [end_date_ymd] => 2025-02-10 01:41:05 [RateCDR] => 1 ) [2025-02-10 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:41:05' and `end` < '2025-02-10 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:41:19] Production.INFO: count ==401 [2025-02-10 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:41:05 - End Time 2025-02-10 01:41:05 [2025-02-10 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441097', 'tblTempUsageDetail_20' ) start [2025-02-10 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441097', 'tblTempUsageDetail_20' ) end [2025-02-10 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441097', 'tblTempVendorCDR_20' ) start [2025-02-10 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441097', 'tblTempVendorCDR_20' ) end [2025-02-10 01:41:20] Production.INFO: ProcessCDR(1,14441097,1,1,2) [2025-02-10 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441097', 'tblTempUsageDetail_20' ) start [2025-02-10 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441097', 'tblTempUsageDetail_20' ) end [2025-02-10 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:41:23] Production.INFO: ==28757== Releasing lock... [2025-02-10 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:41:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:42:05 [end_date_ymd] => 2025-02-10 01:42:05 [RateCDR] => 1 ) [2025-02-10 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:42:05' and `end` < '2025-02-10 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:42:18] Production.INFO: count ==399 [2025-02-10 01:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:42:05 - End Time 2025-02-10 01:42:05 [2025-02-10 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441102', 'tblTempUsageDetail_20' ) start [2025-02-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441102', 'tblTempUsageDetail_20' ) end [2025-02-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441102', 'tblTempVendorCDR_20' ) start [2025-02-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441102', 'tblTempVendorCDR_20' ) end [2025-02-10 01:42:18] Production.INFO: ProcessCDR(1,14441102,1,1,2) [2025-02-10 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441102', 'tblTempUsageDetail_20' ) start [2025-02-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441102', 'tblTempUsageDetail_20' ) end [2025-02-10 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:42:21] Production.INFO: ==28860== Releasing lock... [2025-02-10 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:42:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:43:05 [end_date_ymd] => 2025-02-10 01:43:05 [RateCDR] => 1 ) [2025-02-10 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:43:05' and `end` < '2025-02-10 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:43:17] Production.INFO: count ==399 [2025-02-10 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:43:05 - End Time 2025-02-10 01:43:05 [2025-02-10 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441107', 'tblTempUsageDetail_20' ) start [2025-02-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441107', 'tblTempUsageDetail_20' ) end [2025-02-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441107', 'tblTempVendorCDR_20' ) start [2025-02-10 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441107', 'tblTempVendorCDR_20' ) end [2025-02-10 01:43:18] Production.INFO: ProcessCDR(1,14441107,1,1,2) [2025-02-10 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441107', 'tblTempUsageDetail_20' ) start [2025-02-10 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441107', 'tblTempUsageDetail_20' ) end [2025-02-10 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:43:21] Production.INFO: ==28962== Releasing lock... [2025-02-10 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:44:05 [end_date_ymd] => 2025-02-10 01:44:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:44:05' and `end` < '2025-02-10 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-10 01:44:19] Production.INFO: count ==394 [2025-02-10 01:44:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:44:05 - End Time 2025-02-10 01:44:05 [2025-02-10 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441112', 'tblTempUsageDetail_20' ) start [2025-02-10 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441112', 'tblTempUsageDetail_20' ) end [2025-02-10 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441112', 'tblTempVendorCDR_20' ) start [2025-02-10 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441112', 'tblTempVendorCDR_20' ) end [2025-02-10 01:44:19] Production.INFO: ProcessCDR(1,14441112,1,1,2) [2025-02-10 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441112', 'tblTempUsageDetail_20' ) start [2025-02-10 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441112', 'tblTempUsageDetail_20' ) end [2025-02-10 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:44:22] Production.INFO: ==29063== Releasing lock... [2025-02-10 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:45:05 [end_date_ymd] => 2025-02-10 01:45:05 [RateCDR] => 1 ) [2025-02-10 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:45:05' and `end` < '2025-02-10 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:45:17] Production.INFO: count ==394 [2025-02-10 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:45:05 - End Time 2025-02-10 01:45:05 [2025-02-10 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441117', 'tblTempUsageDetail_20' ) start [2025-02-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441117', 'tblTempUsageDetail_20' ) end [2025-02-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441117', 'tblTempVendorCDR_20' ) start [2025-02-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441117', 'tblTempVendorCDR_20' ) end [2025-02-10 01:45:18] Production.INFO: ProcessCDR(1,14441117,1,1,2) [2025-02-10 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441117', 'tblTempUsageDetail_20' ) start [2025-02-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441117', 'tblTempUsageDetail_20' ) end [2025-02-10 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:45:21] Production.INFO: ==29162== Releasing lock... [2025-02-10 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:46:05 [end_date_ymd] => 2025-02-10 01:46:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:46:05' and `end` < '2025-02-10 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-10 01:46:18] Production.INFO: count ==394 [2025-02-10 01:46:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:46:05 - End Time 2025-02-10 01:46:05 [2025-02-10 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441122', 'tblTempUsageDetail_20' ) start [2025-02-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441122', 'tblTempUsageDetail_20' ) end [2025-02-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441122', 'tblTempVendorCDR_20' ) start [2025-02-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441122', 'tblTempVendorCDR_20' ) end [2025-02-10 01:46:18] Production.INFO: ProcessCDR(1,14441122,1,1,2) [2025-02-10 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441122', 'tblTempUsageDetail_20' ) start [2025-02-10 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441122', 'tblTempUsageDetail_20' ) end [2025-02-10 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:46:21] Production.INFO: ==29263== Releasing lock... [2025-02-10 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:47:05 [end_date_ymd] => 2025-02-10 01:47:05 [RateCDR] => 1 ) [2025-02-10 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:47:05' and `end` < '2025-02-10 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:47:18] Production.INFO: count ==394 [2025-02-10 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:47:05 - End Time 2025-02-10 01:47:05 [2025-02-10 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441127', 'tblTempUsageDetail_20' ) start [2025-02-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441127', 'tblTempUsageDetail_20' ) end [2025-02-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441127', 'tblTempVendorCDR_20' ) start [2025-02-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441127', 'tblTempVendorCDR_20' ) end [2025-02-10 01:47:18] Production.INFO: ProcessCDR(1,14441127,1,1,2) [2025-02-10 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441127', 'tblTempUsageDetail_20' ) start [2025-02-10 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441127', 'tblTempUsageDetail_20' ) end [2025-02-10 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:47:21] Production.INFO: ==29364== Releasing lock... [2025-02-10 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:48:05 [end_date_ymd] => 2025-02-10 01:48:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:48:05' and `end` < '2025-02-10 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-10 01:48:18] Production.INFO: count ==394 [2025-02-10 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:48:05 - End Time 2025-02-10 01:48:05 [2025-02-10 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441132', 'tblTempUsageDetail_20' ) start [2025-02-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441132', 'tblTempUsageDetail_20' ) end [2025-02-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441132', 'tblTempVendorCDR_20' ) start [2025-02-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441132', 'tblTempVendorCDR_20' ) end [2025-02-10 01:48:18] Production.INFO: ProcessCDR(1,14441132,1,1,2) [2025-02-10 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441132', 'tblTempUsageDetail_20' ) start [2025-02-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441132', 'tblTempUsageDetail_20' ) end [2025-02-10 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:48:21] Production.INFO: ==29465== Releasing lock... [2025-02-10 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:49:05 [end_date_ymd] => 2025-02-10 01:49:05 [RateCDR] => 1 ) [2025-02-10 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:49:05' and `end` < '2025-02-10 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:49:19] Production.INFO: count ==394 [2025-02-10 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:49:05 - End Time 2025-02-10 01:49:05 [2025-02-10 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441137', 'tblTempUsageDetail_20' ) start [2025-02-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441137', 'tblTempUsageDetail_20' ) end [2025-02-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441137', 'tblTempVendorCDR_20' ) start [2025-02-10 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441137', 'tblTempVendorCDR_20' ) end [2025-02-10 01:49:19] Production.INFO: ProcessCDR(1,14441137,1,1,2) [2025-02-10 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441137', 'tblTempUsageDetail_20' ) start [2025-02-10 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441137', 'tblTempUsageDetail_20' ) end [2025-02-10 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:49:23] Production.INFO: ==29571== Releasing lock... [2025-02-10 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:50:06 [end_date_ymd] => 2025-02-10 01:50:06 [RateCDR] => 1 ) [2025-02-10 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-09 22:50:06' and `end` < '2025-02-10 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-10 01:50:19] Production.INFO: count ==402 [2025-02-10 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:50:06 - End Time 2025-02-10 01:50:06 [2025-02-10 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441143', 'tblTempUsageDetail_20' ) start [2025-02-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441143', 'tblTempUsageDetail_20' ) end [2025-02-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441143', 'tblTempVendorCDR_20' ) start [2025-02-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441143', 'tblTempVendorCDR_20' ) end [2025-02-10 01:50:19] Production.INFO: ProcessCDR(1,14441143,1,1,2) [2025-02-10 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441143', 'tblTempUsageDetail_20' ) start [2025-02-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441143', 'tblTempUsageDetail_20' ) end [2025-02-10 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:50:22] Production.INFO: ==29683== Releasing lock... [2025-02-10 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:51:05 [end_date_ymd] => 2025-02-10 01:51:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:51:05' and `end` < '2025-02-10 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-10 01:51:18] Production.INFO: count ==432 [2025-02-10 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:51:05 - End Time 2025-02-10 01:51:05 [2025-02-10 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441146', 'tblTempUsageDetail_20' ) start [2025-02-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441146', 'tblTempUsageDetail_20' ) end [2025-02-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441146', 'tblTempVendorCDR_20' ) start [2025-02-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441146', 'tblTempVendorCDR_20' ) end [2025-02-10 01:51:18] Production.INFO: ProcessCDR(1,14441146,1,1,2) [2025-02-10 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441146', 'tblTempUsageDetail_20' ) start [2025-02-10 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441146', 'tblTempUsageDetail_20' ) end [2025-02-10 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:51:21] Production.INFO: ==29822== Releasing lock... [2025-02-10 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:52:04 [end_date_ymd] => 2025-02-10 01:52:04 [RateCDR] => 1 ) [2025-02-10 01:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:52:04' and `end` < '2025-02-10 01:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:52:17] Production.INFO: count ==431 [2025-02-10 01:52:17] Production.ERROR: pbx CDR StartTime 2025-02-09 22:52:04 - End Time 2025-02-10 01:52:04 [2025-02-10 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441153', 'tblTempUsageDetail_20' ) start [2025-02-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441153', 'tblTempUsageDetail_20' ) end [2025-02-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441153', 'tblTempVendorCDR_20' ) start [2025-02-10 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441153', 'tblTempVendorCDR_20' ) end [2025-02-10 01:52:17] Production.INFO: ProcessCDR(1,14441153,1,1,2) [2025-02-10 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441153', 'tblTempUsageDetail_20' ) start [2025-02-10 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441153', 'tblTempUsageDetail_20' ) end [2025-02-10 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:52:20] Production.INFO: ==29924== Releasing lock... [2025-02-10 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:52:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:53:05 [end_date_ymd] => 2025-02-10 01:53:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:53:05' and `end` < '2025-02-10 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-10 01:53:20] Production.INFO: count ==431 [2025-02-10 01:53:20] Production.ERROR: pbx CDR StartTime 2025-02-09 22:53:05 - End Time 2025-02-10 01:53:05 [2025-02-10 01:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441158', 'tblTempUsageDetail_20' ) start [2025-02-10 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441158', 'tblTempUsageDetail_20' ) end [2025-02-10 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441158', 'tblTempVendorCDR_20' ) start [2025-02-10 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441158', 'tblTempVendorCDR_20' ) end [2025-02-10 01:53:20] Production.INFO: ProcessCDR(1,14441158,1,1,2) [2025-02-10 01:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441158', 'tblTempUsageDetail_20' ) start [2025-02-10 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441158', 'tblTempUsageDetail_20' ) end [2025-02-10 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:53:23] Production.INFO: ==30024== Releasing lock... [2025-02-10 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:53:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:54:04 [end_date_ymd] => 2025-02-10 01:54:04 [RateCDR] => 1 ) [2025-02-10 01:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:54:04' and `end` < '2025-02-10 01:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:54:17] Production.INFO: count ==428 [2025-02-10 01:54:17] Production.ERROR: pbx CDR StartTime 2025-02-09 22:54:04 - End Time 2025-02-10 01:54:04 [2025-02-10 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441163', 'tblTempUsageDetail_20' ) start [2025-02-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441163', 'tblTempUsageDetail_20' ) end [2025-02-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441163', 'tblTempVendorCDR_20' ) start [2025-02-10 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441163', 'tblTempVendorCDR_20' ) end [2025-02-10 01:54:17] Production.INFO: ProcessCDR(1,14441163,1,1,2) [2025-02-10 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441163', 'tblTempUsageDetail_20' ) start [2025-02-10 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441163', 'tblTempUsageDetail_20' ) end [2025-02-10 01:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:54:20] Production.INFO: ==30127== Releasing lock... [2025-02-10 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:54:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:55:05 [end_date_ymd] => 2025-02-10 01:55:05 [RateCDR] => 1 ) [2025-02-10 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:55:05' and `end` < '2025-02-10 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:55:18] Production.INFO: count ==428 [2025-02-10 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:55:05 - End Time 2025-02-10 01:55:05 [2025-02-10 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441168', 'tblTempUsageDetail_20' ) start [2025-02-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441168', 'tblTempUsageDetail_20' ) end [2025-02-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441168', 'tblTempVendorCDR_20' ) start [2025-02-10 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441168', 'tblTempVendorCDR_20' ) end [2025-02-10 01:55:18] Production.INFO: ProcessCDR(1,14441168,1,1,2) [2025-02-10 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441168', 'tblTempUsageDetail_20' ) start [2025-02-10 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441168', 'tblTempUsageDetail_20' ) end [2025-02-10 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:55:21] Production.INFO: ==30228== Releasing lock... [2025-02-10 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:56:05 [end_date_ymd] => 2025-02-10 01:56:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:56:05' and `end` < '2025-02-10 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-10 01:56:18] Production.INFO: count ==429 [2025-02-10 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-09 22:56:05 - End Time 2025-02-10 01:56:05 [2025-02-10 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441173', 'tblTempUsageDetail_20' ) start [2025-02-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441173', 'tblTempUsageDetail_20' ) end [2025-02-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441173', 'tblTempVendorCDR_20' ) start [2025-02-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441173', 'tblTempVendorCDR_20' ) end [2025-02-10 01:56:18] Production.INFO: ProcessCDR(1,14441173,1,1,2) [2025-02-10 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441173', 'tblTempUsageDetail_20' ) start [2025-02-10 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441173', 'tblTempUsageDetail_20' ) end [2025-02-10 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:56:23] Production.INFO: ==30326== Releasing lock... [2025-02-10 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:56:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:57:05 [end_date_ymd] => 2025-02-10 01:57:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:57:05' and `end` < '2025-02-10 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-10 01:57:18] Production.INFO: count ==429 [2025-02-10 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:57:05 - End Time 2025-02-10 01:57:05 [2025-02-10 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441178', 'tblTempUsageDetail_20' ) start [2025-02-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441178', 'tblTempUsageDetail_20' ) end [2025-02-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441178', 'tblTempVendorCDR_20' ) start [2025-02-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441178', 'tblTempVendorCDR_20' ) end [2025-02-10 01:57:19] Production.INFO: ProcessCDR(1,14441178,1,1,2) [2025-02-10 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441178', 'tblTempUsageDetail_20' ) start [2025-02-10 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441178', 'tblTempUsageDetail_20' ) end [2025-02-10 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:57:22] Production.INFO: ==30423== Releasing lock... [2025-02-10 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:57:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:58:05 [end_date_ymd] => 2025-02-10 01:58:05 [RateCDR] => 1 ) [2025-02-10 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 22:58:05' and `end` < '2025-02-10 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 01:58:19] Production.INFO: count ==430 [2025-02-10 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:58:05 - End Time 2025-02-10 01:58:05 [2025-02-10 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441183', 'tblTempUsageDetail_20' ) start [2025-02-10 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441183', 'tblTempUsageDetail_20' ) end [2025-02-10 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441183', 'tblTempVendorCDR_20' ) start [2025-02-10 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441183', 'tblTempVendorCDR_20' ) end [2025-02-10 01:58:19] Production.INFO: ProcessCDR(1,14441183,1,1,2) [2025-02-10 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441183', 'tblTempUsageDetail_20' ) start [2025-02-10 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441183', 'tblTempUsageDetail_20' ) end [2025-02-10 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:58:23] Production.INFO: ==30517== Releasing lock... [2025-02-10 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:58:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 22:59:05 [end_date_ymd] => 2025-02-10 01:59:05 [RateCDR] => 1 ) [2025-02-10 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-09 22:59:05' and `end` < '2025-02-10 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-10 01:59:19] Production.INFO: count ==430 [2025-02-10 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-09 22:59:05 - End Time 2025-02-10 01:59:05 [2025-02-10 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441188', 'tblTempUsageDetail_20' ) start [2025-02-10 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441188', 'tblTempUsageDetail_20' ) end [2025-02-10 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441188', 'tblTempVendorCDR_20' ) start [2025-02-10 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441188', 'tblTempVendorCDR_20' ) end [2025-02-10 01:59:19] Production.INFO: ProcessCDR(1,14441188,1,1,2) [2025-02-10 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441188', 'tblTempUsageDetail_20' ) start [2025-02-10 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441188', 'tblTempUsageDetail_20' ) end [2025-02-10 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 01:59:22] Production.INFO: ==30588== Releasing lock... [2025-02-10 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 01:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:00:06 [end_date_ymd] => 2025-02-10 02:00:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:00:06' and `end` < '2025-02-10 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-10 02:00:20] Production.INFO: count ==431 [2025-02-10 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:00:06 - End Time 2025-02-10 02:00:06 [2025-02-10 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441194', 'tblTempUsageDetail_20' ) start [2025-02-10 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441194', 'tblTempUsageDetail_20' ) end [2025-02-10 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441194', 'tblTempVendorCDR_20' ) start [2025-02-10 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441194', 'tblTempVendorCDR_20' ) end [2025-02-10 02:00:20] Production.INFO: ProcessCDR(1,14441194,1,1,2) [2025-02-10 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441194', 'tblTempUsageDetail_20' ) start [2025-02-10 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441194', 'tblTempUsageDetail_20' ) end [2025-02-10 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:00:23] Production.INFO: ==30665== Releasing lock... [2025-02-10 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:00:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:01:05 [end_date_ymd] => 2025-02-10 02:01:05 [RateCDR] => 1 ) [2025-02-10 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:01:05' and `end` < '2025-02-10 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:01:20] Production.INFO: count ==431 [2025-02-10 02:01:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:01:05 - End Time 2025-02-10 02:01:05 [2025-02-10 02:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441199', 'tblTempUsageDetail_20' ) start [2025-02-10 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441199', 'tblTempUsageDetail_20' ) end [2025-02-10 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441199', 'tblTempVendorCDR_20' ) start [2025-02-10 02:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441199', 'tblTempVendorCDR_20' ) end [2025-02-10 02:01:20] Production.INFO: ProcessCDR(1,14441199,1,1,2) [2025-02-10 02:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441199', 'tblTempUsageDetail_20' ) start [2025-02-10 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441199', 'tblTempUsageDetail_20' ) end [2025-02-10 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:01:23] Production.INFO: ==30841== Releasing lock... [2025-02-10 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:01:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:02:05 [end_date_ymd] => 2025-02-10 02:02:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:02:05' and `end` < '2025-02-10 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-10 02:02:18] Production.INFO: count ==431 [2025-02-10 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:02:05 - End Time 2025-02-10 02:02:05 [2025-02-10 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441204', 'tblTempUsageDetail_20' ) start [2025-02-10 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441204', 'tblTempUsageDetail_20' ) end [2025-02-10 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441204', 'tblTempVendorCDR_20' ) start [2025-02-10 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441204', 'tblTempVendorCDR_20' ) end [2025-02-10 02:02:18] Production.INFO: ProcessCDR(1,14441204,1,1,2) [2025-02-10 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441204', 'tblTempUsageDetail_20' ) start [2025-02-10 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441204', 'tblTempUsageDetail_20' ) end [2025-02-10 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:02:21] Production.INFO: ==30916== Releasing lock... [2025-02-10 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:03:05 [end_date_ymd] => 2025-02-10 02:03:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:03:05' and `end` < '2025-02-10 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-10 02:03:19] Production.INFO: count ==435 [2025-02-10 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:03:05 - End Time 2025-02-10 02:03:05 [2025-02-10 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441209', 'tblTempUsageDetail_20' ) start [2025-02-10 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441209', 'tblTempUsageDetail_20' ) end [2025-02-10 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441209', 'tblTempVendorCDR_20' ) start [2025-02-10 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441209', 'tblTempVendorCDR_20' ) end [2025-02-10 02:03:19] Production.INFO: ProcessCDR(1,14441209,1,1,2) [2025-02-10 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441209', 'tblTempUsageDetail_20' ) start [2025-02-10 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441209', 'tblTempUsageDetail_20' ) end [2025-02-10 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:03:22] Production.INFO: ==30996== Releasing lock... [2025-02-10 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:04:05 [end_date_ymd] => 2025-02-10 02:04:05 [RateCDR] => 1 ) [2025-02-10 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:04:05' and `end` < '2025-02-10 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:04:20] Production.INFO: count ==435 [2025-02-10 02:04:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:04:05 - End Time 2025-02-10 02:04:05 [2025-02-10 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441214', 'tblTempUsageDetail_20' ) start [2025-02-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441214', 'tblTempUsageDetail_20' ) end [2025-02-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441214', 'tblTempVendorCDR_20' ) start [2025-02-10 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441214', 'tblTempVendorCDR_20' ) end [2025-02-10 02:04:20] Production.INFO: ProcessCDR(1,14441214,1,1,2) [2025-02-10 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441214', 'tblTempUsageDetail_20' ) start [2025-02-10 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441214', 'tblTempUsageDetail_20' ) end [2025-02-10 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:04:23] Production.INFO: ==31074== Releasing lock... [2025-02-10 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:04:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:05:05 [end_date_ymd] => 2025-02-10 02:05:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:05:05' and `end` < '2025-02-10 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-10 02:05:18] Production.INFO: count ==433 [2025-02-10 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:05:05 - End Time 2025-02-10 02:05:05 [2025-02-10 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441219', 'tblTempUsageDetail_20' ) start [2025-02-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441219', 'tblTempUsageDetail_20' ) end [2025-02-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441219', 'tblTempVendorCDR_20' ) start [2025-02-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441219', 'tblTempVendorCDR_20' ) end [2025-02-10 02:05:18] Production.INFO: ProcessCDR(1,14441219,1,1,2) [2025-02-10 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441219', 'tblTempUsageDetail_20' ) start [2025-02-10 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441219', 'tblTempUsageDetail_20' ) end [2025-02-10 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:05:21] Production.INFO: ==31147== Releasing lock... [2025-02-10 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 02:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:06:04 [end_date_ymd] => 2025-02-10 02:06:04 [RateCDR] => 1 ) [2025-02-10 02: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-09 23:06:04' and `end` < '2025-02-10 02: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-10 02:06:17] Production.INFO: count ==433 [2025-02-10 02:06:17] Production.ERROR: pbx CDR StartTime 2025-02-09 23:06:04 - End Time 2025-02-10 02:06:04 [2025-02-10 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441224', 'tblTempUsageDetail_20' ) start [2025-02-10 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441224', 'tblTempUsageDetail_20' ) end [2025-02-10 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441224', 'tblTempVendorCDR_20' ) start [2025-02-10 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441224', 'tblTempVendorCDR_20' ) end [2025-02-10 02:06:17] Production.INFO: ProcessCDR(1,14441224,1,1,2) [2025-02-10 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441224', 'tblTempUsageDetail_20' ) start [2025-02-10 02:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441224', 'tblTempUsageDetail_20' ) end [2025-02-10 02:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:06:20] Production.INFO: ==31219== Releasing lock... [2025-02-10 02:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:06:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:07:05 [end_date_ymd] => 2025-02-10 02:07:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:07:05' and `end` < '2025-02-10 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-10 02:07:19] Production.INFO: count ==431 [2025-02-10 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:07:05 - End Time 2025-02-10 02:07:05 [2025-02-10 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441229', 'tblTempUsageDetail_20' ) start [2025-02-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441229', 'tblTempUsageDetail_20' ) end [2025-02-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441229', 'tblTempVendorCDR_20' ) start [2025-02-10 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441229', 'tblTempVendorCDR_20' ) end [2025-02-10 02:07:19] Production.INFO: ProcessCDR(1,14441229,1,1,2) [2025-02-10 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441229', 'tblTempUsageDetail_20' ) start [2025-02-10 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441229', 'tblTempUsageDetail_20' ) end [2025-02-10 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:07:22] Production.INFO: ==31334== Releasing lock... [2025-02-10 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:08:05 [end_date_ymd] => 2025-02-10 02:08:05 [RateCDR] => 1 ) [2025-02-10 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:08:05' and `end` < '2025-02-10 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:08:19] Production.INFO: count ==431 [2025-02-10 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:08:05 - End Time 2025-02-10 02:08:05 [2025-02-10 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441234', 'tblTempUsageDetail_20' ) start [2025-02-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441234', 'tblTempUsageDetail_20' ) end [2025-02-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441234', 'tblTempVendorCDR_20' ) start [2025-02-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441234', 'tblTempVendorCDR_20' ) end [2025-02-10 02:08:19] Production.INFO: ProcessCDR(1,14441234,1,1,2) [2025-02-10 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441234', 'tblTempUsageDetail_20' ) start [2025-02-10 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441234', 'tblTempUsageDetail_20' ) end [2025-02-10 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:08:22] Production.INFO: ==31411== Releasing lock... [2025-02-10 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:09:05 [end_date_ymd] => 2025-02-10 02:09:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:09:05' and `end` < '2025-02-10 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-10 02:09:18] Production.INFO: count ==431 [2025-02-10 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:09:05 - End Time 2025-02-10 02:09:05 [2025-02-10 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441239', 'tblTempUsageDetail_20' ) start [2025-02-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441239', 'tblTempUsageDetail_20' ) end [2025-02-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441239', 'tblTempVendorCDR_20' ) start [2025-02-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441239', 'tblTempVendorCDR_20' ) end [2025-02-10 02:09:18] Production.INFO: ProcessCDR(1,14441239,1,1,2) [2025-02-10 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441239', 'tblTempUsageDetail_20' ) start [2025-02-10 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441239', 'tblTempUsageDetail_20' ) end [2025-02-10 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:09:21] Production.INFO: ==31490== Releasing lock... [2025-02-10 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:10:06 [end_date_ymd] => 2025-02-10 02:10:06 [RateCDR] => 1 ) [2025-02-10 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:10:06' and `end` < '2025-02-10 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:10:19] Production.INFO: count ==438 [2025-02-10 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:10:06 - End Time 2025-02-10 02:10:06 [2025-02-10 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441245', 'tblTempUsageDetail_20' ) start [2025-02-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441245', 'tblTempUsageDetail_20' ) end [2025-02-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441245', 'tblTempVendorCDR_20' ) start [2025-02-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441245', 'tblTempVendorCDR_20' ) end [2025-02-10 02:10:19] Production.INFO: ProcessCDR(1,14441245,1,1,2) [2025-02-10 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441245', 'tblTempUsageDetail_20' ) start [2025-02-10 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441245', 'tblTempUsageDetail_20' ) end [2025-02-10 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:10:23] Production.INFO: ==31565== Releasing lock... [2025-02-10 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:10:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:11:05 [end_date_ymd] => 2025-02-10 02:11:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:11:05' and `end` < '2025-02-10 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-10 02:11:18] Production.INFO: count ==445 [2025-02-10 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:11:05 - End Time 2025-02-10 02:11:05 [2025-02-10 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441250', 'tblTempUsageDetail_20' ) start [2025-02-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441250', 'tblTempUsageDetail_20' ) end [2025-02-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441250', 'tblTempVendorCDR_20' ) start [2025-02-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441250', 'tblTempVendorCDR_20' ) end [2025-02-10 02:11:18] Production.INFO: ProcessCDR(1,14441250,1,1,2) [2025-02-10 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441250', 'tblTempUsageDetail_20' ) start [2025-02-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441250', 'tblTempUsageDetail_20' ) end [2025-02-10 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:11:21] Production.INFO: ==31642== Releasing lock... [2025-02-10 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:12:06 [end_date_ymd] => 2025-02-10 02:12:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:12:06' and `end` < '2025-02-10 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-10 02:12:20] Production.INFO: count ==445 [2025-02-10 02:12:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:12:06 - End Time 2025-02-10 02:12:06 [2025-02-10 02:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441255', 'tblTempUsageDetail_20' ) start [2025-02-10 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441255', 'tblTempUsageDetail_20' ) end [2025-02-10 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441255', 'tblTempVendorCDR_20' ) start [2025-02-10 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441255', 'tblTempVendorCDR_20' ) end [2025-02-10 02:12:20] Production.INFO: ProcessCDR(1,14441255,1,1,2) [2025-02-10 02:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441255', 'tblTempUsageDetail_20' ) start [2025-02-10 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441255', 'tblTempUsageDetail_20' ) end [2025-02-10 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:12:23] Production.INFO: ==31715== Releasing lock... [2025-02-10 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:12:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:13:05 [end_date_ymd] => 2025-02-10 02:13:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:13:05' and `end` < '2025-02-10 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-10 02:13:18] Production.INFO: count ==445 [2025-02-10 02:13:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:13:05 - End Time 2025-02-10 02:13:05 [2025-02-10 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441260', 'tblTempUsageDetail_20' ) start [2025-02-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441260', 'tblTempUsageDetail_20' ) end [2025-02-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441260', 'tblTempVendorCDR_20' ) start [2025-02-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441260', 'tblTempVendorCDR_20' ) end [2025-02-10 02:13:18] Production.INFO: ProcessCDR(1,14441260,1,1,2) [2025-02-10 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441260', 'tblTempUsageDetail_20' ) start [2025-02-10 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441260', 'tblTempUsageDetail_20' ) end [2025-02-10 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:13:21] Production.INFO: ==31787== Releasing lock... [2025-02-10 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:14:05 [end_date_ymd] => 2025-02-10 02:14:05 [RateCDR] => 1 ) [2025-02-10 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:14:05' and `end` < '2025-02-10 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:14:18] Production.INFO: count ==441 [2025-02-10 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:14:05 - End Time 2025-02-10 02:14:05 [2025-02-10 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441265', 'tblTempUsageDetail_20' ) start [2025-02-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441265', 'tblTempUsageDetail_20' ) end [2025-02-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441265', 'tblTempVendorCDR_20' ) start [2025-02-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441265', 'tblTempVendorCDR_20' ) end [2025-02-10 02:14:18] Production.INFO: ProcessCDR(1,14441265,1,1,2) [2025-02-10 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441265', 'tblTempUsageDetail_20' ) start [2025-02-10 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441265', 'tblTempUsageDetail_20' ) end [2025-02-10 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:14:21] Production.INFO: ==31862== Releasing lock... [2025-02-10 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:14:21] Production.INFO: 32 MB #Memory Used# [2025-02-10 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:15:04 [end_date_ymd] => 2025-02-10 02:15:04 [RateCDR] => 1 ) [2025-02-10 02: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-09 23:15:04' and `end` < '2025-02-10 02: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-10 02:15:18] Production.INFO: count ==435 [2025-02-10 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:15:04 - End Time 2025-02-10 02:15:04 [2025-02-10 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441270', 'tblTempUsageDetail_20' ) start [2025-02-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441270', 'tblTempUsageDetail_20' ) end [2025-02-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441270', 'tblTempVendorCDR_20' ) start [2025-02-10 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441270', 'tblTempVendorCDR_20' ) end [2025-02-10 02:15:18] Production.INFO: ProcessCDR(1,14441270,1,1,2) [2025-02-10 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441270', 'tblTempUsageDetail_20' ) start [2025-02-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441270', 'tblTempUsageDetail_20' ) end [2025-02-10 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:15:21] Production.INFO: ==31939== Releasing lock... [2025-02-10 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:16:05 [end_date_ymd] => 2025-02-10 02:16:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:16:05' and `end` < '2025-02-10 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-10 02:16:18] Production.INFO: count ==434 [2025-02-10 02:16:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:16:05 - End Time 2025-02-10 02:16:05 [2025-02-10 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441275', 'tblTempUsageDetail_20' ) start [2025-02-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441275', 'tblTempUsageDetail_20' ) end [2025-02-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441275', 'tblTempVendorCDR_20' ) start [2025-02-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441275', 'tblTempVendorCDR_20' ) end [2025-02-10 02:16:18] Production.INFO: ProcessCDR(1,14441275,1,1,2) [2025-02-10 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441275', 'tblTempUsageDetail_20' ) start [2025-02-10 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441275', 'tblTempUsageDetail_20' ) end [2025-02-10 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:16:21] Production.INFO: ==32015== Releasing lock... [2025-02-10 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:16:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:17:06 [end_date_ymd] => 2025-02-10 02:17:06 [RateCDR] => 1 ) [2025-02-10 02:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:17:06' and `end` < '2025-02-10 02:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:17:19] Production.INFO: count ==433 [2025-02-10 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:17:06 - End Time 2025-02-10 02:17:06 [2025-02-10 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441280', 'tblTempUsageDetail_20' ) start [2025-02-10 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441280', 'tblTempUsageDetail_20' ) end [2025-02-10 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441280', 'tblTempVendorCDR_20' ) start [2025-02-10 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441280', 'tblTempVendorCDR_20' ) end [2025-02-10 02:17:19] Production.INFO: ProcessCDR(1,14441280,1,1,2) [2025-02-10 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441280', 'tblTempUsageDetail_20' ) start [2025-02-10 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441280', 'tblTempUsageDetail_20' ) end [2025-02-10 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:17:22] Production.INFO: ==32097== Releasing lock... [2025-02-10 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:18:05 [end_date_ymd] => 2025-02-10 02:18:05 [RateCDR] => 1 ) [2025-02-10 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:18:05' and `end` < '2025-02-10 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:18:18] Production.INFO: count ==429 [2025-02-10 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:18:05 - End Time 2025-02-10 02:18:05 [2025-02-10 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441285', 'tblTempUsageDetail_20' ) start [2025-02-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441285', 'tblTempUsageDetail_20' ) end [2025-02-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441285', 'tblTempVendorCDR_20' ) start [2025-02-10 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441285', 'tblTempVendorCDR_20' ) end [2025-02-10 02:18:18] Production.INFO: ProcessCDR(1,14441285,1,1,2) [2025-02-10 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441285', 'tblTempUsageDetail_20' ) start [2025-02-10 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441285', 'tblTempUsageDetail_20' ) end [2025-02-10 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:18:22] Production.INFO: ==32174== Releasing lock... [2025-02-10 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:19:05 [end_date_ymd] => 2025-02-10 02:19:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:19:05' and `end` < '2025-02-10 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-10 02:19:18] Production.INFO: count ==429 [2025-02-10 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:19:05 - End Time 2025-02-10 02:19:05 [2025-02-10 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441288', 'tblTempUsageDetail_20' ) start [2025-02-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441288', 'tblTempUsageDetail_20' ) end [2025-02-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441288', 'tblTempVendorCDR_20' ) start [2025-02-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441288', 'tblTempVendorCDR_20' ) end [2025-02-10 02:19:18] Production.INFO: ProcessCDR(1,14441288,1,1,2) [2025-02-10 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441288', 'tblTempUsageDetail_20' ) start [2025-02-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441288', 'tblTempUsageDetail_20' ) end [2025-02-10 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:19:21] Production.INFO: ==32252== Releasing lock... [2025-02-10 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:20:06 [end_date_ymd] => 2025-02-10 02:20:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:20:06' and `end` < '2025-02-10 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-10 02:20:19] Production.INFO: count ==431 [2025-02-10 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:20:06 - End Time 2025-02-10 02:20:06 [2025-02-10 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441296', 'tblTempUsageDetail_20' ) start [2025-02-10 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441296', 'tblTempUsageDetail_20' ) end [2025-02-10 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441296', 'tblTempVendorCDR_20' ) start [2025-02-10 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441296', 'tblTempVendorCDR_20' ) end [2025-02-10 02:20:19] Production.INFO: ProcessCDR(1,14441296,1,1,2) [2025-02-10 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441296', 'tblTempUsageDetail_20' ) start [2025-02-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441296', 'tblTempUsageDetail_20' ) end [2025-02-10 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:20:22] Production.INFO: ==32330== Releasing lock... [2025-02-10 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:20:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:21:05 [end_date_ymd] => 2025-02-10 02:21:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:21:05' and `end` < '2025-02-10 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-10 02:21:19] Production.INFO: count ==430 [2025-02-10 02:21:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:21:05 - End Time 2025-02-10 02:21:05 [2025-02-10 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441301', 'tblTempUsageDetail_20' ) start [2025-02-10 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441301', 'tblTempUsageDetail_20' ) end [2025-02-10 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441301', 'tblTempVendorCDR_20' ) start [2025-02-10 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441301', 'tblTempVendorCDR_20' ) end [2025-02-10 02:21:19] Production.INFO: ProcessCDR(1,14441301,1,1,2) [2025-02-10 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441301', 'tblTempUsageDetail_20' ) start [2025-02-10 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441301', 'tblTempUsageDetail_20' ) end [2025-02-10 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:21:22] Production.INFO: ==32408== Releasing lock... [2025-02-10 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:21:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:22:04 [end_date_ymd] => 2025-02-10 02:22:04 [RateCDR] => 1 ) [2025-02-10 02: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-09 23:22:04' and `end` < '2025-02-10 02: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-10 02:22:18] Production.INFO: count ==430 [2025-02-10 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:22:04 - End Time 2025-02-10 02:22:04 [2025-02-10 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441306', 'tblTempUsageDetail_20' ) start [2025-02-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441306', 'tblTempUsageDetail_20' ) end [2025-02-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441306', 'tblTempVendorCDR_20' ) start [2025-02-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441306', 'tblTempVendorCDR_20' ) end [2025-02-10 02:22:18] Production.INFO: ProcessCDR(1,14441306,1,1,2) [2025-02-10 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441306', 'tblTempUsageDetail_20' ) start [2025-02-10 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441306', 'tblTempUsageDetail_20' ) end [2025-02-10 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:22:21] Production.INFO: ==32524== Releasing lock... [2025-02-10 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:23:05 [end_date_ymd] => 2025-02-10 02:23:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:23:05' and `end` < '2025-02-10 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-10 02:23:18] Production.INFO: count ==430 [2025-02-10 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:23:05 - End Time 2025-02-10 02:23:05 [2025-02-10 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441311', 'tblTempUsageDetail_20' ) start [2025-02-10 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441311', 'tblTempUsageDetail_20' ) end [2025-02-10 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441311', 'tblTempVendorCDR_20' ) start [2025-02-10 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441311', 'tblTempVendorCDR_20' ) end [2025-02-10 02:23:18] Production.INFO: ProcessCDR(1,14441311,1,1,2) [2025-02-10 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441311', 'tblTempUsageDetail_20' ) start [2025-02-10 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441311', 'tblTempUsageDetail_20' ) end [2025-02-10 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:23:21] Production.INFO: ==32599== Releasing lock... [2025-02-10 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:24:06 [end_date_ymd] => 2025-02-10 02:24:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:24:06' and `end` < '2025-02-10 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-10 02:24:19] Production.INFO: count ==430 [2025-02-10 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:24:06 - End Time 2025-02-10 02:24:06 [2025-02-10 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441316', 'tblTempUsageDetail_20' ) start [2025-02-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441316', 'tblTempUsageDetail_20' ) end [2025-02-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441316', 'tblTempVendorCDR_20' ) start [2025-02-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441316', 'tblTempVendorCDR_20' ) end [2025-02-10 02:24:19] Production.INFO: ProcessCDR(1,14441316,1,1,2) [2025-02-10 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441316', 'tblTempUsageDetail_20' ) start [2025-02-10 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441316', 'tblTempUsageDetail_20' ) end [2025-02-10 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:24:22] Production.INFO: ==32675== Releasing lock... [2025-02-10 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:25:05 [end_date_ymd] => 2025-02-10 02:25:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:25:05' and `end` < '2025-02-10 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-10 02:25:18] Production.INFO: count ==426 [2025-02-10 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:25:05 - End Time 2025-02-10 02:25:05 [2025-02-10 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441321', 'tblTempUsageDetail_20' ) start [2025-02-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441321', 'tblTempUsageDetail_20' ) end [2025-02-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441321', 'tblTempVendorCDR_20' ) start [2025-02-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441321', 'tblTempVendorCDR_20' ) end [2025-02-10 02:25:18] Production.INFO: ProcessCDR(1,14441321,1,1,2) [2025-02-10 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441321', 'tblTempUsageDetail_20' ) start [2025-02-10 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441321', 'tblTempUsageDetail_20' ) end [2025-02-10 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:25:21] Production.INFO: ==32756== Releasing lock... [2025-02-10 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:26:05 [end_date_ymd] => 2025-02-10 02:26:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:26:05' and `end` < '2025-02-10 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-10 02:26:18] Production.INFO: count ==424 [2025-02-10 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:26:05 - End Time 2025-02-10 02:26:05 [2025-02-10 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441326', 'tblTempUsageDetail_20' ) start [2025-02-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441326', 'tblTempUsageDetail_20' ) end [2025-02-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441326', 'tblTempVendorCDR_20' ) start [2025-02-10 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441326', 'tblTempVendorCDR_20' ) end [2025-02-10 02:26:18] Production.INFO: ProcessCDR(1,14441326,1,1,2) [2025-02-10 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441326', 'tblTempUsageDetail_20' ) start [2025-02-10 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441326', 'tblTempUsageDetail_20' ) end [2025-02-10 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:26:21] Production.INFO: ==388== Releasing lock... [2025-02-10 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:27:05 [end_date_ymd] => 2025-02-10 02:27:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:27:05' and `end` < '2025-02-10 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-10 02:27:18] Production.INFO: count ==423 [2025-02-10 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:27:05 - End Time 2025-02-10 02:27:05 [2025-02-10 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441331', 'tblTempUsageDetail_20' ) start [2025-02-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441331', 'tblTempUsageDetail_20' ) end [2025-02-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441331', 'tblTempVendorCDR_20' ) start [2025-02-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441331', 'tblTempVendorCDR_20' ) end [2025-02-10 02:27:18] Production.INFO: ProcessCDR(1,14441331,1,1,2) [2025-02-10 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441331', 'tblTempUsageDetail_20' ) start [2025-02-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441331', 'tblTempUsageDetail_20' ) end [2025-02-10 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:27:21] Production.INFO: ==464== Releasing lock... [2025-02-10 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:27:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:28:05 [end_date_ymd] => 2025-02-10 02:28:05 [RateCDR] => 1 ) [2025-02-10 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:28:05' and `end` < '2025-02-10 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:28:18] Production.INFO: count ==423 [2025-02-10 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:28:05 - End Time 2025-02-10 02:28:05 [2025-02-10 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441336', 'tblTempUsageDetail_20' ) start [2025-02-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441336', 'tblTempUsageDetail_20' ) end [2025-02-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441336', 'tblTempVendorCDR_20' ) start [2025-02-10 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441336', 'tblTempVendorCDR_20' ) end [2025-02-10 02:28:18] Production.INFO: ProcessCDR(1,14441336,1,1,2) [2025-02-10 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441336', 'tblTempUsageDetail_20' ) start [2025-02-10 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441336', 'tblTempUsageDetail_20' ) end [2025-02-10 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:28:21] Production.INFO: ==546== Releasing lock... [2025-02-10 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:28:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:29:04 [end_date_ymd] => 2025-02-10 02:29:04 [RateCDR] => 1 ) [2025-02-10 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:29:04' and `end` < '2025-02-10 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:29:18] Production.INFO: count ==423 [2025-02-10 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:29:04 - End Time 2025-02-10 02:29:04 [2025-02-10 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441341', 'tblTempUsageDetail_20' ) start [2025-02-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441341', 'tblTempUsageDetail_20' ) end [2025-02-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441341', 'tblTempVendorCDR_20' ) start [2025-02-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441341', 'tblTempVendorCDR_20' ) end [2025-02-10 02:29:18] Production.INFO: ProcessCDR(1,14441341,1,1,2) [2025-02-10 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441341', 'tblTempUsageDetail_20' ) start [2025-02-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441341', 'tblTempUsageDetail_20' ) end [2025-02-10 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:29:21] Production.INFO: ==636== Releasing lock... [2025-02-10 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:29:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:30:06 [end_date_ymd] => 2025-02-10 02:30:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:30:06' and `end` < '2025-02-10 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-10 02:30:20] Production.INFO: count ==429 [2025-02-10 02:30:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:30:06 - End Time 2025-02-10 02:30:06 [2025-02-10 02:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441347', 'tblTempUsageDetail_20' ) start [2025-02-10 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441347', 'tblTempUsageDetail_20' ) end [2025-02-10 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441347', 'tblTempVendorCDR_20' ) start [2025-02-10 02:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441347', 'tblTempVendorCDR_20' ) end [2025-02-10 02:30:20] Production.INFO: ProcessCDR(1,14441347,1,1,2) [2025-02-10 02:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441347', 'tblTempUsageDetail_20' ) start [2025-02-10 02:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441347', 'tblTempUsageDetail_20' ) end [2025-02-10 02:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:30:23] Production.INFO: ==734== Releasing lock... [2025-02-10 02:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:30:23] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:31:05 [end_date_ymd] => 2025-02-10 02:31:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:31:05' and `end` < '2025-02-10 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-10 02:31:18] Production.INFO: count ==430 [2025-02-10 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:31:05 - End Time 2025-02-10 02:31:05 [2025-02-10 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441352', 'tblTempUsageDetail_20' ) start [2025-02-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441352', 'tblTempUsageDetail_20' ) end [2025-02-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441352', 'tblTempVendorCDR_20' ) start [2025-02-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441352', 'tblTempVendorCDR_20' ) end [2025-02-10 02:31:18] Production.INFO: ProcessCDR(1,14441352,1,1,2) [2025-02-10 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441352', 'tblTempUsageDetail_20' ) start [2025-02-10 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441352', 'tblTempUsageDetail_20' ) end [2025-02-10 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:31:21] Production.INFO: ==816== Releasing lock... [2025-02-10 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:32:05 [end_date_ymd] => 2025-02-10 02:32:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:32:05' and `end` < '2025-02-10 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-10 02:32:17] Production.INFO: count ==434 [2025-02-10 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:32:05 - End Time 2025-02-10 02:32:05 [2025-02-10 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441357', 'tblTempUsageDetail_20' ) start [2025-02-10 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441357', 'tblTempUsageDetail_20' ) end [2025-02-10 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441357', 'tblTempVendorCDR_20' ) start [2025-02-10 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441357', 'tblTempVendorCDR_20' ) end [2025-02-10 02:32:18] Production.INFO: ProcessCDR(1,14441357,1,1,2) [2025-02-10 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441357', 'tblTempUsageDetail_20' ) start [2025-02-10 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441357', 'tblTempUsageDetail_20' ) end [2025-02-10 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:32:21] Production.INFO: ==895== Releasing lock... [2025-02-10 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:33:05 [end_date_ymd] => 2025-02-10 02:33:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:33:05' and `end` < '2025-02-10 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-10 02:33:18] Production.INFO: count ==426 [2025-02-10 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:33:05 - End Time 2025-02-10 02:33:05 [2025-02-10 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441362', 'tblTempUsageDetail_20' ) start [2025-02-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441362', 'tblTempUsageDetail_20' ) end [2025-02-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441362', 'tblTempVendorCDR_20' ) start [2025-02-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441362', 'tblTempVendorCDR_20' ) end [2025-02-10 02:33:18] Production.INFO: ProcessCDR(1,14441362,1,1,2) [2025-02-10 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441362', 'tblTempUsageDetail_20' ) start [2025-02-10 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441362', 'tblTempUsageDetail_20' ) end [2025-02-10 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:33:22] Production.INFO: ==971== Releasing lock... [2025-02-10 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:34:05 [end_date_ymd] => 2025-02-10 02:34:05 [RateCDR] => 1 ) [2025-02-10 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:34:05' and `end` < '2025-02-10 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:34:20] Production.INFO: count ==425 [2025-02-10 02:34:20] Production.ERROR: pbx CDR StartTime 2025-02-09 23:34:05 - End Time 2025-02-10 02:34:05 [2025-02-10 02:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441367', 'tblTempUsageDetail_20' ) start [2025-02-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441367', 'tblTempUsageDetail_20' ) end [2025-02-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441367', 'tblTempVendorCDR_20' ) start [2025-02-10 02:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441367', 'tblTempVendorCDR_20' ) end [2025-02-10 02:34:20] Production.INFO: ProcessCDR(1,14441367,1,1,2) [2025-02-10 02:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441367', 'tblTempUsageDetail_20' ) start [2025-02-10 02:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441367', 'tblTempUsageDetail_20' ) end [2025-02-10 02:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:34:23] Production.INFO: ==1047== Releasing lock... [2025-02-10 02:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:34:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:35:05 [end_date_ymd] => 2025-02-10 02:35:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:35:05' and `end` < '2025-02-10 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-10 02:35:18] Production.INFO: count ==425 [2025-02-10 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:35:05 - End Time 2025-02-10 02:35:05 [2025-02-10 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441372', 'tblTempUsageDetail_20' ) start [2025-02-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441372', 'tblTempUsageDetail_20' ) end [2025-02-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441372', 'tblTempVendorCDR_20' ) start [2025-02-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441372', 'tblTempVendorCDR_20' ) end [2025-02-10 02:35:18] Production.INFO: ProcessCDR(1,14441372,1,1,2) [2025-02-10 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441372', 'tblTempUsageDetail_20' ) start [2025-02-10 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441372', 'tblTempUsageDetail_20' ) end [2025-02-10 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:35:21] Production.INFO: ==1121== Releasing lock... [2025-02-10 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:36:05 [end_date_ymd] => 2025-02-10 02:36:05 [RateCDR] => 1 ) [2025-02-10 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:36:05' and `end` < '2025-02-10 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:36:18] Production.INFO: count ==425 [2025-02-10 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:36:05 - End Time 2025-02-10 02:36:05 [2025-02-10 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441377', 'tblTempUsageDetail_20' ) start [2025-02-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441377', 'tblTempUsageDetail_20' ) end [2025-02-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441377', 'tblTempVendorCDR_20' ) start [2025-02-10 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441377', 'tblTempVendorCDR_20' ) end [2025-02-10 02:36:18] Production.INFO: ProcessCDR(1,14441377,1,1,2) [2025-02-10 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441377', 'tblTempUsageDetail_20' ) start [2025-02-10 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441377', 'tblTempUsageDetail_20' ) end [2025-02-10 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:36:21] Production.INFO: ==1210== Releasing lock... [2025-02-10 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:37:04 [end_date_ymd] => 2025-02-10 02:37:04 [RateCDR] => 1 ) [2025-02-10 02: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-09 23:37:04' and `end` < '2025-02-10 02: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-10 02:37:18] Production.INFO: count ==425 [2025-02-10 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:37:04 - End Time 2025-02-10 02:37:04 [2025-02-10 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441382', 'tblTempUsageDetail_20' ) start [2025-02-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441382', 'tblTempUsageDetail_20' ) end [2025-02-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441382', 'tblTempVendorCDR_20' ) start [2025-02-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441382', 'tblTempVendorCDR_20' ) end [2025-02-10 02:37:18] Production.INFO: ProcessCDR(1,14441382,1,1,2) [2025-02-10 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441382', 'tblTempUsageDetail_20' ) start [2025-02-10 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441382', 'tblTempUsageDetail_20' ) end [2025-02-10 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:37:21] Production.INFO: ==1337== Releasing lock... [2025-02-10 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:38:05 [end_date_ymd] => 2025-02-10 02:38:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:38:05' and `end` < '2025-02-10 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-10 02:38:19] Production.INFO: count ==425 [2025-02-10 02:38:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:38:05 - End Time 2025-02-10 02:38:05 [2025-02-10 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441387', 'tblTempUsageDetail_20' ) start [2025-02-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441387', 'tblTempUsageDetail_20' ) end [2025-02-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441387', 'tblTempVendorCDR_20' ) start [2025-02-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441387', 'tblTempVendorCDR_20' ) end [2025-02-10 02:38:19] Production.INFO: ProcessCDR(1,14441387,1,1,2) [2025-02-10 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441387', 'tblTempUsageDetail_20' ) start [2025-02-10 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441387', 'tblTempUsageDetail_20' ) end [2025-02-10 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:38:22] Production.INFO: ==1415== Releasing lock... [2025-02-10 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:39:05 [end_date_ymd] => 2025-02-10 02:39:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:39:05' and `end` < '2025-02-10 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-10 02:39:18] Production.INFO: count ==425 [2025-02-10 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:39:05 - End Time 2025-02-10 02:39:05 [2025-02-10 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441392', 'tblTempUsageDetail_20' ) start [2025-02-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441392', 'tblTempUsageDetail_20' ) end [2025-02-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441392', 'tblTempVendorCDR_20' ) start [2025-02-10 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441392', 'tblTempVendorCDR_20' ) end [2025-02-10 02:39:18] Production.INFO: ProcessCDR(1,14441392,1,1,2) [2025-02-10 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441392', 'tblTempUsageDetail_20' ) start [2025-02-10 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441392', 'tblTempUsageDetail_20' ) end [2025-02-10 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:39:21] Production.INFO: ==1489== Releasing lock... [2025-02-10 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:40:06 [end_date_ymd] => 2025-02-10 02:40:06 [RateCDR] => 1 ) [2025-02-10 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:40:06' and `end` < '2025-02-10 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:40:19] Production.INFO: count ==433 [2025-02-10 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:40:06 - End Time 2025-02-10 02:40:06 [2025-02-10 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441398', 'tblTempUsageDetail_20' ) start [2025-02-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441398', 'tblTempUsageDetail_20' ) end [2025-02-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441398', 'tblTempVendorCDR_20' ) start [2025-02-10 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441398', 'tblTempVendorCDR_20' ) end [2025-02-10 02:40:19] Production.INFO: ProcessCDR(1,14441398,1,1,2) [2025-02-10 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441398', 'tblTempUsageDetail_20' ) start [2025-02-10 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441398', 'tblTempUsageDetail_20' ) end [2025-02-10 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:40:22] Production.INFO: ==1602== Releasing lock... [2025-02-10 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:40:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:41:05 [end_date_ymd] => 2025-02-10 02:41:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:41:05' and `end` < '2025-02-10 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-10 02:41:17] Production.INFO: count ==434 [2025-02-10 02:41:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:41:05 - End Time 2025-02-10 02:41:05 [2025-02-10 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441403', 'tblTempUsageDetail_20' ) start [2025-02-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441403', 'tblTempUsageDetail_20' ) end [2025-02-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441403', 'tblTempVendorCDR_20' ) start [2025-02-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441403', 'tblTempVendorCDR_20' ) end [2025-02-10 02:41:18] Production.INFO: ProcessCDR(1,14441403,1,1,2) [2025-02-10 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441403', 'tblTempUsageDetail_20' ) start [2025-02-10 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441403', 'tblTempUsageDetail_20' ) end [2025-02-10 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:41:21] Production.INFO: ==1683== Releasing lock... [2025-02-10 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:41:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:42:05 [end_date_ymd] => 2025-02-10 02:42:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:42:05' and `end` < '2025-02-10 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-10 02:42:18] Production.INFO: count ==434 [2025-02-10 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:42:05 - End Time 2025-02-10 02:42:05 [2025-02-10 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441408', 'tblTempUsageDetail_20' ) start [2025-02-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441408', 'tblTempUsageDetail_20' ) end [2025-02-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441408', 'tblTempVendorCDR_20' ) start [2025-02-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441408', 'tblTempVendorCDR_20' ) end [2025-02-10 02:42:18] Production.INFO: ProcessCDR(1,14441408,1,1,2) [2025-02-10 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441408', 'tblTempUsageDetail_20' ) start [2025-02-10 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441408', 'tblTempUsageDetail_20' ) end [2025-02-10 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:42:21] Production.INFO: ==1757== Releasing lock... [2025-02-10 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:42:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:43:05 [end_date_ymd] => 2025-02-10 02:43:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:43:05' and `end` < '2025-02-10 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-10 02:43:18] Production.INFO: count ==434 [2025-02-10 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:43:05 - End Time 2025-02-10 02:43:05 [2025-02-10 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441413', 'tblTempUsageDetail_20' ) start [2025-02-10 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441413', 'tblTempUsageDetail_20' ) end [2025-02-10 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441413', 'tblTempVendorCDR_20' ) start [2025-02-10 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441413', 'tblTempVendorCDR_20' ) end [2025-02-10 02:43:18] Production.INFO: ProcessCDR(1,14441413,1,1,2) [2025-02-10 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441413', 'tblTempUsageDetail_20' ) start [2025-02-10 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441413', 'tblTempUsageDetail_20' ) end [2025-02-10 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:43:21] Production.INFO: ==1842== Releasing lock... [2025-02-10 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:43:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:44:05 [end_date_ymd] => 2025-02-10 02:44:05 [RateCDR] => 1 ) [2025-02-10 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:44:05' and `end` < '2025-02-10 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:44:18] Production.INFO: count ==434 [2025-02-10 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:44:05 - End Time 2025-02-10 02:44:05 [2025-02-10 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441418', 'tblTempUsageDetail_20' ) start [2025-02-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441418', 'tblTempUsageDetail_20' ) end [2025-02-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441418', 'tblTempVendorCDR_20' ) start [2025-02-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441418', 'tblTempVendorCDR_20' ) end [2025-02-10 02:44:18] Production.INFO: ProcessCDR(1,14441418,1,1,2) [2025-02-10 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441418', 'tblTempUsageDetail_20' ) start [2025-02-10 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441418', 'tblTempUsageDetail_20' ) end [2025-02-10 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:44:21] Production.INFO: ==1918== Releasing lock... [2025-02-10 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:44:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:45:05 [end_date_ymd] => 2025-02-10 02:45:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:45:05' and `end` < '2025-02-10 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-10 02:45:19] Production.INFO: count ==434 [2025-02-10 02:45:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:45:05 - End Time 2025-02-10 02:45:05 [2025-02-10 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441423', 'tblTempUsageDetail_20' ) start [2025-02-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441423', 'tblTempUsageDetail_20' ) end [2025-02-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441423', 'tblTempVendorCDR_20' ) start [2025-02-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441423', 'tblTempVendorCDR_20' ) end [2025-02-10 02:45:19] Production.INFO: ProcessCDR(1,14441423,1,1,2) [2025-02-10 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441423', 'tblTempUsageDetail_20' ) start [2025-02-10 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441423', 'tblTempUsageDetail_20' ) end [2025-02-10 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:45:22] Production.INFO: ==1999== Releasing lock... [2025-02-10 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:45:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:46:04 [end_date_ymd] => 2025-02-10 02:46:04 [RateCDR] => 1 ) [2025-02-10 02:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:46:04' and `end` < '2025-02-10 02:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:46:17] Production.INFO: count ==434 [2025-02-10 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-09 23:46:04 - End Time 2025-02-10 02:46:04 [2025-02-10 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441428', 'tblTempUsageDetail_20' ) start [2025-02-10 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441428', 'tblTempUsageDetail_20' ) end [2025-02-10 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441428', 'tblTempVendorCDR_20' ) start [2025-02-10 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441428', 'tblTempVendorCDR_20' ) end [2025-02-10 02:46:17] Production.INFO: ProcessCDR(1,14441428,1,1,2) [2025-02-10 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441428', 'tblTempUsageDetail_20' ) start [2025-02-10 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441428', 'tblTempUsageDetail_20' ) end [2025-02-10 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:46:20] Production.INFO: ==2080== Releasing lock... [2025-02-10 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:46:20] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:47:05 [end_date_ymd] => 2025-02-10 02:47:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:47:05' and `end` < '2025-02-10 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-10 02:47:18] Production.INFO: count ==434 [2025-02-10 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:47:05 - End Time 2025-02-10 02:47:05 [2025-02-10 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441433', 'tblTempUsageDetail_20' ) start [2025-02-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441433', 'tblTempUsageDetail_20' ) end [2025-02-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441433', 'tblTempVendorCDR_20' ) start [2025-02-10 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441433', 'tblTempVendorCDR_20' ) end [2025-02-10 02:47:18] Production.INFO: ProcessCDR(1,14441433,1,1,2) [2025-02-10 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441433', 'tblTempUsageDetail_20' ) start [2025-02-10 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441433', 'tblTempUsageDetail_20' ) end [2025-02-10 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:47:22] Production.INFO: ==2156== Releasing lock... [2025-02-10 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:47:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:48:05 [end_date_ymd] => 2025-02-10 02:48:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:48:05' and `end` < '2025-02-10 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-10 02:48:18] Production.INFO: count ==434 [2025-02-10 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:48:05 - End Time 2025-02-10 02:48:05 [2025-02-10 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441438', 'tblTempUsageDetail_20' ) start [2025-02-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441438', 'tblTempUsageDetail_20' ) end [2025-02-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441438', 'tblTempVendorCDR_20' ) start [2025-02-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441438', 'tblTempVendorCDR_20' ) end [2025-02-10 02:48:18] Production.INFO: ProcessCDR(1,14441438,1,1,2) [2025-02-10 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441438', 'tblTempUsageDetail_20' ) start [2025-02-10 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441438', 'tblTempUsageDetail_20' ) end [2025-02-10 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:48:21] Production.INFO: ==2244== Releasing lock... [2025-02-10 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:48:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:49:05 [end_date_ymd] => 2025-02-10 02:49:05 [RateCDR] => 1 ) [2025-02-10 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:49:05' and `end` < '2025-02-10 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:49:17] Production.INFO: count ==434 [2025-02-10 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-09 23:49:05 - End Time 2025-02-10 02:49:05 [2025-02-10 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441443', 'tblTempUsageDetail_20' ) start [2025-02-10 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441443', 'tblTempUsageDetail_20' ) end [2025-02-10 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441443', 'tblTempVendorCDR_20' ) start [2025-02-10 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441443', 'tblTempVendorCDR_20' ) end [2025-02-10 02:49:17] Production.INFO: ProcessCDR(1,14441443,1,1,2) [2025-02-10 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441443', 'tblTempUsageDetail_20' ) start [2025-02-10 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441443', 'tblTempUsageDetail_20' ) end [2025-02-10 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:49:20] Production.INFO: ==2322== Releasing lock... [2025-02-10 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:49:20] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:50:06 [end_date_ymd] => 2025-02-10 02:50:06 [RateCDR] => 1 ) [2025-02-10 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-09 23:50:06' and `end` < '2025-02-10 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-10 02:50:19] Production.INFO: count ==438 [2025-02-10 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:50:06 - End Time 2025-02-10 02:50:06 [2025-02-10 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441448', 'tblTempUsageDetail_20' ) start [2025-02-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441448', 'tblTempUsageDetail_20' ) end [2025-02-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441448', 'tblTempVendorCDR_20' ) start [2025-02-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441448', 'tblTempVendorCDR_20' ) end [2025-02-10 02:50:19] Production.INFO: ProcessCDR(1,14441448,1,1,2) [2025-02-10 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441448', 'tblTempUsageDetail_20' ) start [2025-02-10 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441448', 'tblTempUsageDetail_20' ) end [2025-02-10 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:50:22] Production.INFO: ==2401== Releasing lock... [2025-02-10 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:51:05 [end_date_ymd] => 2025-02-10 02:51:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:51:05' and `end` < '2025-02-10 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-10 02:51:18] Production.INFO: count ==434 [2025-02-10 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:51:05 - End Time 2025-02-10 02:51:05 [2025-02-10 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441454', 'tblTempUsageDetail_20' ) start [2025-02-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441454', 'tblTempUsageDetail_20' ) end [2025-02-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441454', 'tblTempVendorCDR_20' ) start [2025-02-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441454', 'tblTempVendorCDR_20' ) end [2025-02-10 02:51:18] Production.INFO: ProcessCDR(1,14441454,1,1,2) [2025-02-10 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441454', 'tblTempUsageDetail_20' ) start [2025-02-10 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441454', 'tblTempUsageDetail_20' ) end [2025-02-10 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:51:21] Production.INFO: ==2481== Releasing lock... [2025-02-10 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:51:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:52:05 [end_date_ymd] => 2025-02-10 02:52:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:52:05' and `end` < '2025-02-10 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-10 02:52:17] Production.INFO: count ==434 [2025-02-10 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-09 23:52:05 - End Time 2025-02-10 02:52:05 [2025-02-10 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441459', 'tblTempUsageDetail_20' ) start [2025-02-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441459', 'tblTempUsageDetail_20' ) end [2025-02-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441459', 'tblTempVendorCDR_20' ) start [2025-02-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441459', 'tblTempVendorCDR_20' ) end [2025-02-10 02:52:18] Production.INFO: ProcessCDR(1,14441459,1,1,2) [2025-02-10 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441459', 'tblTempUsageDetail_20' ) start [2025-02-10 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441459', 'tblTempUsageDetail_20' ) end [2025-02-10 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:52:21] Production.INFO: ==2557== Releasing lock... [2025-02-10 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:52:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:53:04 [end_date_ymd] => 2025-02-10 02:53:04 [RateCDR] => 1 ) [2025-02-10 02:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:53:04' and `end` < '2025-02-10 02:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:53:18] Production.INFO: count ==434 [2025-02-10 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:53:04 - End Time 2025-02-10 02:53:04 [2025-02-10 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441464', 'tblTempUsageDetail_20' ) start [2025-02-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441464', 'tblTempUsageDetail_20' ) end [2025-02-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441464', 'tblTempVendorCDR_20' ) start [2025-02-10 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441464', 'tblTempVendorCDR_20' ) end [2025-02-10 02:53:18] Production.INFO: ProcessCDR(1,14441464,1,1,2) [2025-02-10 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441464', 'tblTempUsageDetail_20' ) start [2025-02-10 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441464', 'tblTempUsageDetail_20' ) end [2025-02-10 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:53:21] Production.INFO: ==2672== Releasing lock... [2025-02-10 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:53:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:54:05 [end_date_ymd] => 2025-02-10 02:54:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:54:05' and `end` < '2025-02-10 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-10 02:54:18] Production.INFO: count ==433 [2025-02-10 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:54:05 - End Time 2025-02-10 02:54:05 [2025-02-10 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441469', 'tblTempUsageDetail_20' ) start [2025-02-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441469', 'tblTempUsageDetail_20' ) end [2025-02-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441469', 'tblTempVendorCDR_20' ) start [2025-02-10 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441469', 'tblTempVendorCDR_20' ) end [2025-02-10 02:54:18] Production.INFO: ProcessCDR(1,14441469,1,1,2) [2025-02-10 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441469', 'tblTempUsageDetail_20' ) start [2025-02-10 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441469', 'tblTempUsageDetail_20' ) end [2025-02-10 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:54:21] Production.INFO: ==2746== Releasing lock... [2025-02-10 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:54:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:55:06 [end_date_ymd] => 2025-02-10 02:55:06 [RateCDR] => 1 ) [2025-02-10 02: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-09 23:55:06' and `end` < '2025-02-10 02: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-10 02:55:18] Production.INFO: count ==433 [2025-02-10 02:55:19] Production.ERROR: pbx CDR StartTime 2025-02-09 23:55:06 - End Time 2025-02-10 02:55:06 [2025-02-10 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441474', 'tblTempUsageDetail_20' ) start [2025-02-10 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441474', 'tblTempUsageDetail_20' ) end [2025-02-10 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441474', 'tblTempVendorCDR_20' ) start [2025-02-10 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441474', 'tblTempVendorCDR_20' ) end [2025-02-10 02:55:19] Production.INFO: ProcessCDR(1,14441474,1,1,2) [2025-02-10 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441474', 'tblTempUsageDetail_20' ) start [2025-02-10 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441474', 'tblTempUsageDetail_20' ) end [2025-02-10 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:55:22] Production.INFO: ==2824== Releasing lock... [2025-02-10 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:56:05 [end_date_ymd] => 2025-02-10 02:56:05 [RateCDR] => 1 ) [2025-02-10 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:56:05' and `end` < '2025-02-10 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:56:17] Production.INFO: count ==433 [2025-02-10 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-09 23:56:05 - End Time 2025-02-10 02:56:05 [2025-02-10 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441479', 'tblTempUsageDetail_20' ) start [2025-02-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441479', 'tblTempUsageDetail_20' ) end [2025-02-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441479', 'tblTempVendorCDR_20' ) start [2025-02-10 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441479', 'tblTempVendorCDR_20' ) end [2025-02-10 02:56:17] Production.INFO: ProcessCDR(1,14441479,1,1,2) [2025-02-10 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441479', 'tblTempUsageDetail_20' ) start [2025-02-10 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441479', 'tblTempUsageDetail_20' ) end [2025-02-10 02:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:56:20] Production.INFO: ==2899== Releasing lock... [2025-02-10 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:56:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:57:05 [end_date_ymd] => 2025-02-10 02:57:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:57:05' and `end` < '2025-02-10 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-10 02:57:18] Production.INFO: count ==432 [2025-02-10 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:57:05 - End Time 2025-02-10 02:57:05 [2025-02-10 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441484', 'tblTempUsageDetail_20' ) start [2025-02-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441484', 'tblTempUsageDetail_20' ) end [2025-02-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441484', 'tblTempVendorCDR_20' ) start [2025-02-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441484', 'tblTempVendorCDR_20' ) end [2025-02-10 02:57:18] Production.INFO: ProcessCDR(1,14441484,1,1,2) [2025-02-10 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441484', 'tblTempUsageDetail_20' ) start [2025-02-10 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441484', 'tblTempUsageDetail_20' ) end [2025-02-10 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:57:21] Production.INFO: ==2979== Releasing lock... [2025-02-10 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:58:05 [end_date_ymd] => 2025-02-10 02:58:05 [RateCDR] => 1 ) [2025-02-10 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-09 23:58:05' and `end` < '2025-02-10 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 02:58:18] Production.INFO: count ==431 [2025-02-10 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:58:05 - End Time 2025-02-10 02:58:05 [2025-02-10 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441489', 'tblTempUsageDetail_20' ) start [2025-02-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441489', 'tblTempUsageDetail_20' ) end [2025-02-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441489', 'tblTempVendorCDR_20' ) start [2025-02-10 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441489', 'tblTempVendorCDR_20' ) end [2025-02-10 02:58:18] Production.INFO: ProcessCDR(1,14441489,1,1,2) [2025-02-10 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441489', 'tblTempUsageDetail_20' ) start [2025-02-10 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441489', 'tblTempUsageDetail_20' ) end [2025-02-10 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:58:21] Production.INFO: ==3058== Releasing lock... [2025-02-10 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-09 23:59:05 [end_date_ymd] => 2025-02-10 02:59:05 [RateCDR] => 1 ) [2025-02-10 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-09 23:59:05' and `end` < '2025-02-10 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-10 02:59:18] Production.INFO: count ==428 [2025-02-10 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-09 23:59:05 - End Time 2025-02-10 02:59:05 [2025-02-10 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441494', 'tblTempUsageDetail_20' ) start [2025-02-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441494', 'tblTempUsageDetail_20' ) end [2025-02-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441494', 'tblTempVendorCDR_20' ) start [2025-02-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441494', 'tblTempVendorCDR_20' ) end [2025-02-10 02:59:18] Production.INFO: ProcessCDR(1,14441494,1,1,2) [2025-02-10 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441494', 'tblTempUsageDetail_20' ) start [2025-02-10 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441494', 'tblTempUsageDetail_20' ) end [2025-02-10 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 02:59:21] Production.INFO: ==3141== Releasing lock... [2025-02-10 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 02:59:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:00:05 [end_date_ymd] => 2025-02-10 03:00:05 [RateCDR] => 1 ) [2025-02-10 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:00:05' and `end` < '2025-02-10 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:00:18] Production.INFO: count ==434 [2025-02-10 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:00:05 - End Time 2025-02-10 03:00:05 [2025-02-10 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441499', 'tblTempUsageDetail_20' ) start [2025-02-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441499', 'tblTempUsageDetail_20' ) end [2025-02-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441499', 'tblTempVendorCDR_20' ) start [2025-02-10 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441499', 'tblTempVendorCDR_20' ) end [2025-02-10 03:00:18] Production.INFO: ProcessCDR(1,14441499,1,1,2) [2025-02-10 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441499', 'tblTempUsageDetail_20' ) start [2025-02-10 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441499', 'tblTempUsageDetail_20' ) end [2025-02-10 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:00:21] Production.INFO: ==3220== Releasing lock... [2025-02-10 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:00:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:01:05 [end_date_ymd] => 2025-02-10 03:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:01:05' and `end` < '2025-02-10 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-10 03:01:18] Production.INFO: count ==440 [2025-02-10 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:01:05 - End Time 2025-02-10 03:01:05 [2025-02-10 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441505', 'tblTempUsageDetail_20' ) start [2025-02-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441505', 'tblTempUsageDetail_20' ) end [2025-02-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441505', 'tblTempVendorCDR_20' ) start [2025-02-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441505', 'tblTempVendorCDR_20' ) end [2025-02-10 03:01:18] Production.INFO: ProcessCDR(1,14441505,1,1,2) [2025-02-10 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441505', 'tblTempUsageDetail_20' ) start [2025-02-10 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441505', 'tblTempUsageDetail_20' ) end [2025-02-10 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:01:21] Production.INFO: ==3311== Releasing lock... [2025-02-10 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:02:05 [end_date_ymd] => 2025-02-10 03:02:05 [RateCDR] => 1 ) [2025-02-10 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:02:05' and `end` < '2025-02-10 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:02:18] Production.INFO: count ==440 [2025-02-10 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:02:05 - End Time 2025-02-10 03:02:05 [2025-02-10 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441510', 'tblTempUsageDetail_20' ) start [2025-02-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441510', 'tblTempUsageDetail_20' ) end [2025-02-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441510', 'tblTempVendorCDR_20' ) start [2025-02-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441510', 'tblTempVendorCDR_20' ) end [2025-02-10 03:02:18] Production.INFO: ProcessCDR(1,14441510,1,1,2) [2025-02-10 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441510', 'tblTempUsageDetail_20' ) start [2025-02-10 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441510', 'tblTempUsageDetail_20' ) end [2025-02-10 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:02:21] Production.INFO: ==3461== Releasing lock... [2025-02-10 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:03:05 [end_date_ymd] => 2025-02-10 03:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:03:05' and `end` < '2025-02-10 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-10 03:03:18] Production.INFO: count ==440 [2025-02-10 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:03:05 - End Time 2025-02-10 03:03:05 [2025-02-10 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441515', 'tblTempUsageDetail_20' ) start [2025-02-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441515', 'tblTempUsageDetail_20' ) end [2025-02-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441515', 'tblTempVendorCDR_20' ) start [2025-02-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441515', 'tblTempVendorCDR_20' ) end [2025-02-10 03:03:18] Production.INFO: ProcessCDR(1,14441515,1,1,2) [2025-02-10 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441515', 'tblTempUsageDetail_20' ) start [2025-02-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441515', 'tblTempUsageDetail_20' ) end [2025-02-10 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:03:21] Production.INFO: ==3533== Releasing lock... [2025-02-10 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:04:05 [end_date_ymd] => 2025-02-10 03:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:04:05' and `end` < '2025-02-10 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-10 03:04:18] Production.INFO: count ==440 [2025-02-10 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:04:05 - End Time 2025-02-10 03:04:05 [2025-02-10 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441520', 'tblTempUsageDetail_20' ) start [2025-02-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441520', 'tblTempUsageDetail_20' ) end [2025-02-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441520', 'tblTempVendorCDR_20' ) start [2025-02-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441520', 'tblTempVendorCDR_20' ) end [2025-02-10 03:04:18] Production.INFO: ProcessCDR(1,14441520,1,1,2) [2025-02-10 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441520', 'tblTempUsageDetail_20' ) start [2025-02-10 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441520', 'tblTempUsageDetail_20' ) end [2025-02-10 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:04:21] Production.INFO: ==3610== Releasing lock... [2025-02-10 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:05:05 [end_date_ymd] => 2025-02-10 03:05:05 [RateCDR] => 1 ) [2025-02-10 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:05:05' and `end` < '2025-02-10 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:05:18] Production.INFO: count ==440 [2025-02-10 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:05:05 - End Time 2025-02-10 03:05:05 [2025-02-10 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441525', 'tblTempUsageDetail_20' ) start [2025-02-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441525', 'tblTempUsageDetail_20' ) end [2025-02-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441525', 'tblTempVendorCDR_20' ) start [2025-02-10 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441525', 'tblTempVendorCDR_20' ) end [2025-02-10 03:05:18] Production.INFO: ProcessCDR(1,14441525,1,1,2) [2025-02-10 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441525', 'tblTempUsageDetail_20' ) start [2025-02-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441525', 'tblTempUsageDetail_20' ) end [2025-02-10 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:05:21] Production.INFO: ==3684== Releasing lock... [2025-02-10 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:05:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:06:05 [end_date_ymd] => 2025-02-10 03:06:05 [RateCDR] => 1 ) [2025-02-10 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:06:05' and `end` < '2025-02-10 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:06:18] Production.INFO: count ==440 [2025-02-10 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:06:05 - End Time 2025-02-10 03:06:05 [2025-02-10 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441530', 'tblTempUsageDetail_20' ) start [2025-02-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441530', 'tblTempUsageDetail_20' ) end [2025-02-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441530', 'tblTempVendorCDR_20' ) start [2025-02-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441530', 'tblTempVendorCDR_20' ) end [2025-02-10 03:06:18] Production.INFO: ProcessCDR(1,14441530,1,1,2) [2025-02-10 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441530', 'tblTempUsageDetail_20' ) start [2025-02-10 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441530', 'tblTempUsageDetail_20' ) end [2025-02-10 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:06:21] Production.INFO: ==3837== Releasing lock... [2025-02-10 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:07:04 [end_date_ymd] => 2025-02-10 03:07:04 [RateCDR] => 1 ) [2025-02-10 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:07:04' and `end` < '2025-02-10 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:07:17] Production.INFO: count ==440 [2025-02-10 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-10 00:07:04 - End Time 2025-02-10 03:07:04 [2025-02-10 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441535', 'tblTempUsageDetail_20' ) start [2025-02-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441535', 'tblTempUsageDetail_20' ) end [2025-02-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441535', 'tblTempVendorCDR_20' ) start [2025-02-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441535', 'tblTempVendorCDR_20' ) end [2025-02-10 03:07:17] Production.INFO: ProcessCDR(1,14441535,1,1,2) [2025-02-10 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441535', 'tblTempUsageDetail_20' ) start [2025-02-10 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441535', 'tblTempUsageDetail_20' ) end [2025-02-10 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:07:20] Production.INFO: ==3910== Releasing lock... [2025-02-10 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:07:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:08:04 [end_date_ymd] => 2025-02-10 03:08:04 [RateCDR] => 1 ) [2025-02-10 03:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:08:04' and `end` < '2025-02-10 03:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:08:17] Production.INFO: count ==440 [2025-02-10 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:08:04 - End Time 2025-02-10 03:08:04 [2025-02-10 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441540', 'tblTempUsageDetail_20' ) start [2025-02-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441540', 'tblTempUsageDetail_20' ) end [2025-02-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441540', 'tblTempVendorCDR_20' ) start [2025-02-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441540', 'tblTempVendorCDR_20' ) end [2025-02-10 03:08:18] Production.INFO: ProcessCDR(1,14441540,1,1,2) [2025-02-10 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441540', 'tblTempUsageDetail_20' ) start [2025-02-10 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441540', 'tblTempUsageDetail_20' ) end [2025-02-10 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:08:21] Production.INFO: ==4029== Releasing lock... [2025-02-10 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:09:05 [end_date_ymd] => 2025-02-10 03:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:09:05' and `end` < '2025-02-10 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-10 03:09:18] Production.INFO: count ==440 [2025-02-10 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:09:05 - End Time 2025-02-10 03:09:05 [2025-02-10 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441545', 'tblTempUsageDetail_20' ) start [2025-02-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441545', 'tblTempUsageDetail_20' ) end [2025-02-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441545', 'tblTempVendorCDR_20' ) start [2025-02-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441545', 'tblTempVendorCDR_20' ) end [2025-02-10 03:09:18] Production.INFO: ProcessCDR(1,14441545,1,1,2) [2025-02-10 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441545', 'tblTempUsageDetail_20' ) start [2025-02-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441545', 'tblTempUsageDetail_20' ) end [2025-02-10 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:09:21] Production.INFO: ==4181== Releasing lock... [2025-02-10 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:10:06 [end_date_ymd] => 2025-02-10 03:10:06 [RateCDR] => 1 ) [2025-02-10 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:10:06' and `end` < '2025-02-10 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:10:18] Production.INFO: count ==444 [2025-02-10 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:10:06 - End Time 2025-02-10 03:10:06 [2025-02-10 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441551', 'tblTempUsageDetail_20' ) start [2025-02-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441551', 'tblTempUsageDetail_20' ) end [2025-02-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441551', 'tblTempVendorCDR_20' ) start [2025-02-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441551', 'tblTempVendorCDR_20' ) end [2025-02-10 03:10:19] Production.INFO: ProcessCDR(1,14441551,1,1,2) [2025-02-10 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441551', 'tblTempUsageDetail_20' ) start [2025-02-10 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441551', 'tblTempUsageDetail_20' ) end [2025-02-10 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:10:22] Production.INFO: ==4271== Releasing lock... [2025-02-10 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:10:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:11:05 [end_date_ymd] => 2025-02-10 03:11:05 [RateCDR] => 1 ) [2025-02-10 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:11:05' and `end` < '2025-02-10 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:11:18] Production.INFO: count ==448 [2025-02-10 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:11:05 - End Time 2025-02-10 03:11:05 [2025-02-10 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441556', 'tblTempUsageDetail_20' ) start [2025-02-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441556', 'tblTempUsageDetail_20' ) end [2025-02-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441556', 'tblTempVendorCDR_20' ) start [2025-02-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441556', 'tblTempVendorCDR_20' ) end [2025-02-10 03:11:18] Production.INFO: ProcessCDR(1,14441556,1,1,2) [2025-02-10 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441556', 'tblTempUsageDetail_20' ) start [2025-02-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441556', 'tblTempUsageDetail_20' ) end [2025-02-10 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:11:21] Production.INFO: ==4373== Releasing lock... [2025-02-10 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:12:05 [end_date_ymd] => 2025-02-10 03:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:12:05' and `end` < '2025-02-10 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-10 03:12:18] Production.INFO: count ==448 [2025-02-10 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:12:05 - End Time 2025-02-10 03:12:05 [2025-02-10 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441561', 'tblTempUsageDetail_20' ) start [2025-02-10 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441561', 'tblTempUsageDetail_20' ) end [2025-02-10 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441561', 'tblTempVendorCDR_20' ) start [2025-02-10 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441561', 'tblTempVendorCDR_20' ) end [2025-02-10 03:12:18] Production.INFO: ProcessCDR(1,14441561,1,1,2) [2025-02-10 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441561', 'tblTempUsageDetail_20' ) start [2025-02-10 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441561', 'tblTempUsageDetail_20' ) end [2025-02-10 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:12:21] Production.INFO: ==4453== Releasing lock... [2025-02-10 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:13:05 [end_date_ymd] => 2025-02-10 03:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:13:05' and `end` < '2025-02-10 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-10 03:13:18] Production.INFO: count ==448 [2025-02-10 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:13:05 - End Time 2025-02-10 03:13:05 [2025-02-10 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441566', 'tblTempUsageDetail_20' ) start [2025-02-10 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441566', 'tblTempUsageDetail_20' ) end [2025-02-10 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441566', 'tblTempVendorCDR_20' ) start [2025-02-10 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441566', 'tblTempVendorCDR_20' ) end [2025-02-10 03:13:18] Production.INFO: ProcessCDR(1,14441566,1,1,2) [2025-02-10 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441566', 'tblTempUsageDetail_20' ) start [2025-02-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441566', 'tblTempUsageDetail_20' ) end [2025-02-10 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:13:21] Production.INFO: ==4618== Releasing lock... [2025-02-10 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:14:05 [end_date_ymd] => 2025-02-10 03:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:14:05' and `end` < '2025-02-10 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-10 03:14:19] Production.INFO: count ==447 [2025-02-10 03:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:14:05 - End Time 2025-02-10 03:14:05 [2025-02-10 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441571', 'tblTempUsageDetail_20' ) start [2025-02-10 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441571', 'tblTempUsageDetail_20' ) end [2025-02-10 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441571', 'tblTempVendorCDR_20' ) start [2025-02-10 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441571', 'tblTempVendorCDR_20' ) end [2025-02-10 03:14:19] Production.INFO: ProcessCDR(1,14441571,1,1,2) [2025-02-10 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441571', 'tblTempUsageDetail_20' ) start [2025-02-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441571', 'tblTempUsageDetail_20' ) end [2025-02-10 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:14:22] Production.INFO: ==4692== Releasing lock... [2025-02-10 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:14:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:15:05 [end_date_ymd] => 2025-02-10 03:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:15:05' and `end` < '2025-02-10 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-10 03:15:18] Production.INFO: count ==446 [2025-02-10 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:15:05 - End Time 2025-02-10 03:15:05 [2025-02-10 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441576', 'tblTempUsageDetail_20' ) start [2025-02-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441576', 'tblTempUsageDetail_20' ) end [2025-02-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441576', 'tblTempVendorCDR_20' ) start [2025-02-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441576', 'tblTempVendorCDR_20' ) end [2025-02-10 03:15:18] Production.INFO: ProcessCDR(1,14441576,1,1,2) [2025-02-10 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441576', 'tblTempUsageDetail_20' ) start [2025-02-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441576', 'tblTempUsageDetail_20' ) end [2025-02-10 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:15:21] Production.INFO: ==4768== Releasing lock... [2025-02-10 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:16:05 [end_date_ymd] => 2025-02-10 03:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:16:05' and `end` < '2025-02-10 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-10 03:16:18] Production.INFO: count ==446 [2025-02-10 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:16:05 - End Time 2025-02-10 03:16:05 [2025-02-10 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441581', 'tblTempUsageDetail_20' ) start [2025-02-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441581', 'tblTempUsageDetail_20' ) end [2025-02-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441581', 'tblTempVendorCDR_20' ) start [2025-02-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441581', 'tblTempVendorCDR_20' ) end [2025-02-10 03:16:18] Production.INFO: ProcessCDR(1,14441581,1,1,2) [2025-02-10 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441581', 'tblTempUsageDetail_20' ) start [2025-02-10 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441581', 'tblTempUsageDetail_20' ) end [2025-02-10 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:16:21] Production.INFO: ==4849== Releasing lock... [2025-02-10 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:17:04 [end_date_ymd] => 2025-02-10 03:17:04 [RateCDR] => 1 ) [2025-02-10 03: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-10 00:17:04' and `end` < '2025-02-10 03: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-10 03:17:19] Production.INFO: count ==445 [2025-02-10 03:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:17:04 - End Time 2025-02-10 03:17:04 [2025-02-10 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441586', 'tblTempUsageDetail_20' ) start [2025-02-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441586', 'tblTempUsageDetail_20' ) end [2025-02-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441586', 'tblTempVendorCDR_20' ) start [2025-02-10 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441586', 'tblTempVendorCDR_20' ) end [2025-02-10 03:17:19] Production.INFO: ProcessCDR(1,14441586,1,1,2) [2025-02-10 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441586', 'tblTempUsageDetail_20' ) start [2025-02-10 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441586', 'tblTempUsageDetail_20' ) end [2025-02-10 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:17:22] Production.INFO: ==5002== Releasing lock... [2025-02-10 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:17:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:18:05 [end_date_ymd] => 2025-02-10 03:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:18:05' and `end` < '2025-02-10 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-10 03:18:18] Production.INFO: count ==445 [2025-02-10 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:18:05 - End Time 2025-02-10 03:18:05 [2025-02-10 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441591', 'tblTempUsageDetail_20' ) start [2025-02-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441591', 'tblTempUsageDetail_20' ) end [2025-02-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441591', 'tblTempVendorCDR_20' ) start [2025-02-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441591', 'tblTempVendorCDR_20' ) end [2025-02-10 03:18:18] Production.INFO: ProcessCDR(1,14441591,1,1,2) [2025-02-10 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441591', 'tblTempUsageDetail_20' ) start [2025-02-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441591', 'tblTempUsageDetail_20' ) end [2025-02-10 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:18:21] Production.INFO: ==5076== Releasing lock... [2025-02-10 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:18:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:19:05 [end_date_ymd] => 2025-02-10 03:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:19:05' and `end` < '2025-02-10 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-10 03:19:18] Production.INFO: count ==445 [2025-02-10 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:19:05 - End Time 2025-02-10 03:19:05 [2025-02-10 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441596', 'tblTempUsageDetail_20' ) start [2025-02-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441596', 'tblTempUsageDetail_20' ) end [2025-02-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441596', 'tblTempVendorCDR_20' ) start [2025-02-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441596', 'tblTempVendorCDR_20' ) end [2025-02-10 03:19:18] Production.INFO: ProcessCDR(1,14441596,1,1,2) [2025-02-10 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441596', 'tblTempUsageDetail_20' ) start [2025-02-10 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441596', 'tblTempUsageDetail_20' ) end [2025-02-10 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:19:21] Production.INFO: ==5151== Releasing lock... [2025-02-10 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:19:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:20:06 [end_date_ymd] => 2025-02-10 03:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 00:20:06' and `end` < '2025-02-10 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-10 03:20:19] Production.INFO: count ==445 [2025-02-10 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:20:06 - End Time 2025-02-10 03:20:06 [2025-02-10 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441602', 'tblTempUsageDetail_20' ) start [2025-02-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441602', 'tblTempUsageDetail_20' ) end [2025-02-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441602', 'tblTempVendorCDR_20' ) start [2025-02-10 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441602', 'tblTempVendorCDR_20' ) end [2025-02-10 03:20:19] Production.INFO: ProcessCDR(1,14441602,1,1,2) [2025-02-10 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441602', 'tblTempUsageDetail_20' ) start [2025-02-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441602', 'tblTempUsageDetail_20' ) end [2025-02-10 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:20:22] Production.INFO: ==5225== Releasing lock... [2025-02-10 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:21:05 [end_date_ymd] => 2025-02-10 03:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:21:05' and `end` < '2025-02-10 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-10 03:21:18] Production.INFO: count ==445 [2025-02-10 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:21:05 - End Time 2025-02-10 03:21:05 [2025-02-10 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441607', 'tblTempUsageDetail_20' ) start [2025-02-10 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441607', 'tblTempUsageDetail_20' ) end [2025-02-10 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441607', 'tblTempVendorCDR_20' ) start [2025-02-10 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441607', 'tblTempVendorCDR_20' ) end [2025-02-10 03:21:18] Production.INFO: ProcessCDR(1,14441607,1,1,2) [2025-02-10 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441607', 'tblTempUsageDetail_20' ) start [2025-02-10 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441607', 'tblTempUsageDetail_20' ) end [2025-02-10 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:21:21] Production.INFO: ==5303== Releasing lock... [2025-02-10 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:22:05 [end_date_ymd] => 2025-02-10 03:22:05 [RateCDR] => 1 ) [2025-02-10 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:22:05' and `end` < '2025-02-10 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:22:18] Production.INFO: count ==445 [2025-02-10 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:22:05 - End Time 2025-02-10 03:22:05 [2025-02-10 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441612', 'tblTempUsageDetail_20' ) start [2025-02-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441612', 'tblTempUsageDetail_20' ) end [2025-02-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441612', 'tblTempVendorCDR_20' ) start [2025-02-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441612', 'tblTempVendorCDR_20' ) end [2025-02-10 03:22:18] Production.INFO: ProcessCDR(1,14441612,1,1,2) [2025-02-10 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441612', 'tblTempUsageDetail_20' ) start [2025-02-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441612', 'tblTempUsageDetail_20' ) end [2025-02-10 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:22:21] Production.INFO: ==5378== Releasing lock... [2025-02-10 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:22:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:23:05 [end_date_ymd] => 2025-02-10 03:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:23:05' and `end` < '2025-02-10 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-10 03:23:19] Production.INFO: count ==445 [2025-02-10 03:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:23:05 - End Time 2025-02-10 03:23:05 [2025-02-10 03:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441617', 'tblTempUsageDetail_20' ) start [2025-02-10 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441617', 'tblTempUsageDetail_20' ) end [2025-02-10 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441617', 'tblTempVendorCDR_20' ) start [2025-02-10 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441617', 'tblTempVendorCDR_20' ) end [2025-02-10 03:23:19] Production.INFO: ProcessCDR(1,14441617,1,1,2) [2025-02-10 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441617', 'tblTempUsageDetail_20' ) start [2025-02-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441617', 'tblTempUsageDetail_20' ) end [2025-02-10 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:23:22] Production.INFO: ==5452== Releasing lock... [2025-02-10 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:23:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:24:05 [end_date_ymd] => 2025-02-10 03:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:24:05' and `end` < '2025-02-10 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-10 03:24:17] Production.INFO: count ==445 [2025-02-10 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:24:05 - End Time 2025-02-10 03:24:05 [2025-02-10 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441622', 'tblTempUsageDetail_20' ) start [2025-02-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441622', 'tblTempUsageDetail_20' ) end [2025-02-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441622', 'tblTempVendorCDR_20' ) start [2025-02-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441622', 'tblTempVendorCDR_20' ) end [2025-02-10 03:24:18] Production.INFO: ProcessCDR(1,14441622,1,1,2) [2025-02-10 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441622', 'tblTempUsageDetail_20' ) start [2025-02-10 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441622', 'tblTempUsageDetail_20' ) end [2025-02-10 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:24:20] Production.INFO: ==5528== Releasing lock... [2025-02-10 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:24:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:25:05 [end_date_ymd] => 2025-02-10 03:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:25:05' and `end` < '2025-02-10 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-10 03:25:18] Production.INFO: count ==445 [2025-02-10 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:25:05 - End Time 2025-02-10 03:25:05 [2025-02-10 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441627', 'tblTempUsageDetail_20' ) start [2025-02-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441627', 'tblTempUsageDetail_20' ) end [2025-02-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441627', 'tblTempVendorCDR_20' ) start [2025-02-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441627', 'tblTempVendorCDR_20' ) end [2025-02-10 03:25:18] Production.INFO: ProcessCDR(1,14441627,1,1,2) [2025-02-10 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441627', 'tblTempUsageDetail_20' ) start [2025-02-10 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441627', 'tblTempUsageDetail_20' ) end [2025-02-10 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:25:21] Production.INFO: ==5643== Releasing lock... [2025-02-10 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:26:05 [end_date_ymd] => 2025-02-10 03:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:26:05' and `end` < '2025-02-10 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-10 03:26:18] Production.INFO: count ==445 [2025-02-10 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:26:05 - End Time 2025-02-10 03:26:05 [2025-02-10 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441632', 'tblTempUsageDetail_20' ) start [2025-02-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441632', 'tblTempUsageDetail_20' ) end [2025-02-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441632', 'tblTempVendorCDR_20' ) start [2025-02-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441632', 'tblTempVendorCDR_20' ) end [2025-02-10 03:26:18] Production.INFO: ProcessCDR(1,14441632,1,1,2) [2025-02-10 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441632', 'tblTempUsageDetail_20' ) start [2025-02-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441632', 'tblTempUsageDetail_20' ) end [2025-02-10 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:26:21] Production.INFO: ==5718== Releasing lock... [2025-02-10 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:26:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:27:05 [end_date_ymd] => 2025-02-10 03:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:27:05' and `end` < '2025-02-10 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-10 03:27:18] Production.INFO: count ==445 [2025-02-10 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:27:05 - End Time 2025-02-10 03:27:05 [2025-02-10 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441637', 'tblTempUsageDetail_20' ) start [2025-02-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441637', 'tblTempUsageDetail_20' ) end [2025-02-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441637', 'tblTempVendorCDR_20' ) start [2025-02-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441637', 'tblTempVendorCDR_20' ) end [2025-02-10 03:27:18] Production.INFO: ProcessCDR(1,14441637,1,1,2) [2025-02-10 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441637', 'tblTempUsageDetail_20' ) start [2025-02-10 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441637', 'tblTempUsageDetail_20' ) end [2025-02-10 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:27:21] Production.INFO: ==5835== Releasing lock... [2025-02-10 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:27:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:28:05 [end_date_ymd] => 2025-02-10 03:28:05 [RateCDR] => 1 ) [2025-02-10 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:28:05' and `end` < '2025-02-10 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:28:18] Production.INFO: count ==538 [2025-02-10 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:28:05 - End Time 2025-02-10 03:28:05 [2025-02-10 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441642', 'tblTempUsageDetail_20' ) start [2025-02-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441642', 'tblTempUsageDetail_20' ) end [2025-02-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441642', 'tblTempVendorCDR_20' ) start [2025-02-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441642', 'tblTempVendorCDR_20' ) end [2025-02-10 03:28:18] Production.INFO: ProcessCDR(1,14441642,1,1,2) [2025-02-10 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441642', 'tblTempUsageDetail_20' ) start [2025-02-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441642', 'tblTempUsageDetail_20' ) end [2025-02-10 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:28:21] Production.INFO: ==5908== Releasing lock... [2025-02-10 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:29:05 [end_date_ymd] => 2025-02-10 03:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:29:05' and `end` < '2025-02-10 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-10 03:29:18] Production.INFO: count ==538 [2025-02-10 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:29:05 - End Time 2025-02-10 03:29:05 [2025-02-10 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441647', 'tblTempUsageDetail_20' ) start [2025-02-10 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441647', 'tblTempUsageDetail_20' ) end [2025-02-10 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441647', 'tblTempVendorCDR_20' ) start [2025-02-10 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441647', 'tblTempVendorCDR_20' ) end [2025-02-10 03:29:19] Production.INFO: ProcessCDR(1,14441647,1,1,2) [2025-02-10 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441647', 'tblTempUsageDetail_20' ) start [2025-02-10 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441647', 'tblTempUsageDetail_20' ) end [2025-02-10 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:29:22] Production.INFO: ==5984== Releasing lock... [2025-02-10 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:29:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:30:06 [end_date_ymd] => 2025-02-10 03:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 00:30:06' and `end` < '2025-02-10 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-10 03:30:19] Production.INFO: count ==536 [2025-02-10 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:30:06 - End Time 2025-02-10 03:30:06 [2025-02-10 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441652', 'tblTempUsageDetail_20' ) start [2025-02-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441652', 'tblTempUsageDetail_20' ) end [2025-02-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441652', 'tblTempVendorCDR_20' ) start [2025-02-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441652', 'tblTempVendorCDR_20' ) end [2025-02-10 03:30:19] Production.INFO: ProcessCDR(1,14441652,1,1,2) [2025-02-10 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441652', 'tblTempUsageDetail_20' ) start [2025-02-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441652', 'tblTempUsageDetail_20' ) end [2025-02-10 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:30:22] Production.INFO: ==6060== Releasing lock... [2025-02-10 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:31:05 [end_date_ymd] => 2025-02-10 03:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:31:05' and `end` < '2025-02-10 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-10 03:31:19] Production.INFO: count ==522 [2025-02-10 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:31:05 - End Time 2025-02-10 03:31:05 [2025-02-10 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441658', 'tblTempUsageDetail_20' ) start [2025-02-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441658', 'tblTempUsageDetail_20' ) end [2025-02-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441658', 'tblTempVendorCDR_20' ) start [2025-02-10 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441658', 'tblTempVendorCDR_20' ) end [2025-02-10 03:31:19] Production.INFO: ProcessCDR(1,14441658,1,1,2) [2025-02-10 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441658', 'tblTempUsageDetail_20' ) start [2025-02-10 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441658', 'tblTempUsageDetail_20' ) end [2025-02-10 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:31:22] Production.INFO: ==6133== Releasing lock... [2025-02-10 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:31:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:32:05 [end_date_ymd] => 2025-02-10 03:32:05 [RateCDR] => 1 ) [2025-02-10 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:32:05' and `end` < '2025-02-10 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:32:18] Production.INFO: count ==522 [2025-02-10 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:32:05 - End Time 2025-02-10 03:32:05 [2025-02-10 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441663', 'tblTempUsageDetail_20' ) start [2025-02-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441663', 'tblTempUsageDetail_20' ) end [2025-02-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441663', 'tblTempVendorCDR_20' ) start [2025-02-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441663', 'tblTempVendorCDR_20' ) end [2025-02-10 03:32:18] Production.INFO: ProcessCDR(1,14441663,1,1,2) [2025-02-10 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441663', 'tblTempUsageDetail_20' ) start [2025-02-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441663', 'tblTempUsageDetail_20' ) end [2025-02-10 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:32:21] Production.INFO: ==6209== Releasing lock... [2025-02-10 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:33:05 [end_date_ymd] => 2025-02-10 03:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:33:05' and `end` < '2025-02-10 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-10 03:33:18] Production.INFO: count ==526 [2025-02-10 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:33:05 - End Time 2025-02-10 03:33:05 [2025-02-10 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441668', 'tblTempUsageDetail_20' ) start [2025-02-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441668', 'tblTempUsageDetail_20' ) end [2025-02-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441668', 'tblTempVendorCDR_20' ) start [2025-02-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441668', 'tblTempVendorCDR_20' ) end [2025-02-10 03:33:18] Production.INFO: ProcessCDR(1,14441668,1,1,2) [2025-02-10 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441668', 'tblTempUsageDetail_20' ) start [2025-02-10 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441668', 'tblTempUsageDetail_20' ) end [2025-02-10 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:33:21] Production.INFO: ==6281== Releasing lock... [2025-02-10 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:34:05 [end_date_ymd] => 2025-02-10 03:34:05 [RateCDR] => 1 ) [2025-02-10 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:34:05' and `end` < '2025-02-10 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:34:18] Production.INFO: count ==526 [2025-02-10 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:34:05 - End Time 2025-02-10 03:34:05 [2025-02-10 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441673', 'tblTempUsageDetail_20' ) start [2025-02-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441673', 'tblTempUsageDetail_20' ) end [2025-02-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441673', 'tblTempVendorCDR_20' ) start [2025-02-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441673', 'tblTempVendorCDR_20' ) end [2025-02-10 03:34:18] Production.INFO: ProcessCDR(1,14441673,1,1,2) [2025-02-10 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441673', 'tblTempUsageDetail_20' ) start [2025-02-10 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441673', 'tblTempUsageDetail_20' ) end [2025-02-10 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:34:21] Production.INFO: ==6358== Releasing lock... [2025-02-10 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:35:05 [end_date_ymd] => 2025-02-10 03:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:35:05' and `end` < '2025-02-10 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-10 03:35:19] Production.INFO: count ==526 [2025-02-10 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:35:05 - End Time 2025-02-10 03:35:05 [2025-02-10 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441678', 'tblTempUsageDetail_20' ) start [2025-02-10 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441678', 'tblTempUsageDetail_20' ) end [2025-02-10 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441678', 'tblTempVendorCDR_20' ) start [2025-02-10 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441678', 'tblTempVendorCDR_20' ) end [2025-02-10 03:35:19] Production.INFO: ProcessCDR(1,14441678,1,1,2) [2025-02-10 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441678', 'tblTempUsageDetail_20' ) start [2025-02-10 03:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441678', 'tblTempUsageDetail_20' ) end [2025-02-10 03:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:35:23] Production.INFO: ==6432== Releasing lock... [2025-02-10 03:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:36:05 [end_date_ymd] => 2025-02-10 03:36:05 [RateCDR] => 1 ) [2025-02-10 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:36:05' and `end` < '2025-02-10 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:36:18] Production.INFO: count ==526 [2025-02-10 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:36:05 - End Time 2025-02-10 03:36:05 [2025-02-10 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441683', 'tblTempUsageDetail_20' ) start [2025-02-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441683', 'tblTempUsageDetail_20' ) end [2025-02-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441683', 'tblTempVendorCDR_20' ) start [2025-02-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441683', 'tblTempVendorCDR_20' ) end [2025-02-10 03:36:18] Production.INFO: ProcessCDR(1,14441683,1,1,2) [2025-02-10 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441683', 'tblTempUsageDetail_20' ) start [2025-02-10 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441683', 'tblTempUsageDetail_20' ) end [2025-02-10 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:36:21] Production.INFO: ==6512== Releasing lock... [2025-02-10 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:37:05 [end_date_ymd] => 2025-02-10 03:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:37:05' and `end` < '2025-02-10 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-10 03:37:19] Production.INFO: count ==522 [2025-02-10 03:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:37:05 - End Time 2025-02-10 03:37:05 [2025-02-10 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441688', 'tblTempUsageDetail_20' ) start [2025-02-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441688', 'tblTempUsageDetail_20' ) end [2025-02-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441688', 'tblTempVendorCDR_20' ) start [2025-02-10 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441688', 'tblTempVendorCDR_20' ) end [2025-02-10 03:37:19] Production.INFO: ProcessCDR(1,14441688,1,1,2) [2025-02-10 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441688', 'tblTempUsageDetail_20' ) start [2025-02-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441688', 'tblTempUsageDetail_20' ) end [2025-02-10 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:37:22] Production.INFO: ==6584== Releasing lock... [2025-02-10 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:38:05 [end_date_ymd] => 2025-02-10 03:38:05 [RateCDR] => 1 ) [2025-02-10 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:38:05' and `end` < '2025-02-10 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:38:18] Production.INFO: count ==522 [2025-02-10 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:38:05 - End Time 2025-02-10 03:38:05 [2025-02-10 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441693', 'tblTempUsageDetail_20' ) start [2025-02-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441693', 'tblTempUsageDetail_20' ) end [2025-02-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441693', 'tblTempVendorCDR_20' ) start [2025-02-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441693', 'tblTempVendorCDR_20' ) end [2025-02-10 03:38:18] Production.INFO: ProcessCDR(1,14441693,1,1,2) [2025-02-10 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441693', 'tblTempUsageDetail_20' ) start [2025-02-10 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441693', 'tblTempUsageDetail_20' ) end [2025-02-10 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:38:21] Production.INFO: ==6657== Releasing lock... [2025-02-10 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:39:05 [end_date_ymd] => 2025-02-10 03:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:39:05' and `end` < '2025-02-10 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-10 03:39:18] Production.INFO: count ==522 [2025-02-10 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:39:05 - End Time 2025-02-10 03:39:05 [2025-02-10 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441698', 'tblTempUsageDetail_20' ) start [2025-02-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441698', 'tblTempUsageDetail_20' ) end [2025-02-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441698', 'tblTempVendorCDR_20' ) start [2025-02-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441698', 'tblTempVendorCDR_20' ) end [2025-02-10 03:39:18] Production.INFO: ProcessCDR(1,14441698,1,1,2) [2025-02-10 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441698', 'tblTempUsageDetail_20' ) start [2025-02-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441698', 'tblTempUsageDetail_20' ) end [2025-02-10 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:39:21] Production.INFO: ==6735== Releasing lock... [2025-02-10 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:40:06 [end_date_ymd] => 2025-02-10 03:40:06 [RateCDR] => 1 ) [2025-02-10 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:40:06' and `end` < '2025-02-10 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:40:19] Production.INFO: count ==518 [2025-02-10 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:40:06 - End Time 2025-02-10 03:40:06 [2025-02-10 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441704', 'tblTempUsageDetail_20' ) start [2025-02-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441704', 'tblTempUsageDetail_20' ) end [2025-02-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441704', 'tblTempVendorCDR_20' ) start [2025-02-10 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441704', 'tblTempVendorCDR_20' ) end [2025-02-10 03:40:19] Production.INFO: ProcessCDR(1,14441704,1,1,2) [2025-02-10 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441704', 'tblTempUsageDetail_20' ) start [2025-02-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441704', 'tblTempUsageDetail_20' ) end [2025-02-10 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:40:22] Production.INFO: ==6812== Releasing lock... [2025-02-10 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:41:05 [end_date_ymd] => 2025-02-10 03:41:05 [RateCDR] => 1 ) [2025-02-10 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:41:05' and `end` < '2025-02-10 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:41:19] Production.INFO: count ==514 [2025-02-10 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:41:05 - End Time 2025-02-10 03:41:05 [2025-02-10 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441709', 'tblTempUsageDetail_20' ) start [2025-02-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441709', 'tblTempUsageDetail_20' ) end [2025-02-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441709', 'tblTempVendorCDR_20' ) start [2025-02-10 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441709', 'tblTempVendorCDR_20' ) end [2025-02-10 03:41:19] Production.INFO: ProcessCDR(1,14441709,1,1,2) [2025-02-10 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441709', 'tblTempUsageDetail_20' ) start [2025-02-10 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441709', 'tblTempUsageDetail_20' ) end [2025-02-10 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:41:22] Production.INFO: ==6927== Releasing lock... [2025-02-10 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:42:05 [end_date_ymd] => 2025-02-10 03:42:05 [RateCDR] => 1 ) [2025-02-10 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:42:05' and `end` < '2025-02-10 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:42:19] Production.INFO: count ==514 [2025-02-10 03:42:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:42:05 - End Time 2025-02-10 03:42:05 [2025-02-10 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441714', 'tblTempUsageDetail_20' ) start [2025-02-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441714', 'tblTempUsageDetail_20' ) end [2025-02-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441714', 'tblTempVendorCDR_20' ) start [2025-02-10 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441714', 'tblTempVendorCDR_20' ) end [2025-02-10 03:42:19] Production.INFO: ProcessCDR(1,14441714,1,1,2) [2025-02-10 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441714', 'tblTempUsageDetail_20' ) start [2025-02-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441714', 'tblTempUsageDetail_20' ) end [2025-02-10 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:42:22] Production.INFO: ==7004== Releasing lock... [2025-02-10 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:43:05 [end_date_ymd] => 2025-02-10 03:43:05 [RateCDR] => 1 ) [2025-02-10 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:43:05' and `end` < '2025-02-10 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:43:18] Production.INFO: count ==512 [2025-02-10 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:43:05 - End Time 2025-02-10 03:43:05 [2025-02-10 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441719', 'tblTempUsageDetail_20' ) start [2025-02-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441719', 'tblTempUsageDetail_20' ) end [2025-02-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441719', 'tblTempVendorCDR_20' ) start [2025-02-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441719', 'tblTempVendorCDR_20' ) end [2025-02-10 03:43:18] Production.INFO: ProcessCDR(1,14441719,1,1,2) [2025-02-10 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441719', 'tblTempUsageDetail_20' ) start [2025-02-10 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441719', 'tblTempUsageDetail_20' ) end [2025-02-10 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:43:21] Production.INFO: ==7085== Releasing lock... [2025-02-10 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:44:05 [end_date_ymd] => 2025-02-10 03:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:44:05' and `end` < '2025-02-10 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-10 03:44:19] Production.INFO: count ==515 [2025-02-10 03:44:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:44:05 - End Time 2025-02-10 03:44:05 [2025-02-10 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441724', 'tblTempUsageDetail_20' ) start [2025-02-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441724', 'tblTempUsageDetail_20' ) end [2025-02-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441724', 'tblTempVendorCDR_20' ) start [2025-02-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441724', 'tblTempVendorCDR_20' ) end [2025-02-10 03:44:19] Production.INFO: ProcessCDR(1,14441724,1,1,2) [2025-02-10 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441724', 'tblTempUsageDetail_20' ) start [2025-02-10 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441724', 'tblTempUsageDetail_20' ) end [2025-02-10 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:44:22] Production.INFO: ==7162== Releasing lock... [2025-02-10 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:44:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:45:05 [end_date_ymd] => 2025-02-10 03:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:45:05' and `end` < '2025-02-10 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-10 03:45:18] Production.INFO: count ==512 [2025-02-10 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:45:05 - End Time 2025-02-10 03:45:05 [2025-02-10 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441729', 'tblTempUsageDetail_20' ) start [2025-02-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441729', 'tblTempUsageDetail_20' ) end [2025-02-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441729', 'tblTempVendorCDR_20' ) start [2025-02-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441729', 'tblTempVendorCDR_20' ) end [2025-02-10 03:45:18] Production.INFO: ProcessCDR(1,14441729,1,1,2) [2025-02-10 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441729', 'tblTempUsageDetail_20' ) start [2025-02-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441729', 'tblTempUsageDetail_20' ) end [2025-02-10 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:45:21] Production.INFO: ==7239== Releasing lock... [2025-02-10 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:46:05 [end_date_ymd] => 2025-02-10 03:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:46:05' and `end` < '2025-02-10 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-10 03:46:18] Production.INFO: count ==508 [2025-02-10 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:46:05 - End Time 2025-02-10 03:46:05 [2025-02-10 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441734', 'tblTempUsageDetail_20' ) start [2025-02-10 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441734', 'tblTempUsageDetail_20' ) end [2025-02-10 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441734', 'tblTempVendorCDR_20' ) start [2025-02-10 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441734', 'tblTempVendorCDR_20' ) end [2025-02-10 03:46:18] Production.INFO: ProcessCDR(1,14441734,1,1,2) [2025-02-10 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441734', 'tblTempUsageDetail_20' ) start [2025-02-10 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441734', 'tblTempUsageDetail_20' ) end [2025-02-10 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:46:22] Production.INFO: ==7325== Releasing lock... [2025-02-10 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:46:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:47:05 [end_date_ymd] => 2025-02-10 03:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:47:05' and `end` < '2025-02-10 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-10 03:47:18] Production.INFO: count ==508 [2025-02-10 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:47:05 - End Time 2025-02-10 03:47:05 [2025-02-10 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441739', 'tblTempUsageDetail_20' ) start [2025-02-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441739', 'tblTempUsageDetail_20' ) end [2025-02-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441739', 'tblTempVendorCDR_20' ) start [2025-02-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441739', 'tblTempVendorCDR_20' ) end [2025-02-10 03:47:18] Production.INFO: ProcessCDR(1,14441739,1,1,2) [2025-02-10 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441739', 'tblTempUsageDetail_20' ) start [2025-02-10 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441739', 'tblTempUsageDetail_20' ) end [2025-02-10 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:47:21] Production.INFO: ==7404== Releasing lock... [2025-02-10 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:47:21] Production.INFO: 32 MB #Memory Used# [2025-02-10 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:48:05 [end_date_ymd] => 2025-02-10 03:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:48:05' and `end` < '2025-02-10 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-10 03:48:18] Production.INFO: count ==504 [2025-02-10 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:48:05 - End Time 2025-02-10 03:48:05 [2025-02-10 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441744', 'tblTempUsageDetail_20' ) start [2025-02-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441744', 'tblTempUsageDetail_20' ) end [2025-02-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441744', 'tblTempVendorCDR_20' ) start [2025-02-10 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441744', 'tblTempVendorCDR_20' ) end [2025-02-10 03:48:18] Production.INFO: ProcessCDR(1,14441744,1,1,2) [2025-02-10 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441744', 'tblTempUsageDetail_20' ) start [2025-02-10 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441744', 'tblTempUsageDetail_20' ) end [2025-02-10 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:48:21] Production.INFO: ==7482== Releasing lock... [2025-02-10 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:49:05 [end_date_ymd] => 2025-02-10 03:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:49:05' and `end` < '2025-02-10 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-10 03:49:19] Production.INFO: count ==497 [2025-02-10 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:49:05 - End Time 2025-02-10 03:49:05 [2025-02-10 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441749', 'tblTempUsageDetail_20' ) start [2025-02-10 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441749', 'tblTempUsageDetail_20' ) end [2025-02-10 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441749', 'tblTempVendorCDR_20' ) start [2025-02-10 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441749', 'tblTempVendorCDR_20' ) end [2025-02-10 03:49:19] Production.INFO: ProcessCDR(1,14441749,1,1,2) [2025-02-10 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441749', 'tblTempUsageDetail_20' ) start [2025-02-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441749', 'tblTempUsageDetail_20' ) end [2025-02-10 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:49:22] Production.INFO: ==7561== Releasing lock... [2025-02-10 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:49:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:50:05 [end_date_ymd] => 2025-02-10 03:50:05 [RateCDR] => 1 ) [2025-02-10 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:50:05' and `end` < '2025-02-10 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:50:18] Production.INFO: count ==499 [2025-02-10 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:50:05 - End Time 2025-02-10 03:50:05 [2025-02-10 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441755', 'tblTempUsageDetail_20' ) start [2025-02-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441755', 'tblTempUsageDetail_20' ) end [2025-02-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441755', 'tblTempVendorCDR_20' ) start [2025-02-10 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441755', 'tblTempVendorCDR_20' ) end [2025-02-10 03:50:18] Production.INFO: ProcessCDR(1,14441755,1,1,2) [2025-02-10 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441755', 'tblTempUsageDetail_20' ) start [2025-02-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441755', 'tblTempUsageDetail_20' ) end [2025-02-10 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:50:22] Production.INFO: ==7645== Releasing lock... [2025-02-10 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:50:22] Production.INFO: 32 MB #Memory Used# [2025-02-10 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:51:05 [end_date_ymd] => 2025-02-10 03:51:05 [RateCDR] => 1 ) [2025-02-10 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:51:05' and `end` < '2025-02-10 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:51:18] Production.INFO: count ==487 [2025-02-10 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:51:05 - End Time 2025-02-10 03:51:05 [2025-02-10 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441760', 'tblTempUsageDetail_20' ) start [2025-02-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441760', 'tblTempUsageDetail_20' ) end [2025-02-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441760', 'tblTempVendorCDR_20' ) start [2025-02-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441760', 'tblTempVendorCDR_20' ) end [2025-02-10 03:51:18] Production.INFO: ProcessCDR(1,14441760,1,1,2) [2025-02-10 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441760', 'tblTempUsageDetail_20' ) start [2025-02-10 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441760', 'tblTempUsageDetail_20' ) end [2025-02-10 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:51:21] Production.INFO: ==7729== Releasing lock... [2025-02-10 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 03:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:52:04 [end_date_ymd] => 2025-02-10 03:52:04 [RateCDR] => 1 ) [2025-02-10 03:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:52:04' and `end` < '2025-02-10 03:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:52:18] Production.INFO: count ==482 [2025-02-10 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:52:04 - End Time 2025-02-10 03:52:04 [2025-02-10 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441765', 'tblTempUsageDetail_20' ) start [2025-02-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441765', 'tblTempUsageDetail_20' ) end [2025-02-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441765', 'tblTempVendorCDR_20' ) start [2025-02-10 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441765', 'tblTempVendorCDR_20' ) end [2025-02-10 03:52:18] Production.INFO: ProcessCDR(1,14441765,1,1,2) [2025-02-10 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441765', 'tblTempUsageDetail_20' ) start [2025-02-10 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441765', 'tblTempUsageDetail_20' ) end [2025-02-10 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:52:21] Production.INFO: ==7806== Releasing lock... [2025-02-10 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:53:05 [end_date_ymd] => 2025-02-10 03:53:05 [RateCDR] => 1 ) [2025-02-10 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:53:05' and `end` < '2025-02-10 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:53:19] Production.INFO: count ==474 [2025-02-10 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 00:53:05 - End Time 2025-02-10 03:53:05 [2025-02-10 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441770', 'tblTempUsageDetail_20' ) start [2025-02-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441770', 'tblTempUsageDetail_20' ) end [2025-02-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441770', 'tblTempVendorCDR_20' ) start [2025-02-10 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441770', 'tblTempVendorCDR_20' ) end [2025-02-10 03:53:19] Production.INFO: ProcessCDR(1,14441770,1,1,2) [2025-02-10 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441770', 'tblTempUsageDetail_20' ) start [2025-02-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441770', 'tblTempUsageDetail_20' ) end [2025-02-10 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:53:22] Production.INFO: ==7894== Releasing lock... [2025-02-10 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:53:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:54:05 [end_date_ymd] => 2025-02-10 03:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:54:05' and `end` < '2025-02-10 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-10 03:54:18] Production.INFO: count ==466 [2025-02-10 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:54:05 - End Time 2025-02-10 03:54:05 [2025-02-10 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441775', 'tblTempUsageDetail_20' ) start [2025-02-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441775', 'tblTempUsageDetail_20' ) end [2025-02-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441775', 'tblTempVendorCDR_20' ) start [2025-02-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441775', 'tblTempVendorCDR_20' ) end [2025-02-10 03:54:18] Production.INFO: ProcessCDR(1,14441775,1,1,2) [2025-02-10 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441775', 'tblTempUsageDetail_20' ) start [2025-02-10 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441775', 'tblTempUsageDetail_20' ) end [2025-02-10 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:54:23] Production.INFO: ==7974== Releasing lock... [2025-02-10 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:54:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:55:05 [end_date_ymd] => 2025-02-10 03:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:55:05' and `end` < '2025-02-10 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-10 03:55:18] Production.INFO: count ==463 [2025-02-10 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:55:05 - End Time 2025-02-10 03:55:05 [2025-02-10 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441780', 'tblTempUsageDetail_20' ) start [2025-02-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441780', 'tblTempUsageDetail_20' ) end [2025-02-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441780', 'tblTempVendorCDR_20' ) start [2025-02-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441780', 'tblTempVendorCDR_20' ) end [2025-02-10 03:55:18] Production.INFO: ProcessCDR(1,14441780,1,1,2) [2025-02-10 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441780', 'tblTempUsageDetail_20' ) start [2025-02-10 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441780', 'tblTempUsageDetail_20' ) end [2025-02-10 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:55:23] Production.INFO: ==8049== Releasing lock... [2025-02-10 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:55:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:56:05 [end_date_ymd] => 2025-02-10 03:56:05 [RateCDR] => 1 ) [2025-02-10 03: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-10 00:56:05' and `end` < '2025-02-10 03: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-10 03:56:21] Production.INFO: count ==455 [2025-02-10 03:56:21] Production.ERROR: pbx CDR StartTime 2025-02-10 00:56:05 - End Time 2025-02-10 03:56:05 [2025-02-10 03:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441785', 'tblTempUsageDetail_20' ) start [2025-02-10 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441785', 'tblTempUsageDetail_20' ) end [2025-02-10 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441785', 'tblTempVendorCDR_20' ) start [2025-02-10 03:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441785', 'tblTempVendorCDR_20' ) end [2025-02-10 03:56:21] Production.INFO: ProcessCDR(1,14441785,1,1,2) [2025-02-10 03:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441785', 'tblTempUsageDetail_20' ) start [2025-02-10 03:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441785', 'tblTempUsageDetail_20' ) end [2025-02-10 03:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:56:25] Production.INFO: ==8173== Releasing lock... [2025-02-10 03:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:56:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 03:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:57:04 [end_date_ymd] => 2025-02-10 03:57:04 [RateCDR] => 1 ) [2025-02-10 03:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:57:04' and `end` < '2025-02-10 03:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:57:17] Production.INFO: count ==450 [2025-02-10 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-10 00:57:04 - End Time 2025-02-10 03:57:04 [2025-02-10 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441790', 'tblTempUsageDetail_20' ) start [2025-02-10 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441790', 'tblTempUsageDetail_20' ) end [2025-02-10 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441790', 'tblTempVendorCDR_20' ) start [2025-02-10 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441790', 'tblTempVendorCDR_20' ) end [2025-02-10 03:57:17] Production.INFO: ProcessCDR(1,14441790,1,1,2) [2025-02-10 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441790', 'tblTempUsageDetail_20' ) start [2025-02-10 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441790', 'tblTempUsageDetail_20' ) end [2025-02-10 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:57:20] Production.INFO: ==8254== Releasing lock... [2025-02-10 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:57:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:58:05 [end_date_ymd] => 2025-02-10 03:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 00:58:05' and `end` < '2025-02-10 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-10 03:58:18] Production.INFO: count ==440 [2025-02-10 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:58:05 - End Time 2025-02-10 03:58:05 [2025-02-10 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441795', 'tblTempUsageDetail_20' ) start [2025-02-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441795', 'tblTempUsageDetail_20' ) end [2025-02-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441795', 'tblTempVendorCDR_20' ) start [2025-02-10 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441795', 'tblTempVendorCDR_20' ) end [2025-02-10 03:58:18] Production.INFO: ProcessCDR(1,14441795,1,1,2) [2025-02-10 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441795', 'tblTempUsageDetail_20' ) start [2025-02-10 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441795', 'tblTempUsageDetail_20' ) end [2025-02-10 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:58:21] Production.INFO: ==8333== Releasing lock... [2025-02-10 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 00:59:04 [end_date_ymd] => 2025-02-10 03:59:04 [RateCDR] => 1 ) [2025-02-10 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 00:59:04' and `end` < '2025-02-10 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 03:59:18] Production.INFO: count ==430 [2025-02-10 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 00:59:04 - End Time 2025-02-10 03:59:04 [2025-02-10 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441800', 'tblTempUsageDetail_20' ) start [2025-02-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441800', 'tblTempUsageDetail_20' ) end [2025-02-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441800', 'tblTempVendorCDR_20' ) start [2025-02-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441800', 'tblTempVendorCDR_20' ) end [2025-02-10 03:59:18] Production.INFO: ProcessCDR(1,14441800,1,1,2) [2025-02-10 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441800', 'tblTempUsageDetail_20' ) start [2025-02-10 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441800', 'tblTempUsageDetail_20' ) end [2025-02-10 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 03:59:21] Production.INFO: ==8416== Releasing lock... [2025-02-10 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 03:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:00:06 [end_date_ymd] => 2025-02-10 04:00:06 [RateCDR] => 1 ) [2025-02-10 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:00:06' and `end` < '2025-02-10 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:00:18] Production.INFO: count ==419 [2025-02-10 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:00:06 - End Time 2025-02-10 04:00:06 [2025-02-10 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441806', 'tblTempUsageDetail_20' ) start [2025-02-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441806', 'tblTempUsageDetail_20' ) end [2025-02-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441806', 'tblTempVendorCDR_20' ) start [2025-02-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441806', 'tblTempVendorCDR_20' ) end [2025-02-10 04:00:19] Production.INFO: ProcessCDR(1,14441806,1,1,2) [2025-02-10 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441806', 'tblTempUsageDetail_20' ) start [2025-02-10 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441806', 'tblTempUsageDetail_20' ) end [2025-02-10 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:00:22] Production.INFO: ==8506== Releasing lock... [2025-02-10 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:01:04 [end_date_ymd] => 2025-02-10 04:01:04 [RateCDR] => 1 ) [2025-02-10 04: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-10 01:01:04' and `end` < '2025-02-10 04: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-10 04:01:17] Production.INFO: count ==384 [2025-02-10 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:01:04 - End Time 2025-02-10 04:01:04 [2025-02-10 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441811', 'tblTempUsageDetail_20' ) start [2025-02-10 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441811', 'tblTempUsageDetail_20' ) end [2025-02-10 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441811', 'tblTempVendorCDR_20' ) start [2025-02-10 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441811', 'tblTempVendorCDR_20' ) end [2025-02-10 04:01:17] Production.INFO: ProcessCDR(1,14441811,1,1,2) [2025-02-10 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441811', 'tblTempUsageDetail_20' ) start [2025-02-10 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441811', 'tblTempUsageDetail_20' ) end [2025-02-10 04:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:01:20] Production.INFO: ==8598== Releasing lock... [2025-02-10 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:01:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:02:05 [end_date_ymd] => 2025-02-10 04:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:02:05' and `end` < '2025-02-10 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-10 04:02:19] Production.INFO: count ==373 [2025-02-10 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:02:05 - End Time 2025-02-10 04:02:05 [2025-02-10 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441817', 'tblTempUsageDetail_20' ) start [2025-02-10 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441817', 'tblTempUsageDetail_20' ) end [2025-02-10 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441817', 'tblTempVendorCDR_20' ) start [2025-02-10 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441817', 'tblTempVendorCDR_20' ) end [2025-02-10 04:02:19] Production.INFO: ProcessCDR(1,14441817,1,1,2) [2025-02-10 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441817', 'tblTempUsageDetail_20' ) start [2025-02-10 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441817', 'tblTempUsageDetail_20' ) end [2025-02-10 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:02:22] Production.INFO: ==8681== Releasing lock... [2025-02-10 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:02:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:03:05 [end_date_ymd] => 2025-02-10 04:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:03:05' and `end` < '2025-02-10 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-10 04:03:18] Production.INFO: count ==362 [2025-02-10 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:03:05 - End Time 2025-02-10 04:03:05 [2025-02-10 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441822', 'tblTempUsageDetail_20' ) start [2025-02-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441822', 'tblTempUsageDetail_20' ) end [2025-02-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441822', 'tblTempVendorCDR_20' ) start [2025-02-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441822', 'tblTempVendorCDR_20' ) end [2025-02-10 04:03:18] Production.INFO: ProcessCDR(1,14441822,1,1,2) [2025-02-10 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441822', 'tblTempUsageDetail_20' ) start [2025-02-10 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441822', 'tblTempUsageDetail_20' ) end [2025-02-10 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:03:21] Production.INFO: ==8761== Releasing lock... [2025-02-10 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:03:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:04:05 [end_date_ymd] => 2025-02-10 04:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:04:05' and `end` < '2025-02-10 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-10 04:04:18] Production.INFO: count ==351 [2025-02-10 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:04:05 - End Time 2025-02-10 04:04:05 [2025-02-10 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441827', 'tblTempUsageDetail_20' ) start [2025-02-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441827', 'tblTempUsageDetail_20' ) end [2025-02-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441827', 'tblTempVendorCDR_20' ) start [2025-02-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441827', 'tblTempVendorCDR_20' ) end [2025-02-10 04:04:18] Production.INFO: ProcessCDR(1,14441827,1,1,2) [2025-02-10 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441827', 'tblTempUsageDetail_20' ) start [2025-02-10 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441827', 'tblTempUsageDetail_20' ) end [2025-02-10 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:04:21] Production.INFO: ==8843== Releasing lock... [2025-02-10 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:05:05 [end_date_ymd] => 2025-02-10 04:05:05 [RateCDR] => 1 ) [2025-02-10 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:05:05' and `end` < '2025-02-10 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:05:18] Production.INFO: count ==346 [2025-02-10 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:05:05 - End Time 2025-02-10 04:05:05 [2025-02-10 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441832', 'tblTempUsageDetail_20' ) start [2025-02-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441832', 'tblTempUsageDetail_20' ) end [2025-02-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441832', 'tblTempVendorCDR_20' ) start [2025-02-10 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441832', 'tblTempVendorCDR_20' ) end [2025-02-10 04:05:18] Production.INFO: ProcessCDR(1,14441832,1,1,2) [2025-02-10 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441832', 'tblTempUsageDetail_20' ) start [2025-02-10 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441832', 'tblTempUsageDetail_20' ) end [2025-02-10 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:05:22] Production.INFO: ==8933== Releasing lock... [2025-02-10 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:06:05 [end_date_ymd] => 2025-02-10 04:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:06:05' and `end` < '2025-02-10 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-10 04:06:18] Production.INFO: count ==345 [2025-02-10 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:06:05 - End Time 2025-02-10 04:06:05 [2025-02-10 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441837', 'tblTempUsageDetail_20' ) start [2025-02-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441837', 'tblTempUsageDetail_20' ) end [2025-02-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441837', 'tblTempVendorCDR_20' ) start [2025-02-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441837', 'tblTempVendorCDR_20' ) end [2025-02-10 04:06:18] Production.INFO: ProcessCDR(1,14441837,1,1,2) [2025-02-10 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441837', 'tblTempUsageDetail_20' ) start [2025-02-10 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441837', 'tblTempUsageDetail_20' ) end [2025-02-10 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:06:21] Production.INFO: ==9020== Releasing lock... [2025-02-10 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:07:05 [end_date_ymd] => 2025-02-10 04:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:07:05' and `end` < '2025-02-10 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-10 04:07:18] Production.INFO: count ==341 [2025-02-10 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:07:05 - End Time 2025-02-10 04:07:05 [2025-02-10 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441842', 'tblTempUsageDetail_20' ) start [2025-02-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441842', 'tblTempUsageDetail_20' ) end [2025-02-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441842', 'tblTempVendorCDR_20' ) start [2025-02-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441842', 'tblTempVendorCDR_20' ) end [2025-02-10 04:07:18] Production.INFO: ProcessCDR(1,14441842,1,1,2) [2025-02-10 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441842', 'tblTempUsageDetail_20' ) start [2025-02-10 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441842', 'tblTempUsageDetail_20' ) end [2025-02-10 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:07:21] Production.INFO: ==9108== Releasing lock... [2025-02-10 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:08:05 [end_date_ymd] => 2025-02-10 04:08:05 [RateCDR] => 1 ) [2025-02-10 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:08:05' and `end` < '2025-02-10 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:08:19] Production.INFO: count ==340 [2025-02-10 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:08:05 - End Time 2025-02-10 04:08:05 [2025-02-10 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441847', 'tblTempUsageDetail_20' ) start [2025-02-10 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441847', 'tblTempUsageDetail_20' ) end [2025-02-10 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441847', 'tblTempVendorCDR_20' ) start [2025-02-10 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441847', 'tblTempVendorCDR_20' ) end [2025-02-10 04:08:19] Production.INFO: ProcessCDR(1,14441847,1,1,2) [2025-02-10 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441847', 'tblTempUsageDetail_20' ) start [2025-02-10 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441847', 'tblTempUsageDetail_20' ) end [2025-02-10 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:08:22] Production.INFO: ==9190== Releasing lock... [2025-02-10 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:09:05 [end_date_ymd] => 2025-02-10 04:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:09:05' and `end` < '2025-02-10 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-10 04:09:17] Production.INFO: count ==340 [2025-02-10 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:09:05 - End Time 2025-02-10 04:09:05 [2025-02-10 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441852', 'tblTempUsageDetail_20' ) start [2025-02-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441852', 'tblTempUsageDetail_20' ) end [2025-02-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441852', 'tblTempVendorCDR_20' ) start [2025-02-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441852', 'tblTempVendorCDR_20' ) end [2025-02-10 04:09:17] Production.INFO: ProcessCDR(1,14441852,1,1,2) [2025-02-10 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441852', 'tblTempUsageDetail_20' ) start [2025-02-10 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441852', 'tblTempUsageDetail_20' ) end [2025-02-10 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:09:20] Production.INFO: ==9270== Releasing lock... [2025-02-10 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:10:06 [end_date_ymd] => 2025-02-10 04:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 01:10:06' and `end` < '2025-02-10 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-10 04:10:19] Production.INFO: count ==334 [2025-02-10 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:10:06 - End Time 2025-02-10 04:10:06 [2025-02-10 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441858', 'tblTempUsageDetail_20' ) start [2025-02-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441858', 'tblTempUsageDetail_20' ) end [2025-02-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441858', 'tblTempVendorCDR_20' ) start [2025-02-10 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441858', 'tblTempVendorCDR_20' ) end [2025-02-10 04:10:19] Production.INFO: ProcessCDR(1,14441858,1,1,2) [2025-02-10 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441858', 'tblTempUsageDetail_20' ) start [2025-02-10 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441858', 'tblTempUsageDetail_20' ) end [2025-02-10 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:10:22] Production.INFO: ==9351== Releasing lock... [2025-02-10 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:11:04 [end_date_ymd] => 2025-02-10 04:11:04 [RateCDR] => 1 ) [2025-02-10 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:11:04' and `end` < '2025-02-10 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:11:18] Production.INFO: count ==320 [2025-02-10 04:11:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:11:04 - End Time 2025-02-10 04:11:04 [2025-02-10 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441863', 'tblTempUsageDetail_20' ) start [2025-02-10 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441863', 'tblTempUsageDetail_20' ) end [2025-02-10 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441863', 'tblTempVendorCDR_20' ) start [2025-02-10 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441863', 'tblTempVendorCDR_20' ) end [2025-02-10 04:11:18] Production.INFO: ProcessCDR(1,14441863,1,1,2) [2025-02-10 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441863', 'tblTempUsageDetail_20' ) start [2025-02-10 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441863', 'tblTempUsageDetail_20' ) end [2025-02-10 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:11:21] Production.INFO: ==9437== Releasing lock... [2025-02-10 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:12:05 [end_date_ymd] => 2025-02-10 04:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:12:05' and `end` < '2025-02-10 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-10 04:12:18] Production.INFO: count ==319 [2025-02-10 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:12:05 - End Time 2025-02-10 04:12:05 [2025-02-10 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441868', 'tblTempUsageDetail_20' ) start [2025-02-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441868', 'tblTempUsageDetail_20' ) end [2025-02-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441868', 'tblTempVendorCDR_20' ) start [2025-02-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441868', 'tblTempVendorCDR_20' ) end [2025-02-10 04:12:18] Production.INFO: ProcessCDR(1,14441868,1,1,2) [2025-02-10 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441868', 'tblTempUsageDetail_20' ) start [2025-02-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441868', 'tblTempUsageDetail_20' ) end [2025-02-10 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:12:21] Production.INFO: ==9559== Releasing lock... [2025-02-10 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:13:04 [end_date_ymd] => 2025-02-10 04:13:04 [RateCDR] => 1 ) [2025-02-10 04:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:13:04' and `end` < '2025-02-10 04:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:13:17] Production.INFO: count ==319 [2025-02-10 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:13:04 - End Time 2025-02-10 04:13:04 [2025-02-10 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441873', 'tblTempUsageDetail_20' ) start [2025-02-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441873', 'tblTempUsageDetail_20' ) end [2025-02-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441873', 'tblTempVendorCDR_20' ) start [2025-02-10 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441873', 'tblTempVendorCDR_20' ) end [2025-02-10 04:13:17] Production.INFO: ProcessCDR(1,14441873,1,1,2) [2025-02-10 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441873', 'tblTempUsageDetail_20' ) start [2025-02-10 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441873', 'tblTempUsageDetail_20' ) end [2025-02-10 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:13:21] Production.INFO: ==9632== Releasing lock... [2025-02-10 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:14:05 [end_date_ymd] => 2025-02-10 04:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:14:05' and `end` < '2025-02-10 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-10 04:14:18] Production.INFO: count ==313 [2025-02-10 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:14:05 - End Time 2025-02-10 04:14:05 [2025-02-10 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441878', 'tblTempUsageDetail_20' ) start [2025-02-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441878', 'tblTempUsageDetail_20' ) end [2025-02-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441878', 'tblTempVendorCDR_20' ) start [2025-02-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441878', 'tblTempVendorCDR_20' ) end [2025-02-10 04:14:18] Production.INFO: ProcessCDR(1,14441878,1,1,2) [2025-02-10 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441878', 'tblTempUsageDetail_20' ) start [2025-02-10 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441878', 'tblTempUsageDetail_20' ) end [2025-02-10 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:14:21] Production.INFO: ==9714== Releasing lock... [2025-02-10 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:15:05 [end_date_ymd] => 2025-02-10 04:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:15:05' and `end` < '2025-02-10 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-10 04:15:18] Production.INFO: count ==313 [2025-02-10 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:15:05 - End Time 2025-02-10 04:15:05 [2025-02-10 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441883', 'tblTempUsageDetail_20' ) start [2025-02-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441883', 'tblTempUsageDetail_20' ) end [2025-02-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441883', 'tblTempVendorCDR_20' ) start [2025-02-10 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441883', 'tblTempVendorCDR_20' ) end [2025-02-10 04:15:18] Production.INFO: ProcessCDR(1,14441883,1,1,2) [2025-02-10 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441883', 'tblTempUsageDetail_20' ) start [2025-02-10 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441883', 'tblTempUsageDetail_20' ) end [2025-02-10 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:15:21] Production.INFO: ==9794== Releasing lock... [2025-02-10 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:16:05 [end_date_ymd] => 2025-02-10 04:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:16:05' and `end` < '2025-02-10 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-10 04:16:18] Production.INFO: count ==313 [2025-02-10 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:16:05 - End Time 2025-02-10 04:16:05 [2025-02-10 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441888', 'tblTempUsageDetail_20' ) start [2025-02-10 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441888', 'tblTempUsageDetail_20' ) end [2025-02-10 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441888', 'tblTempVendorCDR_20' ) start [2025-02-10 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441888', 'tblTempVendorCDR_20' ) end [2025-02-10 04:16:18] Production.INFO: ProcessCDR(1,14441888,1,1,2) [2025-02-10 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441888', 'tblTempUsageDetail_20' ) start [2025-02-10 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441888', 'tblTempUsageDetail_20' ) end [2025-02-10 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:16:21] Production.INFO: ==9874== Releasing lock... [2025-02-10 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:17:05 [end_date_ymd] => 2025-02-10 04:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:17:05' and `end` < '2025-02-10 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-10 04:17:19] Production.INFO: count ==313 [2025-02-10 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:17:05 - End Time 2025-02-10 04:17:05 [2025-02-10 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441893', 'tblTempUsageDetail_20' ) start [2025-02-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441893', 'tblTempUsageDetail_20' ) end [2025-02-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441893', 'tblTempVendorCDR_20' ) start [2025-02-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441893', 'tblTempVendorCDR_20' ) end [2025-02-10 04:17:19] Production.INFO: ProcessCDR(1,14441893,1,1,2) [2025-02-10 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441893', 'tblTempUsageDetail_20' ) start [2025-02-10 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441893', 'tblTempUsageDetail_20' ) end [2025-02-10 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:17:22] Production.INFO: ==9955== Releasing lock... [2025-02-10 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:18:04 [end_date_ymd] => 2025-02-10 04:18:04 [RateCDR] => 1 ) [2025-02-10 04: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-10 01:18:04' and `end` < '2025-02-10 04: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-10 04:18:17] Production.INFO: count ==313 [2025-02-10 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:18:04 - End Time 2025-02-10 04:18:04 [2025-02-10 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441898', 'tblTempUsageDetail_20' ) start [2025-02-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441898', 'tblTempUsageDetail_20' ) end [2025-02-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441898', 'tblTempVendorCDR_20' ) start [2025-02-10 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441898', 'tblTempVendorCDR_20' ) end [2025-02-10 04:18:17] Production.INFO: ProcessCDR(1,14441898,1,1,2) [2025-02-10 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441898', 'tblTempUsageDetail_20' ) start [2025-02-10 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441898', 'tblTempUsageDetail_20' ) end [2025-02-10 04:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:18:20] Production.INFO: ==10047== Releasing lock... [2025-02-10 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:18:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:19:05 [end_date_ymd] => 2025-02-10 04:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:19:05' and `end` < '2025-02-10 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-10 04:19:19] Production.INFO: count ==313 [2025-02-10 04:19:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:19:05 - End Time 2025-02-10 04:19:05 [2025-02-10 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441903', 'tblTempUsageDetail_20' ) start [2025-02-10 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441903', 'tblTempUsageDetail_20' ) end [2025-02-10 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441903', 'tblTempVendorCDR_20' ) start [2025-02-10 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441903', 'tblTempVendorCDR_20' ) end [2025-02-10 04:19:19] Production.INFO: ProcessCDR(1,14441903,1,1,2) [2025-02-10 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441903', 'tblTempUsageDetail_20' ) start [2025-02-10 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441903', 'tblTempUsageDetail_20' ) end [2025-02-10 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:19:22] Production.INFO: ==10123== Releasing lock... [2025-02-10 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:20:05 [end_date_ymd] => 2025-02-10 04:20:05 [RateCDR] => 1 ) [2025-02-10 04:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:20:05' and `end` < '2025-02-10 04:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:20:18] Production.INFO: count ==313 [2025-02-10 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:20:05 - End Time 2025-02-10 04:20:05 [2025-02-10 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441909', 'tblTempUsageDetail_20' ) start [2025-02-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441909', 'tblTempUsageDetail_20' ) end [2025-02-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441909', 'tblTempVendorCDR_20' ) start [2025-02-10 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441909', 'tblTempVendorCDR_20' ) end [2025-02-10 04:20:18] Production.INFO: ProcessCDR(1,14441909,1,1,2) [2025-02-10 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441909', 'tblTempUsageDetail_20' ) start [2025-02-10 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441909', 'tblTempUsageDetail_20' ) end [2025-02-10 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:20:21] Production.INFO: ==10207== Releasing lock... [2025-02-10 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:21:04 [end_date_ymd] => 2025-02-10 04:21:04 [RateCDR] => 1 ) [2025-02-10 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:21:04' and `end` < '2025-02-10 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:21:18] Production.INFO: count ==313 [2025-02-10 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:21:04 - End Time 2025-02-10 04:21:04 [2025-02-10 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441914', 'tblTempUsageDetail_20' ) start [2025-02-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441914', 'tblTempUsageDetail_20' ) end [2025-02-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441914', 'tblTempVendorCDR_20' ) start [2025-02-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441914', 'tblTempVendorCDR_20' ) end [2025-02-10 04:21:18] Production.INFO: ProcessCDR(1,14441914,1,1,2) [2025-02-10 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441914', 'tblTempUsageDetail_20' ) start [2025-02-10 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441914', 'tblTempUsageDetail_20' ) end [2025-02-10 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:21:21] Production.INFO: ==10295== Releasing lock... [2025-02-10 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:22:05 [end_date_ymd] => 2025-02-10 04:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:22:05' and `end` < '2025-02-10 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-10 04:22:18] Production.INFO: count ==313 [2025-02-10 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:22:05 - End Time 2025-02-10 04:22:05 [2025-02-10 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441919', 'tblTempUsageDetail_20' ) start [2025-02-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441919', 'tblTempUsageDetail_20' ) end [2025-02-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441919', 'tblTempVendorCDR_20' ) start [2025-02-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441919', 'tblTempVendorCDR_20' ) end [2025-02-10 04:22:18] Production.INFO: ProcessCDR(1,14441919,1,1,2) [2025-02-10 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441919', 'tblTempUsageDetail_20' ) start [2025-02-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441919', 'tblTempUsageDetail_20' ) end [2025-02-10 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:22:21] Production.INFO: ==10382== Releasing lock... [2025-02-10 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:23:05 [end_date_ymd] => 2025-02-10 04:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:23:05' and `end` < '2025-02-10 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-10 04:23:18] Production.INFO: count ==313 [2025-02-10 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:23:05 - End Time 2025-02-10 04:23:05 [2025-02-10 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441924', 'tblTempUsageDetail_20' ) start [2025-02-10 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441924', 'tblTempUsageDetail_20' ) end [2025-02-10 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441924', 'tblTempVendorCDR_20' ) start [2025-02-10 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441924', 'tblTempVendorCDR_20' ) end [2025-02-10 04:23:18] Production.INFO: ProcessCDR(1,14441924,1,1,2) [2025-02-10 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441924', 'tblTempUsageDetail_20' ) start [2025-02-10 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441924', 'tblTempUsageDetail_20' ) end [2025-02-10 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:23:21] Production.INFO: ==10461== Releasing lock... [2025-02-10 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:24:05 [end_date_ymd] => 2025-02-10 04:24:05 [RateCDR] => 1 ) [2025-02-10 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:24:05' and `end` < '2025-02-10 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:24:19] Production.INFO: count ==313 [2025-02-10 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:24:05 - End Time 2025-02-10 04:24:05 [2025-02-10 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441929', 'tblTempUsageDetail_20' ) start [2025-02-10 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441929', 'tblTempUsageDetail_20' ) end [2025-02-10 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441929', 'tblTempVendorCDR_20' ) start [2025-02-10 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441929', 'tblTempVendorCDR_20' ) end [2025-02-10 04:24:19] Production.INFO: ProcessCDR(1,14441929,1,1,2) [2025-02-10 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441929', 'tblTempUsageDetail_20' ) start [2025-02-10 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441929', 'tblTempUsageDetail_20' ) end [2025-02-10 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:24:22] Production.INFO: ==10545== Releasing lock... [2025-02-10 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:25:05 [end_date_ymd] => 2025-02-10 04:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:25:05' and `end` < '2025-02-10 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-10 04:25:17] Production.INFO: count ==313 [2025-02-10 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:25:05 - End Time 2025-02-10 04:25:05 [2025-02-10 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441934', 'tblTempUsageDetail_20' ) start [2025-02-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441934', 'tblTempUsageDetail_20' ) end [2025-02-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441934', 'tblTempVendorCDR_20' ) start [2025-02-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441934', 'tblTempVendorCDR_20' ) end [2025-02-10 04:25:17] Production.INFO: ProcessCDR(1,14441934,1,1,2) [2025-02-10 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441934', 'tblTempUsageDetail_20' ) start [2025-02-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441934', 'tblTempUsageDetail_20' ) end [2025-02-10 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:25:21] Production.INFO: ==10629== Releasing lock... [2025-02-10 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:26:04 [end_date_ymd] => 2025-02-10 04:26:04 [RateCDR] => 1 ) [2025-02-10 04: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-10 01:26:04' and `end` < '2025-02-10 04: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-10 04:26:18] Production.INFO: count ==313 [2025-02-10 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:26:04 - End Time 2025-02-10 04:26:04 [2025-02-10 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441935', 'tblTempUsageDetail_20' ) start [2025-02-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441935', 'tblTempUsageDetail_20' ) end [2025-02-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441935', 'tblTempVendorCDR_20' ) start [2025-02-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441935', 'tblTempVendorCDR_20' ) end [2025-02-10 04:26:18] Production.INFO: ProcessCDR(1,14441935,1,1,2) [2025-02-10 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441935', 'tblTempUsageDetail_20' ) start [2025-02-10 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441935', 'tblTempUsageDetail_20' ) end [2025-02-10 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:26:21] Production.INFO: ==10712== Releasing lock... [2025-02-10 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:27:05 [end_date_ymd] => 2025-02-10 04:27:05 [RateCDR] => 1 ) [2025-02-10 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:27:05' and `end` < '2025-02-10 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:27:18] Production.INFO: count ==313 [2025-02-10 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:27:05 - End Time 2025-02-10 04:27:05 [2025-02-10 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441944', 'tblTempUsageDetail_20' ) start [2025-02-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441944', 'tblTempUsageDetail_20' ) end [2025-02-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441944', 'tblTempVendorCDR_20' ) start [2025-02-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441944', 'tblTempVendorCDR_20' ) end [2025-02-10 04:27:18] Production.INFO: ProcessCDR(1,14441944,1,1,2) [2025-02-10 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441944', 'tblTempUsageDetail_20' ) start [2025-02-10 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441944', 'tblTempUsageDetail_20' ) end [2025-02-10 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:27:21] Production.INFO: ==10836== Releasing lock... [2025-02-10 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:28:05 [end_date_ymd] => 2025-02-10 04:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:28:05' and `end` < '2025-02-10 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-10 04:28:17] Production.INFO: count ==313 [2025-02-10 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:28:05 - End Time 2025-02-10 04:28:05 [2025-02-10 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441949', 'tblTempUsageDetail_20' ) start [2025-02-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441949', 'tblTempUsageDetail_20' ) end [2025-02-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441949', 'tblTempVendorCDR_20' ) start [2025-02-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441949', 'tblTempVendorCDR_20' ) end [2025-02-10 04:28:18] Production.INFO: ProcessCDR(1,14441949,1,1,2) [2025-02-10 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441949', 'tblTempUsageDetail_20' ) start [2025-02-10 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441949', 'tblTempUsageDetail_20' ) end [2025-02-10 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:28:21] Production.INFO: ==10917== Releasing lock... [2025-02-10 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:29:06 [end_date_ymd] => 2025-02-10 04:29:06 [RateCDR] => 1 ) [2025-02-10 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:29:06' and `end` < '2025-02-10 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:29:18] Production.INFO: count ==313 [2025-02-10 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:29:06 - End Time 2025-02-10 04:29:06 [2025-02-10 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441954', 'tblTempUsageDetail_20' ) start [2025-02-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441954', 'tblTempUsageDetail_20' ) end [2025-02-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441954', 'tblTempVendorCDR_20' ) start [2025-02-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441954', 'tblTempVendorCDR_20' ) end [2025-02-10 04:29:18] Production.INFO: ProcessCDR(1,14441954,1,1,2) [2025-02-10 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441954', 'tblTempUsageDetail_20' ) start [2025-02-10 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441954', 'tblTempUsageDetail_20' ) end [2025-02-10 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:29:22] Production.INFO: ==11026== Releasing lock... [2025-02-10 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:30:05 [end_date_ymd] => 2025-02-10 04:30:05 [RateCDR] => 1 ) [2025-02-10 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:30:05' and `end` < '2025-02-10 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:30:18] Production.INFO: count ==313 [2025-02-10 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:30:05 - End Time 2025-02-10 04:30:05 [2025-02-10 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441959', 'tblTempUsageDetail_20' ) start [2025-02-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441959', 'tblTempUsageDetail_20' ) end [2025-02-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441959', 'tblTempVendorCDR_20' ) start [2025-02-10 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441959', 'tblTempVendorCDR_20' ) end [2025-02-10 04:30:18] Production.INFO: ProcessCDR(1,14441959,1,1,2) [2025-02-10 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441959', 'tblTempUsageDetail_20' ) start [2025-02-10 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441959', 'tblTempUsageDetail_20' ) end [2025-02-10 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:30:21] Production.INFO: ==11128== Releasing lock... [2025-02-10 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:31:05 [end_date_ymd] => 2025-02-10 04:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:31:05' and `end` < '2025-02-10 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-10 04:31:20] Production.INFO: count ==312 [2025-02-10 04:31:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:31:05 - End Time 2025-02-10 04:31:05 [2025-02-10 04:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441966', 'tblTempUsageDetail_20' ) start [2025-02-10 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441966', 'tblTempUsageDetail_20' ) end [2025-02-10 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441966', 'tblTempVendorCDR_20' ) start [2025-02-10 04:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441966', 'tblTempVendorCDR_20' ) end [2025-02-10 04:31:20] Production.INFO: ProcessCDR(1,14441966,1,1,2) [2025-02-10 04:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441966', 'tblTempUsageDetail_20' ) start [2025-02-10 04:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441966', 'tblTempUsageDetail_20' ) end [2025-02-10 04:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:31:24] Production.INFO: ==11243== Releasing lock... [2025-02-10 04:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:31:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:32:04 [end_date_ymd] => 2025-02-10 04:32:04 [RateCDR] => 1 ) [2025-02-10 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:32:04' and `end` < '2025-02-10 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:32:17] Production.INFO: count ==312 [2025-02-10 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:32:04 - End Time 2025-02-10 04:32:04 [2025-02-10 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441971', 'tblTempUsageDetail_20' ) start [2025-02-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441971', 'tblTempUsageDetail_20' ) end [2025-02-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441971', 'tblTempVendorCDR_20' ) start [2025-02-10 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441971', 'tblTempVendorCDR_20' ) end [2025-02-10 04:32:17] Production.INFO: ProcessCDR(1,14441971,1,1,2) [2025-02-10 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441971', 'tblTempUsageDetail_20' ) start [2025-02-10 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441971', 'tblTempUsageDetail_20' ) end [2025-02-10 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:32:20] Production.INFO: ==11447== Releasing lock... [2025-02-10 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:33:05 [end_date_ymd] => 2025-02-10 04:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:33:05' and `end` < '2025-02-10 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-10 04:33:18] Production.INFO: count ==312 [2025-02-10 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:33:05 - End Time 2025-02-10 04:33:05 [2025-02-10 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441976', 'tblTempUsageDetail_20' ) start [2025-02-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441976', 'tblTempUsageDetail_20' ) end [2025-02-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441976', 'tblTempVendorCDR_20' ) start [2025-02-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441976', 'tblTempVendorCDR_20' ) end [2025-02-10 04:33:18] Production.INFO: ProcessCDR(1,14441976,1,1,2) [2025-02-10 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441976', 'tblTempUsageDetail_20' ) start [2025-02-10 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441976', 'tblTempUsageDetail_20' ) end [2025-02-10 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:33:21] Production.INFO: ==11555== Releasing lock... [2025-02-10 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:34:05 [end_date_ymd] => 2025-02-10 04:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:34:05' and `end` < '2025-02-10 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-10 04:34:18] Production.INFO: count ==312 [2025-02-10 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:34:05 - End Time 2025-02-10 04:34:05 [2025-02-10 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441981', 'tblTempUsageDetail_20' ) start [2025-02-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441981', 'tblTempUsageDetail_20' ) end [2025-02-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441981', 'tblTempVendorCDR_20' ) start [2025-02-10 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441981', 'tblTempVendorCDR_20' ) end [2025-02-10 04:34:18] Production.INFO: ProcessCDR(1,14441981,1,1,2) [2025-02-10 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441981', 'tblTempUsageDetail_20' ) start [2025-02-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441981', 'tblTempUsageDetail_20' ) end [2025-02-10 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:34:21] Production.INFO: ==11670== Releasing lock... [2025-02-10 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:35:05 [end_date_ymd] => 2025-02-10 04:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:35:05' and `end` < '2025-02-10 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-10 04:35:18] Production.INFO: count ==312 [2025-02-10 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:35:05 - End Time 2025-02-10 04:35:05 [2025-02-10 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441986', 'tblTempUsageDetail_20' ) start [2025-02-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441986', 'tblTempUsageDetail_20' ) end [2025-02-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441986', 'tblTempVendorCDR_20' ) start [2025-02-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441986', 'tblTempVendorCDR_20' ) end [2025-02-10 04:35:18] Production.INFO: ProcessCDR(1,14441986,1,1,2) [2025-02-10 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441986', 'tblTempUsageDetail_20' ) start [2025-02-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441986', 'tblTempUsageDetail_20' ) end [2025-02-10 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:35:21] Production.INFO: ==11771== Releasing lock... [2025-02-10 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:36:05 [end_date_ymd] => 2025-02-10 04:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:36:05' and `end` < '2025-02-10 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-10 04:36:18] Production.INFO: count ==312 [2025-02-10 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:36:05 - End Time 2025-02-10 04:36:05 [2025-02-10 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441991', 'tblTempUsageDetail_20' ) start [2025-02-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441991', 'tblTempUsageDetail_20' ) end [2025-02-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441991', 'tblTempVendorCDR_20' ) start [2025-02-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441991', 'tblTempVendorCDR_20' ) end [2025-02-10 04:36:18] Production.INFO: ProcessCDR(1,14441991,1,1,2) [2025-02-10 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441991', 'tblTempUsageDetail_20' ) start [2025-02-10 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441991', 'tblTempUsageDetail_20' ) end [2025-02-10 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:36:21] Production.INFO: ==11881== Releasing lock... [2025-02-10 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:37:05 [end_date_ymd] => 2025-02-10 04:37:05 [RateCDR] => 1 ) [2025-02-10 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:37:05' and `end` < '2025-02-10 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:37:18] Production.INFO: count ==312 [2025-02-10 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:37:05 - End Time 2025-02-10 04:37:05 [2025-02-10 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441996', 'tblTempUsageDetail_20' ) start [2025-02-10 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14441996', 'tblTempUsageDetail_20' ) end [2025-02-10 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441996', 'tblTempVendorCDR_20' ) start [2025-02-10 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14441996', 'tblTempVendorCDR_20' ) end [2025-02-10 04:37:19] Production.INFO: ProcessCDR(1,14441996,1,1,2) [2025-02-10 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14441996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14441996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14441996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14441996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441996', 'tblTempUsageDetail_20' ) start [2025-02-10 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14441996', 'tblTempUsageDetail_20' ) end [2025-02-10 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:37:21] Production.INFO: ==11988== Releasing lock... [2025-02-10 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:38:06 [end_date_ymd] => 2025-02-10 04:38:06 [RateCDR] => 1 ) [2025-02-10 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:38:06' and `end` < '2025-02-10 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:38:20] Production.INFO: count ==312 [2025-02-10 04:38:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:38:06 - End Time 2025-02-10 04:38:06 [2025-02-10 04:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442001', 'tblTempUsageDetail_20' ) start [2025-02-10 04:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442001', 'tblTempUsageDetail_20' ) end [2025-02-10 04:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442001', 'tblTempVendorCDR_20' ) start [2025-02-10 04:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442001', 'tblTempVendorCDR_20' ) end [2025-02-10 04:38:20] Production.INFO: ProcessCDR(1,14442001,1,1,2) [2025-02-10 04:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442001', 'tblTempUsageDetail_20' ) start [2025-02-10 04:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442001', 'tblTempUsageDetail_20' ) end [2025-02-10 04:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:38:23] Production.INFO: ==12098== Releasing lock... [2025-02-10 04:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:38:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:39:05 [end_date_ymd] => 2025-02-10 04:39:05 [RateCDR] => 1 ) [2025-02-10 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:39:05' and `end` < '2025-02-10 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:39:18] Production.INFO: count ==310 [2025-02-10 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:39:05 - End Time 2025-02-10 04:39:05 [2025-02-10 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442006', 'tblTempUsageDetail_20' ) start [2025-02-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442006', 'tblTempUsageDetail_20' ) end [2025-02-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442006', 'tblTempVendorCDR_20' ) start [2025-02-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442006', 'tblTempVendorCDR_20' ) end [2025-02-10 04:39:18] Production.INFO: ProcessCDR(1,14442006,1,1,2) [2025-02-10 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442006', 'tblTempUsageDetail_20' ) start [2025-02-10 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442006', 'tblTempUsageDetail_20' ) end [2025-02-10 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:39:21] Production.INFO: ==12203== Releasing lock... [2025-02-10 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:39:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:40:06 [end_date_ymd] => 2025-02-10 04:40:06 [RateCDR] => 1 ) [2025-02-10 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:40:06' and `end` < '2025-02-10 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:40:19] Production.INFO: count ==304 [2025-02-10 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:40:06 - End Time 2025-02-10 04:40:06 [2025-02-10 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442012', 'tblTempUsageDetail_20' ) start [2025-02-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442012', 'tblTempUsageDetail_20' ) end [2025-02-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442012', 'tblTempVendorCDR_20' ) start [2025-02-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442012', 'tblTempVendorCDR_20' ) end [2025-02-10 04:40:19] Production.INFO: ProcessCDR(1,14442012,1,1,2) [2025-02-10 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442012', 'tblTempUsageDetail_20' ) start [2025-02-10 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442012', 'tblTempUsageDetail_20' ) end [2025-02-10 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:40:22] Production.INFO: ==12320== Releasing lock... [2025-02-10 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:41:05 [end_date_ymd] => 2025-02-10 04:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:41:05' and `end` < '2025-02-10 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-10 04:41:18] Production.INFO: count ==293 [2025-02-10 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:41:05 - End Time 2025-02-10 04:41:05 [2025-02-10 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442017', 'tblTempUsageDetail_20' ) start [2025-02-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442017', 'tblTempUsageDetail_20' ) end [2025-02-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442017', 'tblTempVendorCDR_20' ) start [2025-02-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442017', 'tblTempVendorCDR_20' ) end [2025-02-10 04:41:18] Production.INFO: ProcessCDR(1,14442017,1,1,2) [2025-02-10 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442017', 'tblTempUsageDetail_20' ) start [2025-02-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442017', 'tblTempUsageDetail_20' ) end [2025-02-10 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:41:21] Production.INFO: ==12464== Releasing lock... [2025-02-10 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:42:05 [end_date_ymd] => 2025-02-10 04:42:05 [RateCDR] => 1 ) [2025-02-10 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:42:05' and `end` < '2025-02-10 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:42:18] Production.INFO: count ==293 [2025-02-10 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:42:05 - End Time 2025-02-10 04:42:05 [2025-02-10 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442022', 'tblTempUsageDetail_20' ) start [2025-02-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442022', 'tblTempUsageDetail_20' ) end [2025-02-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442022', 'tblTempVendorCDR_20' ) start [2025-02-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442022', 'tblTempVendorCDR_20' ) end [2025-02-10 04:42:18] Production.INFO: ProcessCDR(1,14442022,1,1,2) [2025-02-10 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442022', 'tblTempUsageDetail_20' ) start [2025-02-10 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442022', 'tblTempUsageDetail_20' ) end [2025-02-10 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:42:21] Production.INFO: ==12599== Releasing lock... [2025-02-10 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:43:04 [end_date_ymd] => 2025-02-10 04:43:04 [RateCDR] => 1 ) [2025-02-10 04:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:43:04' and `end` < '2025-02-10 04:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:43:17] Production.INFO: count ==293 [2025-02-10 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-10 01:43:04 - End Time 2025-02-10 04:43:04 [2025-02-10 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442027', 'tblTempUsageDetail_20' ) start [2025-02-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442027', 'tblTempUsageDetail_20' ) end [2025-02-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442027', 'tblTempVendorCDR_20' ) start [2025-02-10 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442027', 'tblTempVendorCDR_20' ) end [2025-02-10 04:43:17] Production.INFO: ProcessCDR(1,14442027,1,1,2) [2025-02-10 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442027', 'tblTempUsageDetail_20' ) start [2025-02-10 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442027', 'tblTempUsageDetail_20' ) end [2025-02-10 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:43:20] Production.INFO: ==12770== Releasing lock... [2025-02-10 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:43:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:44:05 [end_date_ymd] => 2025-02-10 04:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:44:05' and `end` < '2025-02-10 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-10 04:44:18] Production.INFO: count ==293 [2025-02-10 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:44:05 - End Time 2025-02-10 04:44:05 [2025-02-10 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442032', 'tblTempUsageDetail_20' ) start [2025-02-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442032', 'tblTempUsageDetail_20' ) end [2025-02-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442032', 'tblTempVendorCDR_20' ) start [2025-02-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442032', 'tblTempVendorCDR_20' ) end [2025-02-10 04:44:18] Production.INFO: ProcessCDR(1,14442032,1,1,2) [2025-02-10 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442032', 'tblTempUsageDetail_20' ) start [2025-02-10 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442032', 'tblTempUsageDetail_20' ) end [2025-02-10 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:44:21] Production.INFO: ==12921== Releasing lock... [2025-02-10 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:45:05 [end_date_ymd] => 2025-02-10 04:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:45:05' and `end` < '2025-02-10 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-10 04:45:18] Production.INFO: count ==293 [2025-02-10 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:45:05 - End Time 2025-02-10 04:45:05 [2025-02-10 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442037', 'tblTempUsageDetail_20' ) start [2025-02-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442037', 'tblTempUsageDetail_20' ) end [2025-02-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442037', 'tblTempVendorCDR_20' ) start [2025-02-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442037', 'tblTempVendorCDR_20' ) end [2025-02-10 04:45:18] Production.INFO: ProcessCDR(1,14442037,1,1,2) [2025-02-10 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442037', 'tblTempUsageDetail_20' ) start [2025-02-10 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442037', 'tblTempUsageDetail_20' ) end [2025-02-10 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:45:21] Production.INFO: ==13058== Releasing lock... [2025-02-10 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:46:05 [end_date_ymd] => 2025-02-10 04:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:46:05' and `end` < '2025-02-10 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-10 04:46:22] Production.INFO: count ==293 [2025-02-10 04:46:22] Production.ERROR: pbx CDR StartTime 2025-02-10 01:46:05 - End Time 2025-02-10 04:46:05 [2025-02-10 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442042', 'tblTempUsageDetail_20' ) start [2025-02-10 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442042', 'tblTempUsageDetail_20' ) end [2025-02-10 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442042', 'tblTempVendorCDR_20' ) start [2025-02-10 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442042', 'tblTempVendorCDR_20' ) end [2025-02-10 04:46:22] Production.INFO: ProcessCDR(1,14442042,1,1,2) [2025-02-10 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442042', 'tblTempUsageDetail_20' ) start [2025-02-10 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442042', 'tblTempUsageDetail_20' ) end [2025-02-10 04:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:46:25] Production.INFO: ==13198== Releasing lock... [2025-02-10 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:46:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:47:05 [end_date_ymd] => 2025-02-10 04:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:47:05' and `end` < '2025-02-10 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-10 04:47:21] Production.INFO: count ==294 [2025-02-10 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-10 01:47:05 - End Time 2025-02-10 04:47:05 [2025-02-10 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442047', 'tblTempUsageDetail_20' ) start [2025-02-10 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442047', 'tblTempUsageDetail_20' ) end [2025-02-10 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442047', 'tblTempVendorCDR_20' ) start [2025-02-10 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442047', 'tblTempVendorCDR_20' ) end [2025-02-10 04:47:21] Production.INFO: ProcessCDR(1,14442047,1,1,2) [2025-02-10 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442047', 'tblTempUsageDetail_20' ) start [2025-02-10 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442047', 'tblTempUsageDetail_20' ) end [2025-02-10 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:47:25] Production.INFO: ==13347== Releasing lock... [2025-02-10 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:47:25] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:48:05 [end_date_ymd] => 2025-02-10 04:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:48:05' and `end` < '2025-02-10 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-10 04:48:19] Production.INFO: count ==291 [2025-02-10 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:48:05 - End Time 2025-02-10 04:48:05 [2025-02-10 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442052', 'tblTempUsageDetail_20' ) start [2025-02-10 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442052', 'tblTempUsageDetail_20' ) end [2025-02-10 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442052', 'tblTempVendorCDR_20' ) start [2025-02-10 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442052', 'tblTempVendorCDR_20' ) end [2025-02-10 04:48:19] Production.INFO: ProcessCDR(1,14442052,1,1,2) [2025-02-10 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442052', 'tblTempUsageDetail_20' ) start [2025-02-10 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442052', 'tblTempUsageDetail_20' ) end [2025-02-10 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:48:22] Production.INFO: ==13477== Releasing lock... [2025-02-10 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:49:04 [end_date_ymd] => 2025-02-10 04:49:04 [RateCDR] => 1 ) [2025-02-10 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:49:04' and `end` < '2025-02-10 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:49:18] Production.INFO: count ==291 [2025-02-10 04:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:49:04 - End Time 2025-02-10 04:49:04 [2025-02-10 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442057', 'tblTempUsageDetail_20' ) start [2025-02-10 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442057', 'tblTempUsageDetail_20' ) end [2025-02-10 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442057', 'tblTempVendorCDR_20' ) start [2025-02-10 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442057', 'tblTempVendorCDR_20' ) end [2025-02-10 04:49:18] Production.INFO: ProcessCDR(1,14442057,1,1,2) [2025-02-10 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442057', 'tblTempUsageDetail_20' ) start [2025-02-10 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442057', 'tblTempUsageDetail_20' ) end [2025-02-10 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:49:21] Production.INFO: ==13587== Releasing lock... [2025-02-10 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:49:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:50:06 [end_date_ymd] => 2025-02-10 04:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 01:50:06' and `end` < '2025-02-10 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-10 04:50:20] Production.INFO: count ==283 [2025-02-10 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:50:06 - End Time 2025-02-10 04:50:06 [2025-02-10 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442063', 'tblTempUsageDetail_20' ) start [2025-02-10 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442063', 'tblTempUsageDetail_20' ) end [2025-02-10 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442063', 'tblTempVendorCDR_20' ) start [2025-02-10 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442063', 'tblTempVendorCDR_20' ) end [2025-02-10 04:50:20] Production.INFO: ProcessCDR(1,14442063,1,1,2) [2025-02-10 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442063', 'tblTempUsageDetail_20' ) start [2025-02-10 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442063', 'tblTempUsageDetail_20' ) end [2025-02-10 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:50:23] Production.INFO: ==13699== Releasing lock... [2025-02-10 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:50:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:51:04 [end_date_ymd] => 2025-02-10 04:51:04 [RateCDR] => 1 ) [2025-02-10 04: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-10 01:51:04' and `end` < '2025-02-10 04: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-10 04:51:20] Production.INFO: count ==260 [2025-02-10 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:51:04 - End Time 2025-02-10 04:51:04 [2025-02-10 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442068', 'tblTempUsageDetail_20' ) start [2025-02-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442068', 'tblTempUsageDetail_20' ) end [2025-02-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442068', 'tblTempVendorCDR_20' ) start [2025-02-10 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442068', 'tblTempVendorCDR_20' ) end [2025-02-10 04:51:20] Production.INFO: ProcessCDR(1,14442068,1,1,2) [2025-02-10 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442068', 'tblTempUsageDetail_20' ) start [2025-02-10 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442068', 'tblTempUsageDetail_20' ) end [2025-02-10 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:51:23] Production.INFO: ==13814== Releasing lock... [2025-02-10 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:51:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:52:05 [end_date_ymd] => 2025-02-10 04:52:05 [RateCDR] => 1 ) [2025-02-10 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:52:05' and `end` < '2025-02-10 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:52:18] Production.INFO: count ==260 [2025-02-10 04:52:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:52:05 - End Time 2025-02-10 04:52:05 [2025-02-10 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442073', 'tblTempUsageDetail_20' ) start [2025-02-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442073', 'tblTempUsageDetail_20' ) end [2025-02-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442073', 'tblTempVendorCDR_20' ) start [2025-02-10 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442073', 'tblTempVendorCDR_20' ) end [2025-02-10 04:52:18] Production.INFO: ProcessCDR(1,14442073,1,1,2) [2025-02-10 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442073', 'tblTempUsageDetail_20' ) start [2025-02-10 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442073', 'tblTempUsageDetail_20' ) end [2025-02-10 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:52:21] Production.INFO: ==13928== Releasing lock... [2025-02-10 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:53:05 [end_date_ymd] => 2025-02-10 04:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:53:05' and `end` < '2025-02-10 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-10 04:53:19] Production.INFO: count ==260 [2025-02-10 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:53:05 - End Time 2025-02-10 04:53:05 [2025-02-10 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442078', 'tblTempUsageDetail_20' ) start [2025-02-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442078', 'tblTempUsageDetail_20' ) end [2025-02-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442078', 'tblTempVendorCDR_20' ) start [2025-02-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442078', 'tblTempVendorCDR_20' ) end [2025-02-10 04:53:19] Production.INFO: ProcessCDR(1,14442078,1,1,2) [2025-02-10 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442078', 'tblTempUsageDetail_20' ) start [2025-02-10 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442078', 'tblTempUsageDetail_20' ) end [2025-02-10 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:53:22] Production.INFO: ==14041== Releasing lock... [2025-02-10 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:54:05 [end_date_ymd] => 2025-02-10 04:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:54:05' and `end` < '2025-02-10 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-10 04:54:18] Production.INFO: count ==260 [2025-02-10 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 01:54:05 - End Time 2025-02-10 04:54:05 [2025-02-10 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442083', 'tblTempUsageDetail_20' ) start [2025-02-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442083', 'tblTempUsageDetail_20' ) end [2025-02-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442083', 'tblTempVendorCDR_20' ) start [2025-02-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442083', 'tblTempVendorCDR_20' ) end [2025-02-10 04:54:18] Production.INFO: ProcessCDR(1,14442083,1,1,2) [2025-02-10 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442083', 'tblTempUsageDetail_20' ) start [2025-02-10 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442083', 'tblTempUsageDetail_20' ) end [2025-02-10 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:54:22] Production.INFO: ==14153== Releasing lock... [2025-02-10 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:55:05 [end_date_ymd] => 2025-02-10 04:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:55:05' and `end` < '2025-02-10 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-10 04:55:19] Production.INFO: count ==260 [2025-02-10 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:55:05 - End Time 2025-02-10 04:55:05 [2025-02-10 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442088', 'tblTempUsageDetail_20' ) start [2025-02-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442088', 'tblTempUsageDetail_20' ) end [2025-02-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442088', 'tblTempVendorCDR_20' ) start [2025-02-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442088', 'tblTempVendorCDR_20' ) end [2025-02-10 04:55:19] Production.INFO: ProcessCDR(1,14442088,1,1,2) [2025-02-10 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442088', 'tblTempUsageDetail_20' ) start [2025-02-10 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442088', 'tblTempUsageDetail_20' ) end [2025-02-10 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:55:23] Production.INFO: ==14264== Releasing lock... [2025-02-10 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:55:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:56:05 [end_date_ymd] => 2025-02-10 04:56:05 [RateCDR] => 1 ) [2025-02-10 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 01:56:05' and `end` < '2025-02-10 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 04:56:19] Production.INFO: count ==259 [2025-02-10 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:56:05 - End Time 2025-02-10 04:56:05 [2025-02-10 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442093', 'tblTempUsageDetail_20' ) start [2025-02-10 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442093', 'tblTempUsageDetail_20' ) end [2025-02-10 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442093', 'tblTempVendorCDR_20' ) start [2025-02-10 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442093', 'tblTempVendorCDR_20' ) end [2025-02-10 04:56:20] Production.INFO: ProcessCDR(1,14442093,1,1,2) [2025-02-10 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442093', 'tblTempUsageDetail_20' ) start [2025-02-10 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442093', 'tblTempUsageDetail_20' ) end [2025-02-10 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:56:23] Production.INFO: ==14374== Releasing lock... [2025-02-10 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:56:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:57:05 [end_date_ymd] => 2025-02-10 04:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:57:05' and `end` < '2025-02-10 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-10 04:57:20] Production.INFO: count ==259 [2025-02-10 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-10 01:57:05 - End Time 2025-02-10 04:57:05 [2025-02-10 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442098', 'tblTempUsageDetail_20' ) start [2025-02-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442098', 'tblTempUsageDetail_20' ) end [2025-02-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442098', 'tblTempVendorCDR_20' ) start [2025-02-10 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442098', 'tblTempVendorCDR_20' ) end [2025-02-10 04:57:20] Production.INFO: ProcessCDR(1,14442098,1,1,2) [2025-02-10 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442098', 'tblTempUsageDetail_20' ) start [2025-02-10 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442098', 'tblTempUsageDetail_20' ) end [2025-02-10 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:57:23] Production.INFO: ==14488== Releasing lock... [2025-02-10 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:57:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:58:05 [end_date_ymd] => 2025-02-10 04:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:58:05' and `end` < '2025-02-10 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-10 04:58:19] Production.INFO: count ==258 [2025-02-10 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:58:05 - End Time 2025-02-10 04:58:05 [2025-02-10 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442103', 'tblTempUsageDetail_20' ) start [2025-02-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442103', 'tblTempUsageDetail_20' ) end [2025-02-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442103', 'tblTempVendorCDR_20' ) start [2025-02-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442103', 'tblTempVendorCDR_20' ) end [2025-02-10 04:58:19] Production.INFO: ProcessCDR(1,14442103,1,1,2) [2025-02-10 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442103', 'tblTempUsageDetail_20' ) start [2025-02-10 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442103', 'tblTempUsageDetail_20' ) end [2025-02-10 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:58:22] Production.INFO: ==14634== Releasing lock... [2025-02-10 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 01:59:05 [end_date_ymd] => 2025-02-10 04:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 01:59:05' and `end` < '2025-02-10 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-10 04:59:19] Production.INFO: count ==258 [2025-02-10 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 01:59:05 - End Time 2025-02-10 04:59:05 [2025-02-10 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442108', 'tblTempUsageDetail_20' ) start [2025-02-10 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442108', 'tblTempUsageDetail_20' ) end [2025-02-10 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442108', 'tblTempVendorCDR_20' ) start [2025-02-10 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442108', 'tblTempVendorCDR_20' ) end [2025-02-10 04:59:19] Production.INFO: ProcessCDR(1,14442108,1,1,2) [2025-02-10 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442108', 'tblTempUsageDetail_20' ) start [2025-02-10 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442108', 'tblTempUsageDetail_20' ) end [2025-02-10 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 04:59:23] Production.INFO: ==14721== Releasing lock... [2025-02-10 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 04:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:00:05 [end_date_ymd] => 2025-02-10 05:00:05 [RateCDR] => 1 ) [2025-02-10 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:00:05' and `end` < '2025-02-10 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:00:19] Production.INFO: count ==255 [2025-02-10 05:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:00:05 - End Time 2025-02-10 05:00:05 [2025-02-10 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442113', 'tblTempUsageDetail_20' ) start [2025-02-10 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442113', 'tblTempUsageDetail_20' ) end [2025-02-10 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442113', 'tblTempVendorCDR_20' ) start [2025-02-10 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442113', 'tblTempVendorCDR_20' ) end [2025-02-10 05:00:19] Production.INFO: ProcessCDR(1,14442113,1,1,2) [2025-02-10 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442113', 'tblTempUsageDetail_20' ) start [2025-02-10 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442113', 'tblTempUsageDetail_20' ) end [2025-02-10 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:00:23] Production.INFO: ==14809== Releasing lock... [2025-02-10 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:01:06 [end_date_ymd] => 2025-02-10 05:01:06 [RateCDR] => 1 ) [2025-02-10 05: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-10 02:01:06' and `end` < '2025-02-10 05: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-10 05:01:22] Production.INFO: count ==250 [2025-02-10 05:01:22] Production.ERROR: pbx CDR StartTime 2025-02-10 02:01:06 - End Time 2025-02-10 05:01:06 [2025-02-10 05:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442119', 'tblTempUsageDetail_20' ) start [2025-02-10 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442119', 'tblTempUsageDetail_20' ) end [2025-02-10 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442119', 'tblTempVendorCDR_20' ) start [2025-02-10 05:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442119', 'tblTempVendorCDR_20' ) end [2025-02-10 05:01:22] Production.INFO: ProcessCDR(1,14442119,1,1,2) [2025-02-10 05:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442119', 'tblTempUsageDetail_20' ) start [2025-02-10 05:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442119', 'tblTempUsageDetail_20' ) end [2025-02-10 05:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:01:26] Production.INFO: ==14905== Releasing lock... [2025-02-10 05:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:01:26] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:02:05 [end_date_ymd] => 2025-02-10 05:02:05 [RateCDR] => 1 ) [2025-02-10 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:02:05' and `end` < '2025-02-10 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:02:18] Production.INFO: count ==250 [2025-02-10 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:02:05 - End Time 2025-02-10 05:02:05 [2025-02-10 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442124', 'tblTempUsageDetail_20' ) start [2025-02-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442124', 'tblTempUsageDetail_20' ) end [2025-02-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442124', 'tblTempVendorCDR_20' ) start [2025-02-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442124', 'tblTempVendorCDR_20' ) end [2025-02-10 05:02:19] Production.INFO: ProcessCDR(1,14442124,1,1,2) [2025-02-10 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442124', 'tblTempUsageDetail_20' ) start [2025-02-10 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442124', 'tblTempUsageDetail_20' ) end [2025-02-10 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:02:22] Production.INFO: ==14990== Releasing lock... [2025-02-10 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:03:05 [end_date_ymd] => 2025-02-10 05:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:03:05' and `end` < '2025-02-10 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-10 05:03:18] Production.INFO: count ==246 [2025-02-10 05:03:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:03:05 - End Time 2025-02-10 05:03:05 [2025-02-10 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442129', 'tblTempUsageDetail_20' ) start [2025-02-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442129', 'tblTempUsageDetail_20' ) end [2025-02-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442129', 'tblTempVendorCDR_20' ) start [2025-02-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442129', 'tblTempVendorCDR_20' ) end [2025-02-10 05:03:18] Production.INFO: ProcessCDR(1,14442129,1,1,2) [2025-02-10 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442129', 'tblTempUsageDetail_20' ) start [2025-02-10 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442129', 'tblTempUsageDetail_20' ) end [2025-02-10 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:03:21] Production.INFO: ==15069== Releasing lock... [2025-02-10 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:03:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:04:05 [end_date_ymd] => 2025-02-10 05:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:04:05' and `end` < '2025-02-10 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-10 05:04:18] Production.INFO: count ==246 [2025-02-10 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:04:05 - End Time 2025-02-10 05:04:05 [2025-02-10 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442134', 'tblTempUsageDetail_20' ) start [2025-02-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442134', 'tblTempUsageDetail_20' ) end [2025-02-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442134', 'tblTempVendorCDR_20' ) start [2025-02-10 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442134', 'tblTempVendorCDR_20' ) end [2025-02-10 05:04:18] Production.INFO: ProcessCDR(1,14442134,1,1,2) [2025-02-10 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442134', 'tblTempUsageDetail_20' ) start [2025-02-10 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442134', 'tblTempUsageDetail_20' ) end [2025-02-10 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:04:22] Production.INFO: ==15151== Releasing lock... [2025-02-10 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:04:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:05:05 [end_date_ymd] => 2025-02-10 05:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:05:05' and `end` < '2025-02-10 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-10 05:05:18] Production.INFO: count ==246 [2025-02-10 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:05:05 - End Time 2025-02-10 05:05:05 [2025-02-10 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442139', 'tblTempUsageDetail_20' ) start [2025-02-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442139', 'tblTempUsageDetail_20' ) end [2025-02-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442139', 'tblTempVendorCDR_20' ) start [2025-02-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442139', 'tblTempVendorCDR_20' ) end [2025-02-10 05:05:18] Production.INFO: ProcessCDR(1,14442139,1,1,2) [2025-02-10 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442139', 'tblTempUsageDetail_20' ) start [2025-02-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442139', 'tblTempUsageDetail_20' ) end [2025-02-10 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:05:21] Production.INFO: ==15235== Releasing lock... [2025-02-10 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:06:05 [end_date_ymd] => 2025-02-10 05:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:06:05' and `end` < '2025-02-10 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-10 05:06:19] Production.INFO: count ==246 [2025-02-10 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:06:05 - End Time 2025-02-10 05:06:05 [2025-02-10 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442144', 'tblTempUsageDetail_20' ) start [2025-02-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442144', 'tblTempUsageDetail_20' ) end [2025-02-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442144', 'tblTempVendorCDR_20' ) start [2025-02-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442144', 'tblTempVendorCDR_20' ) end [2025-02-10 05:06:19] Production.INFO: ProcessCDR(1,14442144,1,1,2) [2025-02-10 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442144', 'tblTempUsageDetail_20' ) start [2025-02-10 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442144', 'tblTempUsageDetail_20' ) end [2025-02-10 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:06:22] Production.INFO: ==15318== Releasing lock... [2025-02-10 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:06:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:07:05 [end_date_ymd] => 2025-02-10 05:07:05 [RateCDR] => 1 ) [2025-02-10 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:07:05' and `end` < '2025-02-10 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:07:18] Production.INFO: count ==246 [2025-02-10 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:07:05 - End Time 2025-02-10 05:07:05 [2025-02-10 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442149', 'tblTempUsageDetail_20' ) start [2025-02-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442149', 'tblTempUsageDetail_20' ) end [2025-02-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442149', 'tblTempVendorCDR_20' ) start [2025-02-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442149', 'tblTempVendorCDR_20' ) end [2025-02-10 05:07:18] Production.INFO: ProcessCDR(1,14442149,1,1,2) [2025-02-10 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442149', 'tblTempUsageDetail_20' ) start [2025-02-10 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442149', 'tblTempUsageDetail_20' ) end [2025-02-10 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:07:21] Production.INFO: ==15402== Releasing lock... [2025-02-10 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:07:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:08:05 [end_date_ymd] => 2025-02-10 05:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:08:05' and `end` < '2025-02-10 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-10 05:08:19] Production.INFO: count ==246 [2025-02-10 05:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:08:05 - End Time 2025-02-10 05:08:05 [2025-02-10 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442154', 'tblTempUsageDetail_20' ) start [2025-02-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442154', 'tblTempUsageDetail_20' ) end [2025-02-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442154', 'tblTempVendorCDR_20' ) start [2025-02-10 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442154', 'tblTempVendorCDR_20' ) end [2025-02-10 05:08:19] Production.INFO: ProcessCDR(1,14442154,1,1,2) [2025-02-10 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442154', 'tblTempUsageDetail_20' ) start [2025-02-10 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442154', 'tblTempUsageDetail_20' ) end [2025-02-10 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:08:22] Production.INFO: ==15485== Releasing lock... [2025-02-10 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:08:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:09:05 [end_date_ymd] => 2025-02-10 05:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:09:05' and `end` < '2025-02-10 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-10 05:09:19] Production.INFO: count ==246 [2025-02-10 05:09:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:09:05 - End Time 2025-02-10 05:09:05 [2025-02-10 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442159', 'tblTempUsageDetail_20' ) start [2025-02-10 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442159', 'tblTempUsageDetail_20' ) end [2025-02-10 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442159', 'tblTempVendorCDR_20' ) start [2025-02-10 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442159', 'tblTempVendorCDR_20' ) end [2025-02-10 05:09:19] Production.INFO: ProcessCDR(1,14442159,1,1,2) [2025-02-10 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442159', 'tblTempUsageDetail_20' ) start [2025-02-10 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442159', 'tblTempUsageDetail_20' ) end [2025-02-10 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:09:22] Production.INFO: ==15568== Releasing lock... [2025-02-10 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:09:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:10:06 [end_date_ymd] => 2025-02-10 05:10:06 [RateCDR] => 1 ) [2025-02-10 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:10:06' and `end` < '2025-02-10 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:10:19] Production.INFO: count ==243 [2025-02-10 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:10:06 - End Time 2025-02-10 05:10:06 [2025-02-10 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442165', 'tblTempUsageDetail_20' ) start [2025-02-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442165', 'tblTempUsageDetail_20' ) end [2025-02-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442165', 'tblTempVendorCDR_20' ) start [2025-02-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442165', 'tblTempVendorCDR_20' ) end [2025-02-10 05:10:19] Production.INFO: ProcessCDR(1,14442165,1,1,2) [2025-02-10 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442165', 'tblTempUsageDetail_20' ) start [2025-02-10 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442165', 'tblTempUsageDetail_20' ) end [2025-02-10 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:10:22] Production.INFO: ==15657== Releasing lock... [2025-02-10 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:10:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:11:04 [end_date_ymd] => 2025-02-10 05:11:04 [RateCDR] => 1 ) [2025-02-10 05:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:11:04' and `end` < '2025-02-10 05:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:11:19] Production.INFO: count ==237 [2025-02-10 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:11:04 - End Time 2025-02-10 05:11:04 [2025-02-10 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442170', 'tblTempUsageDetail_20' ) start [2025-02-10 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442170', 'tblTempUsageDetail_20' ) end [2025-02-10 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442170', 'tblTempVendorCDR_20' ) start [2025-02-10 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442170', 'tblTempVendorCDR_20' ) end [2025-02-10 05:11:19] Production.INFO: ProcessCDR(1,14442170,1,1,2) [2025-02-10 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442170', 'tblTempUsageDetail_20' ) start [2025-02-10 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442170', 'tblTempUsageDetail_20' ) end [2025-02-10 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:11:22] Production.INFO: ==15741== Releasing lock... [2025-02-10 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:11:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:12:06 [end_date_ymd] => 2025-02-10 05:12:06 [RateCDR] => 1 ) [2025-02-10 05: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-10 02:12:06' and `end` < '2025-02-10 05: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-10 05:12:19] Production.INFO: count ==237 [2025-02-10 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:12:06 - End Time 2025-02-10 05:12:06 [2025-02-10 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442175', 'tblTempUsageDetail_20' ) start [2025-02-10 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442175', 'tblTempUsageDetail_20' ) end [2025-02-10 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442175', 'tblTempVendorCDR_20' ) start [2025-02-10 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442175', 'tblTempVendorCDR_20' ) end [2025-02-10 05:12:19] Production.INFO: ProcessCDR(1,14442175,1,1,2) [2025-02-10 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442175', 'tblTempUsageDetail_20' ) start [2025-02-10 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442175', 'tblTempUsageDetail_20' ) end [2025-02-10 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:12:22] Production.INFO: ==15817== Releasing lock... [2025-02-10 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:12:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:13:05 [end_date_ymd] => 2025-02-10 05:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:13:05' and `end` < '2025-02-10 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-10 05:13:18] Production.INFO: count ==237 [2025-02-10 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:13:05 - End Time 2025-02-10 05:13:05 [2025-02-10 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442180', 'tblTempUsageDetail_20' ) start [2025-02-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442180', 'tblTempUsageDetail_20' ) end [2025-02-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442180', 'tblTempVendorCDR_20' ) start [2025-02-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442180', 'tblTempVendorCDR_20' ) end [2025-02-10 05:13:18] Production.INFO: ProcessCDR(1,14442180,1,1,2) [2025-02-10 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442180', 'tblTempUsageDetail_20' ) start [2025-02-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442180', 'tblTempUsageDetail_20' ) end [2025-02-10 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:13:21] Production.INFO: ==15939== Releasing lock... [2025-02-10 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:13:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:14:05 [end_date_ymd] => 2025-02-10 05:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:14:05' and `end` < '2025-02-10 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-10 05:14:19] Production.INFO: count ==237 [2025-02-10 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:14:05 - End Time 2025-02-10 05:14:05 [2025-02-10 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442185', 'tblTempUsageDetail_20' ) start [2025-02-10 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442185', 'tblTempUsageDetail_20' ) end [2025-02-10 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442185', 'tblTempVendorCDR_20' ) start [2025-02-10 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442185', 'tblTempVendorCDR_20' ) end [2025-02-10 05:14:19] Production.INFO: ProcessCDR(1,14442185,1,1,2) [2025-02-10 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442185', 'tblTempUsageDetail_20' ) start [2025-02-10 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442185', 'tblTempUsageDetail_20' ) end [2025-02-10 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:14:22] Production.INFO: ==16028== Releasing lock... [2025-02-10 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:14:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:15:05 [end_date_ymd] => 2025-02-10 05:15:05 [RateCDR] => 1 ) [2025-02-10 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:15:05' and `end` < '2025-02-10 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:15:18] Production.INFO: count ==237 [2025-02-10 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:15:05 - End Time 2025-02-10 05:15:05 [2025-02-10 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442190', 'tblTempUsageDetail_20' ) start [2025-02-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442190', 'tblTempUsageDetail_20' ) end [2025-02-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442190', 'tblTempVendorCDR_20' ) start [2025-02-10 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442190', 'tblTempVendorCDR_20' ) end [2025-02-10 05:15:18] Production.INFO: ProcessCDR(1,14442190,1,1,2) [2025-02-10 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442190', 'tblTempUsageDetail_20' ) start [2025-02-10 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442190', 'tblTempUsageDetail_20' ) end [2025-02-10 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:15:21] Production.INFO: ==16110== Releasing lock... [2025-02-10 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:16:05 [end_date_ymd] => 2025-02-10 05:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:16:05' and `end` < '2025-02-10 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-10 05:16:18] Production.INFO: count ==237 [2025-02-10 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:16:05 - End Time 2025-02-10 05:16:05 [2025-02-10 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442195', 'tblTempUsageDetail_20' ) start [2025-02-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442195', 'tblTempUsageDetail_20' ) end [2025-02-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442195', 'tblTempVendorCDR_20' ) start [2025-02-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442195', 'tblTempVendorCDR_20' ) end [2025-02-10 05:16:18] Production.INFO: ProcessCDR(1,14442195,1,1,2) [2025-02-10 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442195', 'tblTempUsageDetail_20' ) start [2025-02-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442195', 'tblTempUsageDetail_20' ) end [2025-02-10 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:16:21] Production.INFO: ==16193== Releasing lock... [2025-02-10 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:17:05 [end_date_ymd] => 2025-02-10 05:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:17:05' and `end` < '2025-02-10 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-10 05:17:19] Production.INFO: count ==237 [2025-02-10 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:17:05 - End Time 2025-02-10 05:17:05 [2025-02-10 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442200', 'tblTempUsageDetail_20' ) start [2025-02-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442200', 'tblTempUsageDetail_20' ) end [2025-02-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442200', 'tblTempVendorCDR_20' ) start [2025-02-10 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442200', 'tblTempVendorCDR_20' ) end [2025-02-10 05:17:19] Production.INFO: ProcessCDR(1,14442200,1,1,2) [2025-02-10 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442200', 'tblTempUsageDetail_20' ) start [2025-02-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442200', 'tblTempUsageDetail_20' ) end [2025-02-10 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:17:22] Production.INFO: ==16274== Releasing lock... [2025-02-10 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:18:04 [end_date_ymd] => 2025-02-10 05:18:04 [RateCDR] => 1 ) [2025-02-10 05: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-10 02:18:04' and `end` < '2025-02-10 05: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-10 05:18:17] Production.INFO: count ==237 [2025-02-10 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-10 02:18:04 - End Time 2025-02-10 05:18:04 [2025-02-10 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442204', 'tblTempUsageDetail_20' ) start [2025-02-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442204', 'tblTempUsageDetail_20' ) end [2025-02-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442204', 'tblTempVendorCDR_20' ) start [2025-02-10 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442204', 'tblTempVendorCDR_20' ) end [2025-02-10 05:18:17] Production.INFO: ProcessCDR(1,14442204,1,1,2) [2025-02-10 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442204', 'tblTempUsageDetail_20' ) start [2025-02-10 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442204', 'tblTempUsageDetail_20' ) end [2025-02-10 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:18:20] Production.INFO: ==16350== Releasing lock... [2025-02-10 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:18:20] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:19:05 [end_date_ymd] => 2025-02-10 05:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:19:05' and `end` < '2025-02-10 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-10 05:19:18] Production.INFO: count ==237 [2025-02-10 05:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:19:05 - End Time 2025-02-10 05:19:05 [2025-02-10 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442210', 'tblTempUsageDetail_20' ) start [2025-02-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442210', 'tblTempUsageDetail_20' ) end [2025-02-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442210', 'tblTempVendorCDR_20' ) start [2025-02-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442210', 'tblTempVendorCDR_20' ) end [2025-02-10 05:19:18] Production.INFO: ProcessCDR(1,14442210,1,1,2) [2025-02-10 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442210', 'tblTempUsageDetail_20' ) start [2025-02-10 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442210', 'tblTempUsageDetail_20' ) end [2025-02-10 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:19:21] Production.INFO: ==16433== Releasing lock... [2025-02-10 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:20:06 [end_date_ymd] => 2025-02-10 05:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 02:20:06' and `end` < '2025-02-10 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-10 05:20:19] Production.INFO: count ==235 [2025-02-10 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:20:06 - End Time 2025-02-10 05:20:06 [2025-02-10 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442216', 'tblTempUsageDetail_20' ) start [2025-02-10 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442216', 'tblTempUsageDetail_20' ) end [2025-02-10 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442216', 'tblTempVendorCDR_20' ) start [2025-02-10 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442216', 'tblTempVendorCDR_20' ) end [2025-02-10 05:20:19] Production.INFO: ProcessCDR(1,14442216,1,1,2) [2025-02-10 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442216', 'tblTempUsageDetail_20' ) start [2025-02-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442216', 'tblTempUsageDetail_20' ) end [2025-02-10 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:20:22] Production.INFO: ==16512== Releasing lock... [2025-02-10 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:21:05 [end_date_ymd] => 2025-02-10 05:21:05 [RateCDR] => 1 ) [2025-02-10 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:21:05' and `end` < '2025-02-10 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:21:19] Production.INFO: count ==235 [2025-02-10 05:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:21:05 - End Time 2025-02-10 05:21:05 [2025-02-10 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442221', 'tblTempUsageDetail_20' ) start [2025-02-10 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442221', 'tblTempUsageDetail_20' ) end [2025-02-10 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442221', 'tblTempVendorCDR_20' ) start [2025-02-10 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442221', 'tblTempVendorCDR_20' ) end [2025-02-10 05:21:19] Production.INFO: ProcessCDR(1,14442221,1,1,2) [2025-02-10 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442221', 'tblTempUsageDetail_20' ) start [2025-02-10 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442221', 'tblTempUsageDetail_20' ) end [2025-02-10 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:21:22] Production.INFO: ==16602== Releasing lock... [2025-02-10 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:21:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:22:05 [end_date_ymd] => 2025-02-10 05:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:22:05' and `end` < '2025-02-10 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-10 05:22:18] Production.INFO: count ==235 [2025-02-10 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:22:05 - End Time 2025-02-10 05:22:05 [2025-02-10 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442226', 'tblTempUsageDetail_20' ) start [2025-02-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442226', 'tblTempUsageDetail_20' ) end [2025-02-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442226', 'tblTempVendorCDR_20' ) start [2025-02-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442226', 'tblTempVendorCDR_20' ) end [2025-02-10 05:22:18] Production.INFO: ProcessCDR(1,14442226,1,1,2) [2025-02-10 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442226', 'tblTempUsageDetail_20' ) start [2025-02-10 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442226', 'tblTempUsageDetail_20' ) end [2025-02-10 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:22:21] Production.INFO: ==16683== Releasing lock... [2025-02-10 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:23:05 [end_date_ymd] => 2025-02-10 05:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:23:05' and `end` < '2025-02-10 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-10 05:23:18] Production.INFO: count ==235 [2025-02-10 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:23:05 - End Time 2025-02-10 05:23:05 [2025-02-10 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442231', 'tblTempUsageDetail_20' ) start [2025-02-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442231', 'tblTempUsageDetail_20' ) end [2025-02-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442231', 'tblTempVendorCDR_20' ) start [2025-02-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442231', 'tblTempVendorCDR_20' ) end [2025-02-10 05:23:18] Production.INFO: ProcessCDR(1,14442231,1,1,2) [2025-02-10 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442231', 'tblTempUsageDetail_20' ) start [2025-02-10 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442231', 'tblTempUsageDetail_20' ) end [2025-02-10 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:23:21] Production.INFO: ==16766== Releasing lock... [2025-02-10 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:23:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:24:04 [end_date_ymd] => 2025-02-10 05:24:04 [RateCDR] => 1 ) [2025-02-10 05:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:24:04' and `end` < '2025-02-10 05:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:24:17] Production.INFO: count ==235 [2025-02-10 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-10 02:24:04 - End Time 2025-02-10 05:24:04 [2025-02-10 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442236', 'tblTempUsageDetail_20' ) start [2025-02-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442236', 'tblTempUsageDetail_20' ) end [2025-02-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442236', 'tblTempVendorCDR_20' ) start [2025-02-10 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442236', 'tblTempVendorCDR_20' ) end [2025-02-10 05:24:17] Production.INFO: ProcessCDR(1,14442236,1,1,2) [2025-02-10 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442236', 'tblTempUsageDetail_20' ) start [2025-02-10 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442236', 'tblTempUsageDetail_20' ) end [2025-02-10 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:24:21] Production.INFO: ==16845== Releasing lock... [2025-02-10 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:24:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:25:05 [end_date_ymd] => 2025-02-10 05:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:25:05' and `end` < '2025-02-10 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-10 05:25:18] Production.INFO: count ==235 [2025-02-10 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:25:05 - End Time 2025-02-10 05:25:05 [2025-02-10 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442241', 'tblTempUsageDetail_20' ) start [2025-02-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442241', 'tblTempUsageDetail_20' ) end [2025-02-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442241', 'tblTempVendorCDR_20' ) start [2025-02-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442241', 'tblTempVendorCDR_20' ) end [2025-02-10 05:25:18] Production.INFO: ProcessCDR(1,14442241,1,1,2) [2025-02-10 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442241', 'tblTempUsageDetail_20' ) start [2025-02-10 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442241', 'tblTempUsageDetail_20' ) end [2025-02-10 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:25:21] Production.INFO: ==16922== Releasing lock... [2025-02-10 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:25:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:26:04 [end_date_ymd] => 2025-02-10 05:26:04 [RateCDR] => 1 ) [2025-02-10 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:26:04' and `end` < '2025-02-10 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:26:18] Production.INFO: count ==235 [2025-02-10 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:26:04 - End Time 2025-02-10 05:26:04 [2025-02-10 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442246', 'tblTempUsageDetail_20' ) start [2025-02-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442246', 'tblTempUsageDetail_20' ) end [2025-02-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442246', 'tblTempVendorCDR_20' ) start [2025-02-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442246', 'tblTempVendorCDR_20' ) end [2025-02-10 05:26:18] Production.INFO: ProcessCDR(1,14442246,1,1,2) [2025-02-10 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442246', 'tblTempUsageDetail_20' ) start [2025-02-10 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442246', 'tblTempUsageDetail_20' ) end [2025-02-10 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:26:21] Production.INFO: ==16997== Releasing lock... [2025-02-10 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:26:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:27:05 [end_date_ymd] => 2025-02-10 05:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:27:05' and `end` < '2025-02-10 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-10 05:27:18] Production.INFO: count ==235 [2025-02-10 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:27:05 - End Time 2025-02-10 05:27:05 [2025-02-10 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442251', 'tblTempUsageDetail_20' ) start [2025-02-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442251', 'tblTempUsageDetail_20' ) end [2025-02-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442251', 'tblTempVendorCDR_20' ) start [2025-02-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442251', 'tblTempVendorCDR_20' ) end [2025-02-10 05:27:18] Production.INFO: ProcessCDR(1,14442251,1,1,2) [2025-02-10 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442251', 'tblTempUsageDetail_20' ) start [2025-02-10 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442251', 'tblTempUsageDetail_20' ) end [2025-02-10 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:27:21] Production.INFO: ==17074== Releasing lock... [2025-02-10 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:27:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:28:06 [end_date_ymd] => 2025-02-10 05:28:06 [RateCDR] => 1 ) [2025-02-10 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-10 02:28:06' and `end` < '2025-02-10 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-10 05:28:19] Production.INFO: count ==235 [2025-02-10 05:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:28:06 - End Time 2025-02-10 05:28:06 [2025-02-10 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442256', 'tblTempUsageDetail_20' ) start [2025-02-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442256', 'tblTempUsageDetail_20' ) end [2025-02-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442256', 'tblTempVendorCDR_20' ) start [2025-02-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442256', 'tblTempVendorCDR_20' ) end [2025-02-10 05:28:19] Production.INFO: ProcessCDR(1,14442256,1,1,2) [2025-02-10 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442256', 'tblTempUsageDetail_20' ) start [2025-02-10 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442256', 'tblTempUsageDetail_20' ) end [2025-02-10 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:28:22] Production.INFO: ==17160== Releasing lock... [2025-02-10 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:28:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:29:04 [end_date_ymd] => 2025-02-10 05:29:04 [RateCDR] => 1 ) [2025-02-10 05:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:29:04' and `end` < '2025-02-10 05:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:29:17] Production.INFO: count ==236 [2025-02-10 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-10 02:29:04 - End Time 2025-02-10 05:29:04 [2025-02-10 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442261', 'tblTempUsageDetail_20' ) start [2025-02-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442261', 'tblTempUsageDetail_20' ) end [2025-02-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442261', 'tblTempVendorCDR_20' ) start [2025-02-10 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442261', 'tblTempVendorCDR_20' ) end [2025-02-10 05:29:17] Production.INFO: ProcessCDR(1,14442261,1,1,2) [2025-02-10 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442261', 'tblTempUsageDetail_20' ) start [2025-02-10 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442261', 'tblTempUsageDetail_20' ) end [2025-02-10 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:29:20] Production.INFO: ==17277== Releasing lock... [2025-02-10 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:29:20] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:30:05 [end_date_ymd] => 2025-02-10 05:30:05 [RateCDR] => 1 ) [2025-02-10 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:30:05' and `end` < '2025-02-10 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:30:18] Production.INFO: count ==233 [2025-02-10 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:30:05 - End Time 2025-02-10 05:30:05 [2025-02-10 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442266', 'tblTempUsageDetail_20' ) start [2025-02-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442266', 'tblTempUsageDetail_20' ) end [2025-02-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442266', 'tblTempVendorCDR_20' ) start [2025-02-10 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442266', 'tblTempVendorCDR_20' ) end [2025-02-10 05:30:18] Production.INFO: ProcessCDR(1,14442266,1,1,2) [2025-02-10 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442266', 'tblTempUsageDetail_20' ) start [2025-02-10 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442266', 'tblTempUsageDetail_20' ) end [2025-02-10 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:30:21] Production.INFO: ==17356== Releasing lock... [2025-02-10 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:30:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:31:05 [end_date_ymd] => 2025-02-10 05:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:31:05' and `end` < '2025-02-10 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-10 05:31:17] Production.INFO: count ==233 [2025-02-10 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-10 02:31:05 - End Time 2025-02-10 05:31:05 [2025-02-10 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442272', 'tblTempUsageDetail_20' ) start [2025-02-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442272', 'tblTempUsageDetail_20' ) end [2025-02-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442272', 'tblTempVendorCDR_20' ) start [2025-02-10 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442272', 'tblTempVendorCDR_20' ) end [2025-02-10 05:31:17] Production.INFO: ProcessCDR(1,14442272,1,1,2) [2025-02-10 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442272', 'tblTempUsageDetail_20' ) start [2025-02-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442272', 'tblTempUsageDetail_20' ) end [2025-02-10 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:31:21] Production.INFO: ==17432== Releasing lock... [2025-02-10 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:32:05 [end_date_ymd] => 2025-02-10 05:32:05 [RateCDR] => 1 ) [2025-02-10 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:32:05' and `end` < '2025-02-10 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:32:19] Production.INFO: count ==229 [2025-02-10 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:32:05 - End Time 2025-02-10 05:32:05 [2025-02-10 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442277', 'tblTempUsageDetail_20' ) start [2025-02-10 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442277', 'tblTempUsageDetail_20' ) end [2025-02-10 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442277', 'tblTempVendorCDR_20' ) start [2025-02-10 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442277', 'tblTempVendorCDR_20' ) end [2025-02-10 05:32:19] Production.INFO: ProcessCDR(1,14442277,1,1,2) [2025-02-10 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442277', 'tblTempUsageDetail_20' ) start [2025-02-10 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442277', 'tblTempUsageDetail_20' ) end [2025-02-10 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:32:22] Production.INFO: ==17515== Releasing lock... [2025-02-10 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:33:05 [end_date_ymd] => 2025-02-10 05:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:33:05' and `end` < '2025-02-10 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-10 05:33:18] Production.INFO: count ==229 [2025-02-10 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:33:05 - End Time 2025-02-10 05:33:05 [2025-02-10 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442282', 'tblTempUsageDetail_20' ) start [2025-02-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442282', 'tblTempUsageDetail_20' ) end [2025-02-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442282', 'tblTempVendorCDR_20' ) start [2025-02-10 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442282', 'tblTempVendorCDR_20' ) end [2025-02-10 05:33:18] Production.INFO: ProcessCDR(1,14442282,1,1,2) [2025-02-10 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442282', 'tblTempUsageDetail_20' ) start [2025-02-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442282', 'tblTempUsageDetail_20' ) end [2025-02-10 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:33:21] Production.INFO: ==17593== Releasing lock... [2025-02-10 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:34:05 [end_date_ymd] => 2025-02-10 05:34:05 [RateCDR] => 1 ) [2025-02-10 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:34:05' and `end` < '2025-02-10 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:34:18] Production.INFO: count ==229 [2025-02-10 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:34:05 - End Time 2025-02-10 05:34:05 [2025-02-10 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442287', 'tblTempUsageDetail_20' ) start [2025-02-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442287', 'tblTempUsageDetail_20' ) end [2025-02-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442287', 'tblTempVendorCDR_20' ) start [2025-02-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442287', 'tblTempVendorCDR_20' ) end [2025-02-10 05:34:18] Production.INFO: ProcessCDR(1,14442287,1,1,2) [2025-02-10 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442287', 'tblTempUsageDetail_20' ) start [2025-02-10 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442287', 'tblTempUsageDetail_20' ) end [2025-02-10 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:34:21] Production.INFO: ==17665== Releasing lock... [2025-02-10 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:35:05 [end_date_ymd] => 2025-02-10 05:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:35:05' and `end` < '2025-02-10 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-10 05:35:17] Production.INFO: count ==229 [2025-02-10 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:35:05 - End Time 2025-02-10 05:35:05 [2025-02-10 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442292', 'tblTempUsageDetail_20' ) start [2025-02-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442292', 'tblTempUsageDetail_20' ) end [2025-02-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442292', 'tblTempVendorCDR_20' ) start [2025-02-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442292', 'tblTempVendorCDR_20' ) end [2025-02-10 05:35:18] Production.INFO: ProcessCDR(1,14442292,1,1,2) [2025-02-10 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442292', 'tblTempUsageDetail_20' ) start [2025-02-10 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442292', 'tblTempUsageDetail_20' ) end [2025-02-10 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:35:21] Production.INFO: ==17738== Releasing lock... [2025-02-10 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:36:05 [end_date_ymd] => 2025-02-10 05:36:05 [RateCDR] => 1 ) [2025-02-10 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:36:05' and `end` < '2025-02-10 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:36:18] Production.INFO: count ==229 [2025-02-10 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:36:05 - End Time 2025-02-10 05:36:05 [2025-02-10 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442297', 'tblTempUsageDetail_20' ) start [2025-02-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442297', 'tblTempUsageDetail_20' ) end [2025-02-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442297', 'tblTempVendorCDR_20' ) start [2025-02-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442297', 'tblTempVendorCDR_20' ) end [2025-02-10 05:36:18] Production.INFO: ProcessCDR(1,14442297,1,1,2) [2025-02-10 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442297', 'tblTempUsageDetail_20' ) start [2025-02-10 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442297', 'tblTempUsageDetail_20' ) end [2025-02-10 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:36:21] Production.INFO: ==17815== Releasing lock... [2025-02-10 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:37:05 [end_date_ymd] => 2025-02-10 05:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:37:05' and `end` < '2025-02-10 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-10 05:37:18] Production.INFO: count ==229 [2025-02-10 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:37:05 - End Time 2025-02-10 05:37:05 [2025-02-10 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442302', 'tblTempUsageDetail_20' ) start [2025-02-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442302', 'tblTempUsageDetail_20' ) end [2025-02-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442302', 'tblTempVendorCDR_20' ) start [2025-02-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442302', 'tblTempVendorCDR_20' ) end [2025-02-10 05:37:18] Production.INFO: ProcessCDR(1,14442302,1,1,2) [2025-02-10 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442302', 'tblTempUsageDetail_20' ) start [2025-02-10 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442302', 'tblTempUsageDetail_20' ) end [2025-02-10 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:37:21] Production.INFO: ==17890== Releasing lock... [2025-02-10 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:38:05 [end_date_ymd] => 2025-02-10 05:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:38:05' and `end` < '2025-02-10 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-10 05:38:18] Production.INFO: count ==232 [2025-02-10 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:38:05 - End Time 2025-02-10 05:38:05 [2025-02-10 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442307', 'tblTempUsageDetail_20' ) start [2025-02-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442307', 'tblTempUsageDetail_20' ) end [2025-02-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442307', 'tblTempVendorCDR_20' ) start [2025-02-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442307', 'tblTempVendorCDR_20' ) end [2025-02-10 05:38:18] Production.INFO: ProcessCDR(1,14442307,1,1,2) [2025-02-10 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442307', 'tblTempUsageDetail_20' ) start [2025-02-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442307', 'tblTempUsageDetail_20' ) end [2025-02-10 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:38:21] Production.INFO: ==17962== Releasing lock... [2025-02-10 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:39:05 [end_date_ymd] => 2025-02-10 05:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:39:05' and `end` < '2025-02-10 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-10 05:39:18] Production.INFO: count ==232 [2025-02-10 05:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:39:05 - End Time 2025-02-10 05:39:05 [2025-02-10 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442312', 'tblTempUsageDetail_20' ) start [2025-02-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442312', 'tblTempUsageDetail_20' ) end [2025-02-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442312', 'tblTempVendorCDR_20' ) start [2025-02-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442312', 'tblTempVendorCDR_20' ) end [2025-02-10 05:39:18] Production.INFO: ProcessCDR(1,14442312,1,1,2) [2025-02-10 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442312', 'tblTempUsageDetail_20' ) start [2025-02-10 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442312', 'tblTempUsageDetail_20' ) end [2025-02-10 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:39:21] Production.INFO: ==18036== Releasing lock... [2025-02-10 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:40:06 [end_date_ymd] => 2025-02-10 05:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 02:40:06' and `end` < '2025-02-10 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-10 05:40:18] Production.INFO: count ==229 [2025-02-10 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:40:06 - End Time 2025-02-10 05:40:06 [2025-02-10 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442318', 'tblTempUsageDetail_20' ) start [2025-02-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442318', 'tblTempUsageDetail_20' ) end [2025-02-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442318', 'tblTempVendorCDR_20' ) start [2025-02-10 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442318', 'tblTempVendorCDR_20' ) end [2025-02-10 05:40:18] Production.INFO: ProcessCDR(1,14442318,1,1,2) [2025-02-10 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442318', 'tblTempUsageDetail_20' ) start [2025-02-10 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442318', 'tblTempUsageDetail_20' ) end [2025-02-10 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:40:22] Production.INFO: ==18113== Releasing lock... [2025-02-10 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:40:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:41:05 [end_date_ymd] => 2025-02-10 05:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:41:05' and `end` < '2025-02-10 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-10 05:41:18] Production.INFO: count ==229 [2025-02-10 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:41:05 - End Time 2025-02-10 05:41:05 [2025-02-10 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442323', 'tblTempUsageDetail_20' ) start [2025-02-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442323', 'tblTempUsageDetail_20' ) end [2025-02-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442323', 'tblTempVendorCDR_20' ) start [2025-02-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442323', 'tblTempVendorCDR_20' ) end [2025-02-10 05:41:18] Production.INFO: ProcessCDR(1,14442323,1,1,2) [2025-02-10 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442323', 'tblTempUsageDetail_20' ) start [2025-02-10 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442323', 'tblTempUsageDetail_20' ) end [2025-02-10 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:41:21] Production.INFO: ==18192== Releasing lock... [2025-02-10 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:41:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:42:05 [end_date_ymd] => 2025-02-10 05:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:42:05' and `end` < '2025-02-10 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-10 05:42:18] Production.INFO: count ==229 [2025-02-10 05:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:42:05 - End Time 2025-02-10 05:42:05 [2025-02-10 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442328', 'tblTempUsageDetail_20' ) start [2025-02-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442328', 'tblTempUsageDetail_20' ) end [2025-02-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442328', 'tblTempVendorCDR_20' ) start [2025-02-10 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442328', 'tblTempVendorCDR_20' ) end [2025-02-10 05:42:18] Production.INFO: ProcessCDR(1,14442328,1,1,2) [2025-02-10 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442328', 'tblTempUsageDetail_20' ) start [2025-02-10 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442328', 'tblTempUsageDetail_20' ) end [2025-02-10 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:42:21] Production.INFO: ==18270== Releasing lock... [2025-02-10 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:42:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:43:05 [end_date_ymd] => 2025-02-10 05:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:43:05' and `end` < '2025-02-10 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-10 05:43:19] Production.INFO: count ==229 [2025-02-10 05:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:43:05 - End Time 2025-02-10 05:43:05 [2025-02-10 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442333', 'tblTempUsageDetail_20' ) start [2025-02-10 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442333', 'tblTempUsageDetail_20' ) end [2025-02-10 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442333', 'tblTempVendorCDR_20' ) start [2025-02-10 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442333', 'tblTempVendorCDR_20' ) end [2025-02-10 05:43:19] Production.INFO: ProcessCDR(1,14442333,1,1,2) [2025-02-10 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442333', 'tblTempUsageDetail_20' ) start [2025-02-10 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442333', 'tblTempUsageDetail_20' ) end [2025-02-10 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:43:22] Production.INFO: ==18347== Releasing lock... [2025-02-10 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:43:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:44:06 [end_date_ymd] => 2025-02-10 05:44:06 [RateCDR] => 1 ) [2025-02-10 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-10 02:44:06' and `end` < '2025-02-10 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-10 05:44:19] Production.INFO: count ==229 [2025-02-10 05:44:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:44:06 - End Time 2025-02-10 05:44:06 [2025-02-10 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442338', 'tblTempUsageDetail_20' ) start [2025-02-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442338', 'tblTempUsageDetail_20' ) end [2025-02-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442338', 'tblTempVendorCDR_20' ) start [2025-02-10 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442338', 'tblTempVendorCDR_20' ) end [2025-02-10 05:44:19] Production.INFO: ProcessCDR(1,14442338,1,1,2) [2025-02-10 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442338', 'tblTempUsageDetail_20' ) start [2025-02-10 05:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442338', 'tblTempUsageDetail_20' ) end [2025-02-10 05:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:44:23] Production.INFO: ==18476== Releasing lock... [2025-02-10 05:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:44:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:45:05 [end_date_ymd] => 2025-02-10 05:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:45:05' and `end` < '2025-02-10 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-10 05:45:18] Production.INFO: count ==229 [2025-02-10 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:45:05 - End Time 2025-02-10 05:45:05 [2025-02-10 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442343', 'tblTempUsageDetail_20' ) start [2025-02-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442343', 'tblTempUsageDetail_20' ) end [2025-02-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442343', 'tblTempVendorCDR_20' ) start [2025-02-10 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442343', 'tblTempVendorCDR_20' ) end [2025-02-10 05:45:18] Production.INFO: ProcessCDR(1,14442343,1,1,2) [2025-02-10 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442343', 'tblTempUsageDetail_20' ) start [2025-02-10 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442343', 'tblTempUsageDetail_20' ) end [2025-02-10 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:45:21] Production.INFO: ==18556== Releasing lock... [2025-02-10 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:45:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:46:05 [end_date_ymd] => 2025-02-10 05:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:46:05' and `end` < '2025-02-10 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-10 05:46:19] Production.INFO: count ==229 [2025-02-10 05:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:46:05 - End Time 2025-02-10 05:46:05 [2025-02-10 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442348', 'tblTempUsageDetail_20' ) start [2025-02-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442348', 'tblTempUsageDetail_20' ) end [2025-02-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442348', 'tblTempVendorCDR_20' ) start [2025-02-10 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442348', 'tblTempVendorCDR_20' ) end [2025-02-10 05:46:19] Production.INFO: ProcessCDR(1,14442348,1,1,2) [2025-02-10 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442348', 'tblTempUsageDetail_20' ) start [2025-02-10 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442348', 'tblTempUsageDetail_20' ) end [2025-02-10 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:46:22] Production.INFO: ==18633== Releasing lock... [2025-02-10 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:46:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:47:05 [end_date_ymd] => 2025-02-10 05:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:47:05' and `end` < '2025-02-10 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-10 05:47:18] Production.INFO: count ==229 [2025-02-10 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:47:05 - End Time 2025-02-10 05:47:05 [2025-02-10 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442353', 'tblTempUsageDetail_20' ) start [2025-02-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442353', 'tblTempUsageDetail_20' ) end [2025-02-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442353', 'tblTempVendorCDR_20' ) start [2025-02-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442353', 'tblTempVendorCDR_20' ) end [2025-02-10 05:47:18] Production.INFO: ProcessCDR(1,14442353,1,1,2) [2025-02-10 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442353', 'tblTempUsageDetail_20' ) start [2025-02-10 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442353', 'tblTempUsageDetail_20' ) end [2025-02-10 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:47:21] Production.INFO: ==18704== Releasing lock... [2025-02-10 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:48:05 [end_date_ymd] => 2025-02-10 05:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:48:05' and `end` < '2025-02-10 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-10 05:48:18] Production.INFO: count ==229 [2025-02-10 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:48:05 - End Time 2025-02-10 05:48:05 [2025-02-10 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442358', 'tblTempUsageDetail_20' ) start [2025-02-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442358', 'tblTempUsageDetail_20' ) end [2025-02-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442358', 'tblTempVendorCDR_20' ) start [2025-02-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442358', 'tblTempVendorCDR_20' ) end [2025-02-10 05:48:18] Production.INFO: ProcessCDR(1,14442358,1,1,2) [2025-02-10 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442358', 'tblTempUsageDetail_20' ) start [2025-02-10 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442358', 'tblTempUsageDetail_20' ) end [2025-02-10 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:48:21] Production.INFO: ==18778== Releasing lock... [2025-02-10 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:48:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:49:05 [end_date_ymd] => 2025-02-10 05:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:49:05' and `end` < '2025-02-10 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-10 05:49:18] Production.INFO: count ==229 [2025-02-10 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:49:05 - End Time 2025-02-10 05:49:05 [2025-02-10 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442363', 'tblTempUsageDetail_20' ) start [2025-02-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442363', 'tblTempUsageDetail_20' ) end [2025-02-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442363', 'tblTempVendorCDR_20' ) start [2025-02-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442363', 'tblTempVendorCDR_20' ) end [2025-02-10 05:49:18] Production.INFO: ProcessCDR(1,14442363,1,1,2) [2025-02-10 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442363', 'tblTempUsageDetail_20' ) start [2025-02-10 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442363', 'tblTempUsageDetail_20' ) end [2025-02-10 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:49:21] Production.INFO: ==18852== Releasing lock... [2025-02-10 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:49:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:50:06 [end_date_ymd] => 2025-02-10 05:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 02:50:06' and `end` < '2025-02-10 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-10 05:50:19] Production.INFO: count ==229 [2025-02-10 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:50:06 - End Time 2025-02-10 05:50:06 [2025-02-10 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442369', 'tblTempUsageDetail_20' ) start [2025-02-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442369', 'tblTempUsageDetail_20' ) end [2025-02-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442369', 'tblTempVendorCDR_20' ) start [2025-02-10 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442369', 'tblTempVendorCDR_20' ) end [2025-02-10 05:50:19] Production.INFO: ProcessCDR(1,14442369,1,1,2) [2025-02-10 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442369', 'tblTempUsageDetail_20' ) start [2025-02-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442369', 'tblTempUsageDetail_20' ) end [2025-02-10 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:50:22] Production.INFO: ==18929== Releasing lock... [2025-02-10 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:50:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:51:05 [end_date_ymd] => 2025-02-10 05:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:51:05' and `end` < '2025-02-10 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-10 05:51:18] Production.INFO: count ==229 [2025-02-10 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:51:05 - End Time 2025-02-10 05:51:05 [2025-02-10 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442374', 'tblTempUsageDetail_20' ) start [2025-02-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442374', 'tblTempUsageDetail_20' ) end [2025-02-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442374', 'tblTempVendorCDR_20' ) start [2025-02-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442374', 'tblTempVendorCDR_20' ) end [2025-02-10 05:51:18] Production.INFO: ProcessCDR(1,14442374,1,1,2) [2025-02-10 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442374', 'tblTempUsageDetail_20' ) start [2025-02-10 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442374', 'tblTempUsageDetail_20' ) end [2025-02-10 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:51:21] Production.INFO: ==19004== Releasing lock... [2025-02-10 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:51:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:52:05 [end_date_ymd] => 2025-02-10 05:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:52:05' and `end` < '2025-02-10 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-10 05:52:18] Production.INFO: count ==229 [2025-02-10 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:52:05 - End Time 2025-02-10 05:52:05 [2025-02-10 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442379', 'tblTempUsageDetail_20' ) start [2025-02-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442379', 'tblTempUsageDetail_20' ) end [2025-02-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442379', 'tblTempVendorCDR_20' ) start [2025-02-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442379', 'tblTempVendorCDR_20' ) end [2025-02-10 05:52:18] Production.INFO: ProcessCDR(1,14442379,1,1,2) [2025-02-10 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442379', 'tblTempUsageDetail_20' ) start [2025-02-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442379', 'tblTempUsageDetail_20' ) end [2025-02-10 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:52:21] Production.INFO: ==19085== Releasing lock... [2025-02-10 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:52:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:53:05 [end_date_ymd] => 2025-02-10 05:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:53:05' and `end` < '2025-02-10 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-10 05:53:19] Production.INFO: count ==229 [2025-02-10 05:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 02:53:05 - End Time 2025-02-10 05:53:05 [2025-02-10 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442384', 'tblTempUsageDetail_20' ) start [2025-02-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442384', 'tblTempUsageDetail_20' ) end [2025-02-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442384', 'tblTempVendorCDR_20' ) start [2025-02-10 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442384', 'tblTempVendorCDR_20' ) end [2025-02-10 05:53:19] Production.INFO: ProcessCDR(1,14442384,1,1,2) [2025-02-10 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442384', 'tblTempUsageDetail_20' ) start [2025-02-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442384', 'tblTempUsageDetail_20' ) end [2025-02-10 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:53:22] Production.INFO: ==19160== Releasing lock... [2025-02-10 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:53:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:54:05 [end_date_ymd] => 2025-02-10 05:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:54:05' and `end` < '2025-02-10 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-10 05:54:18] Production.INFO: count ==229 [2025-02-10 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:54:05 - End Time 2025-02-10 05:54:05 [2025-02-10 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442389', 'tblTempUsageDetail_20' ) start [2025-02-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442389', 'tblTempUsageDetail_20' ) end [2025-02-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442389', 'tblTempVendorCDR_20' ) start [2025-02-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442389', 'tblTempVendorCDR_20' ) end [2025-02-10 05:54:18] Production.INFO: ProcessCDR(1,14442389,1,1,2) [2025-02-10 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442389', 'tblTempUsageDetail_20' ) start [2025-02-10 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442389', 'tblTempUsageDetail_20' ) end [2025-02-10 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:54:21] Production.INFO: ==19235== Releasing lock... [2025-02-10 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:54:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:55:05 [end_date_ymd] => 2025-02-10 05:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 02:55:05' and `end` < '2025-02-10 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-10 05:55:18] Production.INFO: count ==229 [2025-02-10 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:55:05 - End Time 2025-02-10 05:55:05 [2025-02-10 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442394', 'tblTempUsageDetail_20' ) start [2025-02-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442394', 'tblTempUsageDetail_20' ) end [2025-02-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442394', 'tblTempVendorCDR_20' ) start [2025-02-10 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442394', 'tblTempVendorCDR_20' ) end [2025-02-10 05:55:18] Production.INFO: ProcessCDR(1,14442394,1,1,2) [2025-02-10 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442394', 'tblTempUsageDetail_20' ) start [2025-02-10 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442394', 'tblTempUsageDetail_20' ) end [2025-02-10 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:55:21] Production.INFO: ==19313== Releasing lock... [2025-02-10 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:56:04 [end_date_ymd] => 2025-02-10 05:56:04 [RateCDR] => 1 ) [2025-02-10 05:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:56:04' and `end` < '2025-02-10 05:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:56:18] Production.INFO: count ==229 [2025-02-10 05:56:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:56:04 - End Time 2025-02-10 05:56:04 [2025-02-10 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442399', 'tblTempUsageDetail_20' ) start [2025-02-10 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442399', 'tblTempUsageDetail_20' ) end [2025-02-10 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442399', 'tblTempVendorCDR_20' ) start [2025-02-10 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442399', 'tblTempVendorCDR_20' ) end [2025-02-10 05:56:18] Production.INFO: ProcessCDR(1,14442399,1,1,2) [2025-02-10 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442399', 'tblTempUsageDetail_20' ) start [2025-02-10 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442399', 'tblTempUsageDetail_20' ) end [2025-02-10 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:56:22] Production.INFO: ==19386== Releasing lock... [2025-02-10 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:56:22] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:57:05 [end_date_ymd] => 2025-02-10 05:57:05 [RateCDR] => 1 ) [2025-02-10 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:57:05' and `end` < '2025-02-10 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:57:18] Production.INFO: count ==229 [2025-02-10 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:57:05 - End Time 2025-02-10 05:57:05 [2025-02-10 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442404', 'tblTempUsageDetail_20' ) start [2025-02-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442404', 'tblTempUsageDetail_20' ) end [2025-02-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442404', 'tblTempVendorCDR_20' ) start [2025-02-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442404', 'tblTempVendorCDR_20' ) end [2025-02-10 05:57:18] Production.INFO: ProcessCDR(1,14442404,1,1,2) [2025-02-10 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442404', 'tblTempUsageDetail_20' ) start [2025-02-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442404', 'tblTempUsageDetail_20' ) end [2025-02-10 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:57:21] Production.INFO: ==19465== Releasing lock... [2025-02-10 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:57:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:58:04 [end_date_ymd] => 2025-02-10 05:58:04 [RateCDR] => 1 ) [2025-02-10 05: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-10 02:58:04' and `end` < '2025-02-10 05: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-10 05:58:18] Production.INFO: count ==232 [2025-02-10 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 02:58:04 - End Time 2025-02-10 05:58:04 [2025-02-10 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442409', 'tblTempUsageDetail_20' ) start [2025-02-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442409', 'tblTempUsageDetail_20' ) end [2025-02-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442409', 'tblTempVendorCDR_20' ) start [2025-02-10 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442409', 'tblTempVendorCDR_20' ) end [2025-02-10 05:58:18] Production.INFO: ProcessCDR(1,14442409,1,1,2) [2025-02-10 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442409', 'tblTempUsageDetail_20' ) start [2025-02-10 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442409', 'tblTempUsageDetail_20' ) end [2025-02-10 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:58:21] Production.INFO: ==19536== Releasing lock... [2025-02-10 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:58:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 02:59:05 [end_date_ymd] => 2025-02-10 05:59:05 [RateCDR] => 1 ) [2025-02-10 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 02:59:05' and `end` < '2025-02-10 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 05:59:20] Production.INFO: count ==233 [2025-02-10 05:59:20] Production.ERROR: pbx CDR StartTime 2025-02-10 02:59:05 - End Time 2025-02-10 05:59:05 [2025-02-10 05:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 05:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442414', 'tblTempUsageDetail_20' ) start [2025-02-10 05:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442414', 'tblTempUsageDetail_20' ) end [2025-02-10 05:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442414', 'tblTempVendorCDR_20' ) start [2025-02-10 05:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442414', 'tblTempVendorCDR_20' ) end [2025-02-10 05:59:20] Production.INFO: ProcessCDR(1,14442414,1,1,2) [2025-02-10 05:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442414', 'tblTempUsageDetail_20' ) start [2025-02-10 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442414', 'tblTempUsageDetail_20' ) end [2025-02-10 05:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 05:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 05:59:23] Production.INFO: ==19613== Releasing lock... [2025-02-10 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 05:59:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:00:05 [end_date_ymd] => 2025-02-10 06:00:05 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:00:05' and `end` < '2025-02-10 06: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-10 06:00:19] Production.INFO: count ==237 [2025-02-10 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:00:05 - End Time 2025-02-10 06:00:05 [2025-02-10 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442420', 'tblTempUsageDetail_20' ) start [2025-02-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442420', 'tblTempUsageDetail_20' ) end [2025-02-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442420', 'tblTempVendorCDR_20' ) start [2025-02-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442420', 'tblTempVendorCDR_20' ) end [2025-02-10 06:00:19] Production.INFO: ProcessCDR(1,14442420,1,1,2) [2025-02-10 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442420', 'tblTempUsageDetail_20' ) start [2025-02-10 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442420', 'tblTempUsageDetail_20' ) end [2025-02-10 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:00:22] Production.INFO: ==19730== Releasing lock... [2025-02-10 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:00:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:01:05 [end_date_ymd] => 2025-02-10 06:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:01:05' and `end` < '2025-02-10 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-10 06:01:18] Production.INFO: count ==234 [2025-02-10 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:01:05 - End Time 2025-02-10 06:01:05 [2025-02-10 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442425', 'tblTempUsageDetail_20' ) start [2025-02-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442425', 'tblTempUsageDetail_20' ) end [2025-02-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442425', 'tblTempVendorCDR_20' ) start [2025-02-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442425', 'tblTempVendorCDR_20' ) end [2025-02-10 06:01:18] Production.INFO: ProcessCDR(1,14442425,1,1,2) [2025-02-10 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442425', 'tblTempUsageDetail_20' ) start [2025-02-10 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442425', 'tblTempUsageDetail_20' ) end [2025-02-10 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:01:21] Production.INFO: ==19819== Releasing lock... [2025-02-10 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:01:21] Production.INFO: 30 MB #Memory Used# [2025-02-10 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:02:06 [end_date_ymd] => 2025-02-10 06:02:06 [RateCDR] => 1 ) [2025-02-10 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-10 03:02:06' and `end` < '2025-02-10 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-10 06:02:19] Production.INFO: count ==235 [2025-02-10 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:02:06 - End Time 2025-02-10 06:02:06 [2025-02-10 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442430', 'tblTempUsageDetail_20' ) start [2025-02-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442430', 'tblTempUsageDetail_20' ) end [2025-02-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442430', 'tblTempVendorCDR_20' ) start [2025-02-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442430', 'tblTempVendorCDR_20' ) end [2025-02-10 06:02:19] Production.INFO: ProcessCDR(1,14442430,1,1,2) [2025-02-10 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442430', 'tblTempUsageDetail_20' ) start [2025-02-10 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442430', 'tblTempUsageDetail_20' ) end [2025-02-10 06:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:02:24] Production.INFO: ==19896== Releasing lock... [2025-02-10 06:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:02:24] Production.INFO: 30 MB #Memory Used# [2025-02-10 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:03:04 [end_date_ymd] => 2025-02-10 06:03:04 [RateCDR] => 1 ) [2025-02-10 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:03:04' and `end` < '2025-02-10 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:03:17] Production.INFO: count ==238 [2025-02-10 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:03:04 - End Time 2025-02-10 06:03:04 [2025-02-10 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442435', 'tblTempUsageDetail_20' ) start [2025-02-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442435', 'tblTempUsageDetail_20' ) end [2025-02-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442435', 'tblTempVendorCDR_20' ) start [2025-02-10 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442435', 'tblTempVendorCDR_20' ) end [2025-02-10 06:03:17] Production.INFO: ProcessCDR(1,14442435,1,1,2) [2025-02-10 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442435', 'tblTempUsageDetail_20' ) start [2025-02-10 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442435', 'tblTempUsageDetail_20' ) end [2025-02-10 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:03:20] Production.INFO: ==19971== Releasing lock... [2025-02-10 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:03:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:04:05 [end_date_ymd] => 2025-02-10 06:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:04:05' and `end` < '2025-02-10 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-10 06:04:19] Production.INFO: count ==238 [2025-02-10 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:04:05 - End Time 2025-02-10 06:04:05 [2025-02-10 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442440', 'tblTempUsageDetail_20' ) start [2025-02-10 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442440', 'tblTempUsageDetail_20' ) end [2025-02-10 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442440', 'tblTempVendorCDR_20' ) start [2025-02-10 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442440', 'tblTempVendorCDR_20' ) end [2025-02-10 06:04:19] Production.INFO: ProcessCDR(1,14442440,1,1,2) [2025-02-10 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442440', 'tblTempUsageDetail_20' ) start [2025-02-10 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442440', 'tblTempUsageDetail_20' ) end [2025-02-10 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:04:22] Production.INFO: ==20047== Releasing lock... [2025-02-10 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:05:04 [end_date_ymd] => 2025-02-10 06:05:04 [RateCDR] => 1 ) [2025-02-10 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:05:04' and `end` < '2025-02-10 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:05:17] Production.INFO: count ==238 [2025-02-10 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:05:04 - End Time 2025-02-10 06:05:04 [2025-02-10 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442445', 'tblTempUsageDetail_20' ) start [2025-02-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442445', 'tblTempUsageDetail_20' ) end [2025-02-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442445', 'tblTempVendorCDR_20' ) start [2025-02-10 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442445', 'tblTempVendorCDR_20' ) end [2025-02-10 06:05:17] Production.INFO: ProcessCDR(1,14442445,1,1,2) [2025-02-10 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442445', 'tblTempUsageDetail_20' ) start [2025-02-10 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442445', 'tblTempUsageDetail_20' ) end [2025-02-10 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:05:20] Production.INFO: ==20118== Releasing lock... [2025-02-10 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:05:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:06:05 [end_date_ymd] => 2025-02-10 06:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:06:05' and `end` < '2025-02-10 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-10 06:06:19] Production.INFO: count ==238 [2025-02-10 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:06:05 - End Time 2025-02-10 06:06:05 [2025-02-10 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442450', 'tblTempUsageDetail_20' ) start [2025-02-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442450', 'tblTempUsageDetail_20' ) end [2025-02-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442450', 'tblTempVendorCDR_20' ) start [2025-02-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442450', 'tblTempVendorCDR_20' ) end [2025-02-10 06:06:19] Production.INFO: ProcessCDR(1,14442450,1,1,2) [2025-02-10 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442450', 'tblTempUsageDetail_20' ) start [2025-02-10 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442450', 'tblTempUsageDetail_20' ) end [2025-02-10 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:06:22] Production.INFO: ==20191== Releasing lock... [2025-02-10 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:07:05 [end_date_ymd] => 2025-02-10 06:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:07:05' and `end` < '2025-02-10 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-10 06:07:18] Production.INFO: count ==238 [2025-02-10 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:07:05 - End Time 2025-02-10 06:07:05 [2025-02-10 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442455', 'tblTempUsageDetail_20' ) start [2025-02-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442455', 'tblTempUsageDetail_20' ) end [2025-02-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442455', 'tblTempVendorCDR_20' ) start [2025-02-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442455', 'tblTempVendorCDR_20' ) end [2025-02-10 06:07:18] Production.INFO: ProcessCDR(1,14442455,1,1,2) [2025-02-10 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442455', 'tblTempUsageDetail_20' ) start [2025-02-10 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442455', 'tblTempUsageDetail_20' ) end [2025-02-10 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:07:21] Production.INFO: ==20270== Releasing lock... [2025-02-10 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:08:05 [end_date_ymd] => 2025-02-10 06:08:05 [RateCDR] => 1 ) [2025-02-10 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:08:05' and `end` < '2025-02-10 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:08:19] Production.INFO: count ==238 [2025-02-10 06:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:08:05 - End Time 2025-02-10 06:08:05 [2025-02-10 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442460', 'tblTempUsageDetail_20' ) start [2025-02-10 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442460', 'tblTempUsageDetail_20' ) end [2025-02-10 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442460', 'tblTempVendorCDR_20' ) start [2025-02-10 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442460', 'tblTempVendorCDR_20' ) end [2025-02-10 06:08:19] Production.INFO: ProcessCDR(1,14442460,1,1,2) [2025-02-10 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442460', 'tblTempUsageDetail_20' ) start [2025-02-10 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442460', 'tblTempUsageDetail_20' ) end [2025-02-10 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:08:22] Production.INFO: ==20350== Releasing lock... [2025-02-10 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:08:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:09:05 [end_date_ymd] => 2025-02-10 06:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:09:05' and `end` < '2025-02-10 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-10 06:09:19] Production.INFO: count ==238 [2025-02-10 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:09:05 - End Time 2025-02-10 06:09:05 [2025-02-10 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442465', 'tblTempUsageDetail_20' ) start [2025-02-10 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442465', 'tblTempUsageDetail_20' ) end [2025-02-10 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442465', 'tblTempVendorCDR_20' ) start [2025-02-10 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442465', 'tblTempVendorCDR_20' ) end [2025-02-10 06:09:19] Production.INFO: ProcessCDR(1,14442465,1,1,2) [2025-02-10 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442465', 'tblTempUsageDetail_20' ) start [2025-02-10 06:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442465', 'tblTempUsageDetail_20' ) end [2025-02-10 06:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:09:22] Production.INFO: ==20427== Releasing lock... [2025-02-10 06:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:10:05 [end_date_ymd] => 2025-02-10 06:10:05 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:10:05' and `end` < '2025-02-10 06: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-10 06:10:18] Production.INFO: count ==238 [2025-02-10 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:10:05 - End Time 2025-02-10 06:10:05 [2025-02-10 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442471', 'tblTempUsageDetail_20' ) start [2025-02-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442471', 'tblTempUsageDetail_20' ) end [2025-02-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442471', 'tblTempVendorCDR_20' ) start [2025-02-10 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442471', 'tblTempVendorCDR_20' ) end [2025-02-10 06:10:18] Production.INFO: ProcessCDR(1,14442471,1,1,2) [2025-02-10 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442471', 'tblTempUsageDetail_20' ) start [2025-02-10 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442471', 'tblTempUsageDetail_20' ) end [2025-02-10 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:10:21] Production.INFO: ==20502== Releasing lock... [2025-02-10 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:11:05 [end_date_ymd] => 2025-02-10 06:11:05 [RateCDR] => 1 ) [2025-02-10 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:11:05' and `end` < '2025-02-10 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:11:20] Production.INFO: count ==240 [2025-02-10 06:11:20] Production.ERROR: pbx CDR StartTime 2025-02-10 03:11:05 - End Time 2025-02-10 06:11:05 [2025-02-10 06:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442476', 'tblTempUsageDetail_20' ) start [2025-02-10 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442476', 'tblTempUsageDetail_20' ) end [2025-02-10 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442476', 'tblTempVendorCDR_20' ) start [2025-02-10 06:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442476', 'tblTempVendorCDR_20' ) end [2025-02-10 06:11:20] Production.INFO: ProcessCDR(1,14442476,1,1,2) [2025-02-10 06:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442476', 'tblTempUsageDetail_20' ) start [2025-02-10 06:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442476', 'tblTempUsageDetail_20' ) end [2025-02-10 06:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:11:23] Production.INFO: ==20583== Releasing lock... [2025-02-10 06:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:11:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:12:05 [end_date_ymd] => 2025-02-10 06:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:12:05' and `end` < '2025-02-10 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-10 06:12:18] Production.INFO: count ==240 [2025-02-10 06:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:12:05 - End Time 2025-02-10 06:12:05 [2025-02-10 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442481', 'tblTempUsageDetail_20' ) start [2025-02-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442481', 'tblTempUsageDetail_20' ) end [2025-02-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442481', 'tblTempVendorCDR_20' ) start [2025-02-10 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442481', 'tblTempVendorCDR_20' ) end [2025-02-10 06:12:18] Production.INFO: ProcessCDR(1,14442481,1,1,2) [2025-02-10 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442481', 'tblTempUsageDetail_20' ) start [2025-02-10 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442481', 'tblTempUsageDetail_20' ) end [2025-02-10 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:12:21] Production.INFO: ==20655== Releasing lock... [2025-02-10 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:13:04 [end_date_ymd] => 2025-02-10 06:13:04 [RateCDR] => 1 ) [2025-02-10 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:13:04' and `end` < '2025-02-10 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:13:18] Production.INFO: count ==240 [2025-02-10 06:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:13:04 - End Time 2025-02-10 06:13:04 [2025-02-10 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442486', 'tblTempUsageDetail_20' ) start [2025-02-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442486', 'tblTempUsageDetail_20' ) end [2025-02-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442486', 'tblTempVendorCDR_20' ) start [2025-02-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442486', 'tblTempVendorCDR_20' ) end [2025-02-10 06:13:18] Production.INFO: ProcessCDR(1,14442486,1,1,2) [2025-02-10 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442486', 'tblTempUsageDetail_20' ) start [2025-02-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442486', 'tblTempUsageDetail_20' ) end [2025-02-10 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:13:21] Production.INFO: ==20726== Releasing lock... [2025-02-10 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:14:06 [end_date_ymd] => 2025-02-10 06:14:06 [RateCDR] => 1 ) [2025-02-10 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:14:06' and `end` < '2025-02-10 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:14:18] Production.INFO: count ==246 [2025-02-10 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:14:06 - End Time 2025-02-10 06:14:06 [2025-02-10 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442491', 'tblTempUsageDetail_20' ) start [2025-02-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442491', 'tblTempUsageDetail_20' ) end [2025-02-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442491', 'tblTempVendorCDR_20' ) start [2025-02-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442491', 'tblTempVendorCDR_20' ) end [2025-02-10 06:14:18] Production.INFO: ProcessCDR(1,14442491,1,1,2) [2025-02-10 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442491', 'tblTempUsageDetail_20' ) start [2025-02-10 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442491', 'tblTempUsageDetail_20' ) end [2025-02-10 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:14:21] Production.INFO: ==20808== Releasing lock... [2025-02-10 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:15:04 [end_date_ymd] => 2025-02-10 06:15:04 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:15:04' and `end` < '2025-02-10 06: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-10 06:15:17] Production.INFO: count ==246 [2025-02-10 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:15:04 - End Time 2025-02-10 06:15:04 [2025-02-10 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442496', 'tblTempUsageDetail_20' ) start [2025-02-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442496', 'tblTempUsageDetail_20' ) end [2025-02-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442496', 'tblTempVendorCDR_20' ) start [2025-02-10 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442496', 'tblTempVendorCDR_20' ) end [2025-02-10 06:15:17] Production.INFO: ProcessCDR(1,14442496,1,1,2) [2025-02-10 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442496', 'tblTempUsageDetail_20' ) start [2025-02-10 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442496', 'tblTempUsageDetail_20' ) end [2025-02-10 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:15:20] Production.INFO: ==20922== Releasing lock... [2025-02-10 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:15:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:16:05 [end_date_ymd] => 2025-02-10 06:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:16:05' and `end` < '2025-02-10 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-10 06:16:18] Production.INFO: count ==249 [2025-02-10 06:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:16:05 - End Time 2025-02-10 06:16:05 [2025-02-10 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442501', 'tblTempUsageDetail_20' ) start [2025-02-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442501', 'tblTempUsageDetail_20' ) end [2025-02-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442501', 'tblTempVendorCDR_20' ) start [2025-02-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442501', 'tblTempVendorCDR_20' ) end [2025-02-10 06:16:18] Production.INFO: ProcessCDR(1,14442501,1,1,2) [2025-02-10 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442501', 'tblTempUsageDetail_20' ) start [2025-02-10 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442501', 'tblTempUsageDetail_20' ) end [2025-02-10 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:16:21] Production.INFO: ==20994== Releasing lock... [2025-02-10 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:17:05 [end_date_ymd] => 2025-02-10 06:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:17:05' and `end` < '2025-02-10 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-10 06:17:18] Production.INFO: count ==250 [2025-02-10 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:17:05 - End Time 2025-02-10 06:17:05 [2025-02-10 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442506', 'tblTempUsageDetail_20' ) start [2025-02-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442506', 'tblTempUsageDetail_20' ) end [2025-02-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442506', 'tblTempVendorCDR_20' ) start [2025-02-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442506', 'tblTempVendorCDR_20' ) end [2025-02-10 06:17:18] Production.INFO: ProcessCDR(1,14442506,1,1,2) [2025-02-10 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442506', 'tblTempUsageDetail_20' ) start [2025-02-10 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442506', 'tblTempUsageDetail_20' ) end [2025-02-10 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:17:23] Production.INFO: ==21066== Releasing lock... [2025-02-10 06:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:18:04 [end_date_ymd] => 2025-02-10 06:18:04 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:18:04' and `end` < '2025-02-10 06: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-10 06:18:18] Production.INFO: count ==250 [2025-02-10 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:18:04 - End Time 2025-02-10 06:18:04 [2025-02-10 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442511', 'tblTempUsageDetail_20' ) start [2025-02-10 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442511', 'tblTempUsageDetail_20' ) end [2025-02-10 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442511', 'tblTempVendorCDR_20' ) start [2025-02-10 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442511', 'tblTempVendorCDR_20' ) end [2025-02-10 06:18:18] Production.INFO: ProcessCDR(1,14442511,1,1,2) [2025-02-10 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442511', 'tblTempUsageDetail_20' ) start [2025-02-10 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442511', 'tblTempUsageDetail_20' ) end [2025-02-10 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:18:21] Production.INFO: ==21180== Releasing lock... [2025-02-10 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:19:05 [end_date_ymd] => 2025-02-10 06:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:19:05' and `end` < '2025-02-10 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-10 06:19:18] Production.INFO: count ==250 [2025-02-10 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:19:05 - End Time 2025-02-10 06:19:05 [2025-02-10 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442516', 'tblTempUsageDetail_20' ) start [2025-02-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442516', 'tblTempUsageDetail_20' ) end [2025-02-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442516', 'tblTempVendorCDR_20' ) start [2025-02-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442516', 'tblTempVendorCDR_20' ) end [2025-02-10 06:19:18] Production.INFO: ProcessCDR(1,14442516,1,1,2) [2025-02-10 06:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442516', 'tblTempUsageDetail_20' ) start [2025-02-10 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442516', 'tblTempUsageDetail_20' ) end [2025-02-10 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:19:22] Production.INFO: ==21255== Releasing lock... [2025-02-10 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:20:05 [end_date_ymd] => 2025-02-10 06:20:05 [RateCDR] => 1 ) [2025-02-10 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:20:05' and `end` < '2025-02-10 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:20:18] Production.INFO: count ==250 [2025-02-10 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:20:05 - End Time 2025-02-10 06:20:05 [2025-02-10 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442521', 'tblTempUsageDetail_20' ) start [2025-02-10 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442521', 'tblTempUsageDetail_20' ) end [2025-02-10 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442521', 'tblTempVendorCDR_20' ) start [2025-02-10 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442521', 'tblTempVendorCDR_20' ) end [2025-02-10 06:20:18] Production.INFO: ProcessCDR(1,14442521,1,1,2) [2025-02-10 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442521', 'tblTempUsageDetail_20' ) start [2025-02-10 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442521', 'tblTempUsageDetail_20' ) end [2025-02-10 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:20:21] Production.INFO: ==21334== Releasing lock... [2025-02-10 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:20:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:21:05 [end_date_ymd] => 2025-02-10 06:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:21:05' and `end` < '2025-02-10 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-10 06:21:18] Production.INFO: count ==250 [2025-02-10 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:21:05 - End Time 2025-02-10 06:21:05 [2025-02-10 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442527', 'tblTempUsageDetail_20' ) start [2025-02-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442527', 'tblTempUsageDetail_20' ) end [2025-02-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442527', 'tblTempVendorCDR_20' ) start [2025-02-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442527', 'tblTempVendorCDR_20' ) end [2025-02-10 06:21:18] Production.INFO: ProcessCDR(1,14442527,1,1,2) [2025-02-10 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442527', 'tblTempUsageDetail_20' ) start [2025-02-10 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442527', 'tblTempUsageDetail_20' ) end [2025-02-10 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:21:21] Production.INFO: ==21418== Releasing lock... [2025-02-10 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:22:05 [end_date_ymd] => 2025-02-10 06:22:05 [RateCDR] => 1 ) [2025-02-10 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:22:05' and `end` < '2025-02-10 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:22:18] Production.INFO: count ==250 [2025-02-10 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:22:05 - End Time 2025-02-10 06:22:05 [2025-02-10 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442532', 'tblTempUsageDetail_20' ) start [2025-02-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442532', 'tblTempUsageDetail_20' ) end [2025-02-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442532', 'tblTempVendorCDR_20' ) start [2025-02-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442532', 'tblTempVendorCDR_20' ) end [2025-02-10 06:22:18] Production.INFO: ProcessCDR(1,14442532,1,1,2) [2025-02-10 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442532', 'tblTempUsageDetail_20' ) start [2025-02-10 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442532', 'tblTempUsageDetail_20' ) end [2025-02-10 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:22:21] Production.INFO: ==21493== Releasing lock... [2025-02-10 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:23:05 [end_date_ymd] => 2025-02-10 06:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:23:05' and `end` < '2025-02-10 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-10 06:23:19] Production.INFO: count ==250 [2025-02-10 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:23:05 - End Time 2025-02-10 06:23:05 [2025-02-10 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442537', 'tblTempUsageDetail_20' ) start [2025-02-10 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442537', 'tblTempUsageDetail_20' ) end [2025-02-10 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442537', 'tblTempVendorCDR_20' ) start [2025-02-10 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442537', 'tblTempVendorCDR_20' ) end [2025-02-10 06:23:19] Production.INFO: ProcessCDR(1,14442537,1,1,2) [2025-02-10 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442537', 'tblTempUsageDetail_20' ) start [2025-02-10 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442537', 'tblTempUsageDetail_20' ) end [2025-02-10 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:23:22] Production.INFO: ==21566== Releasing lock... [2025-02-10 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:23:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:24:04 [end_date_ymd] => 2025-02-10 06:24:04 [RateCDR] => 1 ) [2025-02-10 06:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:24:04' and `end` < '2025-02-10 06:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:24:17] Production.INFO: count ==250 [2025-02-10 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:24:04 - End Time 2025-02-10 06:24:04 [2025-02-10 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442542', 'tblTempUsageDetail_20' ) start [2025-02-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442542', 'tblTempUsageDetail_20' ) end [2025-02-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442542', 'tblTempVendorCDR_20' ) start [2025-02-10 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442542', 'tblTempVendorCDR_20' ) end [2025-02-10 06:24:17] Production.INFO: ProcessCDR(1,14442542,1,1,2) [2025-02-10 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442542', 'tblTempUsageDetail_20' ) start [2025-02-10 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442542', 'tblTempUsageDetail_20' ) end [2025-02-10 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:24:20] Production.INFO: ==21639== Releasing lock... [2025-02-10 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:24:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:25:04 [end_date_ymd] => 2025-02-10 06:25:04 [RateCDR] => 1 ) [2025-02-10 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:25:04' and `end` < '2025-02-10 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:25:17] Production.INFO: count ==250 [2025-02-10 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:25:04 - End Time 2025-02-10 06:25:04 [2025-02-10 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442547', 'tblTempUsageDetail_20' ) start [2025-02-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442547', 'tblTempUsageDetail_20' ) end [2025-02-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442547', 'tblTempVendorCDR_20' ) start [2025-02-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442547', 'tblTempVendorCDR_20' ) end [2025-02-10 06:25:17] Production.INFO: ProcessCDR(1,14442547,1,1,2) [2025-02-10 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442547', 'tblTempUsageDetail_20' ) start [2025-02-10 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442547', 'tblTempUsageDetail_20' ) end [2025-02-10 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:25:20] Production.INFO: ==21712== Releasing lock... [2025-02-10 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:26:05 [end_date_ymd] => 2025-02-10 06:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:26:05' and `end` < '2025-02-10 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-10 06:26:18] Production.INFO: count ==221 [2025-02-10 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:26:05 - End Time 2025-02-10 06:26:05 [2025-02-10 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442552', 'tblTempUsageDetail_20' ) start [2025-02-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442552', 'tblTempUsageDetail_20' ) end [2025-02-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442552', 'tblTempVendorCDR_20' ) start [2025-02-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442552', 'tblTempVendorCDR_20' ) end [2025-02-10 06:26:18] Production.INFO: ProcessCDR(1,14442552,1,1,2) [2025-02-10 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442552', 'tblTempUsageDetail_20' ) start [2025-02-10 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442552', 'tblTempUsageDetail_20' ) end [2025-02-10 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:26:21] Production.INFO: ==21788== Releasing lock... [2025-02-10 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:27:05 [end_date_ymd] => 2025-02-10 06:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:27:05' and `end` < '2025-02-10 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-10 06:27:17] Production.INFO: count ==188 [2025-02-10 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:27:05 - End Time 2025-02-10 06:27:05 [2025-02-10 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442557', 'tblTempUsageDetail_20' ) start [2025-02-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442557', 'tblTempUsageDetail_20' ) end [2025-02-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442557', 'tblTempVendorCDR_20' ) start [2025-02-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442557', 'tblTempVendorCDR_20' ) end [2025-02-10 06:27:17] Production.INFO: ProcessCDR(1,14442557,1,1,2) [2025-02-10 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442557', 'tblTempUsageDetail_20' ) start [2025-02-10 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442557', 'tblTempUsageDetail_20' ) end [2025-02-10 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:27:20] Production.INFO: ==21859== Releasing lock... [2025-02-10 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:28:05 [end_date_ymd] => 2025-02-10 06:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:28:05' and `end` < '2025-02-10 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-10 06:28:18] Production.INFO: count ==157 [2025-02-10 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:28:05 - End Time 2025-02-10 06:28:05 [2025-02-10 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442562', 'tblTempUsageDetail_20' ) start [2025-02-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442562', 'tblTempUsageDetail_20' ) end [2025-02-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442562', 'tblTempVendorCDR_20' ) start [2025-02-10 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442562', 'tblTempVendorCDR_20' ) end [2025-02-10 06:28:18] Production.INFO: ProcessCDR(1,14442562,1,1,2) [2025-02-10 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442562', 'tblTempUsageDetail_20' ) start [2025-02-10 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442562', 'tblTempUsageDetail_20' ) end [2025-02-10 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:28:21] Production.INFO: ==21934== Releasing lock... [2025-02-10 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:29:05 [end_date_ymd] => 2025-02-10 06:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:29:05' and `end` < '2025-02-10 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-10 06:29:18] Production.INFO: count ==157 [2025-02-10 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:29:05 - End Time 2025-02-10 06:29:05 [2025-02-10 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442567', 'tblTempUsageDetail_20' ) start [2025-02-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442567', 'tblTempUsageDetail_20' ) end [2025-02-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442567', 'tblTempVendorCDR_20' ) start [2025-02-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442567', 'tblTempVendorCDR_20' ) end [2025-02-10 06:29:18] Production.INFO: ProcessCDR(1,14442567,1,1,2) [2025-02-10 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442567', 'tblTempUsageDetail_20' ) start [2025-02-10 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442567', 'tblTempUsageDetail_20' ) end [2025-02-10 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:29:21] Production.INFO: ==22007== Releasing lock... [2025-02-10 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:30:06 [end_date_ymd] => 2025-02-10 06:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 03:30:06' and `end` < '2025-02-10 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-10 06:30:19] Production.INFO: count ==157 [2025-02-10 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:30:06 - End Time 2025-02-10 06:30:06 [2025-02-10 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442573', 'tblTempUsageDetail_20' ) start [2025-02-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442573', 'tblTempUsageDetail_20' ) end [2025-02-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442573', 'tblTempVendorCDR_20' ) start [2025-02-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442573', 'tblTempVendorCDR_20' ) end [2025-02-10 06:30:19] Production.INFO: ProcessCDR(1,14442573,1,1,2) [2025-02-10 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442573', 'tblTempUsageDetail_20' ) start [2025-02-10 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442573', 'tblTempUsageDetail_20' ) end [2025-02-10 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:30:22] Production.INFO: ==22085== Releasing lock... [2025-02-10 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:31:05 [end_date_ymd] => 2025-02-10 06:31:05 [RateCDR] => 1 ) [2025-02-10 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:31:05' and `end` < '2025-02-10 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:31:18] Production.INFO: count ==158 [2025-02-10 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:31:05 - End Time 2025-02-10 06:31:05 [2025-02-10 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442578', 'tblTempUsageDetail_20' ) start [2025-02-10 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442578', 'tblTempUsageDetail_20' ) end [2025-02-10 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442578', 'tblTempVendorCDR_20' ) start [2025-02-10 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442578', 'tblTempVendorCDR_20' ) end [2025-02-10 06:31:18] Production.INFO: ProcessCDR(1,14442578,1,1,2) [2025-02-10 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442578', 'tblTempUsageDetail_20' ) start [2025-02-10 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442578', 'tblTempUsageDetail_20' ) end [2025-02-10 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:31:21] Production.INFO: ==22200== Releasing lock... [2025-02-10 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:32:05 [end_date_ymd] => 2025-02-10 06:32:05 [RateCDR] => 1 ) [2025-02-10 06:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:32:05' and `end` < '2025-02-10 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:32:19] Production.INFO: count ==161 [2025-02-10 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:32:05 - End Time 2025-02-10 06:32:05 [2025-02-10 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442583', 'tblTempUsageDetail_20' ) start [2025-02-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442583', 'tblTempUsageDetail_20' ) end [2025-02-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442583', 'tblTempVendorCDR_20' ) start [2025-02-10 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442583', 'tblTempVendorCDR_20' ) end [2025-02-10 06:32:19] Production.INFO: ProcessCDR(1,14442583,1,1,2) [2025-02-10 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442583', 'tblTempUsageDetail_20' ) start [2025-02-10 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442583', 'tblTempUsageDetail_20' ) end [2025-02-10 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:32:22] Production.INFO: ==22277== Releasing lock... [2025-02-10 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:33:05 [end_date_ymd] => 2025-02-10 06:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:33:05' and `end` < '2025-02-10 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-10 06:33:18] Production.INFO: count ==157 [2025-02-10 06:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:33:05 - End Time 2025-02-10 06:33:05 [2025-02-10 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442588', 'tblTempUsageDetail_20' ) start [2025-02-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442588', 'tblTempUsageDetail_20' ) end [2025-02-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442588', 'tblTempVendorCDR_20' ) start [2025-02-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442588', 'tblTempVendorCDR_20' ) end [2025-02-10 06:33:18] Production.INFO: ProcessCDR(1,14442588,1,1,2) [2025-02-10 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442588', 'tblTempUsageDetail_20' ) start [2025-02-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442588', 'tblTempUsageDetail_20' ) end [2025-02-10 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:33:21] Production.INFO: ==22350== Releasing lock... [2025-02-10 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:34:05 [end_date_ymd] => 2025-02-10 06:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:34:05' and `end` < '2025-02-10 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-10 06:34:18] Production.INFO: count ==157 [2025-02-10 06:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:34:05 - End Time 2025-02-10 06:34:05 [2025-02-10 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442593', 'tblTempUsageDetail_20' ) start [2025-02-10 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442593', 'tblTempUsageDetail_20' ) end [2025-02-10 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442593', 'tblTempVendorCDR_20' ) start [2025-02-10 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442593', 'tblTempVendorCDR_20' ) end [2025-02-10 06:34:19] Production.INFO: ProcessCDR(1,14442593,1,1,2) [2025-02-10 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442593', 'tblTempUsageDetail_20' ) start [2025-02-10 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442593', 'tblTempUsageDetail_20' ) end [2025-02-10 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:34:21] Production.INFO: ==22423== Releasing lock... [2025-02-10 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:35:05 [end_date_ymd] => 2025-02-10 06:35:05 [RateCDR] => 1 ) [2025-02-10 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:35:05' and `end` < '2025-02-10 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:35:18] Production.INFO: count ==157 [2025-02-10 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:35:05 - End Time 2025-02-10 06:35:05 [2025-02-10 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442598', 'tblTempUsageDetail_20' ) start [2025-02-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442598', 'tblTempUsageDetail_20' ) end [2025-02-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442598', 'tblTempVendorCDR_20' ) start [2025-02-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442598', 'tblTempVendorCDR_20' ) end [2025-02-10 06:35:18] Production.INFO: ProcessCDR(1,14442598,1,1,2) [2025-02-10 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442598', 'tblTempUsageDetail_20' ) start [2025-02-10 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442598', 'tblTempUsageDetail_20' ) end [2025-02-10 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:35:21] Production.INFO: ==22498== Releasing lock... [2025-02-10 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:36:04 [end_date_ymd] => 2025-02-10 06:36:04 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:36:04' and `end` < '2025-02-10 06: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-10 06:36:18] Production.INFO: count ==157 [2025-02-10 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:36:04 - End Time 2025-02-10 06:36:04 [2025-02-10 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442603', 'tblTempUsageDetail_20' ) start [2025-02-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442603', 'tblTempUsageDetail_20' ) end [2025-02-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442603', 'tblTempVendorCDR_20' ) start [2025-02-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442603', 'tblTempVendorCDR_20' ) end [2025-02-10 06:36:18] Production.INFO: ProcessCDR(1,14442603,1,1,2) [2025-02-10 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442603', 'tblTempUsageDetail_20' ) start [2025-02-10 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442603', 'tblTempUsageDetail_20' ) end [2025-02-10 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:36:21] Production.INFO: ==22573== Releasing lock... [2025-02-10 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:37:05 [end_date_ymd] => 2025-02-10 06:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:37:05' and `end` < '2025-02-10 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-10 06:37:18] Production.INFO: count ==157 [2025-02-10 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:37:05 - End Time 2025-02-10 06:37:05 [2025-02-10 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442608', 'tblTempUsageDetail_20' ) start [2025-02-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442608', 'tblTempUsageDetail_20' ) end [2025-02-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442608', 'tblTempVendorCDR_20' ) start [2025-02-10 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442608', 'tblTempVendorCDR_20' ) end [2025-02-10 06:37:18] Production.INFO: ProcessCDR(1,14442608,1,1,2) [2025-02-10 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442608', 'tblTempUsageDetail_20' ) start [2025-02-10 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442608', 'tblTempUsageDetail_20' ) end [2025-02-10 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:37:21] Production.INFO: ==22648== Releasing lock... [2025-02-10 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:38:05 [end_date_ymd] => 2025-02-10 06:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:38:05' and `end` < '2025-02-10 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-10 06:38:17] Production.INFO: count ==157 [2025-02-10 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:38:05 - End Time 2025-02-10 06:38:05 [2025-02-10 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442613', 'tblTempUsageDetail_20' ) start [2025-02-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442613', 'tblTempUsageDetail_20' ) end [2025-02-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442613', 'tblTempVendorCDR_20' ) start [2025-02-10 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442613', 'tblTempVendorCDR_20' ) end [2025-02-10 06:38:17] Production.INFO: ProcessCDR(1,14442613,1,1,2) [2025-02-10 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442613', 'tblTempUsageDetail_20' ) start [2025-02-10 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442613', 'tblTempUsageDetail_20' ) end [2025-02-10 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:38:20] Production.INFO: ==22723== Releasing lock... [2025-02-10 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:39:05 [end_date_ymd] => 2025-02-10 06:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:39:05' and `end` < '2025-02-10 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-10 06:39:18] Production.INFO: count ==157 [2025-02-10 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:39:05 - End Time 2025-02-10 06:39:05 [2025-02-10 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442618', 'tblTempUsageDetail_20' ) start [2025-02-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442618', 'tblTempUsageDetail_20' ) end [2025-02-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442618', 'tblTempVendorCDR_20' ) start [2025-02-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442618', 'tblTempVendorCDR_20' ) end [2025-02-10 06:39:18] Production.INFO: ProcessCDR(1,14442618,1,1,2) [2025-02-10 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442618', 'tblTempUsageDetail_20' ) start [2025-02-10 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442618', 'tblTempUsageDetail_20' ) end [2025-02-10 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:39:21] Production.INFO: ==22799== Releasing lock... [2025-02-10 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:40:05 [end_date_ymd] => 2025-02-10 06:40:05 [RateCDR] => 1 ) [2025-02-10 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:40:05' and `end` < '2025-02-10 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:40:18] Production.INFO: count ==155 [2025-02-10 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:40:05 - End Time 2025-02-10 06:40:05 [2025-02-10 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442624', 'tblTempUsageDetail_20' ) start [2025-02-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442624', 'tblTempUsageDetail_20' ) end [2025-02-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442624', 'tblTempVendorCDR_20' ) start [2025-02-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442624', 'tblTempVendorCDR_20' ) end [2025-02-10 06:40:18] Production.INFO: ProcessCDR(1,14442624,1,1,2) [2025-02-10 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442624', 'tblTempUsageDetail_20' ) start [2025-02-10 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442624', 'tblTempUsageDetail_20' ) end [2025-02-10 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:40:21] Production.INFO: ==22873== Releasing lock... [2025-02-10 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:41:05 [end_date_ymd] => 2025-02-10 06:41:05 [RateCDR] => 1 ) [2025-02-10 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:41:05' and `end` < '2025-02-10 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:41:18] Production.INFO: count ==155 [2025-02-10 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:41:05 - End Time 2025-02-10 06:41:05 [2025-02-10 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442629', 'tblTempUsageDetail_20' ) start [2025-02-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442629', 'tblTempUsageDetail_20' ) end [2025-02-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442629', 'tblTempVendorCDR_20' ) start [2025-02-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442629', 'tblTempVendorCDR_20' ) end [2025-02-10 06:41:18] Production.INFO: ProcessCDR(1,14442629,1,1,2) [2025-02-10 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442629', 'tblTempUsageDetail_20' ) start [2025-02-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442629', 'tblTempUsageDetail_20' ) end [2025-02-10 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:41:21] Production.INFO: ==22955== Releasing lock... [2025-02-10 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:42:05 [end_date_ymd] => 2025-02-10 06:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:42:05' and `end` < '2025-02-10 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-10 06:42:18] Production.INFO: count ==155 [2025-02-10 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:42:05 - End Time 2025-02-10 06:42:05 [2025-02-10 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442634', 'tblTempUsageDetail_20' ) start [2025-02-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442634', 'tblTempUsageDetail_20' ) end [2025-02-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442634', 'tblTempVendorCDR_20' ) start [2025-02-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442634', 'tblTempVendorCDR_20' ) end [2025-02-10 06:42:18] Production.INFO: ProcessCDR(1,14442634,1,1,2) [2025-02-10 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442634', 'tblTempUsageDetail_20' ) start [2025-02-10 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442634', 'tblTempUsageDetail_20' ) end [2025-02-10 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:42:21] Production.INFO: ==23028== Releasing lock... [2025-02-10 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:43:04 [end_date_ymd] => 2025-02-10 06:43:04 [RateCDR] => 1 ) [2025-02-10 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:43:04' and `end` < '2025-02-10 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:43:17] Production.INFO: count ==155 [2025-02-10 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:43:04 - End Time 2025-02-10 06:43:04 [2025-02-10 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442639', 'tblTempUsageDetail_20' ) start [2025-02-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442639', 'tblTempUsageDetail_20' ) end [2025-02-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442639', 'tblTempVendorCDR_20' ) start [2025-02-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442639', 'tblTempVendorCDR_20' ) end [2025-02-10 06:43:17] Production.INFO: ProcessCDR(1,14442639,1,1,2) [2025-02-10 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442639', 'tblTempUsageDetail_20' ) start [2025-02-10 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442639', 'tblTempUsageDetail_20' ) end [2025-02-10 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:43:20] Production.INFO: ==23102== Releasing lock... [2025-02-10 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:44:05 [end_date_ymd] => 2025-02-10 06:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:44:05' and `end` < '2025-02-10 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-10 06:44:19] Production.INFO: count ==152 [2025-02-10 06:44:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:44:05 - End Time 2025-02-10 06:44:05 [2025-02-10 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442644', 'tblTempUsageDetail_20' ) start [2025-02-10 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442644', 'tblTempUsageDetail_20' ) end [2025-02-10 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442644', 'tblTempVendorCDR_20' ) start [2025-02-10 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442644', 'tblTempVendorCDR_20' ) end [2025-02-10 06:44:19] Production.INFO: ProcessCDR(1,14442644,1,1,2) [2025-02-10 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442644', 'tblTempUsageDetail_20' ) start [2025-02-10 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442644', 'tblTempUsageDetail_20' ) end [2025-02-10 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:44:22] Production.INFO: ==23179== Releasing lock... [2025-02-10 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:45:04 [end_date_ymd] => 2025-02-10 06:45:04 [RateCDR] => 1 ) [2025-02-10 06: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-10 03:45:04' and `end` < '2025-02-10 06: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-10 06:45:18] Production.INFO: count ==152 [2025-02-10 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:45:04 - End Time 2025-02-10 06:45:04 [2025-02-10 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442649', 'tblTempUsageDetail_20' ) start [2025-02-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442649', 'tblTempUsageDetail_20' ) end [2025-02-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442649', 'tblTempVendorCDR_20' ) start [2025-02-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442649', 'tblTempVendorCDR_20' ) end [2025-02-10 06:45:18] Production.INFO: ProcessCDR(1,14442649,1,1,2) [2025-02-10 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442649', 'tblTempUsageDetail_20' ) start [2025-02-10 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442649', 'tblTempUsageDetail_20' ) end [2025-02-10 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:45:21] Production.INFO: ==23251== Releasing lock... [2025-02-10 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:46:05 [end_date_ymd] => 2025-02-10 06:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:46:05' and `end` < '2025-02-10 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-10 06:46:18] Production.INFO: count ==155 [2025-02-10 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:46:05 - End Time 2025-02-10 06:46:05 [2025-02-10 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442654', 'tblTempUsageDetail_20' ) start [2025-02-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442654', 'tblTempUsageDetail_20' ) end [2025-02-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442654', 'tblTempVendorCDR_20' ) start [2025-02-10 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442654', 'tblTempVendorCDR_20' ) end [2025-02-10 06:46:18] Production.INFO: ProcessCDR(1,14442654,1,1,2) [2025-02-10 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442654', 'tblTempUsageDetail_20' ) start [2025-02-10 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442654', 'tblTempUsageDetail_20' ) end [2025-02-10 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:46:21] Production.INFO: ==23367== Releasing lock... [2025-02-10 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:47:04 [end_date_ymd] => 2025-02-10 06:47:04 [RateCDR] => 1 ) [2025-02-10 06:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:47:04' and `end` < '2025-02-10 06:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:47:19] Production.INFO: count ==155 [2025-02-10 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:47:04 - End Time 2025-02-10 06:47:04 [2025-02-10 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442659', 'tblTempUsageDetail_20' ) start [2025-02-10 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442659', 'tblTempUsageDetail_20' ) end [2025-02-10 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442659', 'tblTempVendorCDR_20' ) start [2025-02-10 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442659', 'tblTempVendorCDR_20' ) end [2025-02-10 06:47:19] Production.INFO: ProcessCDR(1,14442659,1,1,2) [2025-02-10 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442659', 'tblTempUsageDetail_20' ) start [2025-02-10 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442659', 'tblTempUsageDetail_20' ) end [2025-02-10 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:47:22] Production.INFO: ==23439== Releasing lock... [2025-02-10 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:48:05 [end_date_ymd] => 2025-02-10 06:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:48:05' and `end` < '2025-02-10 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-10 06:48:18] Production.INFO: count ==158 [2025-02-10 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:48:05 - End Time 2025-02-10 06:48:05 [2025-02-10 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442664', 'tblTempUsageDetail_20' ) start [2025-02-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442664', 'tblTempUsageDetail_20' ) end [2025-02-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442664', 'tblTempVendorCDR_20' ) start [2025-02-10 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442664', 'tblTempVendorCDR_20' ) end [2025-02-10 06:48:18] Production.INFO: ProcessCDR(1,14442664,1,1,2) [2025-02-10 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442664', 'tblTempUsageDetail_20' ) start [2025-02-10 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442664', 'tblTempUsageDetail_20' ) end [2025-02-10 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:48:21] Production.INFO: ==23512== Releasing lock... [2025-02-10 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:49:05 [end_date_ymd] => 2025-02-10 06:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:49:05' and `end` < '2025-02-10 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-10 06:49:18] Production.INFO: count ==161 [2025-02-10 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:49:05 - End Time 2025-02-10 06:49:05 [2025-02-10 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442669', 'tblTempUsageDetail_20' ) start [2025-02-10 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442669', 'tblTempUsageDetail_20' ) end [2025-02-10 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442669', 'tblTempVendorCDR_20' ) start [2025-02-10 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442669', 'tblTempVendorCDR_20' ) end [2025-02-10 06:49:18] Production.INFO: ProcessCDR(1,14442669,1,1,2) [2025-02-10 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442669', 'tblTempUsageDetail_20' ) start [2025-02-10 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442669', 'tblTempUsageDetail_20' ) end [2025-02-10 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:49:21] Production.INFO: ==23588== Releasing lock... [2025-02-10 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:50:05 [end_date_ymd] => 2025-02-10 06:50:05 [RateCDR] => 1 ) [2025-02-10 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:50:05' and `end` < '2025-02-10 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:50:18] Production.INFO: count ==159 [2025-02-10 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:50:05 - End Time 2025-02-10 06:50:05 [2025-02-10 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442674', 'tblTempUsageDetail_20' ) start [2025-02-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442674', 'tblTempUsageDetail_20' ) end [2025-02-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442674', 'tblTempVendorCDR_20' ) start [2025-02-10 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442674', 'tblTempVendorCDR_20' ) end [2025-02-10 06:50:18] Production.INFO: ProcessCDR(1,14442674,1,1,2) [2025-02-10 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442674', 'tblTempUsageDetail_20' ) start [2025-02-10 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442674', 'tblTempUsageDetail_20' ) end [2025-02-10 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:50:21] Production.INFO: ==23665== Releasing lock... [2025-02-10 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:51:05 [end_date_ymd] => 2025-02-10 06:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:51:05' and `end` < '2025-02-10 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-10 06:51:19] Production.INFO: count ==159 [2025-02-10 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:51:05 - End Time 2025-02-10 06:51:05 [2025-02-10 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442680', 'tblTempUsageDetail_20' ) start [2025-02-10 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442680', 'tblTempUsageDetail_20' ) end [2025-02-10 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442680', 'tblTempVendorCDR_20' ) start [2025-02-10 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442680', 'tblTempVendorCDR_20' ) end [2025-02-10 06:51:19] Production.INFO: ProcessCDR(1,14442680,1,1,2) [2025-02-10 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442680', 'tblTempUsageDetail_20' ) start [2025-02-10 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442680', 'tblTempUsageDetail_20' ) end [2025-02-10 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:51:22] Production.INFO: ==23741== Releasing lock... [2025-02-10 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:52:04 [end_date_ymd] => 2025-02-10 06:52:04 [RateCDR] => 1 ) [2025-02-10 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-10 03:52:04' and `end` < '2025-02-10 06:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:52:18] Production.INFO: count ==159 [2025-02-10 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:52:04 - End Time 2025-02-10 06:52:04 [2025-02-10 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442685', 'tblTempUsageDetail_20' ) start [2025-02-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442685', 'tblTempUsageDetail_20' ) end [2025-02-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442685', 'tblTempVendorCDR_20' ) start [2025-02-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442685', 'tblTempVendorCDR_20' ) end [2025-02-10 06:52:18] Production.INFO: ProcessCDR(1,14442685,1,1,2) [2025-02-10 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442685', 'tblTempUsageDetail_20' ) start [2025-02-10 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442685', 'tblTempUsageDetail_20' ) end [2025-02-10 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:52:21] Production.INFO: ==23815== Releasing lock... [2025-02-10 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:53:05 [end_date_ymd] => 2025-02-10 06:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:53:05' and `end` < '2025-02-10 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-10 06:53:19] Production.INFO: count ==159 [2025-02-10 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:53:05 - End Time 2025-02-10 06:53:05 [2025-02-10 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442690', 'tblTempUsageDetail_20' ) start [2025-02-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442690', 'tblTempUsageDetail_20' ) end [2025-02-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442690', 'tblTempVendorCDR_20' ) start [2025-02-10 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442690', 'tblTempVendorCDR_20' ) end [2025-02-10 06:53:19] Production.INFO: ProcessCDR(1,14442690,1,1,2) [2025-02-10 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442690', 'tblTempUsageDetail_20' ) start [2025-02-10 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442690', 'tblTempUsageDetail_20' ) end [2025-02-10 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:53:22] Production.INFO: ==23890== Releasing lock... [2025-02-10 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:54:04 [end_date_ymd] => 2025-02-10 06:54:04 [RateCDR] => 1 ) [2025-02-10 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:54:04' and `end` < '2025-02-10 06:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:54:17] Production.INFO: count ==158 [2025-02-10 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-10 03:54:04 - End Time 2025-02-10 06:54:04 [2025-02-10 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442695', 'tblTempUsageDetail_20' ) start [2025-02-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442695', 'tblTempUsageDetail_20' ) end [2025-02-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442695', 'tblTempVendorCDR_20' ) start [2025-02-10 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442695', 'tblTempVendorCDR_20' ) end [2025-02-10 06:54:17] Production.INFO: ProcessCDR(1,14442695,1,1,2) [2025-02-10 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442695', 'tblTempUsageDetail_20' ) start [2025-02-10 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442695', 'tblTempUsageDetail_20' ) end [2025-02-10 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:54:20] Production.INFO: ==23962== Releasing lock... [2025-02-10 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:55:05 [end_date_ymd] => 2025-02-10 06:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:55:05' and `end` < '2025-02-10 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-10 06:55:18] Production.INFO: count ==157 [2025-02-10 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:55:05 - End Time 2025-02-10 06:55:05 [2025-02-10 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442700', 'tblTempUsageDetail_20' ) start [2025-02-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442700', 'tblTempUsageDetail_20' ) end [2025-02-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442700', 'tblTempVendorCDR_20' ) start [2025-02-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442700', 'tblTempVendorCDR_20' ) end [2025-02-10 06:55:18] Production.INFO: ProcessCDR(1,14442700,1,1,2) [2025-02-10 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442700', 'tblTempUsageDetail_20' ) start [2025-02-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442700', 'tblTempUsageDetail_20' ) end [2025-02-10 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:55:21] Production.INFO: ==24037== Releasing lock... [2025-02-10 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:56:06 [end_date_ymd] => 2025-02-10 06:56:06 [RateCDR] => 1 ) [2025-02-10 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:56:06' and `end` < '2025-02-10 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:56:19] Production.INFO: count ==154 [2025-02-10 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-10 03:56:06 - End Time 2025-02-10 06:56:06 [2025-02-10 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442705', 'tblTempUsageDetail_20' ) start [2025-02-10 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442705', 'tblTempUsageDetail_20' ) end [2025-02-10 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442705', 'tblTempVendorCDR_20' ) start [2025-02-10 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442705', 'tblTempVendorCDR_20' ) end [2025-02-10 06:56:19] Production.INFO: ProcessCDR(1,14442705,1,1,2) [2025-02-10 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442705', 'tblTempUsageDetail_20' ) start [2025-02-10 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442705', 'tblTempUsageDetail_20' ) end [2025-02-10 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:56:22] Production.INFO: ==24111== Releasing lock... [2025-02-10 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:57:05 [end_date_ymd] => 2025-02-10 06:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:57:05' and `end` < '2025-02-10 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-10 06:57:18] Production.INFO: count ==154 [2025-02-10 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:57:05 - End Time 2025-02-10 06:57:05 [2025-02-10 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442710', 'tblTempUsageDetail_20' ) start [2025-02-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442710', 'tblTempUsageDetail_20' ) end [2025-02-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442710', 'tblTempVendorCDR_20' ) start [2025-02-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442710', 'tblTempVendorCDR_20' ) end [2025-02-10 06:57:18] Production.INFO: ProcessCDR(1,14442710,1,1,2) [2025-02-10 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442710', 'tblTempUsageDetail_20' ) start [2025-02-10 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442710', 'tblTempUsageDetail_20' ) end [2025-02-10 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:57:21] Production.INFO: ==24185== Releasing lock... [2025-02-10 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:58:05 [end_date_ymd] => 2025-02-10 06:58:05 [RateCDR] => 1 ) [2025-02-10 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 03:58:05' and `end` < '2025-02-10 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 06:58:18] Production.INFO: count ==154 [2025-02-10 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:58:05 - End Time 2025-02-10 06:58:05 [2025-02-10 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442715', 'tblTempUsageDetail_20' ) start [2025-02-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442715', 'tblTempUsageDetail_20' ) end [2025-02-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442715', 'tblTempVendorCDR_20' ) start [2025-02-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442715', 'tblTempVendorCDR_20' ) end [2025-02-10 06:58:18] Production.INFO: ProcessCDR(1,14442715,1,1,2) [2025-02-10 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442715', 'tblTempUsageDetail_20' ) start [2025-02-10 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442715', 'tblTempUsageDetail_20' ) end [2025-02-10 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:58:21] Production.INFO: ==24260== Releasing lock... [2025-02-10 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 03:59:05 [end_date_ymd] => 2025-02-10 06:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 03:59:05' and `end` < '2025-02-10 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-10 06:59:18] Production.INFO: count ==154 [2025-02-10 06:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 03:59:05 - End Time 2025-02-10 06:59:05 [2025-02-10 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442720', 'tblTempUsageDetail_20' ) start [2025-02-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442720', 'tblTempUsageDetail_20' ) end [2025-02-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442720', 'tblTempVendorCDR_20' ) start [2025-02-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442720', 'tblTempVendorCDR_20' ) end [2025-02-10 06:59:18] Production.INFO: ProcessCDR(1,14442720,1,1,2) [2025-02-10 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442720', 'tblTempUsageDetail_20' ) start [2025-02-10 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442720', 'tblTempUsageDetail_20' ) end [2025-02-10 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 06:59:21] Production.INFO: ==24333== Releasing lock... [2025-02-10 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 06:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:00:06 [end_date_ymd] => 2025-02-10 07:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:00:06' and `end` < '2025-02-10 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-10 07:00:20] Production.INFO: count ==152 [2025-02-10 07:00:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:00:06 - End Time 2025-02-10 07:00:06 [2025-02-10 07:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442725', 'tblTempUsageDetail_20' ) start [2025-02-10 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442725', 'tblTempUsageDetail_20' ) end [2025-02-10 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442725', 'tblTempVendorCDR_20' ) start [2025-02-10 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442725', 'tblTempVendorCDR_20' ) end [2025-02-10 07:00:20] Production.INFO: ProcessCDR(1,14442725,1,1,2) [2025-02-10 07:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442725', 'tblTempUsageDetail_20' ) start [2025-02-10 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442725', 'tblTempUsageDetail_20' ) end [2025-02-10 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:00:23] Production.INFO: ==24415== Releasing lock... [2025-02-10 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:01:05 [end_date_ymd] => 2025-02-10 07:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:01:05' and `end` < '2025-02-10 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-10 07:01:29] Production.INFO: count ==150 [2025-02-10 07:01:29] Production.ERROR: pbx CDR StartTime 2025-02-10 04:01:05 - End Time 2025-02-10 07:01:05 [2025-02-10 07:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442730', 'tblTempUsageDetail_20' ) start [2025-02-10 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442730', 'tblTempUsageDetail_20' ) end [2025-02-10 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442730', 'tblTempVendorCDR_20' ) start [2025-02-10 07:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442730', 'tblTempVendorCDR_20' ) end [2025-02-10 07:01:29] Production.INFO: ProcessCDR(1,14442730,1,1,2) [2025-02-10 07:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442730', 'tblTempUsageDetail_20' ) start [2025-02-10 07:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442730', 'tblTempUsageDetail_20' ) end [2025-02-10 07:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:01:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:01:33] Production.INFO: ==24580== Releasing lock... [2025-02-10 07:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:01:33] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:02:06 [end_date_ymd] => 2025-02-10 07:02:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:02:06' and `end` < '2025-02-10 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-10 07:02:21] Production.INFO: count ==152 [2025-02-10 07:02:21] Production.ERROR: pbx CDR StartTime 2025-02-10 04:02:06 - End Time 2025-02-10 07:02:06 [2025-02-10 07:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442736', 'tblTempUsageDetail_20' ) start [2025-02-10 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442736', 'tblTempUsageDetail_20' ) end [2025-02-10 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442736', 'tblTempVendorCDR_20' ) start [2025-02-10 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442736', 'tblTempVendorCDR_20' ) end [2025-02-10 07:02:21] Production.INFO: ProcessCDR(1,14442736,1,1,2) [2025-02-10 07:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442736', 'tblTempUsageDetail_20' ) start [2025-02-10 07:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442736', 'tblTempUsageDetail_20' ) end [2025-02-10 07:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:02:25] Production.INFO: ==24700== Releasing lock... [2025-02-10 07:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:02:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:03:05 [end_date_ymd] => 2025-02-10 07:03:05 [RateCDR] => 1 ) [2025-02-10 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:03:05' and `end` < '2025-02-10 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:03:19] Production.INFO: count ==152 [2025-02-10 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:03:05 - End Time 2025-02-10 07:03:05 [2025-02-10 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442741', 'tblTempUsageDetail_20' ) start [2025-02-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442741', 'tblTempUsageDetail_20' ) end [2025-02-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442741', 'tblTempVendorCDR_20' ) start [2025-02-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442741', 'tblTempVendorCDR_20' ) end [2025-02-10 07:03:19] Production.INFO: ProcessCDR(1,14442741,1,1,2) [2025-02-10 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442741', 'tblTempUsageDetail_20' ) start [2025-02-10 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442741', 'tblTempUsageDetail_20' ) end [2025-02-10 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:03:23] Production.INFO: ==24776== Releasing lock... [2025-02-10 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:04:05 [end_date_ymd] => 2025-02-10 07:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:04:05' and `end` < '2025-02-10 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-10 07:04:20] Production.INFO: count ==152 [2025-02-10 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:04:05 - End Time 2025-02-10 07:04:05 [2025-02-10 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442746', 'tblTempUsageDetail_20' ) start [2025-02-10 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442746', 'tblTempUsageDetail_20' ) end [2025-02-10 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442746', 'tblTempVendorCDR_20' ) start [2025-02-10 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442746', 'tblTempVendorCDR_20' ) end [2025-02-10 07:04:20] Production.INFO: ProcessCDR(1,14442746,1,1,2) [2025-02-10 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442746', 'tblTempUsageDetail_20' ) start [2025-02-10 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442746', 'tblTempUsageDetail_20' ) end [2025-02-10 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:04:23] Production.INFO: ==24855== Releasing lock... [2025-02-10 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:04:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:05:04 [end_date_ymd] => 2025-02-10 07:05:04 [RateCDR] => 1 ) [2025-02-10 07:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:05:04' and `end` < '2025-02-10 07:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:05:20] Production.INFO: count ==152 [2025-02-10 07:05:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:05:04 - End Time 2025-02-10 07:05:04 [2025-02-10 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442751', 'tblTempUsageDetail_20' ) start [2025-02-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442751', 'tblTempUsageDetail_20' ) end [2025-02-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442751', 'tblTempVendorCDR_20' ) start [2025-02-10 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442751', 'tblTempVendorCDR_20' ) end [2025-02-10 07:05:20] Production.INFO: ProcessCDR(1,14442751,1,1,2) [2025-02-10 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442751', 'tblTempUsageDetail_20' ) start [2025-02-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442751', 'tblTempUsageDetail_20' ) end [2025-02-10 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:05:23] Production.INFO: ==25005== Releasing lock... [2025-02-10 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:06:05 [end_date_ymd] => 2025-02-10 07:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:06:05' and `end` < '2025-02-10 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-10 07:06:20] Production.INFO: count ==157 [2025-02-10 07:06:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:06:05 - End Time 2025-02-10 07:06:05 [2025-02-10 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442756', 'tblTempUsageDetail_20' ) start [2025-02-10 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442756', 'tblTempUsageDetail_20' ) end [2025-02-10 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442756', 'tblTempVendorCDR_20' ) start [2025-02-10 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442756', 'tblTempVendorCDR_20' ) end [2025-02-10 07:06:20] Production.INFO: ProcessCDR(1,14442756,1,1,2) [2025-02-10 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442756', 'tblTempUsageDetail_20' ) start [2025-02-10 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442756', 'tblTempUsageDetail_20' ) end [2025-02-10 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:06:24] Production.INFO: ==25079== Releasing lock... [2025-02-10 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:06:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:07:05 [end_date_ymd] => 2025-02-10 07:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:07:05' and `end` < '2025-02-10 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-10 07:07:19] Production.INFO: count ==157 [2025-02-10 07:07:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:07:05 - End Time 2025-02-10 07:07:05 [2025-02-10 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442761', 'tblTempUsageDetail_20' ) start [2025-02-10 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442761', 'tblTempUsageDetail_20' ) end [2025-02-10 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442761', 'tblTempVendorCDR_20' ) start [2025-02-10 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442761', 'tblTempVendorCDR_20' ) end [2025-02-10 07:07:20] Production.INFO: ProcessCDR(1,14442761,1,1,2) [2025-02-10 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442761', 'tblTempUsageDetail_20' ) start [2025-02-10 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442761', 'tblTempUsageDetail_20' ) end [2025-02-10 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:07:23] Production.INFO: ==25153== Releasing lock... [2025-02-10 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:07:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:08:06 [end_date_ymd] => 2025-02-10 07:08:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:08:06' and `end` < '2025-02-10 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-10 07:08:21] Production.INFO: count ==157 [2025-02-10 07:08:21] Production.ERROR: pbx CDR StartTime 2025-02-10 04:08:06 - End Time 2025-02-10 07:08:06 [2025-02-10 07:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442766', 'tblTempUsageDetail_20' ) start [2025-02-10 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442766', 'tblTempUsageDetail_20' ) end [2025-02-10 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442766', 'tblTempVendorCDR_20' ) start [2025-02-10 07:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442766', 'tblTempVendorCDR_20' ) end [2025-02-10 07:08:21] Production.INFO: ProcessCDR(1,14442766,1,1,2) [2025-02-10 07:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442766', 'tblTempUsageDetail_20' ) start [2025-02-10 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442766', 'tblTempUsageDetail_20' ) end [2025-02-10 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:08:24] Production.INFO: ==25306== Releasing lock... [2025-02-10 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:08:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:09:05 [end_date_ymd] => 2025-02-10 07:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:09:05' and `end` < '2025-02-10 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-10 07:09:19] Production.INFO: count ==157 [2025-02-10 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:09:05 - End Time 2025-02-10 07:09:05 [2025-02-10 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442771', 'tblTempUsageDetail_20' ) start [2025-02-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442771', 'tblTempUsageDetail_20' ) end [2025-02-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442771', 'tblTempVendorCDR_20' ) start [2025-02-10 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442771', 'tblTempVendorCDR_20' ) end [2025-02-10 07:09:19] Production.INFO: ProcessCDR(1,14442771,1,1,2) [2025-02-10 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442771', 'tblTempUsageDetail_20' ) start [2025-02-10 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442771', 'tblTempUsageDetail_20' ) end [2025-02-10 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:09:23] Production.INFO: ==25378== Releasing lock... [2025-02-10 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:10:06 [end_date_ymd] => 2025-02-10 07:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:10:06' and `end` < '2025-02-10 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-10 07:10:19] Production.INFO: count ==159 [2025-02-10 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:10:06 - End Time 2025-02-10 07:10:06 [2025-02-10 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442776', 'tblTempUsageDetail_20' ) start [2025-02-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442776', 'tblTempUsageDetail_20' ) end [2025-02-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442776', 'tblTempVendorCDR_20' ) start [2025-02-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442776', 'tblTempVendorCDR_20' ) end [2025-02-10 07:10:19] Production.INFO: ProcessCDR(1,14442776,1,1,2) [2025-02-10 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442776', 'tblTempUsageDetail_20' ) start [2025-02-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442776', 'tblTempUsageDetail_20' ) end [2025-02-10 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:10:23] Production.INFO: ==25455== Releasing lock... [2025-02-10 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:11:05 [end_date_ymd] => 2025-02-10 07:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:11:05' and `end` < '2025-02-10 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-10 07:11:20] Production.INFO: count ==159 [2025-02-10 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:11:05 - End Time 2025-02-10 07:11:05 [2025-02-10 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442782', 'tblTempUsageDetail_20' ) start [2025-02-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442782', 'tblTempUsageDetail_20' ) end [2025-02-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442782', 'tblTempVendorCDR_20' ) start [2025-02-10 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442782', 'tblTempVendorCDR_20' ) end [2025-02-10 07:11:20] Production.INFO: ProcessCDR(1,14442782,1,1,2) [2025-02-10 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442782', 'tblTempUsageDetail_20' ) start [2025-02-10 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442782', 'tblTempUsageDetail_20' ) end [2025-02-10 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:11:23] Production.INFO: ==25536== Releasing lock... [2025-02-10 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:11:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:12:05 [end_date_ymd] => 2025-02-10 07:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:12:05' and `end` < '2025-02-10 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-10 07:12:19] Production.INFO: count ==159 [2025-02-10 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:12:05 - End Time 2025-02-10 07:12:05 [2025-02-10 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442787', 'tblTempUsageDetail_20' ) start [2025-02-10 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442787', 'tblTempUsageDetail_20' ) end [2025-02-10 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442787', 'tblTempVendorCDR_20' ) start [2025-02-10 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442787', 'tblTempVendorCDR_20' ) end [2025-02-10 07:12:19] Production.INFO: ProcessCDR(1,14442787,1,1,2) [2025-02-10 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442787', 'tblTempUsageDetail_20' ) start [2025-02-10 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442787', 'tblTempUsageDetail_20' ) end [2025-02-10 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:12:23] Production.INFO: ==25686== Releasing lock... [2025-02-10 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:12:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:13:06 [end_date_ymd] => 2025-02-10 07:13:06 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:13:06' and `end` < '2025-02-10 07: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-10 07:13:20] Production.INFO: count ==159 [2025-02-10 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:13:06 - End Time 2025-02-10 07:13:06 [2025-02-10 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442792', 'tblTempUsageDetail_20' ) start [2025-02-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442792', 'tblTempUsageDetail_20' ) end [2025-02-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442792', 'tblTempVendorCDR_20' ) start [2025-02-10 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442792', 'tblTempVendorCDR_20' ) end [2025-02-10 07:13:20] Production.INFO: ProcessCDR(1,14442792,1,1,2) [2025-02-10 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442792', 'tblTempUsageDetail_20' ) start [2025-02-10 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442792', 'tblTempUsageDetail_20' ) end [2025-02-10 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:13:23] Production.INFO: ==25760== Releasing lock... [2025-02-10 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:14:05 [end_date_ymd] => 2025-02-10 07:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:14:05' and `end` < '2025-02-10 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-10 07:14:20] Production.INFO: count ==159 [2025-02-10 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:14:05 - End Time 2025-02-10 07:14:05 [2025-02-10 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442797', 'tblTempUsageDetail_20' ) start [2025-02-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442797', 'tblTempUsageDetail_20' ) end [2025-02-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442797', 'tblTempVendorCDR_20' ) start [2025-02-10 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442797', 'tblTempVendorCDR_20' ) end [2025-02-10 07:14:20] Production.INFO: ProcessCDR(1,14442797,1,1,2) [2025-02-10 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442797', 'tblTempUsageDetail_20' ) start [2025-02-10 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442797', 'tblTempUsageDetail_20' ) end [2025-02-10 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:14:24] Production.INFO: ==25834== Releasing lock... [2025-02-10 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:14:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:15:05 [end_date_ymd] => 2025-02-10 07:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:15:05' and `end` < '2025-02-10 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-10 07:15:19] Production.INFO: count ==159 [2025-02-10 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:15:05 - End Time 2025-02-10 07:15:05 [2025-02-10 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442802', 'tblTempUsageDetail_20' ) start [2025-02-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442802', 'tblTempUsageDetail_20' ) end [2025-02-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442802', 'tblTempVendorCDR_20' ) start [2025-02-10 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442802', 'tblTempVendorCDR_20' ) end [2025-02-10 07:15:19] Production.INFO: ProcessCDR(1,14442802,1,1,2) [2025-02-10 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442802', 'tblTempUsageDetail_20' ) start [2025-02-10 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442802', 'tblTempUsageDetail_20' ) end [2025-02-10 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:15:22] Production.INFO: ==25986== Releasing lock... [2025-02-10 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:16:05 [end_date_ymd] => 2025-02-10 07:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:16:05' and `end` < '2025-02-10 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-10 07:16:19] Production.INFO: count ==159 [2025-02-10 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:16:05 - End Time 2025-02-10 07:16:05 [2025-02-10 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442807', 'tblTempUsageDetail_20' ) start [2025-02-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442807', 'tblTempUsageDetail_20' ) end [2025-02-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442807', 'tblTempVendorCDR_20' ) start [2025-02-10 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442807', 'tblTempVendorCDR_20' ) end [2025-02-10 07:16:19] Production.INFO: ProcessCDR(1,14442807,1,1,2) [2025-02-10 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442807', 'tblTempUsageDetail_20' ) start [2025-02-10 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442807', 'tblTempUsageDetail_20' ) end [2025-02-10 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:16:23] Production.INFO: ==26060== Releasing lock... [2025-02-10 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:16:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:17:05 [end_date_ymd] => 2025-02-10 07:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:17:05' and `end` < '2025-02-10 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-10 07:17:20] Production.INFO: count ==159 [2025-02-10 07:17:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:17:05 - End Time 2025-02-10 07:17:05 [2025-02-10 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442812', 'tblTempUsageDetail_20' ) start [2025-02-10 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442812', 'tblTempUsageDetail_20' ) end [2025-02-10 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442812', 'tblTempVendorCDR_20' ) start [2025-02-10 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442812', 'tblTempVendorCDR_20' ) end [2025-02-10 07:17:20] Production.INFO: ProcessCDR(1,14442812,1,1,2) [2025-02-10 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442812', 'tblTempUsageDetail_20' ) start [2025-02-10 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442812', 'tblTempUsageDetail_20' ) end [2025-02-10 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:17:23] Production.INFO: ==26173== Releasing lock... [2025-02-10 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-10 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:18:05 [end_date_ymd] => 2025-02-10 07:18:05 [RateCDR] => 1 ) [2025-02-10 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:18:05' and `end` < '2025-02-10 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:18:21] Production.INFO: count ==162 [2025-02-10 07:18:21] Production.ERROR: pbx CDR StartTime 2025-02-10 04:18:05 - End Time 2025-02-10 07:18:05 [2025-02-10 07:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442817', 'tblTempUsageDetail_20' ) start [2025-02-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442817', 'tblTempUsageDetail_20' ) end [2025-02-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442817', 'tblTempVendorCDR_20' ) start [2025-02-10 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442817', 'tblTempVendorCDR_20' ) end [2025-02-10 07:18:21] Production.INFO: ProcessCDR(1,14442817,1,1,2) [2025-02-10 07:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442817', 'tblTempUsageDetail_20' ) start [2025-02-10 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442817', 'tblTempUsageDetail_20' ) end [2025-02-10 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:18:25] Production.INFO: ==26250== Releasing lock... [2025-02-10 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:18:25] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:19:05 [end_date_ymd] => 2025-02-10 07:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:19:05' and `end` < '2025-02-10 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-10 07:19:19] Production.INFO: count ==162 [2025-02-10 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:19:05 - End Time 2025-02-10 07:19:05 [2025-02-10 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442822', 'tblTempUsageDetail_20' ) start [2025-02-10 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442822', 'tblTempUsageDetail_20' ) end [2025-02-10 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442822', 'tblTempVendorCDR_20' ) start [2025-02-10 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442822', 'tblTempVendorCDR_20' ) end [2025-02-10 07:19:19] Production.INFO: ProcessCDR(1,14442822,1,1,2) [2025-02-10 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442822', 'tblTempUsageDetail_20' ) start [2025-02-10 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442822', 'tblTempUsageDetail_20' ) end [2025-02-10 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:19:22] Production.INFO: ==26332== Releasing lock... [2025-02-10 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:19:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:20:05 [end_date_ymd] => 2025-02-10 07:20:05 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:20:05' and `end` < '2025-02-10 07: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-10 07:20:18] Production.INFO: count ==162 [2025-02-10 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:20:05 - End Time 2025-02-10 07:20:05 [2025-02-10 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442827', 'tblTempUsageDetail_20' ) start [2025-02-10 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442827', 'tblTempUsageDetail_20' ) end [2025-02-10 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442827', 'tblTempVendorCDR_20' ) start [2025-02-10 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442827', 'tblTempVendorCDR_20' ) end [2025-02-10 07:20:18] Production.INFO: ProcessCDR(1,14442827,1,1,2) [2025-02-10 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442827', 'tblTempUsageDetail_20' ) start [2025-02-10 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442827', 'tblTempUsageDetail_20' ) end [2025-02-10 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:20:21] Production.INFO: ==26406== Releasing lock... [2025-02-10 07:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:20:21] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:21:06 [end_date_ymd] => 2025-02-10 07:21:06 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:21:06' and `end` < '2025-02-10 07: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-10 07:21:19] Production.INFO: count ==162 [2025-02-10 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:21:06 - End Time 2025-02-10 07:21:06 [2025-02-10 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442833', 'tblTempUsageDetail_20' ) start [2025-02-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442833', 'tblTempUsageDetail_20' ) end [2025-02-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442833', 'tblTempVendorCDR_20' ) start [2025-02-10 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442833', 'tblTempVendorCDR_20' ) end [2025-02-10 07:21:19] Production.INFO: ProcessCDR(1,14442833,1,1,2) [2025-02-10 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442833', 'tblTempUsageDetail_20' ) start [2025-02-10 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442833', 'tblTempUsageDetail_20' ) end [2025-02-10 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:21:22] Production.INFO: ==26483== Releasing lock... [2025-02-10 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:22:06 [end_date_ymd] => 2025-02-10 07:22:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:22:06' and `end` < '2025-02-10 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-10 07:22:19] Production.INFO: count ==167 [2025-02-10 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:22:06 - End Time 2025-02-10 07:22:06 [2025-02-10 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442838', 'tblTempUsageDetail_20' ) start [2025-02-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442838', 'tblTempUsageDetail_20' ) end [2025-02-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442838', 'tblTempVendorCDR_20' ) start [2025-02-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442838', 'tblTempVendorCDR_20' ) end [2025-02-10 07:22:19] Production.INFO: ProcessCDR(1,14442838,1,1,2) [2025-02-10 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442838', 'tblTempUsageDetail_20' ) start [2025-02-10 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442838', 'tblTempUsageDetail_20' ) end [2025-02-10 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:22:23] Production.INFO: ==26556== Releasing lock... [2025-02-10 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:22:23] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:23:05 [end_date_ymd] => 2025-02-10 07:23:05 [RateCDR] => 1 ) [2025-02-10 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:23:05' and `end` < '2025-02-10 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:23:18] Production.INFO: count ==167 [2025-02-10 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:23:05 - End Time 2025-02-10 07:23:05 [2025-02-10 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442843', 'tblTempUsageDetail_20' ) start [2025-02-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442843', 'tblTempUsageDetail_20' ) end [2025-02-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442843', 'tblTempVendorCDR_20' ) start [2025-02-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442843', 'tblTempVendorCDR_20' ) end [2025-02-10 07:23:18] Production.INFO: ProcessCDR(1,14442843,1,1,2) [2025-02-10 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442843', 'tblTempUsageDetail_20' ) start [2025-02-10 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442843', 'tblTempUsageDetail_20' ) end [2025-02-10 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:23:22] Production.INFO: ==26632== Releasing lock... [2025-02-10 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:24:05 [end_date_ymd] => 2025-02-10 07:24:05 [RateCDR] => 1 ) [2025-02-10 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:24:05' and `end` < '2025-02-10 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:24:18] Production.INFO: count ==167 [2025-02-10 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:24:05 - End Time 2025-02-10 07:24:05 [2025-02-10 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442848', 'tblTempUsageDetail_20' ) start [2025-02-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442848', 'tblTempUsageDetail_20' ) end [2025-02-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442848', 'tblTempVendorCDR_20' ) start [2025-02-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442848', 'tblTempVendorCDR_20' ) end [2025-02-10 07:24:18] Production.INFO: ProcessCDR(1,14442848,1,1,2) [2025-02-10 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442848', 'tblTempUsageDetail_20' ) start [2025-02-10 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442848', 'tblTempUsageDetail_20' ) end [2025-02-10 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:24:21] Production.INFO: ==26709== Releasing lock... [2025-02-10 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:25:06 [end_date_ymd] => 2025-02-10 07:25:06 [RateCDR] => 1 ) [2025-02-10 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:25:06' and `end` < '2025-02-10 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:25:18] Production.INFO: count ==167 [2025-02-10 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:25:06 - End Time 2025-02-10 07:25:06 [2025-02-10 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442853', 'tblTempUsageDetail_20' ) start [2025-02-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442853', 'tblTempUsageDetail_20' ) end [2025-02-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442853', 'tblTempVendorCDR_20' ) start [2025-02-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442853', 'tblTempVendorCDR_20' ) end [2025-02-10 07:25:18] Production.INFO: ProcessCDR(1,14442853,1,1,2) [2025-02-10 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442853', 'tblTempUsageDetail_20' ) start [2025-02-10 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442853', 'tblTempUsageDetail_20' ) end [2025-02-10 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:25:22] Production.INFO: ==26785== Releasing lock... [2025-02-10 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:25:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:26:05 [end_date_ymd] => 2025-02-10 07:26:05 [RateCDR] => 1 ) [2025-02-10 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:26:05' and `end` < '2025-02-10 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:26:19] Production.INFO: count ==167 [2025-02-10 07:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:26:05 - End Time 2025-02-10 07:26:05 [2025-02-10 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442858', 'tblTempUsageDetail_20' ) start [2025-02-10 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442858', 'tblTempUsageDetail_20' ) end [2025-02-10 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442858', 'tblTempVendorCDR_20' ) start [2025-02-10 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442858', 'tblTempVendorCDR_20' ) end [2025-02-10 07:26:19] Production.INFO: ProcessCDR(1,14442858,1,1,2) [2025-02-10 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442858', 'tblTempUsageDetail_20' ) start [2025-02-10 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442858', 'tblTempUsageDetail_20' ) end [2025-02-10 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:26:22] Production.INFO: ==26857== Releasing lock... [2025-02-10 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:26:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:27:05 [end_date_ymd] => 2025-02-10 07:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:27:05' and `end` < '2025-02-10 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-10 07:27:18] Production.INFO: count ==167 [2025-02-10 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:27:05 - End Time 2025-02-10 07:27:05 [2025-02-10 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442863', 'tblTempUsageDetail_20' ) start [2025-02-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442863', 'tblTempUsageDetail_20' ) end [2025-02-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442863', 'tblTempVendorCDR_20' ) start [2025-02-10 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442863', 'tblTempVendorCDR_20' ) end [2025-02-10 07:27:18] Production.INFO: ProcessCDR(1,14442863,1,1,2) [2025-02-10 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442863', 'tblTempUsageDetail_20' ) start [2025-02-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442863', 'tblTempUsageDetail_20' ) end [2025-02-10 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:27:21] Production.INFO: ==26930== Releasing lock... [2025-02-10 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:28:04 [end_date_ymd] => 2025-02-10 07:28:04 [RateCDR] => 1 ) [2025-02-10 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:28:04' and `end` < '2025-02-10 07:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:28:18] Production.INFO: count ==168 [2025-02-10 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:28:04 - End Time 2025-02-10 07:28:04 [2025-02-10 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442868', 'tblTempUsageDetail_20' ) start [2025-02-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442868', 'tblTempUsageDetail_20' ) end [2025-02-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442868', 'tblTempVendorCDR_20' ) start [2025-02-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442868', 'tblTempVendorCDR_20' ) end [2025-02-10 07:28:18] Production.INFO: ProcessCDR(1,14442868,1,1,2) [2025-02-10 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442868', 'tblTempUsageDetail_20' ) start [2025-02-10 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442868', 'tblTempUsageDetail_20' ) end [2025-02-10 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:28:23] Production.INFO: ==27002== Releasing lock... [2025-02-10 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:28:23] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:29:06 [end_date_ymd] => 2025-02-10 07:29:06 [RateCDR] => 1 ) [2025-02-10 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-10 04:29:06' and `end` < '2025-02-10 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:29:21] Production.INFO: count ==173 [2025-02-10 07:29:21] Production.ERROR: pbx CDR StartTime 2025-02-10 04:29:06 - End Time 2025-02-10 07:29:06 [2025-02-10 07:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442873', 'tblTempUsageDetail_20' ) start [2025-02-10 07:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442873', 'tblTempUsageDetail_20' ) end [2025-02-10 07:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442873', 'tblTempVendorCDR_20' ) start [2025-02-10 07:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442873', 'tblTempVendorCDR_20' ) end [2025-02-10 07:29:21] Production.INFO: ProcessCDR(1,14442873,1,1,2) [2025-02-10 07:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442873', 'tblTempUsageDetail_20' ) start [2025-02-10 07:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442873', 'tblTempUsageDetail_20' ) end [2025-02-10 07:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:29:24] Production.INFO: ==27079== Releasing lock... [2025-02-10 07:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:29:24] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:30:05 [end_date_ymd] => 2025-02-10 07:30:05 [RateCDR] => 1 ) [2025-02-10 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:30:05' and `end` < '2025-02-10 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:30:18] Production.INFO: count ==178 [2025-02-10 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:30:05 - End Time 2025-02-10 07:30:05 [2025-02-10 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442878', 'tblTempUsageDetail_20' ) start [2025-02-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442878', 'tblTempUsageDetail_20' ) end [2025-02-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442878', 'tblTempVendorCDR_20' ) start [2025-02-10 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442878', 'tblTempVendorCDR_20' ) end [2025-02-10 07:30:18] Production.INFO: ProcessCDR(1,14442878,1,1,2) [2025-02-10 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442878', 'tblTempUsageDetail_20' ) start [2025-02-10 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442878', 'tblTempUsageDetail_20' ) end [2025-02-10 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:30:22] Production.INFO: ==27159== Releasing lock... [2025-02-10 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:30:22] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:31:05 [end_date_ymd] => 2025-02-10 07:31:05 [RateCDR] => 1 ) [2025-02-10 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:31:05' and `end` < '2025-02-10 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:31:19] Production.INFO: count ==185 [2025-02-10 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:31:05 - End Time 2025-02-10 07:31:05 [2025-02-10 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442884', 'tblTempUsageDetail_20' ) start [2025-02-10 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442884', 'tblTempUsageDetail_20' ) end [2025-02-10 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442884', 'tblTempVendorCDR_20' ) start [2025-02-10 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442884', 'tblTempVendorCDR_20' ) end [2025-02-10 07:31:19] Production.INFO: ProcessCDR(1,14442884,1,1,2) [2025-02-10 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442884', 'tblTempUsageDetail_20' ) start [2025-02-10 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442884', 'tblTempUsageDetail_20' ) end [2025-02-10 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:31:23] Production.INFO: ==27234== Releasing lock... [2025-02-10 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:31:23] Production.INFO: 29 MB #Memory Used# [2025-02-10 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:32:04 [end_date_ymd] => 2025-02-10 07:32:04 [RateCDR] => 1 ) [2025-02-10 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-10 04:32:04' and `end` < '2025-02-10 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:32:17] Production.INFO: count ==187 [2025-02-10 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-10 04:32:04 - End Time 2025-02-10 07:32:04 [2025-02-10 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442889', 'tblTempUsageDetail_20' ) start [2025-02-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442889', 'tblTempUsageDetail_20' ) end [2025-02-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442889', 'tblTempVendorCDR_20' ) start [2025-02-10 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442889', 'tblTempVendorCDR_20' ) end [2025-02-10 07:32:17] Production.INFO: ProcessCDR(1,14442889,1,1,2) [2025-02-10 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442889', 'tblTempUsageDetail_20' ) start [2025-02-10 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442889', 'tblTempUsageDetail_20' ) end [2025-02-10 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:32:21] Production.INFO: ==27346== Releasing lock... [2025-02-10 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:33:05 [end_date_ymd] => 2025-02-10 07:33:05 [RateCDR] => 1 ) [2025-02-10 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:33:05' and `end` < '2025-02-10 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:33:18] Production.INFO: count ==190 [2025-02-10 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:33:05 - End Time 2025-02-10 07:33:05 [2025-02-10 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442894', 'tblTempUsageDetail_20' ) start [2025-02-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442894', 'tblTempUsageDetail_20' ) end [2025-02-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442894', 'tblTempVendorCDR_20' ) start [2025-02-10 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442894', 'tblTempVendorCDR_20' ) end [2025-02-10 07:33:18] Production.INFO: ProcessCDR(1,14442894,1,1,2) [2025-02-10 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442894', 'tblTempUsageDetail_20' ) start [2025-02-10 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442894', 'tblTempUsageDetail_20' ) end [2025-02-10 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:33:21] Production.INFO: ==27418== Releasing lock... [2025-02-10 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:34:05 [end_date_ymd] => 2025-02-10 07:34:05 [RateCDR] => 1 ) [2025-02-10 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:34:05' and `end` < '2025-02-10 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:34:19] Production.INFO: count ==190 [2025-02-10 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:34:05 - End Time 2025-02-10 07:34:05 [2025-02-10 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442899', 'tblTempUsageDetail_20' ) start [2025-02-10 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442899', 'tblTempUsageDetail_20' ) end [2025-02-10 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442899', 'tblTempVendorCDR_20' ) start [2025-02-10 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442899', 'tblTempVendorCDR_20' ) end [2025-02-10 07:34:19] Production.INFO: ProcessCDR(1,14442899,1,1,2) [2025-02-10 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442899', 'tblTempUsageDetail_20' ) start [2025-02-10 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442899', 'tblTempUsageDetail_20' ) end [2025-02-10 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:34:22] Production.INFO: ==27508== Releasing lock... [2025-02-10 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:35:05 [end_date_ymd] => 2025-02-10 07:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:35:05' and `end` < '2025-02-10 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-10 07:35:18] Production.INFO: count ==190 [2025-02-10 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:35:05 - End Time 2025-02-10 07:35:05 [2025-02-10 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442904', 'tblTempUsageDetail_20' ) start [2025-02-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442904', 'tblTempUsageDetail_20' ) end [2025-02-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442904', 'tblTempVendorCDR_20' ) start [2025-02-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442904', 'tblTempVendorCDR_20' ) end [2025-02-10 07:35:18] Production.INFO: ProcessCDR(1,14442904,1,1,2) [2025-02-10 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442904', 'tblTempUsageDetail_20' ) start [2025-02-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442904', 'tblTempUsageDetail_20' ) end [2025-02-10 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:35:21] Production.INFO: ==27581== Releasing lock... [2025-02-10 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:36:06 [end_date_ymd] => 2025-02-10 07:36:06 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:36:06' and `end` < '2025-02-10 07: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-10 07:36:19] Production.INFO: count ==195 [2025-02-10 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:36:06 - End Time 2025-02-10 07:36:06 [2025-02-10 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442909', 'tblTempUsageDetail_20' ) start [2025-02-10 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442909', 'tblTempUsageDetail_20' ) end [2025-02-10 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442909', 'tblTempVendorCDR_20' ) start [2025-02-10 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442909', 'tblTempVendorCDR_20' ) end [2025-02-10 07:36:19] Production.INFO: ProcessCDR(1,14442909,1,1,2) [2025-02-10 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442909', 'tblTempUsageDetail_20' ) start [2025-02-10 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442909', 'tblTempUsageDetail_20' ) end [2025-02-10 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:36:22] Production.INFO: ==27657== Releasing lock... [2025-02-10 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:37:05 [end_date_ymd] => 2025-02-10 07:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:37:05' and `end` < '2025-02-10 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-10 07:37:18] Production.INFO: count ==195 [2025-02-10 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:37:05 - End Time 2025-02-10 07:37:05 [2025-02-10 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442914', 'tblTempUsageDetail_20' ) start [2025-02-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442914', 'tblTempUsageDetail_20' ) end [2025-02-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442914', 'tblTempVendorCDR_20' ) start [2025-02-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442914', 'tblTempVendorCDR_20' ) end [2025-02-10 07:37:18] Production.INFO: ProcessCDR(1,14442914,1,1,2) [2025-02-10 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442914', 'tblTempUsageDetail_20' ) start [2025-02-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442914', 'tblTempUsageDetail_20' ) end [2025-02-10 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:37:21] Production.INFO: ==27731== Releasing lock... [2025-02-10 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:37:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:38:05 [end_date_ymd] => 2025-02-10 07:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:38:05' and `end` < '2025-02-10 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-10 07:38:18] Production.INFO: count ==195 [2025-02-10 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:38:05 - End Time 2025-02-10 07:38:05 [2025-02-10 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442917', 'tblTempUsageDetail_20' ) start [2025-02-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442917', 'tblTempUsageDetail_20' ) end [2025-02-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442917', 'tblTempVendorCDR_20' ) start [2025-02-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442917', 'tblTempVendorCDR_20' ) end [2025-02-10 07:38:18] Production.INFO: ProcessCDR(1,14442917,1,1,2) [2025-02-10 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442917', 'tblTempUsageDetail_20' ) start [2025-02-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442917', 'tblTempUsageDetail_20' ) end [2025-02-10 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:38:21] Production.INFO: ==27803== Releasing lock... [2025-02-10 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:39:05 [end_date_ymd] => 2025-02-10 07:39:05 [RateCDR] => 1 ) [2025-02-10 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:39:05' and `end` < '2025-02-10 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:39:18] Production.INFO: count ==195 [2025-02-10 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:39:05 - End Time 2025-02-10 07:39:05 [2025-02-10 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442924', 'tblTempUsageDetail_20' ) start [2025-02-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442924', 'tblTempUsageDetail_20' ) end [2025-02-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442924', 'tblTempVendorCDR_20' ) start [2025-02-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442924', 'tblTempVendorCDR_20' ) end [2025-02-10 07:39:18] Production.INFO: ProcessCDR(1,14442924,1,1,2) [2025-02-10 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442924', 'tblTempUsageDetail_20' ) start [2025-02-10 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442924', 'tblTempUsageDetail_20' ) end [2025-02-10 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:39:21] Production.INFO: ==27883== Releasing lock... [2025-02-10 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:40:07 [end_date_ymd] => 2025-02-10 07:40:07 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:40:07' and `end` < '2025-02-10 07: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-10 07:40:20] Production.INFO: count ==197 [2025-02-10 07:40:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:40:07 - End Time 2025-02-10 07:40:07 [2025-02-10 07:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442930', 'tblTempUsageDetail_20' ) start [2025-02-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442930', 'tblTempUsageDetail_20' ) end [2025-02-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442930', 'tblTempVendorCDR_20' ) start [2025-02-10 07:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442930', 'tblTempVendorCDR_20' ) end [2025-02-10 07:40:20] Production.INFO: ProcessCDR(1,14442930,1,1,2) [2025-02-10 07:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442930', 'tblTempUsageDetail_20' ) start [2025-02-10 07:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442930', 'tblTempUsageDetail_20' ) end [2025-02-10 07:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:40:23] Production.INFO: ==27958== Releasing lock... [2025-02-10 07:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:41:04 [end_date_ymd] => 2025-02-10 07:41:04 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:41:04' and `end` < '2025-02-10 07: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-10 07:41:19] Production.INFO: count ==197 [2025-02-10 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:41:04 - End Time 2025-02-10 07:41:04 [2025-02-10 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442935', 'tblTempUsageDetail_20' ) start [2025-02-10 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442935', 'tblTempUsageDetail_20' ) end [2025-02-10 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442935', 'tblTempVendorCDR_20' ) start [2025-02-10 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442935', 'tblTempVendorCDR_20' ) end [2025-02-10 07:41:19] Production.INFO: ProcessCDR(1,14442935,1,1,2) [2025-02-10 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442935', 'tblTempUsageDetail_20' ) start [2025-02-10 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442935', 'tblTempUsageDetail_20' ) end [2025-02-10 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:41:22] Production.INFO: ==28033== Releasing lock... [2025-02-10 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:42:05 [end_date_ymd] => 2025-02-10 07:42:05 [RateCDR] => 1 ) [2025-02-10 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:42:05' and `end` < '2025-02-10 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:42:18] Production.INFO: count ==197 [2025-02-10 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:42:05 - End Time 2025-02-10 07:42:05 [2025-02-10 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442940', 'tblTempUsageDetail_20' ) start [2025-02-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442940', 'tblTempUsageDetail_20' ) end [2025-02-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442940', 'tblTempVendorCDR_20' ) start [2025-02-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442940', 'tblTempVendorCDR_20' ) end [2025-02-10 07:42:18] Production.INFO: ProcessCDR(1,14442940,1,1,2) [2025-02-10 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442940', 'tblTempUsageDetail_20' ) start [2025-02-10 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442940', 'tblTempUsageDetail_20' ) end [2025-02-10 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:42:22] Production.INFO: ==28107== Releasing lock... [2025-02-10 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:43:05 [end_date_ymd] => 2025-02-10 07:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:43:05' and `end` < '2025-02-10 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-10 07:43:19] Production.INFO: count ==197 [2025-02-10 07:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:43:05 - End Time 2025-02-10 07:43:05 [2025-02-10 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442945', 'tblTempUsageDetail_20' ) start [2025-02-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442945', 'tblTempUsageDetail_20' ) end [2025-02-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442945', 'tblTempVendorCDR_20' ) start [2025-02-10 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442945', 'tblTempVendorCDR_20' ) end [2025-02-10 07:43:19] Production.INFO: ProcessCDR(1,14442945,1,1,2) [2025-02-10 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442945', 'tblTempUsageDetail_20' ) start [2025-02-10 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442945', 'tblTempUsageDetail_20' ) end [2025-02-10 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:43:22] Production.INFO: ==28183== Releasing lock... [2025-02-10 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:44:04 [end_date_ymd] => 2025-02-10 07:44:04 [RateCDR] => 1 ) [2025-02-10 07:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:44:04' and `end` < '2025-02-10 07:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:44:18] Production.INFO: count ==197 [2025-02-10 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:44:04 - End Time 2025-02-10 07:44:04 [2025-02-10 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442947', 'tblTempUsageDetail_20' ) start [2025-02-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442947', 'tblTempUsageDetail_20' ) end [2025-02-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442947', 'tblTempVendorCDR_20' ) start [2025-02-10 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442947', 'tblTempVendorCDR_20' ) end [2025-02-10 07:44:18] Production.INFO: ProcessCDR(1,14442947,1,1,2) [2025-02-10 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442947', 'tblTempUsageDetail_20' ) start [2025-02-10 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442947', 'tblTempUsageDetail_20' ) end [2025-02-10 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:44:21] Production.INFO: ==28258== Releasing lock... [2025-02-10 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:45:05 [end_date_ymd] => 2025-02-10 07:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:45:05' and `end` < '2025-02-10 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-10 07:45:18] Production.INFO: count ==197 [2025-02-10 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:45:05 - End Time 2025-02-10 07:45:05 [2025-02-10 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442955', 'tblTempUsageDetail_20' ) start [2025-02-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442955', 'tblTempUsageDetail_20' ) end [2025-02-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442955', 'tblTempVendorCDR_20' ) start [2025-02-10 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442955', 'tblTempVendorCDR_20' ) end [2025-02-10 07:45:18] Production.INFO: ProcessCDR(1,14442955,1,1,2) [2025-02-10 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442955', 'tblTempUsageDetail_20' ) start [2025-02-10 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442955', 'tblTempUsageDetail_20' ) end [2025-02-10 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:45:21] Production.INFO: ==28331== Releasing lock... [2025-02-10 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:46:05 [end_date_ymd] => 2025-02-10 07:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:46:05' and `end` < '2025-02-10 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-10 07:46:18] Production.INFO: count ==201 [2025-02-10 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:46:05 - End Time 2025-02-10 07:46:05 [2025-02-10 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442956', 'tblTempUsageDetail_20' ) start [2025-02-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442956', 'tblTempUsageDetail_20' ) end [2025-02-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442956', 'tblTempVendorCDR_20' ) start [2025-02-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442956', 'tblTempVendorCDR_20' ) end [2025-02-10 07:46:18] Production.INFO: ProcessCDR(1,14442956,1,1,2) [2025-02-10 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442956', 'tblTempUsageDetail_20' ) start [2025-02-10 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442956', 'tblTempUsageDetail_20' ) end [2025-02-10 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:46:21] Production.INFO: ==28408== Releasing lock... [2025-02-10 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:47:06 [end_date_ymd] => 2025-02-10 07:47:06 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:47:06' and `end` < '2025-02-10 07: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-10 07:47:19] Production.INFO: count ==200 [2025-02-10 07:47:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:47:06 - End Time 2025-02-10 07:47:06 [2025-02-10 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442965', 'tblTempUsageDetail_20' ) start [2025-02-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442965', 'tblTempUsageDetail_20' ) end [2025-02-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442965', 'tblTempVendorCDR_20' ) start [2025-02-10 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442965', 'tblTempVendorCDR_20' ) end [2025-02-10 07:47:19] Production.INFO: ProcessCDR(1,14442965,1,1,2) [2025-02-10 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442965', 'tblTempUsageDetail_20' ) start [2025-02-10 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442965', 'tblTempUsageDetail_20' ) end [2025-02-10 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:47:22] Production.INFO: ==28484== Releasing lock... [2025-02-10 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:48:05 [end_date_ymd] => 2025-02-10 07:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:48:05' and `end` < '2025-02-10 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-10 07:48:18] Production.INFO: count ==200 [2025-02-10 07:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:48:05 - End Time 2025-02-10 07:48:05 [2025-02-10 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442970', 'tblTempUsageDetail_20' ) start [2025-02-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442970', 'tblTempUsageDetail_20' ) end [2025-02-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442970', 'tblTempVendorCDR_20' ) start [2025-02-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442970', 'tblTempVendorCDR_20' ) end [2025-02-10 07:48:18] Production.INFO: ProcessCDR(1,14442970,1,1,2) [2025-02-10 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442970', 'tblTempUsageDetail_20' ) start [2025-02-10 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442970', 'tblTempUsageDetail_20' ) end [2025-02-10 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:48:21] Production.INFO: ==28599== Releasing lock... [2025-02-10 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:49:06 [end_date_ymd] => 2025-02-10 07:49:06 [RateCDR] => 1 ) [2025-02-10 07: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-10 04:49:06' and `end` < '2025-02-10 07: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-10 07:49:18] Production.INFO: count ==200 [2025-02-10 07:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:49:06 - End Time 2025-02-10 07:49:06 [2025-02-10 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442975', 'tblTempUsageDetail_20' ) start [2025-02-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442975', 'tblTempUsageDetail_20' ) end [2025-02-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442975', 'tblTempVendorCDR_20' ) start [2025-02-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442975', 'tblTempVendorCDR_20' ) end [2025-02-10 07:49:18] Production.INFO: ProcessCDR(1,14442975,1,1,2) [2025-02-10 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442975', 'tblTempUsageDetail_20' ) start [2025-02-10 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442975', 'tblTempUsageDetail_20' ) end [2025-02-10 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:49:22] Production.INFO: ==28676== Releasing lock... [2025-02-10 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:50:05 [end_date_ymd] => 2025-02-10 07:50:05 [RateCDR] => 1 ) [2025-02-10 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:50:05' and `end` < '2025-02-10 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:50:18] Production.INFO: count ==208 [2025-02-10 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:50:05 - End Time 2025-02-10 07:50:05 [2025-02-10 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442980', 'tblTempUsageDetail_20' ) start [2025-02-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442980', 'tblTempUsageDetail_20' ) end [2025-02-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442980', 'tblTempVendorCDR_20' ) start [2025-02-10 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442980', 'tblTempVendorCDR_20' ) end [2025-02-10 07:50:18] Production.INFO: ProcessCDR(1,14442980,1,1,2) [2025-02-10 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442980', 'tblTempUsageDetail_20' ) start [2025-02-10 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442980', 'tblTempUsageDetail_20' ) end [2025-02-10 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:50:21] Production.INFO: ==28754== Releasing lock... [2025-02-10 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:51:05 [end_date_ymd] => 2025-02-10 07:51:05 [RateCDR] => 1 ) [2025-02-10 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:51:05' and `end` < '2025-02-10 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:51:18] Production.INFO: count ==211 [2025-02-10 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:51:05 - End Time 2025-02-10 07:51:05 [2025-02-10 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442986', 'tblTempUsageDetail_20' ) start [2025-02-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442986', 'tblTempUsageDetail_20' ) end [2025-02-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442986', 'tblTempVendorCDR_20' ) start [2025-02-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442986', 'tblTempVendorCDR_20' ) end [2025-02-10 07:51:18] Production.INFO: ProcessCDR(1,14442986,1,1,2) [2025-02-10 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442986', 'tblTempUsageDetail_20' ) start [2025-02-10 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442986', 'tblTempUsageDetail_20' ) end [2025-02-10 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:51:21] Production.INFO: ==28828== Releasing lock... [2025-02-10 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:52:05 [end_date_ymd] => 2025-02-10 07:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:52:05' and `end` < '2025-02-10 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-10 07:52:17] Production.INFO: count ==211 [2025-02-10 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-10 04:52:05 - End Time 2025-02-10 07:52:05 [2025-02-10 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442991', 'tblTempUsageDetail_20' ) start [2025-02-10 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442991', 'tblTempUsageDetail_20' ) end [2025-02-10 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442991', 'tblTempVendorCDR_20' ) start [2025-02-10 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442991', 'tblTempVendorCDR_20' ) end [2025-02-10 07:52:17] Production.INFO: ProcessCDR(1,14442991,1,1,2) [2025-02-10 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442991', 'tblTempUsageDetail_20' ) start [2025-02-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442991', 'tblTempUsageDetail_20' ) end [2025-02-10 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:52:21] Production.INFO: ==28900== Releasing lock... [2025-02-10 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:53:05 [end_date_ymd] => 2025-02-10 07:53:05 [RateCDR] => 1 ) [2025-02-10 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:53:05' and `end` < '2025-02-10 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:53:18] Production.INFO: count ==211 [2025-02-10 07:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:53:05 - End Time 2025-02-10 07:53:05 [2025-02-10 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442996', 'tblTempUsageDetail_20' ) start [2025-02-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14442996', 'tblTempUsageDetail_20' ) end [2025-02-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442996', 'tblTempVendorCDR_20' ) start [2025-02-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14442996', 'tblTempVendorCDR_20' ) end [2025-02-10 07:53:18] Production.INFO: ProcessCDR(1,14442996,1,1,2) [2025-02-10 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14442996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14442996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14442996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14442996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442996', 'tblTempUsageDetail_20' ) start [2025-02-10 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14442996', 'tblTempUsageDetail_20' ) end [2025-02-10 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:53:21] Production.INFO: ==28976== Releasing lock... [2025-02-10 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:54:05 [end_date_ymd] => 2025-02-10 07:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:54:05' and `end` < '2025-02-10 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-10 07:54:18] Production.INFO: count ==212 [2025-02-10 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:54:05 - End Time 2025-02-10 07:54:05 [2025-02-10 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443001', 'tblTempUsageDetail_20' ) start [2025-02-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443001', 'tblTempUsageDetail_20' ) end [2025-02-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443001', 'tblTempVendorCDR_20' ) start [2025-02-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443001', 'tblTempVendorCDR_20' ) end [2025-02-10 07:54:18] Production.INFO: ProcessCDR(1,14443001,1,1,2) [2025-02-10 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443001', 'tblTempUsageDetail_20' ) start [2025-02-10 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443001', 'tblTempUsageDetail_20' ) end [2025-02-10 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:54:22] Production.INFO: ==29050== Releasing lock... [2025-02-10 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:55:05 [end_date_ymd] => 2025-02-10 07:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:55:05' and `end` < '2025-02-10 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-10 07:55:18] Production.INFO: count ==212 [2025-02-10 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:55:05 - End Time 2025-02-10 07:55:05 [2025-02-10 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443006', 'tblTempUsageDetail_20' ) start [2025-02-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443006', 'tblTempUsageDetail_20' ) end [2025-02-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443006', 'tblTempVendorCDR_20' ) start [2025-02-10 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443006', 'tblTempVendorCDR_20' ) end [2025-02-10 07:55:18] Production.INFO: ProcessCDR(1,14443006,1,1,2) [2025-02-10 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443006', 'tblTempUsageDetail_20' ) start [2025-02-10 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443006', 'tblTempUsageDetail_20' ) end [2025-02-10 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:55:21] Production.INFO: ==29122== Releasing lock... [2025-02-10 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:56:05 [end_date_ymd] => 2025-02-10 07:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:56:05' and `end` < '2025-02-10 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-10 07:56:18] Production.INFO: count ==212 [2025-02-10 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:56:05 - End Time 2025-02-10 07:56:05 [2025-02-10 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443011', 'tblTempUsageDetail_20' ) start [2025-02-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443011', 'tblTempUsageDetail_20' ) end [2025-02-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443011', 'tblTempVendorCDR_20' ) start [2025-02-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443011', 'tblTempVendorCDR_20' ) end [2025-02-10 07:56:18] Production.INFO: ProcessCDR(1,14443011,1,1,2) [2025-02-10 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443011', 'tblTempUsageDetail_20' ) start [2025-02-10 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443011', 'tblTempUsageDetail_20' ) end [2025-02-10 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:56:21] Production.INFO: ==29196== Releasing lock... [2025-02-10 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:57:05 [end_date_ymd] => 2025-02-10 07:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:57:05' and `end` < '2025-02-10 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-10 07:57:19] Production.INFO: count ==213 [2025-02-10 07:57:20] Production.ERROR: pbx CDR StartTime 2025-02-10 04:57:05 - End Time 2025-02-10 07:57:05 [2025-02-10 07:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443016', 'tblTempUsageDetail_20' ) start [2025-02-10 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443016', 'tblTempUsageDetail_20' ) end [2025-02-10 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443016', 'tblTempVendorCDR_20' ) start [2025-02-10 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443016', 'tblTempVendorCDR_20' ) end [2025-02-10 07:57:20] Production.INFO: ProcessCDR(1,14443016,1,1,2) [2025-02-10 07:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443016', 'tblTempUsageDetail_20' ) start [2025-02-10 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443016', 'tblTempUsageDetail_20' ) end [2025-02-10 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:57:23] Production.INFO: ==29267== Releasing lock... [2025-02-10 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:58:05 [end_date_ymd] => 2025-02-10 07:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 04:58:05' and `end` < '2025-02-10 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-10 07:58:19] Production.INFO: count ==215 [2025-02-10 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 04:58:05 - End Time 2025-02-10 07:58:05 [2025-02-10 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443021', 'tblTempUsageDetail_20' ) start [2025-02-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443021', 'tblTempUsageDetail_20' ) end [2025-02-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443021', 'tblTempVendorCDR_20' ) start [2025-02-10 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443021', 'tblTempVendorCDR_20' ) end [2025-02-10 07:58:19] Production.INFO: ProcessCDR(1,14443021,1,1,2) [2025-02-10 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443021', 'tblTempUsageDetail_20' ) start [2025-02-10 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443021', 'tblTempUsageDetail_20' ) end [2025-02-10 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:58:22] Production.INFO: ==29345== Releasing lock... [2025-02-10 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 04:59:05 [end_date_ymd] => 2025-02-10 07:59:05 [RateCDR] => 1 ) [2025-02-10 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 04:59:05' and `end` < '2025-02-10 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 07:59:18] Production.INFO: count ==218 [2025-02-10 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 04:59:05 - End Time 2025-02-10 07:59:05 [2025-02-10 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443026', 'tblTempUsageDetail_20' ) start [2025-02-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443026', 'tblTempUsageDetail_20' ) end [2025-02-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443026', 'tblTempVendorCDR_20' ) start [2025-02-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443026', 'tblTempVendorCDR_20' ) end [2025-02-10 07:59:18] Production.INFO: ProcessCDR(1,14443026,1,1,2) [2025-02-10 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443026', 'tblTempUsageDetail_20' ) start [2025-02-10 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443026', 'tblTempUsageDetail_20' ) end [2025-02-10 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-10 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-10 07:59:20] Production.INFO: ==29416== Releasing lock... [2025-02-10 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 07:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-10 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:00:06 [end_date_ymd] => 2025-02-10 08:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:00:06' and `end` < '2025-02-10 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:00:19] Production.INFO: count ==223 [2025-02-10 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:00:06 - End Time 2025-02-10 08:00:06 [2025-02-10 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443032', 'tblTempUsageDetail_20' ) start [2025-02-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443032', 'tblTempUsageDetail_20' ) end [2025-02-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443032', 'tblTempVendorCDR_20' ) start [2025-02-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443032', 'tblTempVendorCDR_20' ) end [2025-02-10 08:00:19] Production.INFO: ProcessCDR(1,14443032,1,1,2) [2025-02-10 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443032', 'tblTempUsageDetail_20' ) start [2025-02-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443032', 'tblTempUsageDetail_20' ) end [2025-02-10 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:00:22] Production.INFO: ==29489== Releasing lock... [2025-02-10 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:01:06 [end_date_ymd] => 2025-02-10 08:01:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:01:06' and `end` < '2025-02-10 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-10 08:01:20] Production.INFO: count ==230 [2025-02-10 08:01:20] Production.ERROR: pbx CDR StartTime 2025-02-10 05:01:06 - End Time 2025-02-10 08:01:06 [2025-02-10 08:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443037', 'tblTempUsageDetail_20' ) start [2025-02-10 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443037', 'tblTempUsageDetail_20' ) end [2025-02-10 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443037', 'tblTempVendorCDR_20' ) start [2025-02-10 08:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443037', 'tblTempVendorCDR_20' ) end [2025-02-10 08:01:20] Production.INFO: ProcessCDR(1,14443037,1,1,2) [2025-02-10 08:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443037', 'tblTempUsageDetail_20' ) start [2025-02-10 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443037', 'tblTempUsageDetail_20' ) end [2025-02-10 08:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:01:23] Production.INFO: ==29575== Releasing lock... [2025-02-10 08:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:01:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:02:05 [end_date_ymd] => 2025-02-10 08:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:02:05' and `end` < '2025-02-10 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-10 08:02:19] Production.INFO: count ==230 [2025-02-10 08:02:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:02:05 - End Time 2025-02-10 08:02:05 [2025-02-10 08:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443042', 'tblTempUsageDetail_20' ) start [2025-02-10 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443042', 'tblTempUsageDetail_20' ) end [2025-02-10 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443042', 'tblTempVendorCDR_20' ) start [2025-02-10 08:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443042', 'tblTempVendorCDR_20' ) end [2025-02-10 08:02:19] Production.INFO: ProcessCDR(1,14443042,1,1,2) [2025-02-10 08:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443042', 'tblTempUsageDetail_20' ) start [2025-02-10 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443042', 'tblTempUsageDetail_20' ) end [2025-02-10 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:02:22] Production.INFO: ==29644== Releasing lock... [2025-02-10 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-10 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:03:05 [end_date_ymd] => 2025-02-10 08:03:05 [RateCDR] => 1 ) [2025-02-10 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:03:05' and `end` < '2025-02-10 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:03:18] Production.INFO: count ==238 [2025-02-10 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:03:05 - End Time 2025-02-10 08:03:05 [2025-02-10 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443047', 'tblTempUsageDetail_20' ) start [2025-02-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443047', 'tblTempUsageDetail_20' ) end [2025-02-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443047', 'tblTempVendorCDR_20' ) start [2025-02-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443047', 'tblTempVendorCDR_20' ) end [2025-02-10 08:03:18] Production.INFO: ProcessCDR(1,14443047,1,1,2) [2025-02-10 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443047', 'tblTempUsageDetail_20' ) start [2025-02-10 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443047', 'tblTempUsageDetail_20' ) end [2025-02-10 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:03:22] Production.INFO: ==29759== Releasing lock... [2025-02-10 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:04:05 [end_date_ymd] => 2025-02-10 08:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:04:05' and `end` < '2025-02-10 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-10 08:04:18] Production.INFO: count ==254 [2025-02-10 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:04:05 - End Time 2025-02-10 08:04:05 [2025-02-10 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443052', 'tblTempUsageDetail_20' ) start [2025-02-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443052', 'tblTempUsageDetail_20' ) end [2025-02-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443052', 'tblTempVendorCDR_20' ) start [2025-02-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443052', 'tblTempVendorCDR_20' ) end [2025-02-10 08:04:18] Production.INFO: ProcessCDR(1,14443052,1,1,2) [2025-02-10 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443052', 'tblTempUsageDetail_20' ) start [2025-02-10 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443052', 'tblTempUsageDetail_20' ) end [2025-02-10 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:04:23] Production.INFO: ==29835== Releasing lock... [2025-02-10 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:04:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:05:05 [end_date_ymd] => 2025-02-10 08:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:05:05' and `end` < '2025-02-10 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-10 08:05:18] Production.INFO: count ==257 [2025-02-10 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:05:05 - End Time 2025-02-10 08:05:05 [2025-02-10 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443057', 'tblTempUsageDetail_20' ) start [2025-02-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443057', 'tblTempUsageDetail_20' ) end [2025-02-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443057', 'tblTempVendorCDR_20' ) start [2025-02-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443057', 'tblTempVendorCDR_20' ) end [2025-02-10 08:05:18] Production.INFO: ProcessCDR(1,14443057,1,1,2) [2025-02-10 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443057', 'tblTempUsageDetail_20' ) start [2025-02-10 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443057', 'tblTempUsageDetail_20' ) end [2025-02-10 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:05:22] Production.INFO: ==29908== Releasing lock... [2025-02-10 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-10 08:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:06:04 [end_date_ymd] => 2025-02-10 08:06:04 [RateCDR] => 1 ) [2025-02-10 08: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-10 05:06:04' and `end` < '2025-02-10 08: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-10 08:06:18] Production.INFO: count ==270 [2025-02-10 08:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:06:04 - End Time 2025-02-10 08:06:04 [2025-02-10 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443062', 'tblTempUsageDetail_20' ) start [2025-02-10 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443062', 'tblTempUsageDetail_20' ) end [2025-02-10 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443062', 'tblTempVendorCDR_20' ) start [2025-02-10 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443062', 'tblTempVendorCDR_20' ) end [2025-02-10 08:06:19] Production.INFO: ProcessCDR(1,14443062,1,1,2) [2025-02-10 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443062', 'tblTempUsageDetail_20' ) start [2025-02-10 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443062', 'tblTempUsageDetail_20' ) end [2025-02-10 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:06:22] Production.INFO: ==29983== Releasing lock... [2025-02-10 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:07:05 [end_date_ymd] => 2025-02-10 08:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:07:05' and `end` < '2025-02-10 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-10 08:07:18] Production.INFO: count ==270 [2025-02-10 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:07:05 - End Time 2025-02-10 08:07:05 [2025-02-10 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443067', 'tblTempUsageDetail_20' ) start [2025-02-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443067', 'tblTempUsageDetail_20' ) end [2025-02-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443067', 'tblTempVendorCDR_20' ) start [2025-02-10 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443067', 'tblTempVendorCDR_20' ) end [2025-02-10 08:07:18] Production.INFO: ProcessCDR(1,14443067,1,1,2) [2025-02-10 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443067', 'tblTempUsageDetail_20' ) start [2025-02-10 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443067', 'tblTempUsageDetail_20' ) end [2025-02-10 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:07:21] Production.INFO: ==30057== Releasing lock... [2025-02-10 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:08:06 [end_date_ymd] => 2025-02-10 08:08:06 [RateCDR] => 1 ) [2025-02-10 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:08:06' and `end` < '2025-02-10 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:08:20] Production.INFO: count ==271 [2025-02-10 08:08:20] Production.ERROR: pbx CDR StartTime 2025-02-10 05:08:06 - End Time 2025-02-10 08:08:06 [2025-02-10 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443072', 'tblTempUsageDetail_20' ) start [2025-02-10 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443072', 'tblTempUsageDetail_20' ) end [2025-02-10 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443072', 'tblTempVendorCDR_20' ) start [2025-02-10 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443072', 'tblTempVendorCDR_20' ) end [2025-02-10 08:08:20] Production.INFO: ProcessCDR(1,14443072,1,1,2) [2025-02-10 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443072', 'tblTempUsageDetail_20' ) start [2025-02-10 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443072', 'tblTempUsageDetail_20' ) end [2025-02-10 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:08:23] Production.INFO: ==30128== Releasing lock... [2025-02-10 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:08:23] Production.INFO: 30 MB #Memory Used# [2025-02-10 08:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:09:04 [end_date_ymd] => 2025-02-10 08:09:04 [RateCDR] => 1 ) [2025-02-10 08:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:09:04' and `end` < '2025-02-10 08:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:09:18] Production.INFO: count ==286 [2025-02-10 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:09:04 - End Time 2025-02-10 08:09:04 [2025-02-10 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443077', 'tblTempUsageDetail_20' ) start [2025-02-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443077', 'tblTempUsageDetail_20' ) end [2025-02-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443077', 'tblTempVendorCDR_20' ) start [2025-02-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443077', 'tblTempVendorCDR_20' ) end [2025-02-10 08:09:18] Production.INFO: ProcessCDR(1,14443077,1,1,2) [2025-02-10 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443077', 'tblTempUsageDetail_20' ) start [2025-02-10 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443077', 'tblTempUsageDetail_20' ) end [2025-02-10 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:09:23] Production.INFO: ==30207== Releasing lock... [2025-02-10 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:09:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-10 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:10:06 [end_date_ymd] => 2025-02-10 08:10:06 [RateCDR] => 1 ) [2025-02-10 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:10:06' and `end` < '2025-02-10 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:10:19] Production.INFO: count ==304 [2025-02-10 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:10:06 - End Time 2025-02-10 08:10:06 [2025-02-10 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443083', 'tblTempUsageDetail_20' ) start [2025-02-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443083', 'tblTempUsageDetail_20' ) end [2025-02-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443083', 'tblTempVendorCDR_20' ) start [2025-02-10 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443083', 'tblTempVendorCDR_20' ) end [2025-02-10 08:10:19] Production.INFO: ProcessCDR(1,14443083,1,1,2) [2025-02-10 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443083', 'tblTempUsageDetail_20' ) start [2025-02-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443083', 'tblTempUsageDetail_20' ) end [2025-02-10 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:10:22] Production.INFO: ==30283== Releasing lock... [2025-02-10 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-10 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:11:05 [end_date_ymd] => 2025-02-10 08:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:11:05' and `end` < '2025-02-10 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-10 08:11:18] Production.INFO: count ==348 [2025-02-10 08:11:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:11:05 - End Time 2025-02-10 08:11:05 [2025-02-10 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443088', 'tblTempUsageDetail_20' ) start [2025-02-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443088', 'tblTempUsageDetail_20' ) end [2025-02-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443088', 'tblTempVendorCDR_20' ) start [2025-02-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443088', 'tblTempVendorCDR_20' ) end [2025-02-10 08:11:18] Production.INFO: ProcessCDR(1,14443088,1,1,2) [2025-02-10 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443088', 'tblTempUsageDetail_20' ) start [2025-02-10 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443088', 'tblTempUsageDetail_20' ) end [2025-02-10 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:11:21] Production.INFO: ==30356== Releasing lock... [2025-02-10 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-10 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:12:05 [end_date_ymd] => 2025-02-10 08:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:12:05' and `end` < '2025-02-10 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-10 08:12:18] Production.INFO: count ==357 [2025-02-10 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:12:05 - End Time 2025-02-10 08:12:05 [2025-02-10 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443093', 'tblTempUsageDetail_20' ) start [2025-02-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443093', 'tblTempUsageDetail_20' ) end [2025-02-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443093', 'tblTempVendorCDR_20' ) start [2025-02-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443093', 'tblTempVendorCDR_20' ) end [2025-02-10 08:12:18] Production.INFO: ProcessCDR(1,14443093,1,1,2) [2025-02-10 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443093', 'tblTempUsageDetail_20' ) start [2025-02-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443093', 'tblTempUsageDetail_20' ) end [2025-02-10 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:12:21] Production.INFO: ==30431== Releasing lock... [2025-02-10 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-10 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:13:04 [end_date_ymd] => 2025-02-10 08:13:04 [RateCDR] => 1 ) [2025-02-10 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-10 05:13:04' and `end` < '2025-02-10 08:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:13:19] Production.INFO: count ==372 [2025-02-10 08:13:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:13:04 - End Time 2025-02-10 08:13:04 [2025-02-10 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443098', 'tblTempUsageDetail_20' ) start [2025-02-10 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443098', 'tblTempUsageDetail_20' ) end [2025-02-10 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443098', 'tblTempVendorCDR_20' ) start [2025-02-10 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443098', 'tblTempVendorCDR_20' ) end [2025-02-10 08:13:19] Production.INFO: ProcessCDR(1,14443098,1,1,2) [2025-02-10 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443098', 'tblTempUsageDetail_20' ) start [2025-02-10 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443098', 'tblTempUsageDetail_20' ) end [2025-02-10 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:13:22] Production.INFO: ==30508== Releasing lock... [2025-02-10 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:13:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:14:05 [end_date_ymd] => 2025-02-10 08:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:14:05' and `end` < '2025-02-10 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-10 08:14:18] Production.INFO: count ==374 [2025-02-10 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:14:05 - End Time 2025-02-10 08:14:05 [2025-02-10 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443103', 'tblTempUsageDetail_20' ) start [2025-02-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443103', 'tblTempUsageDetail_20' ) end [2025-02-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443103', 'tblTempVendorCDR_20' ) start [2025-02-10 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443103', 'tblTempVendorCDR_20' ) end [2025-02-10 08:14:18] Production.INFO: ProcessCDR(1,14443103,1,1,2) [2025-02-10 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443103', 'tblTempUsageDetail_20' ) start [2025-02-10 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443103', 'tblTempUsageDetail_20' ) end [2025-02-10 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:14:23] Production.INFO: ==30579== Releasing lock... [2025-02-10 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:14:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:15:05 [end_date_ymd] => 2025-02-10 08:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:15:05' and `end` < '2025-02-10 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-10 08:15:18] Production.INFO: count ==379 [2025-02-10 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:15:05 - End Time 2025-02-10 08:15:05 [2025-02-10 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443108', 'tblTempUsageDetail_20' ) start [2025-02-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443108', 'tblTempUsageDetail_20' ) end [2025-02-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443108', 'tblTempVendorCDR_20' ) start [2025-02-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443108', 'tblTempVendorCDR_20' ) end [2025-02-10 08:15:18] Production.INFO: ProcessCDR(1,14443108,1,1,2) [2025-02-10 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443108', 'tblTempUsageDetail_20' ) start [2025-02-10 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443108', 'tblTempUsageDetail_20' ) end [2025-02-10 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:15:23] Production.INFO: ==30658== Releasing lock... [2025-02-10 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:15:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:16:05 [end_date_ymd] => 2025-02-10 08:16:05 [RateCDR] => 1 ) [2025-02-10 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:16:05' and `end` < '2025-02-10 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:16:18] Production.INFO: count ==382 [2025-02-10 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:16:05 - End Time 2025-02-10 08:16:05 [2025-02-10 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443113', 'tblTempUsageDetail_20' ) start [2025-02-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443113', 'tblTempUsageDetail_20' ) end [2025-02-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443113', 'tblTempVendorCDR_20' ) start [2025-02-10 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443113', 'tblTempVendorCDR_20' ) end [2025-02-10 08:16:18] Production.INFO: ProcessCDR(1,14443113,1,1,2) [2025-02-10 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443113', 'tblTempUsageDetail_20' ) start [2025-02-10 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443113', 'tblTempUsageDetail_20' ) end [2025-02-10 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:16:21] Production.INFO: ==30731== Releasing lock... [2025-02-10 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-10 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:17:05 [end_date_ymd] => 2025-02-10 08:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:17:05' and `end` < '2025-02-10 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-10 08:17:19] Production.INFO: count ==389 [2025-02-10 08:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:17:05 - End Time 2025-02-10 08:17:05 [2025-02-10 08:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443118', 'tblTempUsageDetail_20' ) start [2025-02-10 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443118', 'tblTempUsageDetail_20' ) end [2025-02-10 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443118', 'tblTempVendorCDR_20' ) start [2025-02-10 08:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443118', 'tblTempVendorCDR_20' ) end [2025-02-10 08:17:19] Production.INFO: ProcessCDR(1,14443118,1,1,2) [2025-02-10 08:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443118', 'tblTempUsageDetail_20' ) start [2025-02-10 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443118', 'tblTempUsageDetail_20' ) end [2025-02-10 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:17:23] Production.INFO: ==30813== Releasing lock... [2025-02-10 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:17:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:18:05 [end_date_ymd] => 2025-02-10 08:18:05 [RateCDR] => 1 ) [2025-02-10 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:18:05' and `end` < '2025-02-10 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:18:18] Production.INFO: count ==401 [2025-02-10 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:18:05 - End Time 2025-02-10 08:18:05 [2025-02-10 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443123', 'tblTempUsageDetail_20' ) start [2025-02-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443123', 'tblTempUsageDetail_20' ) end [2025-02-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443123', 'tblTempVendorCDR_20' ) start [2025-02-10 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443123', 'tblTempVendorCDR_20' ) end [2025-02-10 08:18:18] Production.INFO: ProcessCDR(1,14443123,1,1,2) [2025-02-10 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443123', 'tblTempUsageDetail_20' ) start [2025-02-10 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443123', 'tblTempUsageDetail_20' ) end [2025-02-10 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:18:22] Production.INFO: ==30898== Releasing lock... [2025-02-10 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:18:22] Production.INFO: 31 MB #Memory Used# [2025-02-10 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:19:05 [end_date_ymd] => 2025-02-10 08:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:19:05' and `end` < '2025-02-10 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-10 08:19:18] Production.INFO: count ==406 [2025-02-10 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:19:05 - End Time 2025-02-10 08:19:05 [2025-02-10 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443124', 'tblTempUsageDetail_20' ) start [2025-02-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443124', 'tblTempUsageDetail_20' ) end [2025-02-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443124', 'tblTempVendorCDR_20' ) start [2025-02-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443124', 'tblTempVendorCDR_20' ) end [2025-02-10 08:19:18] Production.INFO: ProcessCDR(1,14443124,1,1,2) [2025-02-10 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443124', 'tblTempUsageDetail_20' ) start [2025-02-10 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443124', 'tblTempUsageDetail_20' ) end [2025-02-10 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:19:21] Production.INFO: ==31013== Releasing lock... [2025-02-10 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:20:05 [end_date_ymd] => 2025-02-10 08:20:05 [RateCDR] => 1 ) [2025-02-10 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:20:05' and `end` < '2025-02-10 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:20:18] Production.INFO: count ==411 [2025-02-10 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:20:05 - End Time 2025-02-10 08:20:05 [2025-02-10 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443134', 'tblTempUsageDetail_20' ) start [2025-02-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443134', 'tblTempUsageDetail_20' ) end [2025-02-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443134', 'tblTempVendorCDR_20' ) start [2025-02-10 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443134', 'tblTempVendorCDR_20' ) end [2025-02-10 08:20:18] Production.INFO: ProcessCDR(1,14443134,1,1,2) [2025-02-10 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443134', 'tblTempUsageDetail_20' ) start [2025-02-10 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443134', 'tblTempUsageDetail_20' ) end [2025-02-10 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:20:21] Production.INFO: ==31091== Releasing lock... [2025-02-10 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:21:05 [end_date_ymd] => 2025-02-10 08:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:21:05' and `end` < '2025-02-10 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-10 08:21:18] Production.INFO: count ==445 [2025-02-10 08:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:21:05 - End Time 2025-02-10 08:21:05 [2025-02-10 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443139', 'tblTempUsageDetail_20' ) start [2025-02-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443139', 'tblTempUsageDetail_20' ) end [2025-02-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443139', 'tblTempVendorCDR_20' ) start [2025-02-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443139', 'tblTempVendorCDR_20' ) end [2025-02-10 08:21:18] Production.INFO: ProcessCDR(1,14443139,1,1,2) [2025-02-10 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443139', 'tblTempUsageDetail_20' ) start [2025-02-10 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443139', 'tblTempUsageDetail_20' ) end [2025-02-10 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:21:21] Production.INFO: ==31167== Releasing lock... [2025-02-10 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:22:05 [end_date_ymd] => 2025-02-10 08:22:05 [RateCDR] => 1 ) [2025-02-10 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:22:05' and `end` < '2025-02-10 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:22:19] Production.INFO: count ==449 [2025-02-10 08:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:22:05 - End Time 2025-02-10 08:22:05 [2025-02-10 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443144', 'tblTempUsageDetail_20' ) start [2025-02-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443144', 'tblTempUsageDetail_20' ) end [2025-02-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443144', 'tblTempVendorCDR_20' ) start [2025-02-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443144', 'tblTempVendorCDR_20' ) end [2025-02-10 08:22:19] Production.INFO: ProcessCDR(1,14443144,1,1,2) [2025-02-10 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443144', 'tblTempUsageDetail_20' ) start [2025-02-10 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443144', 'tblTempUsageDetail_20' ) end [2025-02-10 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:22:23] Production.INFO: ==31247== Releasing lock... [2025-02-10 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-10 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:23:05 [end_date_ymd] => 2025-02-10 08:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:23:05' and `end` < '2025-02-10 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-10 08:23:20] Production.INFO: count ==454 [2025-02-10 08:23:20] Production.ERROR: pbx CDR StartTime 2025-02-10 05:23:05 - End Time 2025-02-10 08:23:05 [2025-02-10 08:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443149', 'tblTempUsageDetail_20' ) start [2025-02-10 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443149', 'tblTempUsageDetail_20' ) end [2025-02-10 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443149', 'tblTempVendorCDR_20' ) start [2025-02-10 08:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443149', 'tblTempVendorCDR_20' ) end [2025-02-10 08:23:20] Production.INFO: ProcessCDR(1,14443149,1,1,2) [2025-02-10 08:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443149', 'tblTempUsageDetail_20' ) start [2025-02-10 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443149', 'tblTempUsageDetail_20' ) end [2025-02-10 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:23:23] Production.INFO: ==31322== Releasing lock... [2025-02-10 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:23:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-10 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:24:06 [end_date_ymd] => 2025-02-10 08:24:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:24:06' and `end` < '2025-02-10 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-10 08:24:19] Production.INFO: count ==455 [2025-02-10 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:24:06 - End Time 2025-02-10 08:24:06 [2025-02-10 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443154', 'tblTempUsageDetail_20' ) start [2025-02-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443154', 'tblTempUsageDetail_20' ) end [2025-02-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443154', 'tblTempVendorCDR_20' ) start [2025-02-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443154', 'tblTempVendorCDR_20' ) end [2025-02-10 08:24:19] Production.INFO: ProcessCDR(1,14443154,1,1,2) [2025-02-10 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443154', 'tblTempUsageDetail_20' ) start [2025-02-10 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443154', 'tblTempUsageDetail_20' ) end [2025-02-10 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:24:23] Production.INFO: ==31398== Releasing lock... [2025-02-10 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:24:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:25:05 [end_date_ymd] => 2025-02-10 08:25:05 [RateCDR] => 1 ) [2025-02-10 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:25:05' and `end` < '2025-02-10 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:25:18] Production.INFO: count ==462 [2025-02-10 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:25:05 - End Time 2025-02-10 08:25:05 [2025-02-10 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443156', 'tblTempUsageDetail_20' ) start [2025-02-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443156', 'tblTempUsageDetail_20' ) end [2025-02-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443156', 'tblTempVendorCDR_20' ) start [2025-02-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443156', 'tblTempVendorCDR_20' ) end [2025-02-10 08:25:18] Production.INFO: ProcessCDR(1,14443156,1,1,2) [2025-02-10 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443156', 'tblTempUsageDetail_20' ) start [2025-02-10 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443156', 'tblTempUsageDetail_20' ) end [2025-02-10 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:25:23] Production.INFO: ==31475== Releasing lock... [2025-02-10 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:26:06 [end_date_ymd] => 2025-02-10 08:26:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:26:06' and `end` < '2025-02-10 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-10 08:26:20] Production.INFO: count ==462 [2025-02-10 08:26:20] Production.ERROR: pbx CDR StartTime 2025-02-10 05:26:06 - End Time 2025-02-10 08:26:06 [2025-02-10 08:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443164', 'tblTempUsageDetail_20' ) start [2025-02-10 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443164', 'tblTempUsageDetail_20' ) end [2025-02-10 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443164', 'tblTempVendorCDR_20' ) start [2025-02-10 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443164', 'tblTempVendorCDR_20' ) end [2025-02-10 08:26:20] Production.INFO: ProcessCDR(1,14443164,1,1,2) [2025-02-10 08:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443164', 'tblTempUsageDetail_20' ) start [2025-02-10 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443164', 'tblTempUsageDetail_20' ) end [2025-02-10 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:26:23] Production.INFO: ==31589== Releasing lock... [2025-02-10 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:26:23] Production.INFO: 32 MB #Memory Used# [2025-02-10 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:27:04 [end_date_ymd] => 2025-02-10 08:27:04 [RateCDR] => 1 ) [2025-02-10 08: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-10 05:27:04' and `end` < '2025-02-10 08: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-10 08:27:17] Production.INFO: count ==463 [2025-02-10 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-10 05:27:04 - End Time 2025-02-10 08:27:04 [2025-02-10 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443169', 'tblTempUsageDetail_20' ) start [2025-02-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443169', 'tblTempUsageDetail_20' ) end [2025-02-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443169', 'tblTempVendorCDR_20' ) start [2025-02-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443169', 'tblTempVendorCDR_20' ) end [2025-02-10 08:27:17] Production.INFO: ProcessCDR(1,14443169,1,1,2) [2025-02-10 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443169', 'tblTempUsageDetail_20' ) start [2025-02-10 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443169', 'tblTempUsageDetail_20' ) end [2025-02-10 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:27:21] Production.INFO: ==31700== Releasing lock... [2025-02-10 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-10 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:28:05 [end_date_ymd] => 2025-02-10 08:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:28:05' and `end` < '2025-02-10 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-10 08:28:18] Production.INFO: count ==485 [2025-02-10 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:28:05 - End Time 2025-02-10 08:28:05 [2025-02-10 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443174', 'tblTempUsageDetail_20' ) start [2025-02-10 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443174', 'tblTempUsageDetail_20' ) end [2025-02-10 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443174', 'tblTempVendorCDR_20' ) start [2025-02-10 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443174', 'tblTempVendorCDR_20' ) end [2025-02-10 08:28:18] Production.INFO: ProcessCDR(1,14443174,1,1,2) [2025-02-10 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443174', 'tblTempUsageDetail_20' ) start [2025-02-10 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443174', 'tblTempUsageDetail_20' ) end [2025-02-10 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:28:22] Production.INFO: ==31791== Releasing lock... [2025-02-10 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 08:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:29:04 [end_date_ymd] => 2025-02-10 08:29:04 [RateCDR] => 1 ) [2025-02-10 08:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:29:04' and `end` < '2025-02-10 08:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:29:17] Production.INFO: count ==494 [2025-02-10 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-10 05:29:04 - End Time 2025-02-10 08:29:04 [2025-02-10 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443179', 'tblTempUsageDetail_20' ) start [2025-02-10 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443179', 'tblTempUsageDetail_20' ) end [2025-02-10 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443179', 'tblTempVendorCDR_20' ) start [2025-02-10 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443179', 'tblTempVendorCDR_20' ) end [2025-02-10 08:29:17] Production.INFO: ProcessCDR(1,14443179,1,1,2) [2025-02-10 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443179', 'tblTempUsageDetail_20' ) start [2025-02-10 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443179', 'tblTempUsageDetail_20' ) end [2025-02-10 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:29:22] Production.INFO: ==31865== Releasing lock... [2025-02-10 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:30:06 [end_date_ymd] => 2025-02-10 08:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:30:06' and `end` < '2025-02-10 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-10 08:30:19] Production.INFO: count ==500 [2025-02-10 08:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:30:06 - End Time 2025-02-10 08:30:06 [2025-02-10 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443185', 'tblTempUsageDetail_20' ) start [2025-02-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443185', 'tblTempUsageDetail_20' ) end [2025-02-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443185', 'tblTempVendorCDR_20' ) start [2025-02-10 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443185', 'tblTempVendorCDR_20' ) end [2025-02-10 08:30:19] Production.INFO: ProcessCDR(1,14443185,1,1,2) [2025-02-10 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443185', 'tblTempUsageDetail_20' ) start [2025-02-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443185', 'tblTempUsageDetail_20' ) end [2025-02-10 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:30:23] Production.INFO: ==31940== Releasing lock... [2025-02-10 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-10 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:31:05 [end_date_ymd] => 2025-02-10 08:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:31:05' and `end` < '2025-02-10 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-10 08:31:19] Production.INFO: count ==541 [2025-02-10 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:31:05 - End Time 2025-02-10 08:31:05 [2025-02-10 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443190', 'tblTempUsageDetail_20' ) start [2025-02-10 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443190', 'tblTempUsageDetail_20' ) end [2025-02-10 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443190', 'tblTempVendorCDR_20' ) start [2025-02-10 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443190', 'tblTempVendorCDR_20' ) end [2025-02-10 08:31:19] Production.INFO: ProcessCDR(1,14443190,1,1,2) [2025-02-10 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443190', 'tblTempUsageDetail_20' ) start [2025-02-10 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443190', 'tblTempUsageDetail_20' ) end [2025-02-10 08:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:31:24] Production.INFO: ==32019== Releasing lock... [2025-02-10 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:31:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:32:05 [end_date_ymd] => 2025-02-10 08:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:32:05' and `end` < '2025-02-10 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-10 08:32:18] Production.INFO: count ==549 [2025-02-10 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:32:05 - End Time 2025-02-10 08:32:05 [2025-02-10 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443195', 'tblTempUsageDetail_20' ) start [2025-02-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443195', 'tblTempUsageDetail_20' ) end [2025-02-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443195', 'tblTempVendorCDR_20' ) start [2025-02-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443195', 'tblTempVendorCDR_20' ) end [2025-02-10 08:32:18] Production.INFO: ProcessCDR(1,14443195,1,1,2) [2025-02-10 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443195', 'tblTempUsageDetail_20' ) start [2025-02-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443195', 'tblTempUsageDetail_20' ) end [2025-02-10 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:32:21] Production.INFO: ==32093== Releasing lock... [2025-02-10 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:32:21] Production.INFO: 33 MB #Memory Used# [2025-02-10 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:33:05 [end_date_ymd] => 2025-02-10 08:33:05 [RateCDR] => 1 ) [2025-02-10 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:33:05' and `end` < '2025-02-10 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:33:18] Production.INFO: count ==551 [2025-02-10 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:33:05 - End Time 2025-02-10 08:33:05 [2025-02-10 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443200', 'tblTempUsageDetail_20' ) start [2025-02-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443200', 'tblTempUsageDetail_20' ) end [2025-02-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443200', 'tblTempVendorCDR_20' ) start [2025-02-10 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443200', 'tblTempVendorCDR_20' ) end [2025-02-10 08:33:18] Production.INFO: ProcessCDR(1,14443200,1,1,2) [2025-02-10 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443200', 'tblTempUsageDetail_20' ) start [2025-02-10 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443200', 'tblTempUsageDetail_20' ) end [2025-02-10 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:33:23] Production.INFO: ==32164== Releasing lock... [2025-02-10 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:33:23] Production.INFO: 33 MB #Memory Used# [2025-02-10 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:34:05 [end_date_ymd] => 2025-02-10 08:34:05 [RateCDR] => 1 ) [2025-02-10 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:34:05' and `end` < '2025-02-10 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:34:18] Production.INFO: count ==564 [2025-02-10 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:34:05 - End Time 2025-02-10 08:34:05 [2025-02-10 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443205', 'tblTempUsageDetail_20' ) start [2025-02-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443205', 'tblTempUsageDetail_20' ) end [2025-02-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443205', 'tblTempVendorCDR_20' ) start [2025-02-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443205', 'tblTempVendorCDR_20' ) end [2025-02-10 08:34:18] Production.INFO: ProcessCDR(1,14443205,1,1,2) [2025-02-10 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443205', 'tblTempUsageDetail_20' ) start [2025-02-10 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443205', 'tblTempUsageDetail_20' ) end [2025-02-10 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:34:23] Production.INFO: ==32276== Releasing lock... [2025-02-10 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:34:23] Production.INFO: 33 MB #Memory Used# [2025-02-10 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:35:06 [end_date_ymd] => 2025-02-10 08:35:06 [RateCDR] => 1 ) [2025-02-10 08: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-10 05:35:06' and `end` < '2025-02-10 08: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-10 08:35:19] Production.INFO: count ==582 [2025-02-10 08:35:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:35:06 - End Time 2025-02-10 08:35:06 [2025-02-10 08:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443210', 'tblTempUsageDetail_20' ) start [2025-02-10 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443210', 'tblTempUsageDetail_20' ) end [2025-02-10 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443210', 'tblTempVendorCDR_20' ) start [2025-02-10 08:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443210', 'tblTempVendorCDR_20' ) end [2025-02-10 08:35:19] Production.INFO: ProcessCDR(1,14443210,1,1,2) [2025-02-10 08:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443210', 'tblTempUsageDetail_20' ) start [2025-02-10 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443210', 'tblTempUsageDetail_20' ) end [2025-02-10 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:35:22] Production.INFO: ==32352== Releasing lock... [2025-02-10 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:36:05 [end_date_ymd] => 2025-02-10 08:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:36:05' and `end` < '2025-02-10 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-10 08:36:18] Production.INFO: count ==582 [2025-02-10 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:36:05 - End Time 2025-02-10 08:36:05 [2025-02-10 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443215', 'tblTempUsageDetail_20' ) start [2025-02-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443215', 'tblTempUsageDetail_20' ) end [2025-02-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443215', 'tblTempVendorCDR_20' ) start [2025-02-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443215', 'tblTempVendorCDR_20' ) end [2025-02-10 08:36:18] Production.INFO: ProcessCDR(1,14443215,1,1,2) [2025-02-10 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443215', 'tblTempUsageDetail_20' ) start [2025-02-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443215', 'tblTempUsageDetail_20' ) end [2025-02-10 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:36:21] Production.INFO: ==32423== Releasing lock... [2025-02-10 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-10 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:37:05 [end_date_ymd] => 2025-02-10 08:37:05 [RateCDR] => 1 ) [2025-02-10 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:37:05' and `end` < '2025-02-10 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:37:18] Production.INFO: count ==596 [2025-02-10 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:37:05 - End Time 2025-02-10 08:37:05 [2025-02-10 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443220', 'tblTempUsageDetail_20' ) start [2025-02-10 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443220', 'tblTempUsageDetail_20' ) end [2025-02-10 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443220', 'tblTempVendorCDR_20' ) start [2025-02-10 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443220', 'tblTempVendorCDR_20' ) end [2025-02-10 08:37:19] Production.INFO: ProcessCDR(1,14443220,1,1,2) [2025-02-10 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443220', 'tblTempUsageDetail_20' ) start [2025-02-10 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443220', 'tblTempUsageDetail_20' ) end [2025-02-10 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:37:23] Production.INFO: ==32501== Releasing lock... [2025-02-10 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:37:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-10 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:38:04 [end_date_ymd] => 2025-02-10 08:38:04 [RateCDR] => 1 ) [2025-02-10 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:38:04' and `end` < '2025-02-10 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:38:18] Production.INFO: count ==601 [2025-02-10 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:38:04 - End Time 2025-02-10 08:38:04 [2025-02-10 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443225', 'tblTempUsageDetail_20' ) start [2025-02-10 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443225', 'tblTempUsageDetail_20' ) end [2025-02-10 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443225', 'tblTempVendorCDR_20' ) start [2025-02-10 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443225', 'tblTempVendorCDR_20' ) end [2025-02-10 08:38:19] Production.INFO: ProcessCDR(1,14443225,1,1,2) [2025-02-10 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443225', 'tblTempUsageDetail_20' ) start [2025-02-10 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443225', 'tblTempUsageDetail_20' ) end [2025-02-10 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:38:22] Production.INFO: ==32575== Releasing lock... [2025-02-10 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:38:22] Production.INFO: 33 MB #Memory Used# [2025-02-10 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:39:05 [end_date_ymd] => 2025-02-10 08:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:39:05' and `end` < '2025-02-10 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-10 08:39:18] Production.INFO: count ==612 [2025-02-10 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:39:05 - End Time 2025-02-10 08:39:05 [2025-02-10 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443230', 'tblTempUsageDetail_20' ) start [2025-02-10 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443230', 'tblTempUsageDetail_20' ) end [2025-02-10 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443230', 'tblTempVendorCDR_20' ) start [2025-02-10 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443230', 'tblTempVendorCDR_20' ) end [2025-02-10 08:39:19] Production.INFO: ProcessCDR(1,14443230,1,1,2) [2025-02-10 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443230', 'tblTempUsageDetail_20' ) start [2025-02-10 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443230', 'tblTempUsageDetail_20' ) end [2025-02-10 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:39:23] Production.INFO: ==32646== Releasing lock... [2025-02-10 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:39:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-10 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:40:06 [end_date_ymd] => 2025-02-10 08:40:06 [RateCDR] => 1 ) [2025-02-10 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:40:06' and `end` < '2025-02-10 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:40:19] Production.INFO: count ==621 [2025-02-10 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:40:06 - End Time 2025-02-10 08:40:06 [2025-02-10 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443236', 'tblTempUsageDetail_20' ) start [2025-02-10 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443236', 'tblTempUsageDetail_20' ) end [2025-02-10 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443236', 'tblTempVendorCDR_20' ) start [2025-02-10 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443236', 'tblTempVendorCDR_20' ) end [2025-02-10 08:40:19] Production.INFO: ProcessCDR(1,14443236,1,1,2) [2025-02-10 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443236', 'tblTempUsageDetail_20' ) start [2025-02-10 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443236', 'tblTempUsageDetail_20' ) end [2025-02-10 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:40:24] Production.INFO: ==32726== Releasing lock... [2025-02-10 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:40:24] Production.INFO: 33 MB #Memory Used# [2025-02-10 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:41:05 [end_date_ymd] => 2025-02-10 08:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:41:05' and `end` < '2025-02-10 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-10 08:41:18] Production.INFO: count ==662 [2025-02-10 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:41:05 - End Time 2025-02-10 08:41:05 [2025-02-10 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443241', 'tblTempUsageDetail_20' ) start [2025-02-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443241', 'tblTempUsageDetail_20' ) end [2025-02-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443241', 'tblTempVendorCDR_20' ) start [2025-02-10 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443241', 'tblTempVendorCDR_20' ) end [2025-02-10 08:41:18] Production.INFO: ProcessCDR(1,14443241,1,1,2) [2025-02-10 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443241', 'tblTempUsageDetail_20' ) start [2025-02-10 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443241', 'tblTempUsageDetail_20' ) end [2025-02-10 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:41:23] Production.INFO: ==356== Releasing lock... [2025-02-10 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:41:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:42:06 [end_date_ymd] => 2025-02-10 08:42:06 [RateCDR] => 1 ) [2025-02-10 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:42:06' and `end` < '2025-02-10 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:42:19] Production.INFO: count ==668 [2025-02-10 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:42:06 - End Time 2025-02-10 08:42:06 [2025-02-10 08:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443246', 'tblTempUsageDetail_20' ) start [2025-02-10 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443246', 'tblTempUsageDetail_20' ) end [2025-02-10 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443246', 'tblTempVendorCDR_20' ) start [2025-02-10 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443246', 'tblTempVendorCDR_20' ) end [2025-02-10 08:42:20] Production.INFO: ProcessCDR(1,14443246,1,1,2) [2025-02-10 08:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443246', 'tblTempUsageDetail_20' ) start [2025-02-10 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443246', 'tblTempUsageDetail_20' ) end [2025-02-10 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:42:23] Production.INFO: ==429== Releasing lock... [2025-02-10 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:43:05 [end_date_ymd] => 2025-02-10 08:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:43:05' and `end` < '2025-02-10 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-10 08:43:18] Production.INFO: count ==686 [2025-02-10 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:43:05 - End Time 2025-02-10 08:43:05 [2025-02-10 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443251', 'tblTempUsageDetail_20' ) start [2025-02-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443251', 'tblTempUsageDetail_20' ) end [2025-02-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443251', 'tblTempVendorCDR_20' ) start [2025-02-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443251', 'tblTempVendorCDR_20' ) end [2025-02-10 08:43:18] Production.INFO: ProcessCDR(1,14443251,1,1,2) [2025-02-10 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443251', 'tblTempUsageDetail_20' ) start [2025-02-10 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443251', 'tblTempUsageDetail_20' ) end [2025-02-10 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:43:21] Production.INFO: ==502== Releasing lock... [2025-02-10 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-10 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:44:05 [end_date_ymd] => 2025-02-10 08:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:44:05' and `end` < '2025-02-10 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-10 08:44:18] Production.INFO: count ==698 [2025-02-10 08:44:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:44:05 - End Time 2025-02-10 08:44:05 [2025-02-10 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443256', 'tblTempUsageDetail_20' ) start [2025-02-10 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443256', 'tblTempUsageDetail_20' ) end [2025-02-10 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443256', 'tblTempVendorCDR_20' ) start [2025-02-10 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443256', 'tblTempVendorCDR_20' ) end [2025-02-10 08:44:18] Production.INFO: ProcessCDR(1,14443256,1,1,2) [2025-02-10 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443256', 'tblTempUsageDetail_20' ) start [2025-02-10 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443256', 'tblTempUsageDetail_20' ) end [2025-02-10 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:44:22] Production.INFO: ==579== Releasing lock... [2025-02-10 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:44:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:45:05 [end_date_ymd] => 2025-02-10 08:45:05 [RateCDR] => 1 ) [2025-02-10 08:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:45:05' and `end` < '2025-02-10 08:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:45:18] Production.INFO: count ==714 [2025-02-10 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:45:05 - End Time 2025-02-10 08:45:05 [2025-02-10 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443261', 'tblTempUsageDetail_20' ) start [2025-02-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443261', 'tblTempUsageDetail_20' ) end [2025-02-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443261', 'tblTempVendorCDR_20' ) start [2025-02-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443261', 'tblTempVendorCDR_20' ) end [2025-02-10 08:45:18] Production.INFO: ProcessCDR(1,14443261,1,1,2) [2025-02-10 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443261', 'tblTempUsageDetail_20' ) start [2025-02-10 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443261', 'tblTempUsageDetail_20' ) end [2025-02-10 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:45:23] Production.INFO: ==656== Releasing lock... [2025-02-10 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:45:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:46:05 [end_date_ymd] => 2025-02-10 08:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:46:05' and `end` < '2025-02-10 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-10 08:46:18] Production.INFO: count ==738 [2025-02-10 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:46:05 - End Time 2025-02-10 08:46:05 [2025-02-10 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443266', 'tblTempUsageDetail_20' ) start [2025-02-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443266', 'tblTempUsageDetail_20' ) end [2025-02-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443266', 'tblTempVendorCDR_20' ) start [2025-02-10 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443266', 'tblTempVendorCDR_20' ) end [2025-02-10 08:46:18] Production.INFO: ProcessCDR(1,14443266,1,1,2) [2025-02-10 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443266', 'tblTempUsageDetail_20' ) start [2025-02-10 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443266', 'tblTempUsageDetail_20' ) end [2025-02-10 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:46:23] Production.INFO: ==754== Releasing lock... [2025-02-10 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:46:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-10 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:47:05 [end_date_ymd] => 2025-02-10 08:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:47:05' and `end` < '2025-02-10 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-10 08:47:19] Production.INFO: count ==749 [2025-02-10 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:47:05 - End Time 2025-02-10 08:47:05 [2025-02-10 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443271', 'tblTempUsageDetail_20' ) start [2025-02-10 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443271', 'tblTempUsageDetail_20' ) end [2025-02-10 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443271', 'tblTempVendorCDR_20' ) start [2025-02-10 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443271', 'tblTempVendorCDR_20' ) end [2025-02-10 08:47:19] Production.INFO: ProcessCDR(1,14443271,1,1,2) [2025-02-10 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443271', 'tblTempUsageDetail_20' ) start [2025-02-10 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443271', 'tblTempUsageDetail_20' ) end [2025-02-10 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:47:22] Production.INFO: ==827== Releasing lock... [2025-02-10 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:47:22] Production.INFO: 34 MB #Memory Used# [2025-02-10 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:48:04 [end_date_ymd] => 2025-02-10 08:48:04 [RateCDR] => 1 ) [2025-02-10 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-10 05:48:04' and `end` < '2025-02-10 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-10 08:48:18] Production.INFO: count ==756 [2025-02-10 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:48:04 - End Time 2025-02-10 08:48:04 [2025-02-10 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443276', 'tblTempUsageDetail_20' ) start [2025-02-10 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443276', 'tblTempUsageDetail_20' ) end [2025-02-10 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443276', 'tblTempVendorCDR_20' ) start [2025-02-10 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443276', 'tblTempVendorCDR_20' ) end [2025-02-10 08:48:19] Production.INFO: ProcessCDR(1,14443276,1,1,2) [2025-02-10 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443276', 'tblTempUsageDetail_20' ) start [2025-02-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443276', 'tblTempUsageDetail_20' ) end [2025-02-10 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:48:23] Production.INFO: ==898== Releasing lock... [2025-02-10 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:48:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-10 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:49:05 [end_date_ymd] => 2025-02-10 08:49:05 [RateCDR] => 1 ) [2025-02-10 08:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:49:05' and `end` < '2025-02-10 08:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:49:18] Production.INFO: count ==762 [2025-02-10 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:49:05 - End Time 2025-02-10 08:49:05 [2025-02-10 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443281', 'tblTempUsageDetail_20' ) start [2025-02-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443281', 'tblTempUsageDetail_20' ) end [2025-02-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443281', 'tblTempVendorCDR_20' ) start [2025-02-10 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443281', 'tblTempVendorCDR_20' ) end [2025-02-10 08:49:19] Production.INFO: ProcessCDR(1,14443281,1,1,2) [2025-02-10 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443281', 'tblTempUsageDetail_20' ) start [2025-02-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443281', 'tblTempUsageDetail_20' ) end [2025-02-10 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:49:23] Production.INFO: ==972== Releasing lock... [2025-02-10 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:49:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-10 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:50:06 [end_date_ymd] => 2025-02-10 08:50:06 [RateCDR] => 1 ) [2025-02-10 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:50:06' and `end` < '2025-02-10 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:50:19] Production.INFO: count ==774 [2025-02-10 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:50:06 - End Time 2025-02-10 08:50:06 [2025-02-10 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443287', 'tblTempUsageDetail_20' ) start [2025-02-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443287', 'tblTempUsageDetail_20' ) end [2025-02-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443287', 'tblTempVendorCDR_20' ) start [2025-02-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443287', 'tblTempVendorCDR_20' ) end [2025-02-10 08:50:19] Production.INFO: ProcessCDR(1,14443287,1,1,2) [2025-02-10 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443287', 'tblTempUsageDetail_20' ) start [2025-02-10 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443287', 'tblTempUsageDetail_20' ) end [2025-02-10 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:50:22] Production.INFO: ==1082== Releasing lock... [2025-02-10 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-10 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:51:05 [end_date_ymd] => 2025-02-10 08:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:51:05' and `end` < '2025-02-10 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-10 08:51:18] Production.INFO: count ==814 [2025-02-10 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:51:05 - End Time 2025-02-10 08:51:05 [2025-02-10 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443292', 'tblTempUsageDetail_20' ) start [2025-02-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443292', 'tblTempUsageDetail_20' ) end [2025-02-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443292', 'tblTempVendorCDR_20' ) start [2025-02-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443292', 'tblTempVendorCDR_20' ) end [2025-02-10 08:51:18] Production.INFO: ProcessCDR(1,14443292,1,1,2) [2025-02-10 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443292', 'tblTempUsageDetail_20' ) start [2025-02-10 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443292', 'tblTempUsageDetail_20' ) end [2025-02-10 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:51:23] Production.INFO: ==1158== Releasing lock... [2025-02-10 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-10 08:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:52:04 [end_date_ymd] => 2025-02-10 08:52:04 [RateCDR] => 1 ) [2025-02-10 08:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:52:04' and `end` < '2025-02-10 08:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:52:18] Production.INFO: count ==833 [2025-02-10 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:52:04 - End Time 2025-02-10 08:52:04 [2025-02-10 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443297', 'tblTempUsageDetail_20' ) start [2025-02-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443297', 'tblTempUsageDetail_20' ) end [2025-02-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443297', 'tblTempVendorCDR_20' ) start [2025-02-10 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443297', 'tblTempVendorCDR_20' ) end [2025-02-10 08:52:19] Production.INFO: ProcessCDR(1,14443297,1,1,2) [2025-02-10 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443297', 'tblTempUsageDetail_20' ) start [2025-02-10 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443297', 'tblTempUsageDetail_20' ) end [2025-02-10 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:52:23] Production.INFO: ==1235== Releasing lock... [2025-02-10 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:52:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-10 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:53:04 [end_date_ymd] => 2025-02-10 08:53:04 [RateCDR] => 1 ) [2025-02-10 08: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-10 05:53:04' and `end` < '2025-02-10 08: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-10 08:53:17] Production.INFO: count ==848 [2025-02-10 08:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:53:04 - End Time 2025-02-10 08:53:04 [2025-02-10 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443302', 'tblTempUsageDetail_20' ) start [2025-02-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443302', 'tblTempUsageDetail_20' ) end [2025-02-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443302', 'tblTempVendorCDR_20' ) start [2025-02-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443302', 'tblTempVendorCDR_20' ) end [2025-02-10 08:53:18] Production.INFO: ProcessCDR(1,14443302,1,1,2) [2025-02-10 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443302', 'tblTempUsageDetail_20' ) start [2025-02-10 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443302', 'tblTempUsageDetail_20' ) end [2025-02-10 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:53:21] Production.INFO: ==1321== Releasing lock... [2025-02-10 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-10 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:54:06 [end_date_ymd] => 2025-02-10 08:54:06 [RateCDR] => 1 ) [2025-02-10 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:54:06' and `end` < '2025-02-10 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:54:19] Production.INFO: count ==858 [2025-02-10 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:54:06 - End Time 2025-02-10 08:54:06 [2025-02-10 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443307', 'tblTempUsageDetail_20' ) start [2025-02-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443307', 'tblTempUsageDetail_20' ) end [2025-02-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443307', 'tblTempVendorCDR_20' ) start [2025-02-10 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443307', 'tblTempVendorCDR_20' ) end [2025-02-10 08:54:19] Production.INFO: ProcessCDR(1,14443307,1,1,2) [2025-02-10 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443307', 'tblTempUsageDetail_20' ) start [2025-02-10 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443307', 'tblTempUsageDetail_20' ) end [2025-02-10 08:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:54:25] Production.INFO: ==1433== Releasing lock... [2025-02-10 08:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:54:25] Production.INFO: 34.5 MB #Memory Used# [2025-02-10 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:55:05 [end_date_ymd] => 2025-02-10 08:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:55:05' and `end` < '2025-02-10 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-10 08:55:18] Production.INFO: count ==859 [2025-02-10 08:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:55:05 - End Time 2025-02-10 08:55:05 [2025-02-10 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443312', 'tblTempUsageDetail_20' ) start [2025-02-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443312', 'tblTempUsageDetail_20' ) end [2025-02-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443312', 'tblTempVendorCDR_20' ) start [2025-02-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443312', 'tblTempVendorCDR_20' ) end [2025-02-10 08:55:19] Production.INFO: ProcessCDR(1,14443312,1,1,2) [2025-02-10 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443312', 'tblTempUsageDetail_20' ) start [2025-02-10 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443312', 'tblTempUsageDetail_20' ) end [2025-02-10 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:55:23] Production.INFO: ==1505== Releasing lock... [2025-02-10 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-10 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:56:05 [end_date_ymd] => 2025-02-10 08:56:05 [RateCDR] => 1 ) [2025-02-10 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 05:56:05' and `end` < '2025-02-10 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 08:56:18] Production.INFO: count ==860 [2025-02-10 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:56:05 - End Time 2025-02-10 08:56:05 [2025-02-10 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443317', 'tblTempUsageDetail_20' ) start [2025-02-10 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443317', 'tblTempUsageDetail_20' ) end [2025-02-10 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443317', 'tblTempVendorCDR_20' ) start [2025-02-10 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443317', 'tblTempVendorCDR_20' ) end [2025-02-10 08:56:18] Production.INFO: ProcessCDR(1,14443317,1,1,2) [2025-02-10 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443317', 'tblTempUsageDetail_20' ) start [2025-02-10 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443317', 'tblTempUsageDetail_20' ) end [2025-02-10 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:56:21] Production.INFO: ==1617== Releasing lock... [2025-02-10 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-10 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:57:05 [end_date_ymd] => 2025-02-10 08:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:57:05' and `end` < '2025-02-10 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-10 08:57:18] Production.INFO: count ==862 [2025-02-10 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:57:05 - End Time 2025-02-10 08:57:05 [2025-02-10 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443322', 'tblTempUsageDetail_20' ) start [2025-02-10 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443322', 'tblTempUsageDetail_20' ) end [2025-02-10 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443322', 'tblTempVendorCDR_20' ) start [2025-02-10 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443322', 'tblTempVendorCDR_20' ) end [2025-02-10 08:57:19] Production.INFO: ProcessCDR(1,14443322,1,1,2) [2025-02-10 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443322', 'tblTempUsageDetail_20' ) start [2025-02-10 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443322', 'tblTempUsageDetail_20' ) end [2025-02-10 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:57:24] Production.INFO: ==1686== Releasing lock... [2025-02-10 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:57:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-10 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:58:06 [end_date_ymd] => 2025-02-10 08:58:06 [RateCDR] => 1 ) [2025-02-10 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-10 05:58:06' and `end` < '2025-02-10 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-10 08:58:19] Production.INFO: count ==860 [2025-02-10 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 05:58:06 - End Time 2025-02-10 08:58:06 [2025-02-10 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443327', 'tblTempUsageDetail_20' ) start [2025-02-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443327', 'tblTempUsageDetail_20' ) end [2025-02-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443327', 'tblTempVendorCDR_20' ) start [2025-02-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443327', 'tblTempVendorCDR_20' ) end [2025-02-10 08:58:19] Production.INFO: ProcessCDR(1,14443327,1,1,2) [2025-02-10 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443327', 'tblTempUsageDetail_20' ) start [2025-02-10 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443327', 'tblTempUsageDetail_20' ) end [2025-02-10 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:58:24] Production.INFO: ==1760== Releasing lock... [2025-02-10 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:58:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-10 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 05:59:05 [end_date_ymd] => 2025-02-10 08:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 05:59:05' and `end` < '2025-02-10 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-10 08:59:18] Production.INFO: count ==866 [2025-02-10 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 05:59:05 - End Time 2025-02-10 08:59:05 [2025-02-10 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443332', 'tblTempUsageDetail_20' ) start [2025-02-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443332', 'tblTempUsageDetail_20' ) end [2025-02-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443332', 'tblTempVendorCDR_20' ) start [2025-02-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443332', 'tblTempVendorCDR_20' ) end [2025-02-10 08:59:18] Production.INFO: ProcessCDR(1,14443332,1,1,2) [2025-02-10 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443332', 'tblTempUsageDetail_20' ) start [2025-02-10 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443332', 'tblTempUsageDetail_20' ) end [2025-02-10 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 08:59:23] Production.INFO: ==1833== Releasing lock... [2025-02-10 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 08:59:23] Production.INFO: 35 MB #Memory Used# [2025-02-10 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:00:05 [end_date_ymd] => 2025-02-10 09:00:05 [RateCDR] => 1 ) [2025-02-10 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:00:05' and `end` < '2025-02-10 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:00:19] Production.INFO: count ==899 [2025-02-10 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:00:05 - End Time 2025-02-10 09:00:05 [2025-02-10 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443337', 'tblTempUsageDetail_20' ) start [2025-02-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443337', 'tblTempUsageDetail_20' ) end [2025-02-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443337', 'tblTempVendorCDR_20' ) start [2025-02-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443337', 'tblTempVendorCDR_20' ) end [2025-02-10 09:00:19] Production.INFO: ProcessCDR(1,14443337,1,1,2) [2025-02-10 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443337', 'tblTempUsageDetail_20' ) start [2025-02-10 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443337', 'tblTempUsageDetail_20' ) end [2025-02-10 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:00:24] Production.INFO: ==1910== Releasing lock... [2025-02-10 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:00:24] Production.INFO: 35 MB #Memory Used# [2025-02-10 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:01:05 [end_date_ymd] => 2025-02-10 09:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:01:05' and `end` < '2025-02-10 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-10 09:01:18] Production.INFO: count ==941 [2025-02-10 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:01:05 - End Time 2025-02-10 09:01:05 [2025-02-10 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443343', 'tblTempUsageDetail_20' ) start [2025-02-10 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443343', 'tblTempUsageDetail_20' ) end [2025-02-10 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443343', 'tblTempVendorCDR_20' ) start [2025-02-10 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443343', 'tblTempVendorCDR_20' ) end [2025-02-10 09:01:19] Production.INFO: ProcessCDR(1,14443343,1,1,2) [2025-02-10 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443343', 'tblTempUsageDetail_20' ) start [2025-02-10 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443343', 'tblTempUsageDetail_20' ) end [2025-02-10 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:01:24] Production.INFO: ==1996== Releasing lock... [2025-02-10 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:01:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-10 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:02:06 [end_date_ymd] => 2025-02-10 09:02:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:02:06' and `end` < '2025-02-10 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-10 09:02:20] Production.INFO: count ==966 [2025-02-10 09:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:02:06 - End Time 2025-02-10 09:02:06 [2025-02-10 09:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443348', 'tblTempUsageDetail_20' ) start [2025-02-10 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443348', 'tblTempUsageDetail_20' ) end [2025-02-10 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443348', 'tblTempVendorCDR_20' ) start [2025-02-10 09:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443348', 'tblTempVendorCDR_20' ) end [2025-02-10 09:02:20] Production.INFO: ProcessCDR(1,14443348,1,1,2) [2025-02-10 09:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443348', 'tblTempUsageDetail_20' ) start [2025-02-10 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443348', 'tblTempUsageDetail_20' ) end [2025-02-10 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:02:25] Production.INFO: ==2067== Releasing lock... [2025-02-10 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:02:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-10 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:03:05 [end_date_ymd] => 2025-02-10 09:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:03:05' and `end` < '2025-02-10 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-10 09:03:19] Production.INFO: count ==970 [2025-02-10 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:03:05 - End Time 2025-02-10 09:03:05 [2025-02-10 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443353', 'tblTempUsageDetail_20' ) start [2025-02-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443353', 'tblTempUsageDetail_20' ) end [2025-02-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443353', 'tblTempVendorCDR_20' ) start [2025-02-10 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443353', 'tblTempVendorCDR_20' ) end [2025-02-10 09:03:19] Production.INFO: ProcessCDR(1,14443353,1,1,2) [2025-02-10 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443353', 'tblTempUsageDetail_20' ) start [2025-02-10 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443353', 'tblTempUsageDetail_20' ) end [2025-02-10 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:03:23] Production.INFO: ==2141== Releasing lock... [2025-02-10 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:03:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-10 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:04:05 [end_date_ymd] => 2025-02-10 09:04:05 [RateCDR] => 1 ) [2025-02-10 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:04:05' and `end` < '2025-02-10 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:04:18] Production.INFO: count ==977 [2025-02-10 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:04:05 - End Time 2025-02-10 09:04:05 [2025-02-10 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443358', 'tblTempUsageDetail_20' ) start [2025-02-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443358', 'tblTempUsageDetail_20' ) end [2025-02-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443358', 'tblTempVendorCDR_20' ) start [2025-02-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443358', 'tblTempVendorCDR_20' ) end [2025-02-10 09:04:19] Production.INFO: ProcessCDR(1,14443358,1,1,2) [2025-02-10 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443358', 'tblTempUsageDetail_20' ) start [2025-02-10 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443358', 'tblTempUsageDetail_20' ) end [2025-02-10 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:04:23] Production.INFO: ==2215== Releasing lock... [2025-02-10 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:04:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-10 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:05:05 [end_date_ymd] => 2025-02-10 09:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:05:05' and `end` < '2025-02-10 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-10 09:05:18] Production.INFO: count ==986 [2025-02-10 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 06:05:05 - End Time 2025-02-10 09:05:05 [2025-02-10 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443363', 'tblTempUsageDetail_20' ) start [2025-02-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443363', 'tblTempUsageDetail_20' ) end [2025-02-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443363', 'tblTempVendorCDR_20' ) start [2025-02-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443363', 'tblTempVendorCDR_20' ) end [2025-02-10 09:05:18] Production.INFO: ProcessCDR(1,14443363,1,1,2) [2025-02-10 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443363', 'tblTempUsageDetail_20' ) start [2025-02-10 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443363', 'tblTempUsageDetail_20' ) end [2025-02-10 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:05:23] Production.INFO: ==2325== Releasing lock... [2025-02-10 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:05:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-10 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:06:06 [end_date_ymd] => 2025-02-10 09:06:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:06:06' and `end` < '2025-02-10 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-10 09:06:19] Production.INFO: count ==1000 [2025-02-10 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:06:06 - End Time 2025-02-10 09:06:06 [2025-02-10 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443368', 'tblTempUsageDetail_20' ) start [2025-02-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443368', 'tblTempUsageDetail_20' ) end [2025-02-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443368', 'tblTempVendorCDR_20' ) start [2025-02-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443368', 'tblTempVendorCDR_20' ) end [2025-02-10 09:06:19] Production.INFO: ProcessCDR(1,14443368,1,1,2) [2025-02-10 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443368', 'tblTempUsageDetail_20' ) start [2025-02-10 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443368', 'tblTempUsageDetail_20' ) end [2025-02-10 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:06:22] Production.INFO: ==2399== Releasing lock... [2025-02-10 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:06:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-10 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:07:04 [end_date_ymd] => 2025-02-10 09:07:04 [RateCDR] => 1 ) [2025-02-10 09:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:07:04' and `end` < '2025-02-10 09:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:07:17] Production.INFO: count ==1019 [2025-02-10 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 06:07:04 - End Time 2025-02-10 09:07:04 [2025-02-10 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443373', 'tblTempUsageDetail_20' ) start [2025-02-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443373', 'tblTempUsageDetail_20' ) end [2025-02-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443373', 'tblTempVendorCDR_20' ) start [2025-02-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443373', 'tblTempVendorCDR_20' ) end [2025-02-10 09:07:18] Production.INFO: ProcessCDR(1,14443373,1,1,2) [2025-02-10 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443373', 'tblTempUsageDetail_20' ) start [2025-02-10 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443373', 'tblTempUsageDetail_20' ) end [2025-02-10 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:07:23] Production.INFO: ==2474== Releasing lock... [2025-02-10 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:07:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-10 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:08:05 [end_date_ymd] => 2025-02-10 09:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:08:05' and `end` < '2025-02-10 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-10 09:08:18] Production.INFO: count ==1038 [2025-02-10 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:08:05 - End Time 2025-02-10 09:08:05 [2025-02-10 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443378', 'tblTempUsageDetail_20' ) start [2025-02-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443378', 'tblTempUsageDetail_20' ) end [2025-02-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443378', 'tblTempVendorCDR_20' ) start [2025-02-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443378', 'tblTempVendorCDR_20' ) end [2025-02-10 09:08:19] Production.INFO: ProcessCDR(1,14443378,1,1,2) [2025-02-10 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443378', 'tblTempUsageDetail_20' ) start [2025-02-10 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443378', 'tblTempUsageDetail_20' ) end [2025-02-10 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:08:24] Production.INFO: ==2549== Releasing lock... [2025-02-10 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:08:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-10 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:09:05 [end_date_ymd] => 2025-02-10 09:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:09:05' and `end` < '2025-02-10 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-10 09:09:18] Production.INFO: count ==1062 [2025-02-10 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 06:09:05 - End Time 2025-02-10 09:09:05 [2025-02-10 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443383', 'tblTempUsageDetail_20' ) start [2025-02-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443383', 'tblTempUsageDetail_20' ) end [2025-02-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443383', 'tblTempVendorCDR_20' ) start [2025-02-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443383', 'tblTempVendorCDR_20' ) end [2025-02-10 09:09:18] Production.INFO: ProcessCDR(1,14443383,1,1,2) [2025-02-10 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443383', 'tblTempUsageDetail_20' ) start [2025-02-10 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443383', 'tblTempUsageDetail_20' ) end [2025-02-10 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:09:23] Production.INFO: ==2620== Releasing lock... [2025-02-10 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:09:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-10 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:10:06 [end_date_ymd] => 2025-02-10 09:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:10:06' and `end` < '2025-02-10 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-10 09:10:19] Production.INFO: count ==1100 [2025-02-10 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:10:06 - End Time 2025-02-10 09:10:06 [2025-02-10 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443388', 'tblTempUsageDetail_20' ) start [2025-02-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443388', 'tblTempUsageDetail_20' ) end [2025-02-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443388', 'tblTempVendorCDR_20' ) start [2025-02-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443388', 'tblTempVendorCDR_20' ) end [2025-02-10 09:10:19] Production.INFO: ProcessCDR(1,14443388,1,1,2) [2025-02-10 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443388', 'tblTempUsageDetail_20' ) start [2025-02-10 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443388', 'tblTempUsageDetail_20' ) end [2025-02-10 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:10:22] Production.INFO: ==2694== Releasing lock... [2025-02-10 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:10:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-10 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:11:05 [end_date_ymd] => 2025-02-10 09:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:11:05' and `end` < '2025-02-10 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-10 09:11:19] Production.INFO: count ==1154 [2025-02-10 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:11:05 - End Time 2025-02-10 09:11:05 [2025-02-10 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443394', 'tblTempUsageDetail_20' ) start [2025-02-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443394', 'tblTempUsageDetail_20' ) end [2025-02-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443394', 'tblTempVendorCDR_20' ) start [2025-02-10 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443394', 'tblTempVendorCDR_20' ) end [2025-02-10 09:11:19] Production.INFO: ProcessCDR(1,14443394,1,1,2) [2025-02-10 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443394', 'tblTempUsageDetail_20' ) start [2025-02-10 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443394', 'tblTempUsageDetail_20' ) end [2025-02-10 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:11:24] Production.INFO: ==2771== Releasing lock... [2025-02-10 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:11:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-10 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:12:05 [end_date_ymd] => 2025-02-10 09:12:05 [RateCDR] => 1 ) [2025-02-10 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:12:05' and `end` < '2025-02-10 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:12:18] Production.INFO: count ==1170 [2025-02-10 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:12:05 - End Time 2025-02-10 09:12:05 [2025-02-10 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443399', 'tblTempUsageDetail_20' ) start [2025-02-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443399', 'tblTempUsageDetail_20' ) end [2025-02-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443399', 'tblTempVendorCDR_20' ) start [2025-02-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443399', 'tblTempVendorCDR_20' ) end [2025-02-10 09:12:19] Production.INFO: ProcessCDR(1,14443399,1,1,2) [2025-02-10 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443399', 'tblTempUsageDetail_20' ) start [2025-02-10 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443399', 'tblTempUsageDetail_20' ) end [2025-02-10 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:12:22] Production.INFO: ==2842== Releasing lock... [2025-02-10 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-10 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:13:05 [end_date_ymd] => 2025-02-10 09:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:13:05' and `end` < '2025-02-10 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-10 09:13:18] Production.INFO: count ==1220 [2025-02-10 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:13:05 - End Time 2025-02-10 09:13:05 [2025-02-10 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443404', 'tblTempUsageDetail_20' ) start [2025-02-10 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443404', 'tblTempUsageDetail_20' ) end [2025-02-10 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443404', 'tblTempVendorCDR_20' ) start [2025-02-10 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443404', 'tblTempVendorCDR_20' ) end [2025-02-10 09:13:19] Production.INFO: ProcessCDR(1,14443404,1,1,2) [2025-02-10 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443404', 'tblTempUsageDetail_20' ) start [2025-02-10 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443404', 'tblTempUsageDetail_20' ) end [2025-02-10 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:13:23] Production.INFO: ==2917== Releasing lock... [2025-02-10 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:13:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-10 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:14:05 [end_date_ymd] => 2025-02-10 09:14:05 [RateCDR] => 1 ) [2025-02-10 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:14:05' and `end` < '2025-02-10 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:14:18] Production.INFO: count ==1229 [2025-02-10 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:14:05 - End Time 2025-02-10 09:14:05 [2025-02-10 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443409', 'tblTempUsageDetail_20' ) start [2025-02-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443409', 'tblTempUsageDetail_20' ) end [2025-02-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443409', 'tblTempVendorCDR_20' ) start [2025-02-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443409', 'tblTempVendorCDR_20' ) end [2025-02-10 09:14:19] Production.INFO: ProcessCDR(1,14443409,1,1,2) [2025-02-10 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443409', 'tblTempUsageDetail_20' ) start [2025-02-10 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443409', 'tblTempUsageDetail_20' ) end [2025-02-10 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:14:23] Production.INFO: ==2988== Releasing lock... [2025-02-10 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:14:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-10 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:15:05 [end_date_ymd] => 2025-02-10 09:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:15:05' and `end` < '2025-02-10 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-10 09:15:19] Production.INFO: count ==1236 [2025-02-10 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:15:05 - End Time 2025-02-10 09:15:05 [2025-02-10 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443414', 'tblTempUsageDetail_20' ) start [2025-02-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443414', 'tblTempUsageDetail_20' ) end [2025-02-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443414', 'tblTempVendorCDR_20' ) start [2025-02-10 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443414', 'tblTempVendorCDR_20' ) end [2025-02-10 09:15:19] Production.INFO: ProcessCDR(1,14443414,1,1,2) [2025-02-10 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443414', 'tblTempUsageDetail_20' ) start [2025-02-10 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443414', 'tblTempUsageDetail_20' ) end [2025-02-10 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:15:24] Production.INFO: ==3067== Releasing lock... [2025-02-10 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:15:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-10 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:16:05 [end_date_ymd] => 2025-02-10 09:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:16:05' and `end` < '2025-02-10 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-10 09:16:19] Production.INFO: count ==1247 [2025-02-10 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:16:05 - End Time 2025-02-10 09:16:05 [2025-02-10 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443419', 'tblTempUsageDetail_20' ) start [2025-02-10 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443419', 'tblTempUsageDetail_20' ) end [2025-02-10 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443419', 'tblTempVendorCDR_20' ) start [2025-02-10 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443419', 'tblTempVendorCDR_20' ) end [2025-02-10 09:16:19] Production.INFO: ProcessCDR(1,14443419,1,1,2) [2025-02-10 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443419', 'tblTempUsageDetail_20' ) start [2025-02-10 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443419', 'tblTempUsageDetail_20' ) end [2025-02-10 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:16:24] Production.INFO: ==3145== Releasing lock... [2025-02-10 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:16:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-10 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:17:05 [end_date_ymd] => 2025-02-10 09:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:17:05' and `end` < '2025-02-10 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-10 09:17:18] Production.INFO: count ==1276 [2025-02-10 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:17:05 - End Time 2025-02-10 09:17:05 [2025-02-10 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443424', 'tblTempUsageDetail_20' ) start [2025-02-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443424', 'tblTempUsageDetail_20' ) end [2025-02-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443424', 'tblTempVendorCDR_20' ) start [2025-02-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443424', 'tblTempVendorCDR_20' ) end [2025-02-10 09:17:19] Production.INFO: ProcessCDR(1,14443424,1,1,2) [2025-02-10 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443424', 'tblTempUsageDetail_20' ) start [2025-02-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443424', 'tblTempUsageDetail_20' ) end [2025-02-10 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:17:24] Production.INFO: ==3219== Releasing lock... [2025-02-10 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:17:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:18:06 [end_date_ymd] => 2025-02-10 09:18:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:18:06' and `end` < '2025-02-10 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-10 09:18:21] Production.INFO: count ==1313 [2025-02-10 09:18:22] Production.ERROR: pbx CDR StartTime 2025-02-10 06:18:06 - End Time 2025-02-10 09:18:06 [2025-02-10 09:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443429', 'tblTempUsageDetail_20' ) start [2025-02-10 09:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443429', 'tblTempUsageDetail_20' ) end [2025-02-10 09:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443429', 'tblTempVendorCDR_20' ) start [2025-02-10 09:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443429', 'tblTempVendorCDR_20' ) end [2025-02-10 09:18:22] Production.INFO: ProcessCDR(1,14443429,1,1,2) [2025-02-10 09:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443429', 'tblTempUsageDetail_20' ) start [2025-02-10 09:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443429', 'tblTempUsageDetail_20' ) end [2025-02-10 09:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:18:27] Production.INFO: ==3292== Releasing lock... [2025-02-10 09:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:18:27] Production.INFO: 38 MB #Memory Used# [2025-02-10 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:19:04 [end_date_ymd] => 2025-02-10 09:19:04 [RateCDR] => 1 ) [2025-02-10 09: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-10 06:19:04' and `end` < '2025-02-10 09: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-10 09:19:26] Production.INFO: count ==1359 [2025-02-10 09:19:26] Production.ERROR: pbx CDR StartTime 2025-02-10 06:19:04 - End Time 2025-02-10 09:19:04 [2025-02-10 09:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443434', 'tblTempUsageDetail_20' ) start [2025-02-10 09:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443434', 'tblTempUsageDetail_20' ) end [2025-02-10 09:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443434', 'tblTempVendorCDR_20' ) start [2025-02-10 09:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443434', 'tblTempVendorCDR_20' ) end [2025-02-10 09:19:26] Production.INFO: ProcessCDR(1,14443434,1,1,2) [2025-02-10 09:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443434', 'tblTempUsageDetail_20' ) start [2025-02-10 09:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443434', 'tblTempUsageDetail_20' ) end [2025-02-10 09:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:19:31] Production.INFO: ==3366== Releasing lock... [2025-02-10 09:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:19:31] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:20:06 [end_date_ymd] => 2025-02-10 09:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:20:06' and `end` < '2025-02-10 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-10 09:20:28] Production.INFO: count ==1390 [2025-02-10 09:20:29] Production.ERROR: pbx CDR StartTime 2025-02-10 06:20:06 - End Time 2025-02-10 09:20:06 [2025-02-10 09:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443440', 'tblTempUsageDetail_20' ) start [2025-02-10 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443440', 'tblTempUsageDetail_20' ) end [2025-02-10 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443440', 'tblTempVendorCDR_20' ) start [2025-02-10 09:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443440', 'tblTempVendorCDR_20' ) end [2025-02-10 09:20:29] Production.INFO: ProcessCDR(1,14443440,1,1,2) [2025-02-10 09:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443440', 'tblTempUsageDetail_20' ) start [2025-02-10 09:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443440', 'tblTempUsageDetail_20' ) end [2025-02-10 09:20:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:20:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:20:34] Production.INFO: ==3441== Releasing lock... [2025-02-10 09:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:20:34] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:21:04 [end_date_ymd] => 2025-02-10 09:21:04 [RateCDR] => 1 ) [2025-02-10 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-10 06:21:04' and `end` < '2025-02-10 09:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:21:19] Production.INFO: count ==1494 [2025-02-10 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:21:04 - End Time 2025-02-10 09:21:04 [2025-02-10 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443445', 'tblTempUsageDetail_20' ) start [2025-02-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443445', 'tblTempUsageDetail_20' ) end [2025-02-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443445', 'tblTempVendorCDR_20' ) start [2025-02-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443445', 'tblTempVendorCDR_20' ) end [2025-02-10 09:21:19] Production.INFO: ProcessCDR(1,14443445,1,1,2) [2025-02-10 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443445', 'tblTempUsageDetail_20' ) start [2025-02-10 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443445', 'tblTempUsageDetail_20' ) end [2025-02-10 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:21:23] Production.INFO: ==3557== Releasing lock... [2025-02-10 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:21:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:22:05 [end_date_ymd] => 2025-02-10 09:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:22:05' and `end` < '2025-02-10 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-10 09:22:19] Production.INFO: count ==1535 [2025-02-10 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:22:05 - End Time 2025-02-10 09:22:05 [2025-02-10 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443450', 'tblTempUsageDetail_20' ) start [2025-02-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443450', 'tblTempUsageDetail_20' ) end [2025-02-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443450', 'tblTempVendorCDR_20' ) start [2025-02-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443450', 'tblTempVendorCDR_20' ) end [2025-02-10 09:22:19] Production.INFO: ProcessCDR(1,14443450,1,1,2) [2025-02-10 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443450', 'tblTempUsageDetail_20' ) start [2025-02-10 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443450', 'tblTempUsageDetail_20' ) end [2025-02-10 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:22:25] Production.INFO: ==3639== Releasing lock... [2025-02-10 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:22:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:23:05 [end_date_ymd] => 2025-02-10 09:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:23:05' and `end` < '2025-02-10 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-10 09:23:18] Production.INFO: count ==1564 [2025-02-10 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:23:05 - End Time 2025-02-10 09:23:05 [2025-02-10 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443455', 'tblTempUsageDetail_20' ) start [2025-02-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443455', 'tblTempUsageDetail_20' ) end [2025-02-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443455', 'tblTempVendorCDR_20' ) start [2025-02-10 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443455', 'tblTempVendorCDR_20' ) end [2025-02-10 09:23:19] Production.INFO: ProcessCDR(1,14443455,1,1,2) [2025-02-10 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443455', 'tblTempUsageDetail_20' ) start [2025-02-10 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443455', 'tblTempUsageDetail_20' ) end [2025-02-10 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:23:24] Production.INFO: ==3718== Releasing lock... [2025-02-10 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:23:24] Production.INFO: 40 MB #Memory Used# [2025-02-10 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:24:05 [end_date_ymd] => 2025-02-10 09:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:24:05' and `end` < '2025-02-10 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-10 09:24:22] Production.INFO: count ==1585 [2025-02-10 09:24:23] Production.ERROR: pbx CDR StartTime 2025-02-10 06:24:05 - End Time 2025-02-10 09:24:05 [2025-02-10 09:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443460', 'tblTempUsageDetail_20' ) start [2025-02-10 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443460', 'tblTempUsageDetail_20' ) end [2025-02-10 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443460', 'tblTempVendorCDR_20' ) start [2025-02-10 09:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443460', 'tblTempVendorCDR_20' ) end [2025-02-10 09:24:23] Production.INFO: ProcessCDR(1,14443460,1,1,2) [2025-02-10 09:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443460', 'tblTempUsageDetail_20' ) start [2025-02-10 09:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443460', 'tblTempUsageDetail_20' ) end [2025-02-10 09:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:24:27] Production.INFO: ==3791== Releasing lock... [2025-02-10 09:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:24:27] Production.INFO: 40 MB #Memory Used# [2025-02-10 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:25:05 [end_date_ymd] => 2025-02-10 09:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:25:05' and `end` < '2025-02-10 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-10 09:25:25] Production.INFO: count ==1614 [2025-02-10 09:25:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:25:05 - End Time 2025-02-10 09:25:05 [2025-02-10 09:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443465', 'tblTempUsageDetail_20' ) start [2025-02-10 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443465', 'tblTempUsageDetail_20' ) end [2025-02-10 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443465', 'tblTempVendorCDR_20' ) start [2025-02-10 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443465', 'tblTempVendorCDR_20' ) end [2025-02-10 09:25:25] Production.INFO: ProcessCDR(1,14443465,1,1,2) [2025-02-10 09:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443465', 'tblTempUsageDetail_20' ) start [2025-02-10 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443465', 'tblTempUsageDetail_20' ) end [2025-02-10 09:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:25:30] Production.INFO: ==3864== Releasing lock... [2025-02-10 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:25:30] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:26:05 [end_date_ymd] => 2025-02-10 09:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:26:05' and `end` < '2025-02-10 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-10 09:26:31] Production.INFO: count ==1642 [2025-02-10 09:26:32] Production.ERROR: pbx CDR StartTime 2025-02-10 06:26:05 - End Time 2025-02-10 09:26:05 [2025-02-10 09:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443468', 'tblTempUsageDetail_20' ) start [2025-02-10 09:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443468', 'tblTempUsageDetail_20' ) end [2025-02-10 09:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443468', 'tblTempVendorCDR_20' ) start [2025-02-10 09:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443468', 'tblTempVendorCDR_20' ) end [2025-02-10 09:26:32] Production.INFO: ProcessCDR(1,14443468,1,1,2) [2025-02-10 09:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443468', 'tblTempUsageDetail_20' ) start [2025-02-10 09:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443468', 'tblTempUsageDetail_20' ) end [2025-02-10 09:26:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:26:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:26:37] Production.INFO: ==3946== Releasing lock... [2025-02-10 09:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:26:37] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:27:04 [end_date_ymd] => 2025-02-10 09:27:04 [RateCDR] => 1 ) [2025-02-10 09: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-10 06:27:04' and `end` < '2025-02-10 09: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-10 09:27:26] Production.INFO: count ==1666 [2025-02-10 09:27:27] Production.ERROR: pbx CDR StartTime 2025-02-10 06:27:04 - End Time 2025-02-10 09:27:04 [2025-02-10 09:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443475', 'tblTempUsageDetail_20' ) start [2025-02-10 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443475', 'tblTempUsageDetail_20' ) end [2025-02-10 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443475', 'tblTempVendorCDR_20' ) start [2025-02-10 09:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443475', 'tblTempVendorCDR_20' ) end [2025-02-10 09:27:27] Production.INFO: ProcessCDR(1,14443475,1,1,2) [2025-02-10 09:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443475', 'tblTempUsageDetail_20' ) start [2025-02-10 09:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443475', 'tblTempUsageDetail_20' ) end [2025-02-10 09:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:27:31] Production.INFO: ==4022== Releasing lock... [2025-02-10 09:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:27:31] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:28:05 [end_date_ymd] => 2025-02-10 09:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:28:05' and `end` < '2025-02-10 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-10 09:28:23] Production.INFO: count ==1680 [2025-02-10 09:28:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:28:05 - End Time 2025-02-10 09:28:05 [2025-02-10 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443480', 'tblTempUsageDetail_20' ) start [2025-02-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443480', 'tblTempUsageDetail_20' ) end [2025-02-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443480', 'tblTempVendorCDR_20' ) start [2025-02-10 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443480', 'tblTempVendorCDR_20' ) end [2025-02-10 09:28:24] Production.INFO: ProcessCDR(1,14443480,1,1,2) [2025-02-10 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443480', 'tblTempUsageDetail_20' ) start [2025-02-10 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443480', 'tblTempUsageDetail_20' ) end [2025-02-10 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:28:29] Production.INFO: ==4103== Releasing lock... [2025-02-10 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:28:29] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:29:05 [end_date_ymd] => 2025-02-10 09:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:29:05' and `end` < '2025-02-10 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-10 09:29:18] Production.INFO: count ==1685 [2025-02-10 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:29:05 - End Time 2025-02-10 09:29:05 [2025-02-10 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443485', 'tblTempUsageDetail_20' ) start [2025-02-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443485', 'tblTempUsageDetail_20' ) end [2025-02-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443485', 'tblTempVendorCDR_20' ) start [2025-02-10 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443485', 'tblTempVendorCDR_20' ) end [2025-02-10 09:29:19] Production.INFO: ProcessCDR(1,14443485,1,1,2) [2025-02-10 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443485', 'tblTempUsageDetail_20' ) start [2025-02-10 09:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443485', 'tblTempUsageDetail_20' ) end [2025-02-10 09:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:29:22] Production.INFO: ==4177== Releasing lock... [2025-02-10 09:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:29:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:30:06 [end_date_ymd] => 2025-02-10 09:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:30:06' and `end` < '2025-02-10 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-10 09:30:19] Production.INFO: count ==1710 [2025-02-10 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:30:06 - End Time 2025-02-10 09:30:06 [2025-02-10 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443490', 'tblTempUsageDetail_20' ) start [2025-02-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443490', 'tblTempUsageDetail_20' ) end [2025-02-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443490', 'tblTempVendorCDR_20' ) start [2025-02-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443490', 'tblTempVendorCDR_20' ) end [2025-02-10 09:30:20] Production.INFO: ProcessCDR(1,14443490,1,1,2) [2025-02-10 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443490', 'tblTempUsageDetail_20' ) start [2025-02-10 09:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443490', 'tblTempUsageDetail_20' ) end [2025-02-10 09:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:30:23] Production.INFO: ==4259== Releasing lock... [2025-02-10 09:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:30:23] Production.INFO: 41 MB #Memory Used# [2025-02-10 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:31:05 [end_date_ymd] => 2025-02-10 09:31:05 [RateCDR] => 1 ) [2025-02-10 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:31:05' and `end` < '2025-02-10 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-10 09:31:24] Production.INFO: count ==1815 [2025-02-10 09:31:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:31:05 - End Time 2025-02-10 09:31:05 [2025-02-10 09:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443496', 'tblTempUsageDetail_20' ) start [2025-02-10 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443496', 'tblTempUsageDetail_20' ) end [2025-02-10 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443496', 'tblTempVendorCDR_20' ) start [2025-02-10 09:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443496', 'tblTempVendorCDR_20' ) end [2025-02-10 09:31:24] Production.INFO: ProcessCDR(1,14443496,1,1,2) [2025-02-10 09:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443496', 'tblTempUsageDetail_20' ) start [2025-02-10 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443496', 'tblTempUsageDetail_20' ) end [2025-02-10 09:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:31:29] Production.INFO: ==4339== Releasing lock... [2025-02-10 09:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:31:29] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:32:05 [end_date_ymd] => 2025-02-10 09:32:05 [RateCDR] => 1 ) [2025-02-10 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:32:05' and `end` < '2025-02-10 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:32:20] Production.INFO: count ==1825 [2025-02-10 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:32:05 - End Time 2025-02-10 09:32:05 [2025-02-10 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443501', 'tblTempUsageDetail_20' ) start [2025-02-10 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443501', 'tblTempUsageDetail_20' ) end [2025-02-10 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443501', 'tblTempVendorCDR_20' ) start [2025-02-10 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443501', 'tblTempVendorCDR_20' ) end [2025-02-10 09:32:20] Production.INFO: ProcessCDR(1,14443501,1,1,2) [2025-02-10 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443501', 'tblTempUsageDetail_20' ) start [2025-02-10 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443501', 'tblTempUsageDetail_20' ) end [2025-02-10 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:32:25] Production.INFO: ==4415== Releasing lock... [2025-02-10 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:32:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:33:05 [end_date_ymd] => 2025-02-10 09:33:05 [RateCDR] => 1 ) [2025-02-10 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:33:05' and `end` < '2025-02-10 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:33:23] Production.INFO: count ==1846 [2025-02-10 09:33:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:33:05 - End Time 2025-02-10 09:33:05 [2025-02-10 09:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443506', 'tblTempUsageDetail_20' ) start [2025-02-10 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443506', 'tblTempUsageDetail_20' ) end [2025-02-10 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443506', 'tblTempVendorCDR_20' ) start [2025-02-10 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443506', 'tblTempVendorCDR_20' ) end [2025-02-10 09:33:24] Production.INFO: ProcessCDR(1,14443506,1,1,2) [2025-02-10 09:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443506', 'tblTempUsageDetail_20' ) start [2025-02-10 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443506', 'tblTempUsageDetail_20' ) end [2025-02-10 09:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:33:29] Production.INFO: ==4496== Releasing lock... [2025-02-10 09:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:33:29] Production.INFO: 42 MB #Memory Used# [2025-02-10 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:34:05 [end_date_ymd] => 2025-02-10 09:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:34:05' and `end` < '2025-02-10 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-10 09:34:18] Production.INFO: count ==1867 [2025-02-10 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:34:05 - End Time 2025-02-10 09:34:05 [2025-02-10 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443511', 'tblTempUsageDetail_20' ) start [2025-02-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443511', 'tblTempUsageDetail_20' ) end [2025-02-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443511', 'tblTempVendorCDR_20' ) start [2025-02-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443511', 'tblTempVendorCDR_20' ) end [2025-02-10 09:34:19] Production.INFO: ProcessCDR(1,14443511,1,1,2) [2025-02-10 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443511', 'tblTempUsageDetail_20' ) start [2025-02-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443511', 'tblTempUsageDetail_20' ) end [2025-02-10 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:34:24] Production.INFO: ==4578== Releasing lock... [2025-02-10 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:34:24] Production.INFO: 42 MB #Memory Used# [2025-02-10 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:35:05 [end_date_ymd] => 2025-02-10 09:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:35:05' and `end` < '2025-02-10 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-10 09:35:19] Production.INFO: count ==1883 [2025-02-10 09:35:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:35:05 - End Time 2025-02-10 09:35:05 [2025-02-10 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443516', 'tblTempUsageDetail_20' ) start [2025-02-10 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443516', 'tblTempUsageDetail_20' ) end [2025-02-10 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443516', 'tblTempVendorCDR_20' ) start [2025-02-10 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443516', 'tblTempVendorCDR_20' ) end [2025-02-10 09:35:20] Production.INFO: ProcessCDR(1,14443516,1,1,2) [2025-02-10 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443516', 'tblTempUsageDetail_20' ) start [2025-02-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443516', 'tblTempUsageDetail_20' ) end [2025-02-10 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:35:25] Production.INFO: ==4665== Releasing lock... [2025-02-10 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:35:25] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:36:05 [end_date_ymd] => 2025-02-10 09:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:36:05' and `end` < '2025-02-10 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-10 09:36:18] Production.INFO: count ==1900 [2025-02-10 09:36:19] Production.ERROR: pbx CDR StartTime 2025-02-10 06:36:05 - End Time 2025-02-10 09:36:05 [2025-02-10 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443521', 'tblTempUsageDetail_20' ) start [2025-02-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443521', 'tblTempUsageDetail_20' ) end [2025-02-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443521', 'tblTempVendorCDR_20' ) start [2025-02-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443521', 'tblTempVendorCDR_20' ) end [2025-02-10 09:36:19] Production.INFO: ProcessCDR(1,14443521,1,1,2) [2025-02-10 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443521', 'tblTempUsageDetail_20' ) start [2025-02-10 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443521', 'tblTempUsageDetail_20' ) end [2025-02-10 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:36:24] Production.INFO: ==4778== Releasing lock... [2025-02-10 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:36:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:37:05 [end_date_ymd] => 2025-02-10 09:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:37:05' and `end` < '2025-02-10 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-10 09:37:23] Production.INFO: count ==1927 [2025-02-10 09:37:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:37:05 - End Time 2025-02-10 09:37:05 [2025-02-10 09:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443526', 'tblTempUsageDetail_20' ) start [2025-02-10 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443526', 'tblTempUsageDetail_20' ) end [2025-02-10 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443526', 'tblTempVendorCDR_20' ) start [2025-02-10 09:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443526', 'tblTempVendorCDR_20' ) end [2025-02-10 09:37:24] Production.INFO: ProcessCDR(1,14443526,1,1,2) [2025-02-10 09:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443526', 'tblTempUsageDetail_20' ) start [2025-02-10 09:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443526', 'tblTempUsageDetail_20' ) end [2025-02-10 09:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:37:28] Production.INFO: ==4858== Releasing lock... [2025-02-10 09:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:37:28] Production.INFO: 42.5 MB #Memory Used# [2025-02-10 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:38:05 [end_date_ymd] => 2025-02-10 09:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:38:05' and `end` < '2025-02-10 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-10 09:38:24] Production.INFO: count ==1965 [2025-02-10 09:38:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:38:05 - End Time 2025-02-10 09:38:05 [2025-02-10 09:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443531', 'tblTempUsageDetail_20' ) start [2025-02-10 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443531', 'tblTempUsageDetail_20' ) end [2025-02-10 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443531', 'tblTempVendorCDR_20' ) start [2025-02-10 09:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443531', 'tblTempVendorCDR_20' ) end [2025-02-10 09:38:24] Production.INFO: ProcessCDR(1,14443531,1,1,2) [2025-02-10 09:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443531', 'tblTempUsageDetail_20' ) start [2025-02-10 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443531', 'tblTempUsageDetail_20' ) end [2025-02-10 09:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:38:29] Production.INFO: ==4936== Releasing lock... [2025-02-10 09:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:38:29] Production.INFO: 42.75 MB #Memory Used# [2025-02-10 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:39:05 [end_date_ymd] => 2025-02-10 09:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:39:05' and `end` < '2025-02-10 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-10 09:39:19] Production.INFO: count ==1992 [2025-02-10 09:39:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:39:05 - End Time 2025-02-10 09:39:05 [2025-02-10 09:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443536', 'tblTempUsageDetail_20' ) start [2025-02-10 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443536', 'tblTempUsageDetail_20' ) end [2025-02-10 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443536', 'tblTempVendorCDR_20' ) start [2025-02-10 09:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443536', 'tblTempVendorCDR_20' ) end [2025-02-10 09:39:20] Production.INFO: ProcessCDR(1,14443536,1,1,2) [2025-02-10 09:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443536', 'tblTempUsageDetail_20' ) start [2025-02-10 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443536', 'tblTempUsageDetail_20' ) end [2025-02-10 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:39:25] Production.INFO: ==5012== Releasing lock... [2025-02-10 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:39:25] Production.INFO: 43 MB #Memory Used# [2025-02-10 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:40:06 [end_date_ymd] => 2025-02-10 09:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 06:40:06' and `end` < '2025-02-10 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-10 09:40:30] Production.INFO: count ==2027 [2025-02-10 09:40:31] Production.ERROR: pbx CDR StartTime 2025-02-10 06:40:06 - End Time 2025-02-10 09:40:06 [2025-02-10 09:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443541', 'tblTempUsageDetail_20' ) start [2025-02-10 09:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443541', 'tblTempUsageDetail_20' ) end [2025-02-10 09:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443541', 'tblTempVendorCDR_20' ) start [2025-02-10 09:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443541', 'tblTempVendorCDR_20' ) end [2025-02-10 09:40:31] Production.INFO: ProcessCDR(1,14443541,1,1,2) [2025-02-10 09:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443541', 'tblTempUsageDetail_20' ) start [2025-02-10 09:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443541', 'tblTempUsageDetail_20' ) end [2025-02-10 09:40:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:40:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:40:36] Production.INFO: ==5089== Releasing lock... [2025-02-10 09:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:40:36] Production.INFO: 43.5 MB #Memory Used# [2025-02-10 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:41:05 [end_date_ymd] => 2025-02-10 09:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:41:05' and `end` < '2025-02-10 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-10 09:41:25] Production.INFO: count ==2155 [2025-02-10 09:41:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:41:05 - End Time 2025-02-10 09:41:05 [2025-02-10 09:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443547', 'tblTempUsageDetail_20' ) start [2025-02-10 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443547', 'tblTempUsageDetail_20' ) end [2025-02-10 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443547', 'tblTempVendorCDR_20' ) start [2025-02-10 09:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443547', 'tblTempVendorCDR_20' ) end [2025-02-10 09:41:26] Production.INFO: ProcessCDR(1,14443547,1,1,2) [2025-02-10 09:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443547', 'tblTempUsageDetail_20' ) start [2025-02-10 09:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443547', 'tblTempUsageDetail_20' ) end [2025-02-10 09:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:41:30] Production.INFO: ==5168== Releasing lock... [2025-02-10 09:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:41:30] Production.INFO: 44.25 MB #Memory Used# [2025-02-10 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:42:05 [end_date_ymd] => 2025-02-10 09:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:42:05' and `end` < '2025-02-10 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-10 09:42:31] Production.INFO: count ==2192 [2025-02-10 09:42:32] Production.ERROR: pbx CDR StartTime 2025-02-10 06:42:05 - End Time 2025-02-10 09:42:05 [2025-02-10 09:42:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443552', 'tblTempUsageDetail_20' ) start [2025-02-10 09:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443552', 'tblTempUsageDetail_20' ) end [2025-02-10 09:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443552', 'tblTempVendorCDR_20' ) start [2025-02-10 09:42:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443552', 'tblTempVendorCDR_20' ) end [2025-02-10 09:42:32] Production.INFO: ProcessCDR(1,14443552,1,1,2) [2025-02-10 09:42:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:42:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:42:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:42:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:42:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443552', 'tblTempUsageDetail_20' ) start [2025-02-10 09:42:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443552', 'tblTempUsageDetail_20' ) end [2025-02-10 09:42:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:42:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:42:37] Production.INFO: ==5245== Releasing lock... [2025-02-10 09:42:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:42:37] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:43:04 [end_date_ymd] => 2025-02-10 09:43:04 [RateCDR] => 1 ) [2025-02-10 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:43:04' and `end` < '2025-02-10 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:43:24] Production.INFO: count ==2199 [2025-02-10 09:43:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:43:04 - End Time 2025-02-10 09:43:04 [2025-02-10 09:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443557', 'tblTempUsageDetail_20' ) start [2025-02-10 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443557', 'tblTempUsageDetail_20' ) end [2025-02-10 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443557', 'tblTempVendorCDR_20' ) start [2025-02-10 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443557', 'tblTempVendorCDR_20' ) end [2025-02-10 09:43:25] Production.INFO: ProcessCDR(1,14443557,1,1,2) [2025-02-10 09:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443557', 'tblTempUsageDetail_20' ) start [2025-02-10 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443557', 'tblTempUsageDetail_20' ) end [2025-02-10 09:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:43:30] Production.INFO: ==5320== Releasing lock... [2025-02-10 09:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:43:30] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:44:05 [end_date_ymd] => 2025-02-10 09:44:05 [RateCDR] => 1 ) [2025-02-10 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:44:05' and `end` < '2025-02-10 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:44:22] Production.INFO: count ==2243 [2025-02-10 09:44:22] Production.ERROR: pbx CDR StartTime 2025-02-10 06:44:05 - End Time 2025-02-10 09:44:05 [2025-02-10 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443562', 'tblTempUsageDetail_20' ) start [2025-02-10 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443562', 'tblTempUsageDetail_20' ) end [2025-02-10 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443562', 'tblTempVendorCDR_20' ) start [2025-02-10 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443562', 'tblTempVendorCDR_20' ) end [2025-02-10 09:44:22] Production.INFO: ProcessCDR(1,14443562,1,1,2) [2025-02-10 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443562', 'tblTempUsageDetail_20' ) start [2025-02-10 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443562', 'tblTempUsageDetail_20' ) end [2025-02-10 09:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:44:28] Production.INFO: ==5429== Releasing lock... [2025-02-10 09:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:44:28] Production.INFO: 45 MB #Memory Used# [2025-02-10 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:45:05 [end_date_ymd] => 2025-02-10 09:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:45:05' and `end` < '2025-02-10 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-10 09:45:19] Production.INFO: count ==2255 [2025-02-10 09:45:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:45:05 - End Time 2025-02-10 09:45:05 [2025-02-10 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443567', 'tblTempUsageDetail_20' ) start [2025-02-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443567', 'tblTempUsageDetail_20' ) end [2025-02-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443567', 'tblTempVendorCDR_20' ) start [2025-02-10 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443567', 'tblTempVendorCDR_20' ) end [2025-02-10 09:45:20] Production.INFO: ProcessCDR(1,14443567,1,1,2) [2025-02-10 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443567', 'tblTempUsageDetail_20' ) start [2025-02-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443567', 'tblTempUsageDetail_20' ) end [2025-02-10 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:45:24] Production.INFO: ==5537== Releasing lock... [2025-02-10 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:45:24] Production.INFO: 45 MB #Memory Used# [2025-02-10 09:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:46:04 [end_date_ymd] => 2025-02-10 09:46:04 [RateCDR] => 1 ) [2025-02-10 09:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:46:04' and `end` < '2025-02-10 09:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:46:19] Production.INFO: count ==2271 [2025-02-10 09:46:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:46:04 - End Time 2025-02-10 09:46:04 [2025-02-10 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443572', 'tblTempUsageDetail_20' ) start [2025-02-10 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443572', 'tblTempUsageDetail_20' ) end [2025-02-10 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443572', 'tblTempVendorCDR_20' ) start [2025-02-10 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443572', 'tblTempVendorCDR_20' ) end [2025-02-10 09:46:20] Production.INFO: ProcessCDR(1,14443572,1,1,2) [2025-02-10 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443572', 'tblTempUsageDetail_20' ) start [2025-02-10 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443572', 'tblTempUsageDetail_20' ) end [2025-02-10 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:46:25] Production.INFO: ==5643== Releasing lock... [2025-02-10 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:46:25] Production.INFO: 45 MB #Memory Used# [2025-02-10 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:47:05 [end_date_ymd] => 2025-02-10 09:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:47:05' and `end` < '2025-02-10 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-10 09:47:19] Production.INFO: count ==2281 [2025-02-10 09:47:20] Production.ERROR: pbx CDR StartTime 2025-02-10 06:47:05 - End Time 2025-02-10 09:47:05 [2025-02-10 09:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443577', 'tblTempUsageDetail_20' ) start [2025-02-10 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443577', 'tblTempUsageDetail_20' ) end [2025-02-10 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443577', 'tblTempVendorCDR_20' ) start [2025-02-10 09:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443577', 'tblTempVendorCDR_20' ) end [2025-02-10 09:47:20] Production.INFO: ProcessCDR(1,14443577,1,1,2) [2025-02-10 09:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443577', 'tblTempUsageDetail_20' ) start [2025-02-10 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443577', 'tblTempUsageDetail_20' ) end [2025-02-10 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:47:24] Production.INFO: ==5751== Releasing lock... [2025-02-10 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:47:24] Production.INFO: 45 MB #Memory Used# [2025-02-10 09:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:48:04 [end_date_ymd] => 2025-02-10 09:48:04 [RateCDR] => 1 ) [2025-02-10 09:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:48:04' and `end` < '2025-02-10 09:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:48:28] Production.INFO: count ==2295 [2025-02-10 09:48:28] Production.ERROR: pbx CDR StartTime 2025-02-10 06:48:04 - End Time 2025-02-10 09:48:04 [2025-02-10 09:48:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:48:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443582', 'tblTempUsageDetail_20' ) start [2025-02-10 09:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443582', 'tblTempUsageDetail_20' ) end [2025-02-10 09:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443582', 'tblTempVendorCDR_20' ) start [2025-02-10 09:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443582', 'tblTempVendorCDR_20' ) end [2025-02-10 09:48:29] Production.INFO: ProcessCDR(1,14443582,1,1,2) [2025-02-10 09:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443582', 'tblTempUsageDetail_20' ) start [2025-02-10 09:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443582', 'tblTempUsageDetail_20' ) end [2025-02-10 09:48:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:48:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:48:34] Production.INFO: ==5860== Releasing lock... [2025-02-10 09:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:48:34] Production.INFO: 45.5 MB #Memory Used# [2025-02-10 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:49:05 [end_date_ymd] => 2025-02-10 09:49:05 [RateCDR] => 1 ) [2025-02-10 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:49:05' and `end` < '2025-02-10 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:49:24] Production.INFO: count ==2304 [2025-02-10 09:49:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:49:05 - End Time 2025-02-10 09:49:05 [2025-02-10 09:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443587', 'tblTempUsageDetail_20' ) start [2025-02-10 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443587', 'tblTempUsageDetail_20' ) end [2025-02-10 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443587', 'tblTempVendorCDR_20' ) start [2025-02-10 09:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443587', 'tblTempVendorCDR_20' ) end [2025-02-10 09:49:25] Production.INFO: ProcessCDR(1,14443587,1,1,2) [2025-02-10 09:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443587', 'tblTempUsageDetail_20' ) start [2025-02-10 09:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443587', 'tblTempUsageDetail_20' ) end [2025-02-10 09:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:49:30] Production.INFO: ==5970== Releasing lock... [2025-02-10 09:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:49:30] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:50:05 [end_date_ymd] => 2025-02-10 09:50:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:50:05' and `end` < '2025-02-10 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-10 09:50:25] Production.INFO: count ==2336 [2025-02-10 09:50:26] Production.ERROR: pbx CDR StartTime 2025-02-10 06:50:05 - End Time 2025-02-10 09:50:05 [2025-02-10 09:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443593', 'tblTempUsageDetail_20' ) start [2025-02-10 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443593', 'tblTempUsageDetail_20' ) end [2025-02-10 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443593', 'tblTempVendorCDR_20' ) start [2025-02-10 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443593', 'tblTempVendorCDR_20' ) end [2025-02-10 09:50:26] Production.INFO: ProcessCDR(1,14443593,1,1,2) [2025-02-10 09:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443593', 'tblTempUsageDetail_20' ) start [2025-02-10 09:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443593', 'tblTempUsageDetail_20' ) end [2025-02-10 09:50:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:50:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:50:31] Production.INFO: ==6089== Releasing lock... [2025-02-10 09:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:50:31] Production.INFO: 45.5 MB #Memory Used# [2025-02-10 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:51:05 [end_date_ymd] => 2025-02-10 09:51:05 [RateCDR] => 1 ) [2025-02-10 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:51:05' and `end` < '2025-02-10 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:51:30] Production.INFO: count ==2449 [2025-02-10 09:51:31] Production.ERROR: pbx CDR StartTime 2025-02-10 06:51:05 - End Time 2025-02-10 09:51:05 [2025-02-10 09:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443598', 'tblTempUsageDetail_20' ) start [2025-02-10 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443598', 'tblTempUsageDetail_20' ) end [2025-02-10 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443598', 'tblTempVendorCDR_20' ) start [2025-02-10 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443598', 'tblTempVendorCDR_20' ) end [2025-02-10 09:51:31] Production.INFO: ProcessCDR(1,14443598,1,1,2) [2025-02-10 09:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:51:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:51:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443598', 'tblTempUsageDetail_20' ) start [2025-02-10 09:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443598', 'tblTempUsageDetail_20' ) end [2025-02-10 09:51:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:51:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:51:36] Production.INFO: ==6231== Releasing lock... [2025-02-10 09:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:51:36] Production.INFO: 46.5 MB #Memory Used# [2025-02-10 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:52:05 [end_date_ymd] => 2025-02-10 09:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:52:05' and `end` < '2025-02-10 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-10 09:52:24] Production.INFO: count ==2468 [2025-02-10 09:52:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:52:05 - End Time 2025-02-10 09:52:05 [2025-02-10 09:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443603', 'tblTempUsageDetail_20' ) start [2025-02-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443603', 'tblTempUsageDetail_20' ) end [2025-02-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443603', 'tblTempVendorCDR_20' ) start [2025-02-10 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443603', 'tblTempVendorCDR_20' ) end [2025-02-10 09:52:25] Production.INFO: ProcessCDR(1,14443603,1,1,2) [2025-02-10 09:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443603', 'tblTempUsageDetail_20' ) start [2025-02-10 09:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443603', 'tblTempUsageDetail_20' ) end [2025-02-10 09:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:52:30] Production.INFO: ==6334== Releasing lock... [2025-02-10 09:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:52:30] Production.INFO: 46.5 MB #Memory Used# [2025-02-10 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:53:04 [end_date_ymd] => 2025-02-10 09:53:04 [RateCDR] => 1 ) [2025-02-10 09: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-10 06:53:04' and `end` < '2025-02-10 09: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-10 09:53:25] Production.INFO: count ==2500 [2025-02-10 09:53:26] Production.ERROR: pbx CDR StartTime 2025-02-10 06:53:04 - End Time 2025-02-10 09:53:04 [2025-02-10 09:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443608', 'tblTempUsageDetail_20' ) start [2025-02-10 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443608', 'tblTempUsageDetail_20' ) end [2025-02-10 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443608', 'tblTempVendorCDR_20' ) start [2025-02-10 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443608', 'tblTempVendorCDR_20' ) end [2025-02-10 09:53:26] Production.INFO: ProcessCDR(1,14443608,1,1,2) [2025-02-10 09:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443608', 'tblTempUsageDetail_20' ) start [2025-02-10 09:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443608', 'tblTempUsageDetail_20' ) end [2025-02-10 09:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:53:31] Production.INFO: ==6441== Releasing lock... [2025-02-10 09:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:53:31] Production.INFO: 46.75 MB #Memory Used# [2025-02-10 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:54:05 [end_date_ymd] => 2025-02-10 09:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:54:05' and `end` < '2025-02-10 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-10 09:54:24] Production.INFO: count ==2518 [2025-02-10 09:54:25] Production.ERROR: pbx CDR StartTime 2025-02-10 06:54:05 - End Time 2025-02-10 09:54:05 [2025-02-10 09:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443613', 'tblTempUsageDetail_20' ) start [2025-02-10 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443613', 'tblTempUsageDetail_20' ) end [2025-02-10 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443613', 'tblTempVendorCDR_20' ) start [2025-02-10 09:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443613', 'tblTempVendorCDR_20' ) end [2025-02-10 09:54:25] Production.INFO: ProcessCDR(1,14443613,1,1,2) [2025-02-10 09:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443613', 'tblTempUsageDetail_20' ) start [2025-02-10 09:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443613', 'tblTempUsageDetail_20' ) end [2025-02-10 09:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:54:29] Production.INFO: ==6552== Releasing lock... [2025-02-10 09:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:54:29] Production.INFO: 47 MB #Memory Used# [2025-02-10 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:55:05 [end_date_ymd] => 2025-02-10 09:55:05 [RateCDR] => 1 ) [2025-02-10 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:55:05' and `end` < '2025-02-10 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:55:28] Production.INFO: count ==2552 [2025-02-10 09:55:29] Production.ERROR: pbx CDR StartTime 2025-02-10 06:55:05 - End Time 2025-02-10 09:55:05 [2025-02-10 09:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443618', 'tblTempUsageDetail_20' ) start [2025-02-10 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443618', 'tblTempUsageDetail_20' ) end [2025-02-10 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443618', 'tblTempVendorCDR_20' ) start [2025-02-10 09:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443618', 'tblTempVendorCDR_20' ) end [2025-02-10 09:55:29] Production.INFO: ProcessCDR(1,14443618,1,1,2) [2025-02-10 09:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443618', 'tblTempUsageDetail_20' ) start [2025-02-10 09:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443618', 'tblTempUsageDetail_20' ) end [2025-02-10 09:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:55:34] Production.INFO: ==6658== Releasing lock... [2025-02-10 09:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:55:34] Production.INFO: 47.25 MB #Memory Used# [2025-02-10 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:56:05 [end_date_ymd] => 2025-02-10 09:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:56:05' and `end` < '2025-02-10 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-10 09:56:22] Production.INFO: count ==2571 [2025-02-10 09:56:23] Production.ERROR: pbx CDR StartTime 2025-02-10 06:56:05 - End Time 2025-02-10 09:56:05 [2025-02-10 09:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443623', 'tblTempUsageDetail_20' ) start [2025-02-10 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443623', 'tblTempUsageDetail_20' ) end [2025-02-10 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443623', 'tblTempVendorCDR_20' ) start [2025-02-10 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443623', 'tblTempVendorCDR_20' ) end [2025-02-10 09:56:23] Production.INFO: ProcessCDR(1,14443623,1,1,2) [2025-02-10 09:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443623', 'tblTempUsageDetail_20' ) start [2025-02-10 09:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443623', 'tblTempUsageDetail_20' ) end [2025-02-10 09:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:56:28] Production.INFO: ==6768== Releasing lock... [2025-02-10 09:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:56:28] Production.INFO: 47.25 MB #Memory Used# [2025-02-10 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:57:04 [end_date_ymd] => 2025-02-10 09:57:04 [RateCDR] => 1 ) [2025-02-10 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:57:04' and `end` < '2025-02-10 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:57:23] Production.INFO: count ==2586 [2025-02-10 09:57:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:57:04 - End Time 2025-02-10 09:57:04 [2025-02-10 09:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443628', 'tblTempUsageDetail_20' ) start [2025-02-10 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443628', 'tblTempUsageDetail_20' ) end [2025-02-10 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443628', 'tblTempVendorCDR_20' ) start [2025-02-10 09:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443628', 'tblTempVendorCDR_20' ) end [2025-02-10 09:57:25] Production.INFO: ProcessCDR(1,14443628,1,1,2) [2025-02-10 09:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443628', 'tblTempUsageDetail_20' ) start [2025-02-10 09:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443628', 'tblTempUsageDetail_20' ) end [2025-02-10 09:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:57:29] Production.INFO: ==6866== Releasing lock... [2025-02-10 09:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:57:29] Production.INFO: 47.5 MB #Memory Used# [2025-02-10 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:58:05 [end_date_ymd] => 2025-02-10 09:58:05 [RateCDR] => 1 ) [2025-02-10 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 06:58:05' and `end` < '2025-02-10 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 09:58:23] Production.INFO: count ==2600 [2025-02-10 09:58:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:58:05 - End Time 2025-02-10 09:58:05 [2025-02-10 09:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443633', 'tblTempUsageDetail_20' ) start [2025-02-10 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443633', 'tblTempUsageDetail_20' ) end [2025-02-10 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443633', 'tblTempVendorCDR_20' ) start [2025-02-10 09:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443633', 'tblTempVendorCDR_20' ) end [2025-02-10 09:58:24] Production.INFO: ProcessCDR(1,14443633,1,1,2) [2025-02-10 09:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443633', 'tblTempUsageDetail_20' ) start [2025-02-10 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443633', 'tblTempUsageDetail_20' ) end [2025-02-10 09:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:58:27] Production.INFO: ==6944== Releasing lock... [2025-02-10 09:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:58:27] Production.INFO: 47.5 MB #Memory Used# [2025-02-10 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 06:59:05 [end_date_ymd] => 2025-02-10 09:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 06:59:05' and `end` < '2025-02-10 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-10 09:59:23] Production.INFO: count ==2606 [2025-02-10 09:59:24] Production.ERROR: pbx CDR StartTime 2025-02-10 06:59:05 - End Time 2025-02-10 09:59:05 [2025-02-10 09:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 09:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443638', 'tblTempUsageDetail_20' ) start [2025-02-10 09:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443638', 'tblTempUsageDetail_20' ) end [2025-02-10 09:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443638', 'tblTempVendorCDR_20' ) start [2025-02-10 09:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443638', 'tblTempVendorCDR_20' ) end [2025-02-10 09:59:24] Production.INFO: ProcessCDR(1,14443638,1,1,2) [2025-02-10 09:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 09:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 09:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443638', 'tblTempUsageDetail_20' ) start [2025-02-10 09:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443638', 'tblTempUsageDetail_20' ) end [2025-02-10 09:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 09:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 09:59:28] Production.INFO: ==7022== Releasing lock... [2025-02-10 09:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 09:59:28] Production.INFO: 47.5 MB #Memory Used# [2025-02-10 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:00:06 [end_date_ymd] => 2025-02-10 10:00:06 [RateCDR] => 1 ) [2025-02-10 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:00:06' and `end` < '2025-02-10 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:00:21] Production.INFO: count ==2630 [2025-02-10 10:00:22] Production.ERROR: pbx CDR StartTime 2025-02-10 07:00:06 - End Time 2025-02-10 10:00:06 [2025-02-10 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443643', 'tblTempUsageDetail_20' ) start [2025-02-10 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443643', 'tblTempUsageDetail_20' ) end [2025-02-10 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443643', 'tblTempVendorCDR_20' ) start [2025-02-10 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443643', 'tblTempVendorCDR_20' ) end [2025-02-10 10:00:22] Production.INFO: ProcessCDR(1,14443643,1,1,2) [2025-02-10 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443643', 'tblTempUsageDetail_20' ) start [2025-02-10 10:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443643', 'tblTempUsageDetail_20' ) end [2025-02-10 10:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:00:27] Production.INFO: ==7107== Releasing lock... [2025-02-10 10:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:00:27] Production.INFO: 47.75 MB #Memory Used# [2025-02-10 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:01:05 [end_date_ymd] => 2025-02-10 10:01:05 [RateCDR] => 1 ) [2025-02-10 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:01:05' and `end` < '2025-02-10 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:01:22] Production.INFO: count ==2731 [2025-02-10 10:01:23] Production.ERROR: pbx CDR StartTime 2025-02-10 07:01:05 - End Time 2025-02-10 10:01:05 [2025-02-10 10:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443649', 'tblTempUsageDetail_20' ) start [2025-02-10 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443649', 'tblTempUsageDetail_20' ) end [2025-02-10 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443649', 'tblTempVendorCDR_20' ) start [2025-02-10 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443649', 'tblTempVendorCDR_20' ) end [2025-02-10 10:01:23] Production.INFO: ProcessCDR(1,14443649,1,1,2) [2025-02-10 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443649', 'tblTempUsageDetail_20' ) start [2025-02-10 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443649', 'tblTempUsageDetail_20' ) end [2025-02-10 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:01:27] Production.INFO: ==7203== Releasing lock... [2025-02-10 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:01:27] Production.INFO: 48.75 MB #Memory Used# [2025-02-10 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:02:05 [end_date_ymd] => 2025-02-10 10:02:05 [RateCDR] => 1 ) [2025-02-10 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:02:05' and `end` < '2025-02-10 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:02:21] Production.INFO: count ==2753 [2025-02-10 10:02:22] Production.ERROR: pbx CDR StartTime 2025-02-10 07:02:05 - End Time 2025-02-10 10:02:05 [2025-02-10 10:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443654', 'tblTempUsageDetail_20' ) start [2025-02-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443654', 'tblTempUsageDetail_20' ) end [2025-02-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443654', 'tblTempVendorCDR_20' ) start [2025-02-10 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443654', 'tblTempVendorCDR_20' ) end [2025-02-10 10:02:23] Production.INFO: ProcessCDR(1,14443654,1,1,2) [2025-02-10 10:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443654', 'tblTempUsageDetail_20' ) start [2025-02-10 10:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443654', 'tblTempUsageDetail_20' ) end [2025-02-10 10:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:02:27] Production.INFO: ==7280== Releasing lock... [2025-02-10 10:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:02:27] Production.INFO: 48.75 MB #Memory Used# [2025-02-10 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:03:05 [end_date_ymd] => 2025-02-10 10:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:03:05' and `end` < '2025-02-10 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-10 10:03:20] Production.INFO: count ==2765 [2025-02-10 10:03:21] Production.ERROR: pbx CDR StartTime 2025-02-10 07:03:05 - End Time 2025-02-10 10:03:05 [2025-02-10 10:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443659', 'tblTempUsageDetail_20' ) start [2025-02-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443659', 'tblTempUsageDetail_20' ) end [2025-02-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443659', 'tblTempVendorCDR_20' ) start [2025-02-10 10:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443659', 'tblTempVendorCDR_20' ) end [2025-02-10 10:03:21] Production.INFO: ProcessCDR(1,14443659,1,1,2) [2025-02-10 10:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443659', 'tblTempUsageDetail_20' ) start [2025-02-10 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443659', 'tblTempUsageDetail_20' ) end [2025-02-10 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:03:26] Production.INFO: ==7365== Releasing lock... [2025-02-10 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:03:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-10 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:04:05 [end_date_ymd] => 2025-02-10 10:04:05 [RateCDR] => 1 ) [2025-02-10 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:04:05' and `end` < '2025-02-10 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:04:20] Production.INFO: count ==2787 [2025-02-10 10:04:21] Production.ERROR: pbx CDR StartTime 2025-02-10 07:04:05 - End Time 2025-02-10 10:04:05 [2025-02-10 10:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443664', 'tblTempUsageDetail_20' ) start [2025-02-10 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443664', 'tblTempUsageDetail_20' ) end [2025-02-10 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443664', 'tblTempVendorCDR_20' ) start [2025-02-10 10:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443664', 'tblTempVendorCDR_20' ) end [2025-02-10 10:04:21] Production.INFO: ProcessCDR(1,14443664,1,1,2) [2025-02-10 10:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443664', 'tblTempUsageDetail_20' ) start [2025-02-10 10:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443664', 'tblTempUsageDetail_20' ) end [2025-02-10 10:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:04:26] Production.INFO: ==7445== Releasing lock... [2025-02-10 10:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:04:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-10 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:05:05 [end_date_ymd] => 2025-02-10 10:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:05:05' and `end` < '2025-02-10 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-10 10:05:24] Production.INFO: count ==2806 [2025-02-10 10:05:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:05:05 - End Time 2025-02-10 10:05:05 [2025-02-10 10:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443669', 'tblTempUsageDetail_20' ) start [2025-02-10 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443669', 'tblTempUsageDetail_20' ) end [2025-02-10 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443669', 'tblTempVendorCDR_20' ) start [2025-02-10 10:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443669', 'tblTempVendorCDR_20' ) end [2025-02-10 10:05:25] Production.INFO: ProcessCDR(1,14443669,1,1,2) [2025-02-10 10:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443669', 'tblTempUsageDetail_20' ) start [2025-02-10 10:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443669', 'tblTempUsageDetail_20' ) end [2025-02-10 10:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:05:29] Production.INFO: ==7522== Releasing lock... [2025-02-10 10:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:05:29] Production.INFO: 49.25 MB #Memory Used# [2025-02-10 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:06:04 [end_date_ymd] => 2025-02-10 10:06:04 [RateCDR] => 1 ) [2025-02-10 10: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-10 07:06:04' and `end` < '2025-02-10 10: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-10 10:06:20] Production.INFO: count ==2839 [2025-02-10 10:06:21] Production.ERROR: pbx CDR StartTime 2025-02-10 07:06:04 - End Time 2025-02-10 10:06:04 [2025-02-10 10:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443674', 'tblTempUsageDetail_20' ) start [2025-02-10 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443674', 'tblTempUsageDetail_20' ) end [2025-02-10 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443674', 'tblTempVendorCDR_20' ) start [2025-02-10 10:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443674', 'tblTempVendorCDR_20' ) end [2025-02-10 10:06:21] Production.INFO: ProcessCDR(1,14443674,1,1,2) [2025-02-10 10:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443674', 'tblTempUsageDetail_20' ) start [2025-02-10 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443674', 'tblTempUsageDetail_20' ) end [2025-02-10 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:06:26] Production.INFO: ==7597== Releasing lock... [2025-02-10 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:06:26] Production.INFO: 49.25 MB #Memory Used# [2025-02-10 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:07:05 [end_date_ymd] => 2025-02-10 10:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:07:05' and `end` < '2025-02-10 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-10 10:07:23] Production.INFO: count ==2861 [2025-02-10 10:07:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:07:05 - End Time 2025-02-10 10:07:05 [2025-02-10 10:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443679', 'tblTempUsageDetail_20' ) start [2025-02-10 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443679', 'tblTempUsageDetail_20' ) end [2025-02-10 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443679', 'tblTempVendorCDR_20' ) start [2025-02-10 10:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443679', 'tblTempVendorCDR_20' ) end [2025-02-10 10:07:24] Production.INFO: ProcessCDR(1,14443679,1,1,2) [2025-02-10 10:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443679', 'tblTempUsageDetail_20' ) start [2025-02-10 10:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443679', 'tblTempUsageDetail_20' ) end [2025-02-10 10:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:07:29] Production.INFO: ==7716== Releasing lock... [2025-02-10 10:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:07:29] Production.INFO: 49.25 MB #Memory Used# [2025-02-10 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:08:05 [end_date_ymd] => 2025-02-10 10:08:05 [RateCDR] => 1 ) [2025-02-10 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:08:05' and `end` < '2025-02-10 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:08:22] Production.INFO: count ==2883 [2025-02-10 10:08:23] Production.ERROR: pbx CDR StartTime 2025-02-10 07:08:05 - End Time 2025-02-10 10:08:05 [2025-02-10 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443684', 'tblTempUsageDetail_20' ) start [2025-02-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443684', 'tblTempUsageDetail_20' ) end [2025-02-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443684', 'tblTempVendorCDR_20' ) start [2025-02-10 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443684', 'tblTempVendorCDR_20' ) end [2025-02-10 10:08:23] Production.INFO: ProcessCDR(1,14443684,1,1,2) [2025-02-10 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443684', 'tblTempUsageDetail_20' ) start [2025-02-10 10:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443684', 'tblTempUsageDetail_20' ) end [2025-02-10 10:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:08:27] Production.INFO: ==7791== Releasing lock... [2025-02-10 10:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:08:27] Production.INFO: 50 MB #Memory Used# [2025-02-10 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:09:05 [end_date_ymd] => 2025-02-10 10:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:09:05' and `end` < '2025-02-10 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-10 10:09:24] Production.INFO: count ==2913 [2025-02-10 10:09:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:09:05 - End Time 2025-02-10 10:09:05 [2025-02-10 10:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443689', 'tblTempUsageDetail_20' ) start [2025-02-10 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443689', 'tblTempUsageDetail_20' ) end [2025-02-10 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443689', 'tblTempVendorCDR_20' ) start [2025-02-10 10:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443689', 'tblTempVendorCDR_20' ) end [2025-02-10 10:09:25] Production.INFO: ProcessCDR(1,14443689,1,1,2) [2025-02-10 10:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443689', 'tblTempUsageDetail_20' ) start [2025-02-10 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443689', 'tblTempUsageDetail_20' ) end [2025-02-10 10:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:09:30] Production.INFO: ==7868== Releasing lock... [2025-02-10 10:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:09:30] Production.INFO: 49.75 MB #Memory Used# [2025-02-10 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:10:06 [end_date_ymd] => 2025-02-10 10:10:06 [RateCDR] => 1 ) [2025-02-10 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:10:06' and `end` < '2025-02-10 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:10:29] Production.INFO: count ==2931 [2025-02-10 10:10:30] Production.ERROR: pbx CDR StartTime 2025-02-10 07:10:06 - End Time 2025-02-10 10:10:06 [2025-02-10 10:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443694', 'tblTempUsageDetail_20' ) start [2025-02-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443694', 'tblTempUsageDetail_20' ) end [2025-02-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443694', 'tblTempVendorCDR_20' ) start [2025-02-10 10:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443694', 'tblTempVendorCDR_20' ) end [2025-02-10 10:10:30] Production.INFO: ProcessCDR(1,14443694,1,1,2) [2025-02-10 10:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443694', 'tblTempUsageDetail_20' ) start [2025-02-10 10:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443694', 'tblTempUsageDetail_20' ) end [2025-02-10 10:10:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:10:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:10:36] Production.INFO: ==7947== Releasing lock... [2025-02-10 10:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:10:36] Production.INFO: 50 MB #Memory Used# [2025-02-10 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:11:05 [end_date_ymd] => 2025-02-10 10:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:11:05' and `end` < '2025-02-10 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-10 10:11:24] Production.INFO: count ==3009 [2025-02-10 10:11:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:11:05 - End Time 2025-02-10 10:11:05 [2025-02-10 10:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443700', 'tblTempUsageDetail_20' ) start [2025-02-10 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443700', 'tblTempUsageDetail_20' ) end [2025-02-10 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443700', 'tblTempVendorCDR_20' ) start [2025-02-10 10:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443700', 'tblTempVendorCDR_20' ) end [2025-02-10 10:11:25] Production.INFO: ProcessCDR(1,14443700,1,1,2) [2025-02-10 10:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443700', 'tblTempUsageDetail_20' ) start [2025-02-10 10:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443700', 'tblTempUsageDetail_20' ) end [2025-02-10 10:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:11:30] Production.INFO: ==8029== Releasing lock... [2025-02-10 10:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:11:30] Production.INFO: 50.5 MB #Memory Used# [2025-02-10 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:12:05 [end_date_ymd] => 2025-02-10 10:12:05 [RateCDR] => 1 ) [2025-02-10 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:12:05' and `end` < '2025-02-10 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:12:22] Production.INFO: count ==3025 [2025-02-10 10:12:23] Production.ERROR: pbx CDR StartTime 2025-02-10 07:12:05 - End Time 2025-02-10 10:12:05 [2025-02-10 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443705', 'tblTempUsageDetail_20' ) start [2025-02-10 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443705', 'tblTempUsageDetail_20' ) end [2025-02-10 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443705', 'tblTempVendorCDR_20' ) start [2025-02-10 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443705', 'tblTempVendorCDR_20' ) end [2025-02-10 10:12:23] Production.INFO: ProcessCDR(1,14443705,1,1,2) [2025-02-10 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443705', 'tblTempUsageDetail_20' ) start [2025-02-10 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443705', 'tblTempUsageDetail_20' ) end [2025-02-10 10:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:12:27] Production.INFO: ==8107== Releasing lock... [2025-02-10 10:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:12:27] Production.INFO: 50.5 MB #Memory Used# [2025-02-10 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:13:05 [end_date_ymd] => 2025-02-10 10:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:13:05' and `end` < '2025-02-10 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-10 10:13:19] Production.INFO: count ==3037 [2025-02-10 10:13:20] Production.ERROR: pbx CDR StartTime 2025-02-10 07:13:05 - End Time 2025-02-10 10:13:05 [2025-02-10 10:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443710', 'tblTempUsageDetail_20' ) start [2025-02-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443710', 'tblTempUsageDetail_20' ) end [2025-02-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443710', 'tblTempVendorCDR_20' ) start [2025-02-10 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443710', 'tblTempVendorCDR_20' ) end [2025-02-10 10:13:20] Production.INFO: ProcessCDR(1,14443710,1,1,2) [2025-02-10 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443710', 'tblTempUsageDetail_20' ) start [2025-02-10 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443710', 'tblTempUsageDetail_20' ) end [2025-02-10 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:13:25] Production.INFO: ==8183== Releasing lock... [2025-02-10 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:13:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-10 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:14:05 [end_date_ymd] => 2025-02-10 10:14:05 [RateCDR] => 1 ) [2025-02-10 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:14:05' and `end` < '2025-02-10 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:14:23] Production.INFO: count ==3063 [2025-02-10 10:14:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:14:05 - End Time 2025-02-10 10:14:05 [2025-02-10 10:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443715', 'tblTempUsageDetail_20' ) start [2025-02-10 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443715', 'tblTempUsageDetail_20' ) end [2025-02-10 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443715', 'tblTempVendorCDR_20' ) start [2025-02-10 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443715', 'tblTempVendorCDR_20' ) end [2025-02-10 10:14:25] Production.INFO: ProcessCDR(1,14443715,1,1,2) [2025-02-10 10:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443715', 'tblTempUsageDetail_20' ) start [2025-02-10 10:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443715', 'tblTempUsageDetail_20' ) end [2025-02-10 10:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:14:30] Production.INFO: ==8262== Releasing lock... [2025-02-10 10:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:14:30] Production.INFO: 50.75 MB #Memory Used# [2025-02-10 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:15:06 [end_date_ymd] => 2025-02-10 10:15:06 [RateCDR] => 1 ) [2025-02-10 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:15:06' and `end` < '2025-02-10 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:15:23] Production.INFO: count ==3096 [2025-02-10 10:15:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:15:06 - End Time 2025-02-10 10:15:06 [2025-02-10 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443720', 'tblTempUsageDetail_20' ) start [2025-02-10 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443720', 'tblTempUsageDetail_20' ) end [2025-02-10 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443720', 'tblTempVendorCDR_20' ) start [2025-02-10 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443720', 'tblTempVendorCDR_20' ) end [2025-02-10 10:15:24] Production.INFO: ProcessCDR(1,14443720,1,1,2) [2025-02-10 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443720', 'tblTempUsageDetail_20' ) start [2025-02-10 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443720', 'tblTempUsageDetail_20' ) end [2025-02-10 10:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:15:29] Production.INFO: ==8335== Releasing lock... [2025-02-10 10:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:15:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-10 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:16:05 [end_date_ymd] => 2025-02-10 10:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:16:05' and `end` < '2025-02-10 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-10 10:16:20] Production.INFO: count ==3112 [2025-02-10 10:16:22] Production.ERROR: pbx CDR StartTime 2025-02-10 07:16:05 - End Time 2025-02-10 10:16:05 [2025-02-10 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443725', 'tblTempUsageDetail_20' ) start [2025-02-10 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443725', 'tblTempUsageDetail_20' ) end [2025-02-10 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443725', 'tblTempVendorCDR_20' ) start [2025-02-10 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443725', 'tblTempVendorCDR_20' ) end [2025-02-10 10:16:22] Production.INFO: ProcessCDR(1,14443725,1,1,2) [2025-02-10 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443725', 'tblTempUsageDetail_20' ) start [2025-02-10 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443725', 'tblTempUsageDetail_20' ) end [2025-02-10 10:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:16:27] Production.INFO: ==8410== Releasing lock... [2025-02-10 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:16:27] Production.INFO: 51.5 MB #Memory Used# [2025-02-10 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:17:06 [end_date_ymd] => 2025-02-10 10:17:06 [RateCDR] => 1 ) [2025-02-10 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-10 07:17:06' and `end` < '2025-02-10 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-10 10:17:27] Production.INFO: count ==3131 [2025-02-10 10:17:29] Production.ERROR: pbx CDR StartTime 2025-02-10 07:17:06 - End Time 2025-02-10 10:17:06 [2025-02-10 10:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443730', 'tblTempUsageDetail_20' ) start [2025-02-10 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443730', 'tblTempUsageDetail_20' ) end [2025-02-10 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443730', 'tblTempVendorCDR_20' ) start [2025-02-10 10:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443730', 'tblTempVendorCDR_20' ) end [2025-02-10 10:17:29] Production.INFO: ProcessCDR(1,14443730,1,1,2) [2025-02-10 10:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443730', 'tblTempUsageDetail_20' ) start [2025-02-10 10:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443730', 'tblTempUsageDetail_20' ) end [2025-02-10 10:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:17:34] Production.INFO: ==8490== Releasing lock... [2025-02-10 10:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:17:34] Production.INFO: 51.5 MB #Memory Used# [2025-02-10 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:18:05 [end_date_ymd] => 2025-02-10 10:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:18:05' and `end` < '2025-02-10 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-10 10:18:23] Production.INFO: count ==3142 [2025-02-10 10:18:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:18:05 - End Time 2025-02-10 10:18:05 [2025-02-10 10:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443735', 'tblTempUsageDetail_20' ) start [2025-02-10 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443735', 'tblTempUsageDetail_20' ) end [2025-02-10 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443735', 'tblTempVendorCDR_20' ) start [2025-02-10 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443735', 'tblTempVendorCDR_20' ) end [2025-02-10 10:18:24] Production.INFO: ProcessCDR(1,14443735,1,1,2) [2025-02-10 10:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443735', 'tblTempUsageDetail_20' ) start [2025-02-10 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443735', 'tblTempUsageDetail_20' ) end [2025-02-10 10:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:18:28] Production.INFO: ==8567== Releasing lock... [2025-02-10 10:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:18:28] Production.INFO: 52.5 MB #Memory Used# [2025-02-10 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:19:05 [end_date_ymd] => 2025-02-10 10:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:19:05' and `end` < '2025-02-10 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:19:24] Production.INFO: count ==3171 [2025-02-10 10:19:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:19:05 - End Time 2025-02-10 10:19:05 [2025-02-10 10:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443740', 'tblTempUsageDetail_20' ) start [2025-02-10 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443740', 'tblTempUsageDetail_20' ) end [2025-02-10 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443740', 'tblTempVendorCDR_20' ) start [2025-02-10 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443740', 'tblTempVendorCDR_20' ) end [2025-02-10 10:19:25] Production.INFO: ProcessCDR(1,14443740,1,1,2) [2025-02-10 10:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443740', 'tblTempUsageDetail_20' ) start [2025-02-10 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443740', 'tblTempUsageDetail_20' ) end [2025-02-10 10:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:19:30] Production.INFO: ==8642== Releasing lock... [2025-02-10 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:19:30] Production.INFO: 51.75 MB #Memory Used# [2025-02-10 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:20:05 [end_date_ymd] => 2025-02-10 10:20:05 [RateCDR] => 1 ) [2025-02-10 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:20:05' and `end` < '2025-02-10 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:20:18] Production.INFO: count ==3180 [2025-02-10 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-10 07:20:05 - End Time 2025-02-10 10:20:05 [2025-02-10 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443745', 'tblTempUsageDetail_20' ) start [2025-02-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443745', 'tblTempUsageDetail_20' ) end [2025-02-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443745', 'tblTempVendorCDR_20' ) start [2025-02-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443745', 'tblTempVendorCDR_20' ) end [2025-02-10 10:20:20] Production.INFO: ProcessCDR(1,14443745,1,1,2) [2025-02-10 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443745', 'tblTempUsageDetail_20' ) start [2025-02-10 10:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443745', 'tblTempUsageDetail_20' ) end [2025-02-10 10:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:20:24] Production.INFO: ==8715== Releasing lock... [2025-02-10 10:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:20:24] Production.INFO: 52 MB #Memory Used# [2025-02-10 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:21:04 [end_date_ymd] => 2025-02-10 10:21:04 [RateCDR] => 1 ) [2025-02-10 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:21:04' and `end` < '2025-02-10 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:21:18] Production.INFO: count ==3261 [2025-02-10 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 07:21:04 - End Time 2025-02-10 10:21:04 [2025-02-10 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443751', 'tblTempUsageDetail_20' ) start [2025-02-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443751', 'tblTempUsageDetail_20' ) end [2025-02-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443751', 'tblTempVendorCDR_20' ) start [2025-02-10 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443751', 'tblTempVendorCDR_20' ) end [2025-02-10 10:21:20] Production.INFO: ProcessCDR(1,14443751,1,1,2) [2025-02-10 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443751', 'tblTempUsageDetail_20' ) start [2025-02-10 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443751', 'tblTempUsageDetail_20' ) end [2025-02-10 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:21:24] Production.INFO: ==8792== Releasing lock... [2025-02-10 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:21:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-10 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:22:06 [end_date_ymd] => 2025-02-10 10:22:06 [RateCDR] => 1 ) [2025-02-10 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:22:06' and `end` < '2025-02-10 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:22:26] Production.INFO: count ==3301 [2025-02-10 10:22:28] Production.ERROR: pbx CDR StartTime 2025-02-10 07:22:06 - End Time 2025-02-10 10:22:06 [2025-02-10 10:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443756', 'tblTempUsageDetail_20' ) start [2025-02-10 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443756', 'tblTempUsageDetail_20' ) end [2025-02-10 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443756', 'tblTempVendorCDR_20' ) start [2025-02-10 10:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443756', 'tblTempVendorCDR_20' ) end [2025-02-10 10:22:28] Production.INFO: ProcessCDR(1,14443756,1,1,2) [2025-02-10 10:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443756', 'tblTempUsageDetail_20' ) start [2025-02-10 10:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443756', 'tblTempUsageDetail_20' ) end [2025-02-10 10:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:22:32] Production.INFO: ==8908== Releasing lock... [2025-02-10 10:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:22:32] Production.INFO: 52.5 MB #Memory Used# [2025-02-10 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:23:05 [end_date_ymd] => 2025-02-10 10:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:23:05' and `end` < '2025-02-10 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-10 10:23:23] Production.INFO: count ==3333 [2025-02-10 10:23:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:23:05 - End Time 2025-02-10 10:23:05 [2025-02-10 10:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443761', 'tblTempUsageDetail_20' ) start [2025-02-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443761', 'tblTempUsageDetail_20' ) end [2025-02-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443761', 'tblTempVendorCDR_20' ) start [2025-02-10 10:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443761', 'tblTempVendorCDR_20' ) end [2025-02-10 10:23:24] Production.INFO: ProcessCDR(1,14443761,1,1,2) [2025-02-10 10:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443761', 'tblTempUsageDetail_20' ) start [2025-02-10 10:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443761', 'tblTempUsageDetail_20' ) end [2025-02-10 10:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:23:29] Production.INFO: ==8984== Releasing lock... [2025-02-10 10:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:23:29] Production.INFO: 52.75 MB #Memory Used# [2025-02-10 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:24:05 [end_date_ymd] => 2025-02-10 10:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:24:05' and `end` < '2025-02-10 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-10 10:24:19] Production.INFO: count ==3349 [2025-02-10 10:24:20] Production.ERROR: pbx CDR StartTime 2025-02-10 07:24:05 - End Time 2025-02-10 10:24:05 [2025-02-10 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443766', 'tblTempUsageDetail_20' ) start [2025-02-10 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443766', 'tblTempUsageDetail_20' ) end [2025-02-10 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443766', 'tblTempVendorCDR_20' ) start [2025-02-10 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443766', 'tblTempVendorCDR_20' ) end [2025-02-10 10:24:21] Production.INFO: ProcessCDR(1,14443766,1,1,2) [2025-02-10 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443766', 'tblTempUsageDetail_20' ) start [2025-02-10 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443766', 'tblTempUsageDetail_20' ) end [2025-02-10 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:24:25] Production.INFO: ==9056== Releasing lock... [2025-02-10 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:24:25] Production.INFO: 53 MB #Memory Used# [2025-02-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:25:05 [end_date_ymd] => 2025-02-10 10:25:05 [RateCDR] => 1 ) [2025-02-10 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:25:05' and `end` < '2025-02-10 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:25:29] Production.INFO: count ==3360 [2025-02-10 10:25:30] Production.ERROR: pbx CDR StartTime 2025-02-10 07:25:05 - End Time 2025-02-10 10:25:05 [2025-02-10 10:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443771', 'tblTempUsageDetail_20' ) start [2025-02-10 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443771', 'tblTempUsageDetail_20' ) end [2025-02-10 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443771', 'tblTempVendorCDR_20' ) start [2025-02-10 10:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443771', 'tblTempVendorCDR_20' ) end [2025-02-10 10:25:30] Production.INFO: ProcessCDR(1,14443771,1,1,2) [2025-02-10 10:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443771', 'tblTempUsageDetail_20' ) start [2025-02-10 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443771', 'tblTempUsageDetail_20' ) end [2025-02-10 10:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:25:35] Production.INFO: ==9128== Releasing lock... [2025-02-10 10:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:25:35] Production.INFO: 53 MB #Memory Used# [2025-02-10 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:26:05 [end_date_ymd] => 2025-02-10 10:26:05 [RateCDR] => 1 ) [2025-02-10 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:26:05' and `end` < '2025-02-10 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:26:25] Production.INFO: count ==3379 [2025-02-10 10:26:26] Production.ERROR: pbx CDR StartTime 2025-02-10 07:26:05 - End Time 2025-02-10 10:26:05 [2025-02-10 10:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443776', 'tblTempUsageDetail_20' ) start [2025-02-10 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443776', 'tblTempUsageDetail_20' ) end [2025-02-10 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443776', 'tblTempVendorCDR_20' ) start [2025-02-10 10:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443776', 'tblTempVendorCDR_20' ) end [2025-02-10 10:26:26] Production.INFO: ProcessCDR(1,14443776,1,1,2) [2025-02-10 10:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443776', 'tblTempUsageDetail_20' ) start [2025-02-10 10:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443776', 'tblTempUsageDetail_20' ) end [2025-02-10 10:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:26:31] Production.INFO: ==9200== Releasing lock... [2025-02-10 10:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:26:31] Production.INFO: 53.25 MB #Memory Used# [2025-02-10 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:27:05 [end_date_ymd] => 2025-02-10 10:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:27:05' and `end` < '2025-02-10 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-10 10:27:22] Production.INFO: count ==3398 [2025-02-10 10:27:23] Production.ERROR: pbx CDR StartTime 2025-02-10 07:27:05 - End Time 2025-02-10 10:27:05 [2025-02-10 10:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443781', 'tblTempUsageDetail_20' ) start [2025-02-10 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443781', 'tblTempUsageDetail_20' ) end [2025-02-10 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443781', 'tblTempVendorCDR_20' ) start [2025-02-10 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443781', 'tblTempVendorCDR_20' ) end [2025-02-10 10:27:23] Production.INFO: ProcessCDR(1,14443781,1,1,2) [2025-02-10 10:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443781', 'tblTempUsageDetail_20' ) start [2025-02-10 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443781', 'tblTempUsageDetail_20' ) end [2025-02-10 10:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:27:28] Production.INFO: ==9271== Releasing lock... [2025-02-10 10:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:27:28] Production.INFO: 53.25 MB #Memory Used# [2025-02-10 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:28:05 [end_date_ymd] => 2025-02-10 10:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:28:05' and `end` < '2025-02-10 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-10 10:28:21] Production.INFO: count ==3412 [2025-02-10 10:28:22] Production.ERROR: pbx CDR StartTime 2025-02-10 07:28:05 - End Time 2025-02-10 10:28:05 [2025-02-10 10:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443786', 'tblTempUsageDetail_20' ) start [2025-02-10 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443786', 'tblTempUsageDetail_20' ) end [2025-02-10 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443786', 'tblTempVendorCDR_20' ) start [2025-02-10 10:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443786', 'tblTempVendorCDR_20' ) end [2025-02-10 10:28:22] Production.INFO: ProcessCDR(1,14443786,1,1,2) [2025-02-10 10:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443786', 'tblTempUsageDetail_20' ) start [2025-02-10 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443786', 'tblTempUsageDetail_20' ) end [2025-02-10 10:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:28:27] Production.INFO: ==9341== Releasing lock... [2025-02-10 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:28:27] Production.INFO: 53.5 MB #Memory Used# [2025-02-10 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:29:05 [end_date_ymd] => 2025-02-10 10:29:05 [RateCDR] => 1 ) [2025-02-10 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:29:05' and `end` < '2025-02-10 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:29:29] Production.INFO: count ==3459 [2025-02-10 10:29:30] Production.ERROR: pbx CDR StartTime 2025-02-10 07:29:05 - End Time 2025-02-10 10:29:05 [2025-02-10 10:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443791', 'tblTempUsageDetail_20' ) start [2025-02-10 10:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443791', 'tblTempUsageDetail_20' ) end [2025-02-10 10:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443791', 'tblTempVendorCDR_20' ) start [2025-02-10 10:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443791', 'tblTempVendorCDR_20' ) end [2025-02-10 10:29:30] Production.INFO: ProcessCDR(1,14443791,1,1,2) [2025-02-10 10:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443791', 'tblTempUsageDetail_20' ) start [2025-02-10 10:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443791', 'tblTempUsageDetail_20' ) end [2025-02-10 10:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:29:35] Production.INFO: ==9412== Releasing lock... [2025-02-10 10:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:29:35] Production.INFO: 54 MB #Memory Used# [2025-02-10 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:30:05 [end_date_ymd] => 2025-02-10 10:30:05 [RateCDR] => 1 ) [2025-02-10 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:30:05' and `end` < '2025-02-10 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:30:25] Production.INFO: count ==3458 [2025-02-10 10:30:26] Production.ERROR: pbx CDR StartTime 2025-02-10 07:30:05 - End Time 2025-02-10 10:30:05 [2025-02-10 10:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443797', 'tblTempUsageDetail_20' ) start [2025-02-10 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443797', 'tblTempUsageDetail_20' ) end [2025-02-10 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443797', 'tblTempVendorCDR_20' ) start [2025-02-10 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443797', 'tblTempVendorCDR_20' ) end [2025-02-10 10:30:27] Production.INFO: ProcessCDR(1,14443797,1,1,2) [2025-02-10 10:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443797', 'tblTempUsageDetail_20' ) start [2025-02-10 10:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443797', 'tblTempUsageDetail_20' ) end [2025-02-10 10:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:30:31] Production.INFO: ==9487== Releasing lock... [2025-02-10 10:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:30:31] Production.INFO: 53.75 MB #Memory Used# [2025-02-10 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:31:04 [end_date_ymd] => 2025-02-10 10:31:04 [RateCDR] => 1 ) [2025-02-10 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:31:04' and `end` < '2025-02-10 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:31:25] Production.INFO: count ==3558 [2025-02-10 10:31:27] Production.ERROR: pbx CDR StartTime 2025-02-10 07:31:04 - End Time 2025-02-10 10:31:04 [2025-02-10 10:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443802', 'tblTempUsageDetail_20' ) start [2025-02-10 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443802', 'tblTempUsageDetail_20' ) end [2025-02-10 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443802', 'tblTempVendorCDR_20' ) start [2025-02-10 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443802', 'tblTempVendorCDR_20' ) end [2025-02-10 10:31:27] Production.INFO: ProcessCDR(1,14443802,1,1,2) [2025-02-10 10:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443802', 'tblTempUsageDetail_20' ) start [2025-02-10 10:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443802', 'tblTempUsageDetail_20' ) end [2025-02-10 10:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:31:31] Production.INFO: ==9559== Releasing lock... [2025-02-10 10:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:31:31] Production.INFO: 55 MB #Memory Used# [2025-02-10 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:32:05 [end_date_ymd] => 2025-02-10 10:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:32:05' and `end` < '2025-02-10 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-10 10:32:28] Production.INFO: count ==3569 [2025-02-10 10:32:30] Production.ERROR: pbx CDR StartTime 2025-02-10 07:32:05 - End Time 2025-02-10 10:32:05 [2025-02-10 10:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443807', 'tblTempUsageDetail_20' ) start [2025-02-10 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443807', 'tblTempUsageDetail_20' ) end [2025-02-10 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443807', 'tblTempVendorCDR_20' ) start [2025-02-10 10:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443807', 'tblTempVendorCDR_20' ) end [2025-02-10 10:32:30] Production.INFO: ProcessCDR(1,14443807,1,1,2) [2025-02-10 10:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443807', 'tblTempUsageDetail_20' ) start [2025-02-10 10:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443807', 'tblTempUsageDetail_20' ) end [2025-02-10 10:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:32:34] Production.INFO: ==9632== Releasing lock... [2025-02-10 10:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:32:34] Production.INFO: 54.5 MB #Memory Used# [2025-02-10 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:33:05 [end_date_ymd] => 2025-02-10 10:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:33:05' and `end` < '2025-02-10 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-10 10:33:30] Production.INFO: count ==3575 [2025-02-10 10:33:32] Production.ERROR: pbx CDR StartTime 2025-02-10 07:33:05 - End Time 2025-02-10 10:33:05 [2025-02-10 10:33:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443812', 'tblTempUsageDetail_20' ) start [2025-02-10 10:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443812', 'tblTempUsageDetail_20' ) end [2025-02-10 10:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443812', 'tblTempVendorCDR_20' ) start [2025-02-10 10:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443812', 'tblTempVendorCDR_20' ) end [2025-02-10 10:33:32] Production.INFO: ProcessCDR(1,14443812,1,1,2) [2025-02-10 10:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443812', 'tblTempUsageDetail_20' ) start [2025-02-10 10:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443812', 'tblTempUsageDetail_20' ) end [2025-02-10 10:33:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:33:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:33:36] Production.INFO: ==9708== Releasing lock... [2025-02-10 10:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:33:36] Production.INFO: 54.75 MB #Memory Used# [2025-02-10 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:34:05 [end_date_ymd] => 2025-02-10 10:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:34:05' and `end` < '2025-02-10 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-10 10:34:28] Production.INFO: count ==3578 [2025-02-10 10:34:29] Production.ERROR: pbx CDR StartTime 2025-02-10 07:34:05 - End Time 2025-02-10 10:34:05 [2025-02-10 10:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443817', 'tblTempUsageDetail_20' ) start [2025-02-10 10:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443817', 'tblTempUsageDetail_20' ) end [2025-02-10 10:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443817', 'tblTempVendorCDR_20' ) start [2025-02-10 10:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443817', 'tblTempVendorCDR_20' ) end [2025-02-10 10:34:30] Production.INFO: ProcessCDR(1,14443817,1,1,2) [2025-02-10 10:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443817', 'tblTempUsageDetail_20' ) start [2025-02-10 10:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443817', 'tblTempUsageDetail_20' ) end [2025-02-10 10:34:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:34:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:34:34] Production.INFO: ==9778== Releasing lock... [2025-02-10 10:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:34:34] Production.INFO: 55.75 MB #Memory Used# [2025-02-10 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:35:05 [end_date_ymd] => 2025-02-10 10:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:35:05' and `end` < '2025-02-10 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-10 10:35:29] Production.INFO: count ==3595 [2025-02-10 10:35:31] Production.ERROR: pbx CDR StartTime 2025-02-10 07:35:05 - End Time 2025-02-10 10:35:05 [2025-02-10 10:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443822', 'tblTempUsageDetail_20' ) start [2025-02-10 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443822', 'tblTempUsageDetail_20' ) end [2025-02-10 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443822', 'tblTempVendorCDR_20' ) start [2025-02-10 10:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443822', 'tblTempVendorCDR_20' ) end [2025-02-10 10:35:31] Production.INFO: ProcessCDR(1,14443822,1,1,2) [2025-02-10 10:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443822', 'tblTempUsageDetail_20' ) start [2025-02-10 10:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443822', 'tblTempUsageDetail_20' ) end [2025-02-10 10:35:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:35:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:35:35] Production.INFO: ==9847== Releasing lock... [2025-02-10 10:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:35:35] Production.INFO: 55.25 MB #Memory Used# [2025-02-10 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:36:05 [end_date_ymd] => 2025-02-10 10:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:36:05' and `end` < '2025-02-10 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-10 10:36:32] Production.INFO: count ==3617 [2025-02-10 10:36:33] Production.ERROR: pbx CDR StartTime 2025-02-10 07:36:05 - End Time 2025-02-10 10:36:05 [2025-02-10 10:36:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443827', 'tblTempUsageDetail_20' ) start [2025-02-10 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443827', 'tblTempUsageDetail_20' ) end [2025-02-10 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443827', 'tblTempVendorCDR_20' ) start [2025-02-10 10:36:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443827', 'tblTempVendorCDR_20' ) end [2025-02-10 10:36:33] Production.INFO: ProcessCDR(1,14443827,1,1,2) [2025-02-10 10:36:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443827', 'tblTempUsageDetail_20' ) start [2025-02-10 10:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443827', 'tblTempUsageDetail_20' ) end [2025-02-10 10:36:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:36:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:36:38] Production.INFO: ==9923== Releasing lock... [2025-02-10 10:36:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:36:38] Production.INFO: 55.25 MB #Memory Used# [2025-02-10 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:37:05 [end_date_ymd] => 2025-02-10 10:37:05 [RateCDR] => 1 ) [2025-02-10 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:37:05' and `end` < '2025-02-10 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:37:29] Production.INFO: count ==3636 [2025-02-10 10:37:30] Production.ERROR: pbx CDR StartTime 2025-02-10 07:37:05 - End Time 2025-02-10 10:37:05 [2025-02-10 10:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443832', 'tblTempUsageDetail_20' ) start [2025-02-10 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443832', 'tblTempUsageDetail_20' ) end [2025-02-10 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443832', 'tblTempVendorCDR_20' ) start [2025-02-10 10:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443832', 'tblTempVendorCDR_20' ) end [2025-02-10 10:37:30] Production.INFO: ProcessCDR(1,14443832,1,1,2) [2025-02-10 10:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443832', 'tblTempUsageDetail_20' ) start [2025-02-10 10:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443832', 'tblTempUsageDetail_20' ) end [2025-02-10 10:37:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:37:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:37:35] Production.INFO: ==9994== Releasing lock... [2025-02-10 10:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:37:35] Production.INFO: 55.5 MB #Memory Used# [2025-02-10 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:38:05 [end_date_ymd] => 2025-02-10 10:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:38:05' and `end` < '2025-02-10 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-10 10:38:28] Production.INFO: count ==3662 [2025-02-10 10:38:29] Production.ERROR: pbx CDR StartTime 2025-02-10 07:38:05 - End Time 2025-02-10 10:38:05 [2025-02-10 10:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443837', 'tblTempUsageDetail_20' ) start [2025-02-10 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443837', 'tblTempUsageDetail_20' ) end [2025-02-10 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443837', 'tblTempVendorCDR_20' ) start [2025-02-10 10:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443837', 'tblTempVendorCDR_20' ) end [2025-02-10 10:38:29] Production.INFO: ProcessCDR(1,14443837,1,1,2) [2025-02-10 10:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:38:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:38:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:38:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443837', 'tblTempUsageDetail_20' ) start [2025-02-10 10:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443837', 'tblTempUsageDetail_20' ) end [2025-02-10 10:38:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:38:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:38:34] Production.INFO: ==10105== Releasing lock... [2025-02-10 10:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:38:34] Production.INFO: 55.75 MB #Memory Used# [2025-02-10 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:39:05 [end_date_ymd] => 2025-02-10 10:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:39:05' and `end` < '2025-02-10 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-10 10:39:33] Production.INFO: count ==3700 [2025-02-10 10:39:34] Production.ERROR: pbx CDR StartTime 2025-02-10 07:39:05 - End Time 2025-02-10 10:39:05 [2025-02-10 10:39:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:39:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443842', 'tblTempUsageDetail_20' ) start [2025-02-10 10:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443842', 'tblTempUsageDetail_20' ) end [2025-02-10 10:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443842', 'tblTempVendorCDR_20' ) start [2025-02-10 10:39:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443842', 'tblTempVendorCDR_20' ) end [2025-02-10 10:39:35] Production.INFO: ProcessCDR(1,14443842,1,1,2) [2025-02-10 10:39:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:39:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:39:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:39:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443842', 'tblTempUsageDetail_20' ) start [2025-02-10 10:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443842', 'tblTempUsageDetail_20' ) end [2025-02-10 10:39:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:39:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:39:39] Production.INFO: ==10175== Releasing lock... [2025-02-10 10:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:39:39] Production.INFO: 55.5 MB #Memory Used# [2025-02-10 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:40:06 [end_date_ymd] => 2025-02-10 10:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 07:40:06' and `end` < '2025-02-10 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-10 10:40:36] Production.INFO: count ==3744 [2025-02-10 10:40:37] Production.ERROR: pbx CDR StartTime 2025-02-10 07:40:06 - End Time 2025-02-10 10:40:06 [2025-02-10 10:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443848', 'tblTempUsageDetail_20' ) start [2025-02-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443848', 'tblTempUsageDetail_20' ) end [2025-02-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443848', 'tblTempVendorCDR_20' ) start [2025-02-10 10:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443848', 'tblTempVendorCDR_20' ) end [2025-02-10 10:40:37] Production.INFO: ProcessCDR(1,14443848,1,1,2) [2025-02-10 10:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:40:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:40:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:40:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443848', 'tblTempUsageDetail_20' ) start [2025-02-10 10:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443848', 'tblTempUsageDetail_20' ) end [2025-02-10 10:40:42] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:40:42] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:40:42] Production.INFO: ==10248== Releasing lock... [2025-02-10 10:40:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:40:42] Production.INFO: 56 MB #Memory Used# [2025-02-10 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:41:04 [end_date_ymd] => 2025-02-10 10:41:04 [RateCDR] => 1 ) [2025-02-10 10:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:41:04' and `end` < '2025-02-10 10:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:41:26] Production.INFO: count ==3873 [2025-02-10 10:41:28] Production.ERROR: pbx CDR StartTime 2025-02-10 07:41:04 - End Time 2025-02-10 10:41:04 [2025-02-10 10:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443853', 'tblTempUsageDetail_20' ) start [2025-02-10 10:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443853', 'tblTempUsageDetail_20' ) end [2025-02-10 10:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443853', 'tblTempVendorCDR_20' ) start [2025-02-10 10:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443853', 'tblTempVendorCDR_20' ) end [2025-02-10 10:41:28] Production.INFO: ProcessCDR(1,14443853,1,1,2) [2025-02-10 10:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443853', 'tblTempUsageDetail_20' ) start [2025-02-10 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443853', 'tblTempUsageDetail_20' ) end [2025-02-10 10:41:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:41:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:41:32] Production.INFO: ==10325== Releasing lock... [2025-02-10 10:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:41:32] Production.INFO: 57 MB #Memory Used# [2025-02-10 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:42:05 [end_date_ymd] => 2025-02-10 10:42:05 [RateCDR] => 1 ) [2025-02-10 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:42:05' and `end` < '2025-02-10 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:42:22] Production.INFO: count ==3886 [2025-02-10 10:42:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:42:05 - End Time 2025-02-10 10:42:05 [2025-02-10 10:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443858', 'tblTempUsageDetail_20' ) start [2025-02-10 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443858', 'tblTempUsageDetail_20' ) end [2025-02-10 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443858', 'tblTempVendorCDR_20' ) start [2025-02-10 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443858', 'tblTempVendorCDR_20' ) end [2025-02-10 10:42:24] Production.INFO: ProcessCDR(1,14443858,1,1,2) [2025-02-10 10:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443858', 'tblTempUsageDetail_20' ) start [2025-02-10 10:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443858', 'tblTempUsageDetail_20' ) end [2025-02-10 10:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:42:28] Production.INFO: ==10396== Releasing lock... [2025-02-10 10:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:42:28] Production.INFO: 57 MB #Memory Used# [2025-02-10 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:43:05 [end_date_ymd] => 2025-02-10 10:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:43:05' and `end` < '2025-02-10 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-10 10:43:18] Production.INFO: count ==3888 [2025-02-10 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-10 07:43:05 - End Time 2025-02-10 10:43:05 [2025-02-10 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443863', 'tblTempUsageDetail_20' ) start [2025-02-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443863', 'tblTempUsageDetail_20' ) end [2025-02-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443863', 'tblTempVendorCDR_20' ) start [2025-02-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443863', 'tblTempVendorCDR_20' ) end [2025-02-10 10:43:20] Production.INFO: ProcessCDR(1,14443863,1,1,2) [2025-02-10 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443863', 'tblTempUsageDetail_20' ) start [2025-02-10 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443863', 'tblTempUsageDetail_20' ) end [2025-02-10 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:43:25] Production.INFO: ==10470== Releasing lock... [2025-02-10 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:43:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-10 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:44:05 [end_date_ymd] => 2025-02-10 10:44:05 [RateCDR] => 1 ) [2025-02-10 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:44:05' and `end` < '2025-02-10 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:44:32] Production.INFO: count ==3902 [2025-02-10 10:44:34] Production.ERROR: pbx CDR StartTime 2025-02-10 07:44:05 - End Time 2025-02-10 10:44:05 [2025-02-10 10:44:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443868', 'tblTempUsageDetail_20' ) start [2025-02-10 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443868', 'tblTempUsageDetail_20' ) end [2025-02-10 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443868', 'tblTempVendorCDR_20' ) start [2025-02-10 10:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443868', 'tblTempVendorCDR_20' ) end [2025-02-10 10:44:34] Production.INFO: ProcessCDR(1,14443868,1,1,2) [2025-02-10 10:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:44:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:44:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:44:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443868', 'tblTempUsageDetail_20' ) start [2025-02-10 10:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443868', 'tblTempUsageDetail_20' ) end [2025-02-10 10:44:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:44:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:44:39] Production.INFO: ==10541== Releasing lock... [2025-02-10 10:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:44:39] Production.INFO: 57 MB #Memory Used# [2025-02-10 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:45:05 [end_date_ymd] => 2025-02-10 10:45:05 [RateCDR] => 1 ) [2025-02-10 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:45:05' and `end` < '2025-02-10 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:45:29] Production.INFO: count ==3922 [2025-02-10 10:45:31] Production.ERROR: pbx CDR StartTime 2025-02-10 07:45:05 - End Time 2025-02-10 10:45:05 [2025-02-10 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443873', 'tblTempUsageDetail_20' ) start [2025-02-10 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443873', 'tblTempUsageDetail_20' ) end [2025-02-10 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443873', 'tblTempVendorCDR_20' ) start [2025-02-10 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443873', 'tblTempVendorCDR_20' ) end [2025-02-10 10:45:31] Production.INFO: ProcessCDR(1,14443873,1,1,2) [2025-02-10 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443873', 'tblTempUsageDetail_20' ) start [2025-02-10 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443873', 'tblTempUsageDetail_20' ) end [2025-02-10 10:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:45:36] Production.INFO: ==10611== Releasing lock... [2025-02-10 10:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:45:36] Production.INFO: 57.5 MB #Memory Used# [2025-02-10 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:46:05 [end_date_ymd] => 2025-02-10 10:46:05 [RateCDR] => 1 ) [2025-02-10 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:46:05' and `end` < '2025-02-10 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:46:24] Production.INFO: count ==3953 [2025-02-10 10:46:26] Production.ERROR: pbx CDR StartTime 2025-02-10 07:46:05 - End Time 2025-02-10 10:46:05 [2025-02-10 10:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443878', 'tblTempUsageDetail_20' ) start [2025-02-10 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443878', 'tblTempUsageDetail_20' ) end [2025-02-10 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443878', 'tblTempVendorCDR_20' ) start [2025-02-10 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443878', 'tblTempVendorCDR_20' ) end [2025-02-10 10:46:26] Production.INFO: ProcessCDR(1,14443878,1,1,2) [2025-02-10 10:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443878', 'tblTempUsageDetail_20' ) start [2025-02-10 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443878', 'tblTempUsageDetail_20' ) end [2025-02-10 10:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:46:31] Production.INFO: ==10683== Releasing lock... [2025-02-10 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:46:31] Production.INFO: 57.5 MB #Memory Used# [2025-02-10 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:47:05 [end_date_ymd] => 2025-02-10 10:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:47:05' and `end` < '2025-02-10 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-10 10:47:23] Production.INFO: count ==3966 [2025-02-10 10:47:25] Production.ERROR: pbx CDR StartTime 2025-02-10 07:47:05 - End Time 2025-02-10 10:47:05 [2025-02-10 10:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443883', 'tblTempUsageDetail_20' ) start [2025-02-10 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443883', 'tblTempUsageDetail_20' ) end [2025-02-10 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443883', 'tblTempVendorCDR_20' ) start [2025-02-10 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443883', 'tblTempVendorCDR_20' ) end [2025-02-10 10:47:25] Production.INFO: ProcessCDR(1,14443883,1,1,2) [2025-02-10 10:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443883', 'tblTempUsageDetail_20' ) start [2025-02-10 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443883', 'tblTempUsageDetail_20' ) end [2025-02-10 10:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:47:30] Production.INFO: ==10754== Releasing lock... [2025-02-10 10:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:47:30] Production.INFO: 57.5 MB #Memory Used# [2025-02-10 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:48:05 [end_date_ymd] => 2025-02-10 10:48:05 [RateCDR] => 1 ) [2025-02-10 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:48:05' and `end` < '2025-02-10 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:48:24] Production.INFO: count ==3990 [2025-02-10 10:48:26] Production.ERROR: pbx CDR StartTime 2025-02-10 07:48:05 - End Time 2025-02-10 10:48:05 [2025-02-10 10:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443888', 'tblTempUsageDetail_20' ) start [2025-02-10 10:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443888', 'tblTempUsageDetail_20' ) end [2025-02-10 10:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443888', 'tblTempVendorCDR_20' ) start [2025-02-10 10:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443888', 'tblTempVendorCDR_20' ) end [2025-02-10 10:48:26] Production.INFO: ProcessCDR(1,14443888,1,1,2) [2025-02-10 10:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443888', 'tblTempUsageDetail_20' ) start [2025-02-10 10:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443888', 'tblTempUsageDetail_20' ) end [2025-02-10 10:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:48:31] Production.INFO: ==10825== Releasing lock... [2025-02-10 10:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:48:31] Production.INFO: 57.75 MB #Memory Used# [2025-02-10 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:49:05 [end_date_ymd] => 2025-02-10 10:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:49:05' and `end` < '2025-02-10 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-10 10:49:26] Production.INFO: count ==4011 [2025-02-10 10:49:28] Production.ERROR: pbx CDR StartTime 2025-02-10 07:49:05 - End Time 2025-02-10 10:49:05 [2025-02-10 10:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443893', 'tblTempUsageDetail_20' ) start [2025-02-10 10:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443893', 'tblTempUsageDetail_20' ) end [2025-02-10 10:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443893', 'tblTempVendorCDR_20' ) start [2025-02-10 10:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443893', 'tblTempVendorCDR_20' ) end [2025-02-10 10:49:28] Production.INFO: ProcessCDR(1,14443893,1,1,2) [2025-02-10 10:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443893', 'tblTempUsageDetail_20' ) start [2025-02-10 10:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443893', 'tblTempUsageDetail_20' ) end [2025-02-10 10:49:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:49:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:49:33] Production.INFO: ==10899== Releasing lock... [2025-02-10 10:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:49:33] Production.INFO: 58 MB #Memory Used# [2025-02-10 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:50:05 [end_date_ymd] => 2025-02-10 10:50:05 [RateCDR] => 1 ) [2025-02-10 10:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:50:05' and `end` < '2025-02-10 10:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:50:26] Production.INFO: count ==4031 [2025-02-10 10:50:28] Production.ERROR: pbx CDR StartTime 2025-02-10 07:50:05 - End Time 2025-02-10 10:50:05 [2025-02-10 10:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443898', 'tblTempUsageDetail_20' ) start [2025-02-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443898', 'tblTempUsageDetail_20' ) end [2025-02-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443898', 'tblTempVendorCDR_20' ) start [2025-02-10 10:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443898', 'tblTempVendorCDR_20' ) end [2025-02-10 10:50:28] Production.INFO: ProcessCDR(1,14443898,1,1,2) [2025-02-10 10:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443898', 'tblTempUsageDetail_20' ) start [2025-02-10 10:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443898', 'tblTempUsageDetail_20' ) end [2025-02-10 10:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:50:33] Production.INFO: ==10973== Releasing lock... [2025-02-10 10:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:50:33] Production.INFO: 58 MB #Memory Used# [2025-02-10 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:51:05 [end_date_ymd] => 2025-02-10 10:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:51:05' and `end` < '2025-02-10 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-10 10:51:22] Production.INFO: count ==4088 [2025-02-10 10:51:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:51:05 - End Time 2025-02-10 10:51:05 [2025-02-10 10:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443904', 'tblTempUsageDetail_20' ) start [2025-02-10 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443904', 'tblTempUsageDetail_20' ) end [2025-02-10 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443904', 'tblTempVendorCDR_20' ) start [2025-02-10 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443904', 'tblTempVendorCDR_20' ) end [2025-02-10 10:51:24] Production.INFO: ProcessCDR(1,14443904,1,1,2) [2025-02-10 10:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443904', 'tblTempUsageDetail_20' ) start [2025-02-10 10:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443904', 'tblTempUsageDetail_20' ) end [2025-02-10 10:51:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:51:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:51:28] Production.INFO: ==11045== Releasing lock... [2025-02-10 10:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:51:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-10 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:52:05 [end_date_ymd] => 2025-02-10 10:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:52:05' and `end` < '2025-02-10 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-10 10:52:26] Production.INFO: count ==4106 [2025-02-10 10:52:28] Production.ERROR: pbx CDR StartTime 2025-02-10 07:52:05 - End Time 2025-02-10 10:52:05 [2025-02-10 10:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443909', 'tblTempUsageDetail_20' ) start [2025-02-10 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443909', 'tblTempUsageDetail_20' ) end [2025-02-10 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443909', 'tblTempVendorCDR_20' ) start [2025-02-10 10:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443909', 'tblTempVendorCDR_20' ) end [2025-02-10 10:52:28] Production.INFO: ProcessCDR(1,14443909,1,1,2) [2025-02-10 10:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443909', 'tblTempUsageDetail_20' ) start [2025-02-10 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443909', 'tblTempUsageDetail_20' ) end [2025-02-10 10:52:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:52:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:52:33] Production.INFO: ==11122== Releasing lock... [2025-02-10 10:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:52:33] Production.INFO: 58.75 MB #Memory Used# [2025-02-10 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:53:05 [end_date_ymd] => 2025-02-10 10:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:53:05' and `end` < '2025-02-10 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-10 10:53:25] Production.INFO: count ==4120 [2025-02-10 10:53:27] Production.ERROR: pbx CDR StartTime 2025-02-10 07:53:05 - End Time 2025-02-10 10:53:05 [2025-02-10 10:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443914', 'tblTempUsageDetail_20' ) start [2025-02-10 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443914', 'tblTempUsageDetail_20' ) end [2025-02-10 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443914', 'tblTempVendorCDR_20' ) start [2025-02-10 10:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443914', 'tblTempVendorCDR_20' ) end [2025-02-10 10:53:27] Production.INFO: ProcessCDR(1,14443914,1,1,2) [2025-02-10 10:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443914', 'tblTempUsageDetail_20' ) start [2025-02-10 10:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443914', 'tblTempUsageDetail_20' ) end [2025-02-10 10:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:53:32] Production.INFO: ==11232== Releasing lock... [2025-02-10 10:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:53:32] Production.INFO: 58.75 MB #Memory Used# [2025-02-10 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:54:05 [end_date_ymd] => 2025-02-10 10:54:05 [RateCDR] => 1 ) [2025-02-10 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:54:05' and `end` < '2025-02-10 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:54:22] Production.INFO: count ==4133 [2025-02-10 10:54:23] Production.ERROR: pbx CDR StartTime 2025-02-10 07:54:05 - End Time 2025-02-10 10:54:05 [2025-02-10 10:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443919', 'tblTempUsageDetail_20' ) start [2025-02-10 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443919', 'tblTempUsageDetail_20' ) end [2025-02-10 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443919', 'tblTempVendorCDR_20' ) start [2025-02-10 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443919', 'tblTempVendorCDR_20' ) end [2025-02-10 10:54:23] Production.INFO: ProcessCDR(1,14443919,1,1,2) [2025-02-10 10:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443919', 'tblTempUsageDetail_20' ) start [2025-02-10 10:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443919', 'tblTempUsageDetail_20' ) end [2025-02-10 10:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:54:28] Production.INFO: ==11302== Releasing lock... [2025-02-10 10:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:54:28] Production.INFO: 59 MB #Memory Used# [2025-02-10 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:55:05 [end_date_ymd] => 2025-02-10 10:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 07:55:05' and `end` < '2025-02-10 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-10 10:55:19] Production.INFO: count ==4140 [2025-02-10 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-10 07:55:05 - End Time 2025-02-10 10:55:05 [2025-02-10 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443924', 'tblTempUsageDetail_20' ) start [2025-02-10 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443924', 'tblTempUsageDetail_20' ) end [2025-02-10 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443924', 'tblTempVendorCDR_20' ) start [2025-02-10 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443924', 'tblTempVendorCDR_20' ) end [2025-02-10 10:55:20] Production.INFO: ProcessCDR(1,14443924,1,1,2) [2025-02-10 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443924', 'tblTempUsageDetail_20' ) start [2025-02-10 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443924', 'tblTempUsageDetail_20' ) end [2025-02-10 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:55:25] Production.INFO: ==11372== Releasing lock... [2025-02-10 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:55:25] Production.INFO: 59 MB #Memory Used# [2025-02-10 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:56:05 [end_date_ymd] => 2025-02-10 10:56:05 [RateCDR] => 1 ) [2025-02-10 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:56:05' and `end` < '2025-02-10 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:56:26] Production.INFO: count ==4166 [2025-02-10 10:56:27] Production.ERROR: pbx CDR StartTime 2025-02-10 07:56:05 - End Time 2025-02-10 10:56:05 [2025-02-10 10:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443929', 'tblTempUsageDetail_20' ) start [2025-02-10 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443929', 'tblTempUsageDetail_20' ) end [2025-02-10 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443929', 'tblTempVendorCDR_20' ) start [2025-02-10 10:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443929', 'tblTempVendorCDR_20' ) end [2025-02-10 10:56:28] Production.INFO: ProcessCDR(1,14443929,1,1,2) [2025-02-10 10:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443929', 'tblTempUsageDetail_20' ) start [2025-02-10 10:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443929', 'tblTempUsageDetail_20' ) end [2025-02-10 10:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:56:33] Production.INFO: ==11468== Releasing lock... [2025-02-10 10:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:56:33] Production.INFO: 59.25 MB #Memory Used# [2025-02-10 10:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:57:04 [end_date_ymd] => 2025-02-10 10:57:04 [RateCDR] => 1 ) [2025-02-10 10:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:57:04' and `end` < '2025-02-10 10:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:57:22] Production.INFO: count ==4189 [2025-02-10 10:57:24] Production.ERROR: pbx CDR StartTime 2025-02-10 07:57:04 - End Time 2025-02-10 10:57:04 [2025-02-10 10:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443934', 'tblTempUsageDetail_20' ) start [2025-02-10 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443934', 'tblTempUsageDetail_20' ) end [2025-02-10 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443934', 'tblTempVendorCDR_20' ) start [2025-02-10 10:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443934', 'tblTempVendorCDR_20' ) end [2025-02-10 10:57:24] Production.INFO: ProcessCDR(1,14443934,1,1,2) [2025-02-10 10:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443934', 'tblTempUsageDetail_20' ) start [2025-02-10 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443934', 'tblTempUsageDetail_20' ) end [2025-02-10 10:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:57:29] Production.INFO: ==11538== Releasing lock... [2025-02-10 10:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:57:29] Production.INFO: 59.25 MB #Memory Used# [2025-02-10 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:58:05 [end_date_ymd] => 2025-02-10 10:58:05 [RateCDR] => 1 ) [2025-02-10 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:58:05' and `end` < '2025-02-10 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:58:20] Production.INFO: count ==4207 [2025-02-10 10:58:22] Production.ERROR: pbx CDR StartTime 2025-02-10 07:58:05 - End Time 2025-02-10 10:58:05 [2025-02-10 10:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443939', 'tblTempUsageDetail_20' ) start [2025-02-10 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443939', 'tblTempUsageDetail_20' ) end [2025-02-10 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443939', 'tblTempVendorCDR_20' ) start [2025-02-10 10:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443939', 'tblTempVendorCDR_20' ) end [2025-02-10 10:58:22] Production.INFO: ProcessCDR(1,14443939,1,1,2) [2025-02-10 10:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443939', 'tblTempUsageDetail_20' ) start [2025-02-10 10:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443939', 'tblTempUsageDetail_20' ) end [2025-02-10 10:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:58:27] Production.INFO: ==11609== Releasing lock... [2025-02-10 10:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:58:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-10 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 07:59:04 [end_date_ymd] => 2025-02-10 10:59:04 [RateCDR] => 1 ) [2025-02-10 10:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 07:59:04' and `end` < '2025-02-10 10:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 10:59:19] Production.INFO: count ==4214 [2025-02-10 10:59:21] Production.ERROR: pbx CDR StartTime 2025-02-10 07:59:04 - End Time 2025-02-10 10:59:04 [2025-02-10 10:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443944', 'tblTempUsageDetail_20' ) start [2025-02-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443944', 'tblTempUsageDetail_20' ) end [2025-02-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443944', 'tblTempVendorCDR_20' ) start [2025-02-10 10:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443944', 'tblTempVendorCDR_20' ) end [2025-02-10 10:59:21] Production.INFO: ProcessCDR(1,14443944,1,1,2) [2025-02-10 10:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443944', 'tblTempUsageDetail_20' ) start [2025-02-10 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443944', 'tblTempUsageDetail_20' ) end [2025-02-10 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 10:59:25] Production.INFO: ==11680== Releasing lock... [2025-02-10 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 10:59:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-10 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:00:05 [end_date_ymd] => 2025-02-10 11:00:05 [RateCDR] => 1 ) [2025-02-10 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:00:05' and `end` < '2025-02-10 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:00:19] Production.INFO: count ==4218 [2025-02-10 11:00:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:00:05 - End Time 2025-02-10 11:00:05 [2025-02-10 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443950', 'tblTempUsageDetail_20' ) start [2025-02-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443950', 'tblTempUsageDetail_20' ) end [2025-02-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443950', 'tblTempVendorCDR_20' ) start [2025-02-10 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443950', 'tblTempVendorCDR_20' ) end [2025-02-10 11:00:21] Production.INFO: ProcessCDR(1,14443950,1,1,2) [2025-02-10 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443950', 'tblTempUsageDetail_20' ) start [2025-02-10 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443950', 'tblTempUsageDetail_20' ) end [2025-02-10 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:00:26] Production.INFO: ==11760== Releasing lock... [2025-02-10 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:00:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-10 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:01:05 [end_date_ymd] => 2025-02-10 11:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:01:05' and `end` < '2025-02-10 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-10 11:01:25] Production.INFO: count ==4322 [2025-02-10 11:01:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:01:05 - End Time 2025-02-10 11:01:05 [2025-02-10 11:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443955', 'tblTempUsageDetail_20' ) start [2025-02-10 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443955', 'tblTempUsageDetail_20' ) end [2025-02-10 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443955', 'tblTempVendorCDR_20' ) start [2025-02-10 11:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443955', 'tblTempVendorCDR_20' ) end [2025-02-10 11:01:27] Production.INFO: ProcessCDR(1,14443955,1,1,2) [2025-02-10 11:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443955', 'tblTempUsageDetail_20' ) start [2025-02-10 11:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443955', 'tblTempUsageDetail_20' ) end [2025-02-10 11:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:01:32] Production.INFO: ==11924== Releasing lock... [2025-02-10 11:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:01:32] Production.INFO: 60.25 MB #Memory Used# [2025-02-10 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:02:05 [end_date_ymd] => 2025-02-10 11:02:05 [RateCDR] => 1 ) [2025-02-10 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:02:05' and `end` < '2025-02-10 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:02:29] Production.INFO: count ==4338 [2025-02-10 11:02:31] Production.ERROR: pbx CDR StartTime 2025-02-10 08:02:05 - End Time 2025-02-10 11:02:05 [2025-02-10 11:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443960', 'tblTempUsageDetail_20' ) start [2025-02-10 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443960', 'tblTempUsageDetail_20' ) end [2025-02-10 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443960', 'tblTempVendorCDR_20' ) start [2025-02-10 11:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443960', 'tblTempVendorCDR_20' ) end [2025-02-10 11:02:31] Production.INFO: ProcessCDR(1,14443960,1,1,2) [2025-02-10 11:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443960', 'tblTempUsageDetail_20' ) start [2025-02-10 11:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443960', 'tblTempUsageDetail_20' ) end [2025-02-10 11:02:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:02:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:02:36] Production.INFO: ==11994== Releasing lock... [2025-02-10 11:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:02:36] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:03:05 [end_date_ymd] => 2025-02-10 11:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:03:05' and `end` < '2025-02-10 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-10 11:03:24] Production.INFO: count ==4326 [2025-02-10 11:03:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:03:05 - End Time 2025-02-10 11:03:05 [2025-02-10 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443965', 'tblTempUsageDetail_20' ) start [2025-02-10 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443965', 'tblTempUsageDetail_20' ) end [2025-02-10 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443965', 'tblTempVendorCDR_20' ) start [2025-02-10 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443965', 'tblTempVendorCDR_20' ) end [2025-02-10 11:03:26] Production.INFO: ProcessCDR(1,14443965,1,1,2) [2025-02-10 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443965', 'tblTempUsageDetail_20' ) start [2025-02-10 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443965', 'tblTempUsageDetail_20' ) end [2025-02-10 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:03:31] Production.INFO: ==12067== Releasing lock... [2025-02-10 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:03:31] Production.INFO: 60.25 MB #Memory Used# [2025-02-10 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:04:05 [end_date_ymd] => 2025-02-10 11:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:04:05' and `end` < '2025-02-10 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-10 11:04:21] Production.INFO: count ==4320 [2025-02-10 11:04:23] Production.ERROR: pbx CDR StartTime 2025-02-10 08:04:05 - End Time 2025-02-10 11:04:05 [2025-02-10 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443970', 'tblTempUsageDetail_20' ) start [2025-02-10 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443970', 'tblTempUsageDetail_20' ) end [2025-02-10 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443970', 'tblTempVendorCDR_20' ) start [2025-02-10 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443970', 'tblTempVendorCDR_20' ) end [2025-02-10 11:04:23] Production.INFO: ProcessCDR(1,14443970,1,1,2) [2025-02-10 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443970', 'tblTempUsageDetail_20' ) start [2025-02-10 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443970', 'tblTempUsageDetail_20' ) end [2025-02-10 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:04:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:04:28] Production.INFO: ==12138== Releasing lock... [2025-02-10 11:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:04:28] Production.INFO: 60.25 MB #Memory Used# [2025-02-10 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:05:05 [end_date_ymd] => 2025-02-10 11:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:05:05' and `end` < '2025-02-10 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-10 11:05:19] Production.INFO: count ==4337 [2025-02-10 11:05:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:05:05 - End Time 2025-02-10 11:05:05 [2025-02-10 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443975', 'tblTempUsageDetail_20' ) start [2025-02-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443975', 'tblTempUsageDetail_20' ) end [2025-02-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443975', 'tblTempVendorCDR_20' ) start [2025-02-10 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443975', 'tblTempVendorCDR_20' ) end [2025-02-10 11:05:21] Production.INFO: ProcessCDR(1,14443975,1,1,2) [2025-02-10 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443975', 'tblTempUsageDetail_20' ) start [2025-02-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443975', 'tblTempUsageDetail_20' ) end [2025-02-10 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:05:26] Production.INFO: ==12289== Releasing lock... [2025-02-10 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:05:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:06:04 [end_date_ymd] => 2025-02-10 11:06:04 [RateCDR] => 1 ) [2025-02-10 11: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-10 08:06:04' and `end` < '2025-02-10 11: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-10 11:06:19] Production.INFO: count ==4342 [2025-02-10 11:06:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:06:04 - End Time 2025-02-10 11:06:04 [2025-02-10 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443980', 'tblTempUsageDetail_20' ) start [2025-02-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443980', 'tblTempUsageDetail_20' ) end [2025-02-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443980', 'tblTempVendorCDR_20' ) start [2025-02-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443980', 'tblTempVendorCDR_20' ) end [2025-02-10 11:06:21] Production.INFO: ProcessCDR(1,14443980,1,1,2) [2025-02-10 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443980', 'tblTempUsageDetail_20' ) start [2025-02-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443980', 'tblTempUsageDetail_20' ) end [2025-02-10 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:06:26] Production.INFO: ==12361== Releasing lock... [2025-02-10 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:06:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:07:05 [end_date_ymd] => 2025-02-10 11:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:07:05' and `end` < '2025-02-10 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-10 11:07:20] Production.INFO: count ==4345 [2025-02-10 11:07:22] Production.ERROR: pbx CDR StartTime 2025-02-10 08:07:05 - End Time 2025-02-10 11:07:05 [2025-02-10 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443985', 'tblTempUsageDetail_20' ) start [2025-02-10 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443985', 'tblTempUsageDetail_20' ) end [2025-02-10 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443985', 'tblTempVendorCDR_20' ) start [2025-02-10 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443985', 'tblTempVendorCDR_20' ) end [2025-02-10 11:07:22] Production.INFO: ProcessCDR(1,14443985,1,1,2) [2025-02-10 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443985', 'tblTempUsageDetail_20' ) start [2025-02-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443985', 'tblTempUsageDetail_20' ) end [2025-02-10 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:07:26] Production.INFO: ==12433== Releasing lock... [2025-02-10 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:07:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:08:06 [end_date_ymd] => 2025-02-10 11:08:06 [RateCDR] => 1 ) [2025-02-10 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-10 08:08:06' and `end` < '2025-02-10 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-10 11:08:24] Production.INFO: count ==4355 [2025-02-10 11:08:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:08:06 - End Time 2025-02-10 11:08:06 [2025-02-10 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443990', 'tblTempUsageDetail_20' ) start [2025-02-10 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443990', 'tblTempUsageDetail_20' ) end [2025-02-10 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443990', 'tblTempVendorCDR_20' ) start [2025-02-10 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443990', 'tblTempVendorCDR_20' ) end [2025-02-10 11:08:26] Production.INFO: ProcessCDR(1,14443990,1,1,2) [2025-02-10 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443990', 'tblTempUsageDetail_20' ) start [2025-02-10 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443990', 'tblTempUsageDetail_20' ) end [2025-02-10 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:08:31] Production.INFO: ==12583== Releasing lock... [2025-02-10 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:08:31] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:09:05 [end_date_ymd] => 2025-02-10 11:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:09:05' and `end` < '2025-02-10 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-10 11:09:19] Production.INFO: count ==4362 [2025-02-10 11:09:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:09:05 - End Time 2025-02-10 11:09:05 [2025-02-10 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443995', 'tblTempUsageDetail_20' ) start [2025-02-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14443995', 'tblTempUsageDetail_20' ) end [2025-02-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443995', 'tblTempVendorCDR_20' ) start [2025-02-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14443995', 'tblTempVendorCDR_20' ) end [2025-02-10 11:09:21] Production.INFO: ProcessCDR(1,14443995,1,1,2) [2025-02-10 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14443995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14443995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14443995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14443995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443995', 'tblTempUsageDetail_20' ) start [2025-02-10 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14443995', 'tblTempUsageDetail_20' ) end [2025-02-10 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:09:25] Production.INFO: ==12696== Releasing lock... [2025-02-10 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:09:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:10:06 [end_date_ymd] => 2025-02-10 11:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 08:10:06' and `end` < '2025-02-10 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-10 11:10:21] Production.INFO: count ==4346 [2025-02-10 11:10:22] Production.ERROR: pbx CDR StartTime 2025-02-10 08:10:06 - End Time 2025-02-10 11:10:06 [2025-02-10 11:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444001', 'tblTempUsageDetail_20' ) start [2025-02-10 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444001', 'tblTempUsageDetail_20' ) end [2025-02-10 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444001', 'tblTempVendorCDR_20' ) start [2025-02-10 11:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444001', 'tblTempVendorCDR_20' ) end [2025-02-10 11:10:22] Production.INFO: ProcessCDR(1,14444001,1,1,2) [2025-02-10 11:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444001', 'tblTempUsageDetail_20' ) start [2025-02-10 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444001', 'tblTempUsageDetail_20' ) end [2025-02-10 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:10:27] Production.INFO: ==12771== Releasing lock... [2025-02-10 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:10:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:11:04 [end_date_ymd] => 2025-02-10 11:11:04 [RateCDR] => 1 ) [2025-02-10 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:11:04' and `end` < '2025-02-10 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:11:24] Production.INFO: count ==4404 [2025-02-10 11:11:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:11:04 - End Time 2025-02-10 11:11:04 [2025-02-10 11:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444006', 'tblTempUsageDetail_20' ) start [2025-02-10 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444006', 'tblTempUsageDetail_20' ) end [2025-02-10 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444006', 'tblTempVendorCDR_20' ) start [2025-02-10 11:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444006', 'tblTempVendorCDR_20' ) end [2025-02-10 11:11:26] Production.INFO: ProcessCDR(1,14444006,1,1,2) [2025-02-10 11:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444006', 'tblTempUsageDetail_20' ) start [2025-02-10 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444006', 'tblTempUsageDetail_20' ) end [2025-02-10 11:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:11:31] Production.INFO: ==12848== Releasing lock... [2025-02-10 11:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:11:31] Production.INFO: 61 MB #Memory Used# [2025-02-10 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:12:05 [end_date_ymd] => 2025-02-10 11:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:12:05' and `end` < '2025-02-10 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-10 11:12:28] Production.INFO: count ==4420 [2025-02-10 11:12:30] Production.ERROR: pbx CDR StartTime 2025-02-10 08:12:05 - End Time 2025-02-10 11:12:05 [2025-02-10 11:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444011', 'tblTempUsageDetail_20' ) start [2025-02-10 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444011', 'tblTempUsageDetail_20' ) end [2025-02-10 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444011', 'tblTempVendorCDR_20' ) start [2025-02-10 11:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444011', 'tblTempVendorCDR_20' ) end [2025-02-10 11:12:30] Production.INFO: ProcessCDR(1,14444011,1,1,2) [2025-02-10 11:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444011', 'tblTempUsageDetail_20' ) start [2025-02-10 11:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444011', 'tblTempUsageDetail_20' ) end [2025-02-10 11:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:12:34] Production.INFO: ==13007== Releasing lock... [2025-02-10 11:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:12:34] Production.INFO: 61 MB #Memory Used# [2025-02-10 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:13:05 [end_date_ymd] => 2025-02-10 11:13:05 [RateCDR] => 1 ) [2025-02-10 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:13:05' and `end` < '2025-02-10 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:13:26] Production.INFO: count ==4470 [2025-02-10 11:13:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:13:05 - End Time 2025-02-10 11:13:05 [2025-02-10 11:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444016', 'tblTempUsageDetail_20' ) start [2025-02-10 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444016', 'tblTempUsageDetail_20' ) end [2025-02-10 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444016', 'tblTempVendorCDR_20' ) start [2025-02-10 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444016', 'tblTempVendorCDR_20' ) end [2025-02-10 11:13:28] Production.INFO: ProcessCDR(1,14444016,1,1,2) [2025-02-10 11:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444016', 'tblTempUsageDetail_20' ) start [2025-02-10 11:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444016', 'tblTempUsageDetail_20' ) end [2025-02-10 11:13:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:13:33] Production.INFO: ==13081== Releasing lock... [2025-02-10 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:13:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-10 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:14:05 [end_date_ymd] => 2025-02-10 11:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:14:05' and `end` < '2025-02-10 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-10 11:14:23] Production.INFO: count ==4489 [2025-02-10 11:14:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:14:05 - End Time 2025-02-10 11:14:05 [2025-02-10 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444021', 'tblTempUsageDetail_20' ) start [2025-02-10 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444021', 'tblTempUsageDetail_20' ) end [2025-02-10 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444021', 'tblTempVendorCDR_20' ) start [2025-02-10 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444021', 'tblTempVendorCDR_20' ) end [2025-02-10 11:14:25] Production.INFO: ProcessCDR(1,14444021,1,1,2) [2025-02-10 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444021', 'tblTempUsageDetail_20' ) start [2025-02-10 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444021', 'tblTempUsageDetail_20' ) end [2025-02-10 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:14:30] Production.INFO: ==13154== Releasing lock... [2025-02-10 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:14:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-10 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:15:05 [end_date_ymd] => 2025-02-10 11:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:15:05' and `end` < '2025-02-10 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-10 11:15:31] Production.INFO: count ==4511 [2025-02-10 11:15:32] Production.ERROR: pbx CDR StartTime 2025-02-10 08:15:05 - End Time 2025-02-10 11:15:05 [2025-02-10 11:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444026', 'tblTempUsageDetail_20' ) start [2025-02-10 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444026', 'tblTempUsageDetail_20' ) end [2025-02-10 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444026', 'tblTempVendorCDR_20' ) start [2025-02-10 11:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444026', 'tblTempVendorCDR_20' ) end [2025-02-10 11:15:33] Production.INFO: ProcessCDR(1,14444026,1,1,2) [2025-02-10 11:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444026', 'tblTempUsageDetail_20' ) start [2025-02-10 11:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444026', 'tblTempUsageDetail_20' ) end [2025-02-10 11:15:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:15:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:15:37] Production.INFO: ==13305== Releasing lock... [2025-02-10 11:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:15:37] Production.INFO: 61.75 MB #Memory Used# [2025-02-10 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:16:05 [end_date_ymd] => 2025-02-10 11:16:05 [RateCDR] => 1 ) [2025-02-10 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:16:05' and `end` < '2025-02-10 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-10 11:16:27] Production.INFO: count ==4528 [2025-02-10 11:16:29] Production.ERROR: pbx CDR StartTime 2025-02-10 08:16:05 - End Time 2025-02-10 11:16:05 [2025-02-10 11:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444031', 'tblTempUsageDetail_20' ) start [2025-02-10 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444031', 'tblTempUsageDetail_20' ) end [2025-02-10 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444031', 'tblTempVendorCDR_20' ) start [2025-02-10 11:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444031', 'tblTempVendorCDR_20' ) end [2025-02-10 11:16:29] Production.INFO: ProcessCDR(1,14444031,1,1,2) [2025-02-10 11:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444031', 'tblTempUsageDetail_20' ) start [2025-02-10 11:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444031', 'tblTempUsageDetail_20' ) end [2025-02-10 11:16:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:16:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:16:35] Production.INFO: ==13381== Releasing lock... [2025-02-10 11:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:16:35] Production.INFO: 61.75 MB #Memory Used# [2025-02-10 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:17:05 [end_date_ymd] => 2025-02-10 11:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:17:05' and `end` < '2025-02-10 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-10 11:17:27] Production.INFO: count ==4547 [2025-02-10 11:17:29] Production.ERROR: pbx CDR StartTime 2025-02-10 08:17:05 - End Time 2025-02-10 11:17:05 [2025-02-10 11:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444036', 'tblTempUsageDetail_20' ) start [2025-02-10 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444036', 'tblTempUsageDetail_20' ) end [2025-02-10 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444036', 'tblTempVendorCDR_20' ) start [2025-02-10 11:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444036', 'tblTempVendorCDR_20' ) end [2025-02-10 11:17:29] Production.INFO: ProcessCDR(1,14444036,1,1,2) [2025-02-10 11:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444036', 'tblTempUsageDetail_20' ) start [2025-02-10 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444036', 'tblTempUsageDetail_20' ) end [2025-02-10 11:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:17:34] Production.INFO: ==13456== Releasing lock... [2025-02-10 11:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:17:34] Production.INFO: 62 MB #Memory Used# [2025-02-10 11:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:18:04 [end_date_ymd] => 2025-02-10 11:18:04 [RateCDR] => 1 ) [2025-02-10 11: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-10 08:18:04' and `end` < '2025-02-10 11: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-10 11:18:23] Production.INFO: count ==4563 [2025-02-10 11:18:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:18:04 - End Time 2025-02-10 11:18:04 [2025-02-10 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444041', 'tblTempUsageDetail_20' ) start [2025-02-10 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444041', 'tblTempUsageDetail_20' ) end [2025-02-10 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444041', 'tblTempVendorCDR_20' ) start [2025-02-10 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444041', 'tblTempVendorCDR_20' ) end [2025-02-10 11:18:25] Production.INFO: ProcessCDR(1,14444041,1,1,2) [2025-02-10 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444041', 'tblTempUsageDetail_20' ) start [2025-02-10 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444041', 'tblTempUsageDetail_20' ) end [2025-02-10 11:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:18:30] Production.INFO: ==13528== Releasing lock... [2025-02-10 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:18:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-10 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:19:05 [end_date_ymd] => 2025-02-10 11:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:19:05' and `end` < '2025-02-10 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-10 11:19:25] Production.INFO: count ==4584 [2025-02-10 11:19:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:19:05 - End Time 2025-02-10 11:19:05 [2025-02-10 11:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444046', 'tblTempUsageDetail_20' ) start [2025-02-10 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444046', 'tblTempUsageDetail_20' ) end [2025-02-10 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444046', 'tblTempVendorCDR_20' ) start [2025-02-10 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444046', 'tblTempVendorCDR_20' ) end [2025-02-10 11:19:27] Production.INFO: ProcessCDR(1,14444046,1,1,2) [2025-02-10 11:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444046', 'tblTempUsageDetail_20' ) start [2025-02-10 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444046', 'tblTempUsageDetail_20' ) end [2025-02-10 11:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:19:32] Production.INFO: ==13602== Releasing lock... [2025-02-10 11:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:19:32] Production.INFO: 62.25 MB #Memory Used# [2025-02-10 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:20:06 [end_date_ymd] => 2025-02-10 11:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 08:20:06' and `end` < '2025-02-10 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-10 11:20:27] Production.INFO: count ==4602 [2025-02-10 11:20:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:20:06 - End Time 2025-02-10 11:20:06 [2025-02-10 11:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444052', 'tblTempUsageDetail_20' ) start [2025-02-10 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444052', 'tblTempUsageDetail_20' ) end [2025-02-10 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444052', 'tblTempVendorCDR_20' ) start [2025-02-10 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444052', 'tblTempVendorCDR_20' ) end [2025-02-10 11:20:29] Production.INFO: ProcessCDR(1,14444052,1,1,2) [2025-02-10 11:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444052', 'tblTempUsageDetail_20' ) start [2025-02-10 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444052', 'tblTempUsageDetail_20' ) end [2025-02-10 11:20:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:20:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:20:34] Production.INFO: ==13678== Releasing lock... [2025-02-10 11:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:20:34] Production.INFO: 62.5 MB #Memory Used# [2025-02-10 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:21:05 [end_date_ymd] => 2025-02-10 11:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:21:05' and `end` < '2025-02-10 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-10 11:21:20] Production.INFO: count ==4682 [2025-02-10 11:21:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:21:05 - End Time 2025-02-10 11:21:05 [2025-02-10 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444057', 'tblTempUsageDetail_20' ) start [2025-02-10 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444057', 'tblTempUsageDetail_20' ) end [2025-02-10 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444057', 'tblTempVendorCDR_20' ) start [2025-02-10 11:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444057', 'tblTempVendorCDR_20' ) end [2025-02-10 11:21:22] Production.INFO: ProcessCDR(1,14444057,1,1,2) [2025-02-10 11:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444057', 'tblTempUsageDetail_20' ) start [2025-02-10 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444057', 'tblTempUsageDetail_20' ) end [2025-02-10 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:21:26] Production.INFO: ==13751== Releasing lock... [2025-02-10 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:21:26] Production.INFO: 63 MB #Memory Used# [2025-02-10 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:22:05 [end_date_ymd] => 2025-02-10 11:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:22:05' and `end` < '2025-02-10 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-10 11:22:23] Production.INFO: count ==4717 [2025-02-10 11:22:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:22:05 - End Time 2025-02-10 11:22:05 [2025-02-10 11:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444062', 'tblTempUsageDetail_20' ) start [2025-02-10 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444062', 'tblTempUsageDetail_20' ) end [2025-02-10 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444062', 'tblTempVendorCDR_20' ) start [2025-02-10 11:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444062', 'tblTempVendorCDR_20' ) end [2025-02-10 11:22:25] Production.INFO: ProcessCDR(1,14444062,1,1,2) [2025-02-10 11:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444062', 'tblTempUsageDetail_20' ) start [2025-02-10 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444062', 'tblTempUsageDetail_20' ) end [2025-02-10 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:22:30] Production.INFO: ==13825== Releasing lock... [2025-02-10 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:22:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:23:05 [end_date_ymd] => 2025-02-10 11:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:23:05' and `end` < '2025-02-10 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-10 11:23:25] Production.INFO: count ==4748 [2025-02-10 11:23:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:23:05 - End Time 2025-02-10 11:23:05 [2025-02-10 11:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444067', 'tblTempUsageDetail_20' ) start [2025-02-10 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444067', 'tblTempUsageDetail_20' ) end [2025-02-10 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444067', 'tblTempVendorCDR_20' ) start [2025-02-10 11:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444067', 'tblTempVendorCDR_20' ) end [2025-02-10 11:23:27] Production.INFO: ProcessCDR(1,14444067,1,1,2) [2025-02-10 11:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444067', 'tblTempUsageDetail_20' ) start [2025-02-10 11:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444067', 'tblTempUsageDetail_20' ) end [2025-02-10 11:23:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:23:32] Production.INFO: ==13898== Releasing lock... [2025-02-10 11:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:23:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:24:05 [end_date_ymd] => 2025-02-10 11:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:24:05' and `end` < '2025-02-10 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-10 11:24:29] Production.INFO: count ==4779 [2025-02-10 11:24:31] Production.ERROR: pbx CDR StartTime 2025-02-10 08:24:05 - End Time 2025-02-10 11:24:05 [2025-02-10 11:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444072', 'tblTempUsageDetail_20' ) start [2025-02-10 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444072', 'tblTempUsageDetail_20' ) end [2025-02-10 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444072', 'tblTempVendorCDR_20' ) start [2025-02-10 11:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444072', 'tblTempVendorCDR_20' ) end [2025-02-10 11:24:31] Production.INFO: ProcessCDR(1,14444072,1,1,2) [2025-02-10 11:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444072', 'tblTempUsageDetail_20' ) start [2025-02-10 11:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444072', 'tblTempUsageDetail_20' ) end [2025-02-10 11:24:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:24:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:24:36] Production.INFO: ==14014== Releasing lock... [2025-02-10 11:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:24:36] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:25:05 [end_date_ymd] => 2025-02-10 11:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:25:05' and `end` < '2025-02-10 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-10 11:25:25] Production.INFO: count ==4816 [2025-02-10 11:25:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:25:05 - End Time 2025-02-10 11:25:05 [2025-02-10 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444077', 'tblTempUsageDetail_20' ) start [2025-02-10 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444077', 'tblTempUsageDetail_20' ) end [2025-02-10 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444077', 'tblTempVendorCDR_20' ) start [2025-02-10 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444077', 'tblTempVendorCDR_20' ) end [2025-02-10 11:25:27] Production.INFO: ProcessCDR(1,14444077,1,1,2) [2025-02-10 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444077', 'tblTempUsageDetail_20' ) start [2025-02-10 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444077', 'tblTempUsageDetail_20' ) end [2025-02-10 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:25:32] Production.INFO: ==14085== Releasing lock... [2025-02-10 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:25:32] Production.INFO: 64 MB #Memory Used# [2025-02-10 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:26:05 [end_date_ymd] => 2025-02-10 11:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:26:05' and `end` < '2025-02-10 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-10 11:26:25] Production.INFO: count ==4866 [2025-02-10 11:26:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:26:05 - End Time 2025-02-10 11:26:05 [2025-02-10 11:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444082', 'tblTempUsageDetail_20' ) start [2025-02-10 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444082', 'tblTempUsageDetail_20' ) end [2025-02-10 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444082', 'tblTempVendorCDR_20' ) start [2025-02-10 11:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444082', 'tblTempVendorCDR_20' ) end [2025-02-10 11:26:27] Production.INFO: ProcessCDR(1,14444082,1,1,2) [2025-02-10 11:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444082', 'tblTempUsageDetail_20' ) start [2025-02-10 11:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444082', 'tblTempUsageDetail_20' ) end [2025-02-10 11:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:26:32] Production.INFO: ==14159== Releasing lock... [2025-02-10 11:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:26:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:27:05 [end_date_ymd] => 2025-02-10 11:27:05 [RateCDR] => 1 ) [2025-02-10 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:27:05' and `end` < '2025-02-10 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:27:26] Production.INFO: count ==4885 [2025-02-10 11:27:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:27:05 - End Time 2025-02-10 11:27:05 [2025-02-10 11:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444087', 'tblTempUsageDetail_20' ) start [2025-02-10 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444087', 'tblTempUsageDetail_20' ) end [2025-02-10 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444087', 'tblTempVendorCDR_20' ) start [2025-02-10 11:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444087', 'tblTempVendorCDR_20' ) end [2025-02-10 11:27:28] Production.INFO: ProcessCDR(1,14444087,1,1,2) [2025-02-10 11:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444087', 'tblTempUsageDetail_20' ) start [2025-02-10 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444087', 'tblTempUsageDetail_20' ) end [2025-02-10 11:27:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:27:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:27:33] Production.INFO: ==14237== Releasing lock... [2025-02-10 11:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:27:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:28:04 [end_date_ymd] => 2025-02-10 11:28:04 [RateCDR] => 1 ) [2025-02-10 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-10 08:28:04' and `end` < '2025-02-10 11: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-10 11:28:24] Production.INFO: count ==4917 [2025-02-10 11:28:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:28:04 - End Time 2025-02-10 11:28:04 [2025-02-10 11:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444092', 'tblTempUsageDetail_20' ) start [2025-02-10 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444092', 'tblTempUsageDetail_20' ) end [2025-02-10 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444092', 'tblTempVendorCDR_20' ) start [2025-02-10 11:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444092', 'tblTempVendorCDR_20' ) end [2025-02-10 11:28:26] Production.INFO: ProcessCDR(1,14444092,1,1,2) [2025-02-10 11:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444092', 'tblTempUsageDetail_20' ) start [2025-02-10 11:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444092', 'tblTempUsageDetail_20' ) end [2025-02-10 11:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:28:30] Production.INFO: ==14309== Releasing lock... [2025-02-10 11:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:28:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-10 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:29:05 [end_date_ymd] => 2025-02-10 11:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:29:05' and `end` < '2025-02-10 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-10 11:29:28] Production.INFO: count ==4937 [2025-02-10 11:29:30] Production.ERROR: pbx CDR StartTime 2025-02-10 08:29:05 - End Time 2025-02-10 11:29:05 [2025-02-10 11:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444097', 'tblTempUsageDetail_20' ) start [2025-02-10 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444097', 'tblTempUsageDetail_20' ) end [2025-02-10 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444097', 'tblTempVendorCDR_20' ) start [2025-02-10 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444097', 'tblTempVendorCDR_20' ) end [2025-02-10 11:29:30] Production.INFO: ProcessCDR(1,14444097,1,1,2) [2025-02-10 11:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444097', 'tblTempUsageDetail_20' ) start [2025-02-10 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444097', 'tblTempUsageDetail_20' ) end [2025-02-10 11:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:29:35] Production.INFO: ==14383== Releasing lock... [2025-02-10 11:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:29:35] Production.INFO: 65 MB #Memory Used# [2025-02-10 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:30:05 [end_date_ymd] => 2025-02-10 11:30:05 [RateCDR] => 1 ) [2025-02-10 11: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-10 08:30:05' and `end` < '2025-02-10 11: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-10 11:30:24] Production.INFO: count ==4954 [2025-02-10 11:30:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:30:05 - End Time 2025-02-10 11:30:05 [2025-02-10 11:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444103', 'tblTempUsageDetail_20' ) start [2025-02-10 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444103', 'tblTempUsageDetail_20' ) end [2025-02-10 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444103', 'tblTempVendorCDR_20' ) start [2025-02-10 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444103', 'tblTempVendorCDR_20' ) end [2025-02-10 11:30:27] Production.INFO: ProcessCDR(1,14444103,1,1,2) [2025-02-10 11:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444103', 'tblTempUsageDetail_20' ) start [2025-02-10 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444103', 'tblTempUsageDetail_20' ) end [2025-02-10 11:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:30:32] Production.INFO: ==14460== Releasing lock... [2025-02-10 11:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:30:32] Production.INFO: 65 MB #Memory Used# [2025-02-10 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:31:05 [end_date_ymd] => 2025-02-10 11:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:31:05' and `end` < '2025-02-10 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-10 11:31:26] Production.INFO: count ==5054 [2025-02-10 11:31:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:31:05 - End Time 2025-02-10 11:31:05 [2025-02-10 11:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444108', 'tblTempUsageDetail_20' ) start [2025-02-10 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444108', 'tblTempUsageDetail_20' ) end [2025-02-10 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444108', 'tblTempVendorCDR_20' ) start [2025-02-10 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444108', 'tblTempVendorCDR_20' ) end [2025-02-10 11:31:29] Production.INFO: ProcessCDR(1,14444108,1,1,2) [2025-02-10 11:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444108', 'tblTempUsageDetail_20' ) start [2025-02-10 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444108', 'tblTempUsageDetail_20' ) end [2025-02-10 11:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:31:33] Production.INFO: ==14541== Releasing lock... [2025-02-10 11:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:31:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:32:06 [end_date_ymd] => 2025-02-10 11:32:06 [RateCDR] => 1 ) [2025-02-10 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:32:06' and `end` < '2025-02-10 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:32:26] Production.INFO: count ==5055 [2025-02-10 11:32:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:32:06 - End Time 2025-02-10 11:32:06 [2025-02-10 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444113', 'tblTempUsageDetail_20' ) start [2025-02-10 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444113', 'tblTempUsageDetail_20' ) end [2025-02-10 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444113', 'tblTempVendorCDR_20' ) start [2025-02-10 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444113', 'tblTempVendorCDR_20' ) end [2025-02-10 11:32:28] Production.INFO: ProcessCDR(1,14444113,1,1,2) [2025-02-10 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444113', 'tblTempUsageDetail_20' ) start [2025-02-10 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444113', 'tblTempUsageDetail_20' ) end [2025-02-10 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:32:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:32:33] Production.INFO: ==14616== Releasing lock... [2025-02-10 11:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:32:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:33:05 [end_date_ymd] => 2025-02-10 11:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:33:05' and `end` < '2025-02-10 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-10 11:33:26] Production.INFO: count ==5068 [2025-02-10 11:33:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:33:05 - End Time 2025-02-10 11:33:05 [2025-02-10 11:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444118', 'tblTempUsageDetail_20' ) start [2025-02-10 11:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444118', 'tblTempUsageDetail_20' ) end [2025-02-10 11:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444118', 'tblTempVendorCDR_20' ) start [2025-02-10 11:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444118', 'tblTempVendorCDR_20' ) end [2025-02-10 11:33:28] Production.INFO: ProcessCDR(1,14444118,1,1,2) [2025-02-10 11:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444118', 'tblTempUsageDetail_20' ) start [2025-02-10 11:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444118', 'tblTempUsageDetail_20' ) end [2025-02-10 11:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:33:33] Production.INFO: ==14688== Releasing lock... [2025-02-10 11:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:33:33] Production.INFO: 66 MB #Memory Used# [2025-02-10 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:34:05 [end_date_ymd] => 2025-02-10 11:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:34:05' and `end` < '2025-02-10 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-10 11:34:22] Production.INFO: count ==5086 [2025-02-10 11:34:24] Production.ERROR: pbx CDR StartTime 2025-02-10 08:34:05 - End Time 2025-02-10 11:34:05 [2025-02-10 11:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444123', 'tblTempUsageDetail_20' ) start [2025-02-10 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444123', 'tblTempUsageDetail_20' ) end [2025-02-10 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444123', 'tblTempVendorCDR_20' ) start [2025-02-10 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444123', 'tblTempVendorCDR_20' ) end [2025-02-10 11:34:25] Production.INFO: ProcessCDR(1,14444123,1,1,2) [2025-02-10 11:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444123', 'tblTempUsageDetail_20' ) start [2025-02-10 11:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444123', 'tblTempUsageDetail_20' ) end [2025-02-10 11:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:34:30] Production.INFO: ==14763== Releasing lock... [2025-02-10 11:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:34:30] Production.INFO: 66 MB #Memory Used# [2025-02-10 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:35:05 [end_date_ymd] => 2025-02-10 11:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:35:05' and `end` < '2025-02-10 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-10 11:35:22] Production.INFO: count ==5094 [2025-02-10 11:35:24] Production.ERROR: pbx CDR StartTime 2025-02-10 08:35:05 - End Time 2025-02-10 11:35:05 [2025-02-10 11:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444128', 'tblTempUsageDetail_20' ) start [2025-02-10 11:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444128', 'tblTempUsageDetail_20' ) end [2025-02-10 11:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444128', 'tblTempVendorCDR_20' ) start [2025-02-10 11:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444128', 'tblTempVendorCDR_20' ) end [2025-02-10 11:35:25] Production.INFO: ProcessCDR(1,14444128,1,1,2) [2025-02-10 11:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444128', 'tblTempUsageDetail_20' ) start [2025-02-10 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444128', 'tblTempUsageDetail_20' ) end [2025-02-10 11:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:35:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:35:29] Production.INFO: ==14833== Releasing lock... [2025-02-10 11:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:35:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:36:05 [end_date_ymd] => 2025-02-10 11:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:36:05' and `end` < '2025-02-10 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-10 11:36:24] Production.INFO: count ==5130 [2025-02-10 11:36:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:36:05 - End Time 2025-02-10 11:36:05 [2025-02-10 11:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444133', 'tblTempUsageDetail_20' ) start [2025-02-10 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444133', 'tblTempUsageDetail_20' ) end [2025-02-10 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444133', 'tblTempVendorCDR_20' ) start [2025-02-10 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444133', 'tblTempVendorCDR_20' ) end [2025-02-10 11:36:26] Production.INFO: ProcessCDR(1,14444133,1,1,2) [2025-02-10 11:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444133', 'tblTempUsageDetail_20' ) start [2025-02-10 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444133', 'tblTempUsageDetail_20' ) end [2025-02-10 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:36:31] Production.INFO: ==14909== Releasing lock... [2025-02-10 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:36:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:37:05 [end_date_ymd] => 2025-02-10 11:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:37:05' and `end` < '2025-02-10 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-10 11:37:21] Production.INFO: count ==5141 [2025-02-10 11:37:23] Production.ERROR: pbx CDR StartTime 2025-02-10 08:37:05 - End Time 2025-02-10 11:37:05 [2025-02-10 11:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444138', 'tblTempUsageDetail_20' ) start [2025-02-10 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444138', 'tblTempUsageDetail_20' ) end [2025-02-10 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444138', 'tblTempVendorCDR_20' ) start [2025-02-10 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444138', 'tblTempVendorCDR_20' ) end [2025-02-10 11:37:24] Production.INFO: ProcessCDR(1,14444138,1,1,2) [2025-02-10 11:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444138', 'tblTempUsageDetail_20' ) start [2025-02-10 11:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444138', 'tblTempUsageDetail_20' ) end [2025-02-10 11:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:37:28] Production.INFO: ==14980== Releasing lock... [2025-02-10 11:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:37:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:38:05 [end_date_ymd] => 2025-02-10 11:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:38:05' and `end` < '2025-02-10 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-10 11:38:25] Production.INFO: count ==5168 [2025-02-10 11:38:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:38:05 - End Time 2025-02-10 11:38:05 [2025-02-10 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444143', 'tblTempUsageDetail_20' ) start [2025-02-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444143', 'tblTempUsageDetail_20' ) end [2025-02-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444143', 'tblTempVendorCDR_20' ) start [2025-02-10 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444143', 'tblTempVendorCDR_20' ) end [2025-02-10 11:38:27] Production.INFO: ProcessCDR(1,14444143,1,1,2) [2025-02-10 11:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444143', 'tblTempUsageDetail_20' ) start [2025-02-10 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444143', 'tblTempUsageDetail_20' ) end [2025-02-10 11:38:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:38:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:38:32] Production.INFO: ==15054== Releasing lock... [2025-02-10 11:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:38:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:39:05 [end_date_ymd] => 2025-02-10 11:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:39:05' and `end` < '2025-02-10 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-10 11:39:23] Production.INFO: count ==5192 [2025-02-10 11:39:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:39:05 - End Time 2025-02-10 11:39:05 [2025-02-10 11:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444148', 'tblTempUsageDetail_20' ) start [2025-02-10 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444148', 'tblTempUsageDetail_20' ) end [2025-02-10 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444148', 'tblTempVendorCDR_20' ) start [2025-02-10 11:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444148', 'tblTempVendorCDR_20' ) end [2025-02-10 11:39:26] Production.INFO: ProcessCDR(1,14444148,1,1,2) [2025-02-10 11:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444148', 'tblTempUsageDetail_20' ) start [2025-02-10 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444148', 'tblTempUsageDetail_20' ) end [2025-02-10 11:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:39:31] Production.INFO: ==15168== Releasing lock... [2025-02-10 11:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:39:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:40:05 [end_date_ymd] => 2025-02-10 11:40:05 [RateCDR] => 1 ) [2025-02-10 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:40:05' and `end` < '2025-02-10 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:40:25] Production.INFO: count ==5196 [2025-02-10 11:40:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:40:05 - End Time 2025-02-10 11:40:05 [2025-02-10 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444153', 'tblTempUsageDetail_20' ) start [2025-02-10 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444153', 'tblTempUsageDetail_20' ) end [2025-02-10 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444153', 'tblTempVendorCDR_20' ) start [2025-02-10 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444153', 'tblTempVendorCDR_20' ) end [2025-02-10 11:40:28] Production.INFO: ProcessCDR(1,14444153,1,1,2) [2025-02-10 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444153', 'tblTempUsageDetail_20' ) start [2025-02-10 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444153', 'tblTempUsageDetail_20' ) end [2025-02-10 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:40:33] Production.INFO: ==15248== Releasing lock... [2025-02-10 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:40:33] Production.INFO: 67 MB #Memory Used# [2025-02-10 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:41:05 [end_date_ymd] => 2025-02-10 11:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:41:05' and `end` < '2025-02-10 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-10 11:41:28] Production.INFO: count ==5284 [2025-02-10 11:41:31] Production.ERROR: pbx CDR StartTime 2025-02-10 08:41:05 - End Time 2025-02-10 11:41:05 [2025-02-10 11:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444159', 'tblTempUsageDetail_20' ) start [2025-02-10 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444159', 'tblTempUsageDetail_20' ) end [2025-02-10 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444159', 'tblTempVendorCDR_20' ) start [2025-02-10 11:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444159', 'tblTempVendorCDR_20' ) end [2025-02-10 11:41:31] Production.INFO: ProcessCDR(1,14444159,1,1,2) [2025-02-10 11:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444159', 'tblTempUsageDetail_20' ) start [2025-02-10 11:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444159', 'tblTempUsageDetail_20' ) end [2025-02-10 11:41:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:41:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:41:36] Production.INFO: ==15326== Releasing lock... [2025-02-10 11:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:41:36] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:42:05 [end_date_ymd] => 2025-02-10 11:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:42:05' and `end` < '2025-02-10 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-10 11:42:23] Production.INFO: count ==5296 [2025-02-10 11:42:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:42:05 - End Time 2025-02-10 11:42:05 [2025-02-10 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444164', 'tblTempUsageDetail_20' ) start [2025-02-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444164', 'tblTempUsageDetail_20' ) end [2025-02-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444164', 'tblTempVendorCDR_20' ) start [2025-02-10 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444164', 'tblTempVendorCDR_20' ) end [2025-02-10 11:42:25] Production.INFO: ProcessCDR(1,14444164,1,1,2) [2025-02-10 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444164', 'tblTempUsageDetail_20' ) start [2025-02-10 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444164', 'tblTempUsageDetail_20' ) end [2025-02-10 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:42:30] Production.INFO: ==15398== Releasing lock... [2025-02-10 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:42:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:43:05 [end_date_ymd] => 2025-02-10 11:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:43:05' and `end` < '2025-02-10 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-10 11:43:29] Production.INFO: count ==5287 [2025-02-10 11:43:31] Production.ERROR: pbx CDR StartTime 2025-02-10 08:43:05 - End Time 2025-02-10 11:43:05 [2025-02-10 11:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444169', 'tblTempUsageDetail_20' ) start [2025-02-10 11:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444169', 'tblTempUsageDetail_20' ) end [2025-02-10 11:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444169', 'tblTempVendorCDR_20' ) start [2025-02-10 11:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444169', 'tblTempVendorCDR_20' ) end [2025-02-10 11:43:31] Production.INFO: ProcessCDR(1,14444169,1,1,2) [2025-02-10 11:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444169', 'tblTempUsageDetail_20' ) start [2025-02-10 11:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444169', 'tblTempUsageDetail_20' ) end [2025-02-10 11:43:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:43:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:43:36] Production.INFO: ==15469== Releasing lock... [2025-02-10 11:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:43:36] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:44:04 [end_date_ymd] => 2025-02-10 11:44:04 [RateCDR] => 1 ) [2025-02-10 11:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:44:04' and `end` < '2025-02-10 11: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-10 11:44:25] Production.INFO: count ==5291 [2025-02-10 11:44:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:44:04 - End Time 2025-02-10 11:44:04 [2025-02-10 11:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444174', 'tblTempUsageDetail_20' ) start [2025-02-10 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444174', 'tblTempUsageDetail_20' ) end [2025-02-10 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444174', 'tblTempVendorCDR_20' ) start [2025-02-10 11:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444174', 'tblTempVendorCDR_20' ) end [2025-02-10 11:44:28] Production.INFO: ProcessCDR(1,14444174,1,1,2) [2025-02-10 11:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444174', 'tblTempUsageDetail_20' ) start [2025-02-10 11:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444174', 'tblTempUsageDetail_20' ) end [2025-02-10 11:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:44:32] Production.INFO: ==15537== Releasing lock... [2025-02-10 11:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:44:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:45:05 [end_date_ymd] => 2025-02-10 11:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:45:05' and `end` < '2025-02-10 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-10 11:45:26] Production.INFO: count ==5269 [2025-02-10 11:45:28] Production.ERROR: pbx CDR StartTime 2025-02-10 08:45:05 - End Time 2025-02-10 11:45:05 [2025-02-10 11:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444179', 'tblTempUsageDetail_20' ) start [2025-02-10 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444179', 'tblTempUsageDetail_20' ) end [2025-02-10 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444179', 'tblTempVendorCDR_20' ) start [2025-02-10 11:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444179', 'tblTempVendorCDR_20' ) end [2025-02-10 11:45:28] Production.INFO: ProcessCDR(1,14444179,1,1,2) [2025-02-10 11:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444179', 'tblTempUsageDetail_20' ) start [2025-02-10 11:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444179', 'tblTempUsageDetail_20' ) end [2025-02-10 11:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:45:32] Production.INFO: ==15614== Releasing lock... [2025-02-10 11:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:45:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:46:05 [end_date_ymd] => 2025-02-10 11:46:05 [RateCDR] => 1 ) [2025-02-10 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:46:05' and `end` < '2025-02-10 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:46:21] Production.INFO: count ==5269 [2025-02-10 11:46:24] Production.ERROR: pbx CDR StartTime 2025-02-10 08:46:05 - End Time 2025-02-10 11:46:05 [2025-02-10 11:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444184', 'tblTempUsageDetail_20' ) start [2025-02-10 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444184', 'tblTempUsageDetail_20' ) end [2025-02-10 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444184', 'tblTempVendorCDR_20' ) start [2025-02-10 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444184', 'tblTempVendorCDR_20' ) end [2025-02-10 11:46:24] Production.INFO: ProcessCDR(1,14444184,1,1,2) [2025-02-10 11:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444184', 'tblTempUsageDetail_20' ) start [2025-02-10 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444184', 'tblTempUsageDetail_20' ) end [2025-02-10 11:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:46:29] Production.INFO: ==15688== Releasing lock... [2025-02-10 11:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:46:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:47:05 [end_date_ymd] => 2025-02-10 11:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:47:05' and `end` < '2025-02-10 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-10 11:47:19] Production.INFO: count ==5283 [2025-02-10 11:47:22] Production.ERROR: pbx CDR StartTime 2025-02-10 08:47:05 - End Time 2025-02-10 11:47:05 [2025-02-10 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444189', 'tblTempUsageDetail_20' ) start [2025-02-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444189', 'tblTempUsageDetail_20' ) end [2025-02-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444189', 'tblTempVendorCDR_20' ) start [2025-02-10 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444189', 'tblTempVendorCDR_20' ) end [2025-02-10 11:47:22] Production.INFO: ProcessCDR(1,14444189,1,1,2) [2025-02-10 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444189', 'tblTempUsageDetail_20' ) start [2025-02-10 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444189', 'tblTempUsageDetail_20' ) end [2025-02-10 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:47:27] Production.INFO: ==15761== Releasing lock... [2025-02-10 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:47:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:48:05 [end_date_ymd] => 2025-02-10 11:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:48:05' and `end` < '2025-02-10 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-10 11:48:23] Production.INFO: count ==5302 [2025-02-10 11:48:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:48:05 - End Time 2025-02-10 11:48:05 [2025-02-10 11:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444194', 'tblTempUsageDetail_20' ) start [2025-02-10 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444194', 'tblTempUsageDetail_20' ) end [2025-02-10 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444194', 'tblTempVendorCDR_20' ) start [2025-02-10 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444194', 'tblTempVendorCDR_20' ) end [2025-02-10 11:48:26] Production.INFO: ProcessCDR(1,14444194,1,1,2) [2025-02-10 11:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444194', 'tblTempUsageDetail_20' ) start [2025-02-10 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444194', 'tblTempUsageDetail_20' ) end [2025-02-10 11:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:48:31] Production.INFO: ==15831== Releasing lock... [2025-02-10 11:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:48:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:49:05 [end_date_ymd] => 2025-02-10 11:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:49:05' and `end` < '2025-02-10 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-10 11:49:29] Production.INFO: count ==5304 [2025-02-10 11:49:31] Production.ERROR: pbx CDR StartTime 2025-02-10 08:49:05 - End Time 2025-02-10 11:49:05 [2025-02-10 11:49:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444199', 'tblTempUsageDetail_20' ) start [2025-02-10 11:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444199', 'tblTempUsageDetail_20' ) end [2025-02-10 11:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444199', 'tblTempVendorCDR_20' ) start [2025-02-10 11:49:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444199', 'tblTempVendorCDR_20' ) end [2025-02-10 11:49:31] Production.INFO: ProcessCDR(1,14444199,1,1,2) [2025-02-10 11:49:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:49:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444199', 'tblTempUsageDetail_20' ) start [2025-02-10 11:49:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444199', 'tblTempUsageDetail_20' ) end [2025-02-10 11:49:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:49:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:49:36] Production.INFO: ==15907== Releasing lock... [2025-02-10 11:49:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:49:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:50:06 [end_date_ymd] => 2025-02-10 11:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 08:50:06' and `end` < '2025-02-10 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-10 11:50:32] Production.INFO: count ==5338 [2025-02-10 11:50:35] Production.ERROR: pbx CDR StartTime 2025-02-10 08:50:06 - End Time 2025-02-10 11:50:06 [2025-02-10 11:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444205', 'tblTempUsageDetail_20' ) start [2025-02-10 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444205', 'tblTempUsageDetail_20' ) end [2025-02-10 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444205', 'tblTempVendorCDR_20' ) start [2025-02-10 11:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444205', 'tblTempVendorCDR_20' ) end [2025-02-10 11:50:35] Production.INFO: ProcessCDR(1,14444205,1,1,2) [2025-02-10 11:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444205', 'tblTempUsageDetail_20' ) start [2025-02-10 11:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444205', 'tblTempUsageDetail_20' ) end [2025-02-10 11:50:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:50:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:50:40] Production.INFO: ==15986== Releasing lock... [2025-02-10 11:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:50:40] Production.INFO: 68 MB #Memory Used# [2025-02-10 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:51:04 [end_date_ymd] => 2025-02-10 11:51:04 [RateCDR] => 1 ) [2025-02-10 11: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-10 08:51:04' and `end` < '2025-02-10 11: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-10 11:51:23] Production.INFO: count ==5405 [2025-02-10 11:51:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:51:04 - End Time 2025-02-10 11:51:04 [2025-02-10 11:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444210', 'tblTempUsageDetail_20' ) start [2025-02-10 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444210', 'tblTempUsageDetail_20' ) end [2025-02-10 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444210', 'tblTempVendorCDR_20' ) start [2025-02-10 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444210', 'tblTempVendorCDR_20' ) end [2025-02-10 11:51:25] Production.INFO: ProcessCDR(1,14444210,1,1,2) [2025-02-10 11:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444210', 'tblTempUsageDetail_20' ) start [2025-02-10 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444210', 'tblTempUsageDetail_20' ) end [2025-02-10 11:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:51:30] Production.INFO: ==16059== Releasing lock... [2025-02-10 11:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:51:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:52:05 [end_date_ymd] => 2025-02-10 11:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:52:05' and `end` < '2025-02-10 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-10 11:52:24] Production.INFO: count ==5407 [2025-02-10 11:52:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:52:05 - End Time 2025-02-10 11:52:05 [2025-02-10 11:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444215', 'tblTempUsageDetail_20' ) start [2025-02-10 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444215', 'tblTempUsageDetail_20' ) end [2025-02-10 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444215', 'tblTempVendorCDR_20' ) start [2025-02-10 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444215', 'tblTempVendorCDR_20' ) end [2025-02-10 11:52:26] Production.INFO: ProcessCDR(1,14444215,1,1,2) [2025-02-10 11:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444215', 'tblTempUsageDetail_20' ) start [2025-02-10 11:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444215', 'tblTempUsageDetail_20' ) end [2025-02-10 11:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:52:31] Production.INFO: ==16129== Releasing lock... [2025-02-10 11:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:52:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:53:05 [end_date_ymd] => 2025-02-10 11:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:53:05' and `end` < '2025-02-10 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-10 11:53:24] Production.INFO: count ==5414 [2025-02-10 11:53:26] Production.ERROR: pbx CDR StartTime 2025-02-10 08:53:05 - End Time 2025-02-10 11:53:05 [2025-02-10 11:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444220', 'tblTempUsageDetail_20' ) start [2025-02-10 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444220', 'tblTempUsageDetail_20' ) end [2025-02-10 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444220', 'tblTempVendorCDR_20' ) start [2025-02-10 11:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444220', 'tblTempVendorCDR_20' ) end [2025-02-10 11:53:26] Production.INFO: ProcessCDR(1,14444220,1,1,2) [2025-02-10 11:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444220', 'tblTempUsageDetail_20' ) start [2025-02-10 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444220', 'tblTempUsageDetail_20' ) end [2025-02-10 11:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:53:31] Production.INFO: ==16201== Releasing lock... [2025-02-10 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:53:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:54:05 [end_date_ymd] => 2025-02-10 11:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:54:05' and `end` < '2025-02-10 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-10 11:54:19] Production.INFO: count ==5425 [2025-02-10 11:54:22] Production.ERROR: pbx CDR StartTime 2025-02-10 08:54:05 - End Time 2025-02-10 11:54:05 [2025-02-10 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444225', 'tblTempUsageDetail_20' ) start [2025-02-10 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444225', 'tblTempUsageDetail_20' ) end [2025-02-10 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444225', 'tblTempVendorCDR_20' ) start [2025-02-10 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444225', 'tblTempVendorCDR_20' ) end [2025-02-10 11:54:22] Production.INFO: ProcessCDR(1,14444225,1,1,2) [2025-02-10 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444225', 'tblTempUsageDetail_20' ) start [2025-02-10 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444225', 'tblTempUsageDetail_20' ) end [2025-02-10 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:54:26] Production.INFO: ==16273== Releasing lock... [2025-02-10 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:54:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:55:05 [end_date_ymd] => 2025-02-10 11:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 08:55:05' and `end` < '2025-02-10 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-10 11:55:19] Production.INFO: count ==5436 [2025-02-10 11:55:21] Production.ERROR: pbx CDR StartTime 2025-02-10 08:55:05 - End Time 2025-02-10 11:55:05 [2025-02-10 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444230', 'tblTempUsageDetail_20' ) start [2025-02-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444230', 'tblTempUsageDetail_20' ) end [2025-02-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444230', 'tblTempVendorCDR_20' ) start [2025-02-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444230', 'tblTempVendorCDR_20' ) end [2025-02-10 11:55:21] Production.INFO: ProcessCDR(1,14444230,1,1,2) [2025-02-10 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444230', 'tblTempUsageDetail_20' ) start [2025-02-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444230', 'tblTempUsageDetail_20' ) end [2025-02-10 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:55:26] Production.INFO: ==16388== Releasing lock... [2025-02-10 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:55:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:56:04 [end_date_ymd] => 2025-02-10 11:56:04 [RateCDR] => 1 ) [2025-02-10 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:56:04' and `end` < '2025-02-10 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:56:19] Production.INFO: count ==5445 [2025-02-10 11:56:22] Production.ERROR: pbx CDR StartTime 2025-02-10 08:56:04 - End Time 2025-02-10 11:56:04 [2025-02-10 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444235', 'tblTempUsageDetail_20' ) start [2025-02-10 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444235', 'tblTempUsageDetail_20' ) end [2025-02-10 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444235', 'tblTempVendorCDR_20' ) start [2025-02-10 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444235', 'tblTempVendorCDR_20' ) end [2025-02-10 11:56:22] Production.INFO: ProcessCDR(1,14444235,1,1,2) [2025-02-10 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444235', 'tblTempUsageDetail_20' ) start [2025-02-10 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444235', 'tblTempUsageDetail_20' ) end [2025-02-10 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:56:27] Production.INFO: ==16459== Releasing lock... [2025-02-10 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:56:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:57:05 [end_date_ymd] => 2025-02-10 11:57:05 [RateCDR] => 1 ) [2025-02-10 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:57:05' and `end` < '2025-02-10 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:57:25] Production.INFO: count ==5475 [2025-02-10 11:57:27] Production.ERROR: pbx CDR StartTime 2025-02-10 08:57:05 - End Time 2025-02-10 11:57:05 [2025-02-10 11:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444240', 'tblTempUsageDetail_20' ) start [2025-02-10 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444240', 'tblTempUsageDetail_20' ) end [2025-02-10 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444240', 'tblTempVendorCDR_20' ) start [2025-02-10 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444240', 'tblTempVendorCDR_20' ) end [2025-02-10 11:57:27] Production.INFO: ProcessCDR(1,14444240,1,1,2) [2025-02-10 11:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444240', 'tblTempUsageDetail_20' ) start [2025-02-10 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444240', 'tblTempUsageDetail_20' ) end [2025-02-10 11:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:57:33] Production.INFO: ==16532== Releasing lock... [2025-02-10 11:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:57:33] Production.INFO: 69 MB #Memory Used# [2025-02-10 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:58:06 [end_date_ymd] => 2025-02-10 11:58:06 [RateCDR] => 1 ) [2025-02-10 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:58:06' and `end` < '2025-02-10 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:58:23] Production.INFO: count ==5488 [2025-02-10 11:58:25] Production.ERROR: pbx CDR StartTime 2025-02-10 08:58:06 - End Time 2025-02-10 11:58:06 [2025-02-10 11:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444245', 'tblTempUsageDetail_20' ) start [2025-02-10 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444245', 'tblTempUsageDetail_20' ) end [2025-02-10 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444245', 'tblTempVendorCDR_20' ) start [2025-02-10 11:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444245', 'tblTempVendorCDR_20' ) end [2025-02-10 11:58:25] Production.INFO: ProcessCDR(1,14444245,1,1,2) [2025-02-10 11:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444245', 'tblTempUsageDetail_20' ) start [2025-02-10 11:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444245', 'tblTempUsageDetail_20' ) end [2025-02-10 11:58:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:58:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:58:30] Production.INFO: ==16604== Releasing lock... [2025-02-10 11:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:58:30] Production.INFO: 69 MB #Memory Used# [2025-02-10 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 08:59:05 [end_date_ymd] => 2025-02-10 11:59:05 [RateCDR] => 1 ) [2025-02-10 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 08:59:05' and `end` < '2025-02-10 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 11:59:20] Production.INFO: count ==5506 [2025-02-10 11:59:23] Production.ERROR: pbx CDR StartTime 2025-02-10 08:59:05 - End Time 2025-02-10 11:59:05 [2025-02-10 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444250', 'tblTempUsageDetail_20' ) start [2025-02-10 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444250', 'tblTempUsageDetail_20' ) end [2025-02-10 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444250', 'tblTempVendorCDR_20' ) start [2025-02-10 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444250', 'tblTempVendorCDR_20' ) end [2025-02-10 11:59:23] Production.INFO: ProcessCDR(1,14444250,1,1,2) [2025-02-10 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444250', 'tblTempUsageDetail_20' ) start [2025-02-10 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444250', 'tblTempUsageDetail_20' ) end [2025-02-10 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 11:59:28] Production.INFO: ==16677== Releasing lock... [2025-02-10 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 11:59:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:00:06 [end_date_ymd] => 2025-02-10 12:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 09:00:06' and `end` < '2025-02-10 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-10 12:00:27] Production.INFO: count ==5477 [2025-02-10 12:00:29] Production.ERROR: pbx CDR StartTime 2025-02-10 09:00:06 - End Time 2025-02-10 12:00:06 [2025-02-10 12:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444256', 'tblTempUsageDetail_20' ) start [2025-02-10 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444256', 'tblTempUsageDetail_20' ) end [2025-02-10 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444256', 'tblTempVendorCDR_20' ) start [2025-02-10 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444256', 'tblTempVendorCDR_20' ) end [2025-02-10 12:00:30] Production.INFO: ProcessCDR(1,14444256,1,1,2) [2025-02-10 12:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444256', 'tblTempUsageDetail_20' ) start [2025-02-10 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444256', 'tblTempUsageDetail_20' ) end [2025-02-10 12:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:00:34] Production.INFO: ==16749== Releasing lock... [2025-02-10 12:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:00:34] Production.INFO: 69 MB #Memory Used# [2025-02-10 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:01:05 [end_date_ymd] => 2025-02-10 12:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:01:05' and `end` < '2025-02-10 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-10 12:01:21] Production.INFO: count ==5513 [2025-02-10 12:01:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:01:05 - End Time 2025-02-10 12:01:05 [2025-02-10 12:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444261', 'tblTempUsageDetail_20' ) start [2025-02-10 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444261', 'tblTempUsageDetail_20' ) end [2025-02-10 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444261', 'tblTempVendorCDR_20' ) start [2025-02-10 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444261', 'tblTempVendorCDR_20' ) end [2025-02-10 12:01:24] Production.INFO: ProcessCDR(1,14444261,1,1,2) [2025-02-10 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444261', 'tblTempUsageDetail_20' ) start [2025-02-10 12:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444261', 'tblTempUsageDetail_20' ) end [2025-02-10 12:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:01:28] Production.INFO: ==16833== Releasing lock... [2025-02-10 12:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:01:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:02:06 [end_date_ymd] => 2025-02-10 12:02:06 [RateCDR] => 1 ) [2025-02-10 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:02:06' and `end` < '2025-02-10 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:02:25] Production.INFO: count ==5512 [2025-02-10 12:02:28] Production.ERROR: pbx CDR StartTime 2025-02-10 09:02:06 - End Time 2025-02-10 12:02:06 [2025-02-10 12:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444266', 'tblTempUsageDetail_20' ) start [2025-02-10 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444266', 'tblTempUsageDetail_20' ) end [2025-02-10 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444266', 'tblTempVendorCDR_20' ) start [2025-02-10 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444266', 'tblTempVendorCDR_20' ) end [2025-02-10 12:02:28] Production.INFO: ProcessCDR(1,14444266,1,1,2) [2025-02-10 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444266', 'tblTempUsageDetail_20' ) start [2025-02-10 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444266', 'tblTempUsageDetail_20' ) end [2025-02-10 12:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:02:33] Production.INFO: ==16905== Releasing lock... [2025-02-10 12:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:02:33] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:03:05 [end_date_ymd] => 2025-02-10 12:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:03:05' and `end` < '2025-02-10 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-10 12:03:25] Production.INFO: count ==5508 [2025-02-10 12:03:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:03:05 - End Time 2025-02-10 12:03:05 [2025-02-10 12:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444271', 'tblTempUsageDetail_20' ) start [2025-02-10 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444271', 'tblTempUsageDetail_20' ) end [2025-02-10 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444271', 'tblTempVendorCDR_20' ) start [2025-02-10 12:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444271', 'tblTempVendorCDR_20' ) end [2025-02-10 12:03:27] Production.INFO: ProcessCDR(1,14444271,1,1,2) [2025-02-10 12:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444271', 'tblTempUsageDetail_20' ) start [2025-02-10 12:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444271', 'tblTempUsageDetail_20' ) end [2025-02-10 12:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:03:32] Production.INFO: ==16976== Releasing lock... [2025-02-10 12:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:03:32] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:04:05 [end_date_ymd] => 2025-02-10 12:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:04:05' and `end` < '2025-02-10 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-10 12:04:22] Production.INFO: count ==5520 [2025-02-10 12:04:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:04:05 - End Time 2025-02-10 12:04:05 [2025-02-10 12:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444276', 'tblTempUsageDetail_20' ) start [2025-02-10 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444276', 'tblTempUsageDetail_20' ) end [2025-02-10 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444276', 'tblTempVendorCDR_20' ) start [2025-02-10 12:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444276', 'tblTempVendorCDR_20' ) end [2025-02-10 12:04:24] Production.INFO: ProcessCDR(1,14444276,1,1,2) [2025-02-10 12:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444276', 'tblTempUsageDetail_20' ) start [2025-02-10 12:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444276', 'tblTempUsageDetail_20' ) end [2025-02-10 12:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:04:29] Production.INFO: ==17049== Releasing lock... [2025-02-10 12:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:04:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:05:05 [end_date_ymd] => 2025-02-10 12:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:05:05' and `end` < '2025-02-10 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-10 12:05:19] Production.INFO: count ==5526 [2025-02-10 12:05:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:05:05 - End Time 2025-02-10 12:05:05 [2025-02-10 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444281', 'tblTempUsageDetail_20' ) start [2025-02-10 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444281', 'tblTempUsageDetail_20' ) end [2025-02-10 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444281', 'tblTempVendorCDR_20' ) start [2025-02-10 12:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444281', 'tblTempVendorCDR_20' ) end [2025-02-10 12:05:22] Production.INFO: ProcessCDR(1,14444281,1,1,2) [2025-02-10 12:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444281', 'tblTempUsageDetail_20' ) start [2025-02-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444281', 'tblTempUsageDetail_20' ) end [2025-02-10 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:05:26] Production.INFO: ==17118== Releasing lock... [2025-02-10 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:05:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:06:05 [end_date_ymd] => 2025-02-10 12:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:06:05' and `end` < '2025-02-10 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-10 12:06:27] Production.INFO: count ==5520 [2025-02-10 12:06:30] Production.ERROR: pbx CDR StartTime 2025-02-10 09:06:05 - End Time 2025-02-10 12:06:05 [2025-02-10 12:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444286', 'tblTempUsageDetail_20' ) start [2025-02-10 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444286', 'tblTempUsageDetail_20' ) end [2025-02-10 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444286', 'tblTempVendorCDR_20' ) start [2025-02-10 12:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444286', 'tblTempVendorCDR_20' ) end [2025-02-10 12:06:30] Production.INFO: ProcessCDR(1,14444286,1,1,2) [2025-02-10 12:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444286', 'tblTempUsageDetail_20' ) start [2025-02-10 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444286', 'tblTempUsageDetail_20' ) end [2025-02-10 12:06:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:06:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:06:35] Production.INFO: ==17190== Releasing lock... [2025-02-10 12:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:06:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:07:05 [end_date_ymd] => 2025-02-10 12:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:07:05' and `end` < '2025-02-10 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-10 12:07:32] Production.INFO: count ==5523 [2025-02-10 12:07:34] Production.ERROR: pbx CDR StartTime 2025-02-10 09:07:05 - End Time 2025-02-10 12:07:05 [2025-02-10 12:07:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444291', 'tblTempUsageDetail_20' ) start [2025-02-10 12:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444291', 'tblTempUsageDetail_20' ) end [2025-02-10 12:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444291', 'tblTempVendorCDR_20' ) start [2025-02-10 12:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444291', 'tblTempVendorCDR_20' ) end [2025-02-10 12:07:34] Production.INFO: ProcessCDR(1,14444291,1,1,2) [2025-02-10 12:07:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:07:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:07:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:07:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444291', 'tblTempUsageDetail_20' ) start [2025-02-10 12:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444291', 'tblTempUsageDetail_20' ) end [2025-02-10 12:07:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:07:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:07:40] Production.INFO: ==17261== Releasing lock... [2025-02-10 12:07:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:07:40] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:08:05 [end_date_ymd] => 2025-02-10 12:08:05 [RateCDR] => 1 ) [2025-02-10 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:08:05' and `end` < '2025-02-10 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:08:32] Production.INFO: count ==5523 [2025-02-10 12:08:35] Production.ERROR: pbx CDR StartTime 2025-02-10 09:08:05 - End Time 2025-02-10 12:08:05 [2025-02-10 12:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444296', 'tblTempUsageDetail_20' ) start [2025-02-10 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444296', 'tblTempUsageDetail_20' ) end [2025-02-10 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444296', 'tblTempVendorCDR_20' ) start [2025-02-10 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444296', 'tblTempVendorCDR_20' ) end [2025-02-10 12:08:35] Production.INFO: ProcessCDR(1,14444296,1,1,2) [2025-02-10 12:08:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:08:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:08:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:08:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444296', 'tblTempUsageDetail_20' ) start [2025-02-10 12:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444296', 'tblTempUsageDetail_20' ) end [2025-02-10 12:08:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:08:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:08:40] Production.INFO: ==17334== Releasing lock... [2025-02-10 12:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:08:40] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:09:04 [end_date_ymd] => 2025-02-10 12:09:04 [RateCDR] => 1 ) [2025-02-10 12:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:09:04' and `end` < '2025-02-10 12:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:09:24] Production.INFO: count ==5511 [2025-02-10 12:09:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:09:04 - End Time 2025-02-10 12:09:04 [2025-02-10 12:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444301', 'tblTempUsageDetail_20' ) start [2025-02-10 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444301', 'tblTempUsageDetail_20' ) end [2025-02-10 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444301', 'tblTempVendorCDR_20' ) start [2025-02-10 12:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444301', 'tblTempVendorCDR_20' ) end [2025-02-10 12:09:27] Production.INFO: ProcessCDR(1,14444301,1,1,2) [2025-02-10 12:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444301', 'tblTempUsageDetail_20' ) start [2025-02-10 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444301', 'tblTempUsageDetail_20' ) end [2025-02-10 12:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:09:31] Production.INFO: ==17406== Releasing lock... [2025-02-10 12:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:09:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:10:05 [end_date_ymd] => 2025-02-10 12:10:05 [RateCDR] => 1 ) [2025-02-10 12:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:10:05' and `end` < '2025-02-10 12:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:10:26] Production.INFO: count ==5506 [2025-02-10 12:10:28] Production.ERROR: pbx CDR StartTime 2025-02-10 09:10:05 - End Time 2025-02-10 12:10:05 [2025-02-10 12:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444307', 'tblTempUsageDetail_20' ) start [2025-02-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444307', 'tblTempUsageDetail_20' ) end [2025-02-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444307', 'tblTempVendorCDR_20' ) start [2025-02-10 12:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444307', 'tblTempVendorCDR_20' ) end [2025-02-10 12:10:28] Production.INFO: ProcessCDR(1,14444307,1,1,2) [2025-02-10 12:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444307', 'tblTempUsageDetail_20' ) start [2025-02-10 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444307', 'tblTempUsageDetail_20' ) end [2025-02-10 12:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:10:33] Production.INFO: ==17524== Releasing lock... [2025-02-10 12:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:10:33] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:11:06 [end_date_ymd] => 2025-02-10 12:11:06 [RateCDR] => 1 ) [2025-02-10 12:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:11:06' and `end` < '2025-02-10 12:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:11:25] Production.INFO: count ==5522 [2025-02-10 12:11:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:11:06 - End Time 2025-02-10 12:11:06 [2025-02-10 12:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444312', 'tblTempUsageDetail_20' ) start [2025-02-10 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444312', 'tblTempUsageDetail_20' ) end [2025-02-10 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444312', 'tblTempVendorCDR_20' ) start [2025-02-10 12:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444312', 'tblTempVendorCDR_20' ) end [2025-02-10 12:11:27] Production.INFO: ProcessCDR(1,14444312,1,1,2) [2025-02-10 12:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444312', 'tblTempUsageDetail_20' ) start [2025-02-10 12:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444312', 'tblTempUsageDetail_20' ) end [2025-02-10 12:11:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:11:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:11:32] Production.INFO: ==17602== Releasing lock... [2025-02-10 12:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:11:32] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:12:05 [end_date_ymd] => 2025-02-10 12:12:05 [RateCDR] => 1 ) [2025-02-10 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:12:05' and `end` < '2025-02-10 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:12:19] Production.INFO: count ==5512 [2025-02-10 12:12:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:12:05 - End Time 2025-02-10 12:12:05 [2025-02-10 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444317', 'tblTempUsageDetail_20' ) start [2025-02-10 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444317', 'tblTempUsageDetail_20' ) end [2025-02-10 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444317', 'tblTempVendorCDR_20' ) start [2025-02-10 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444317', 'tblTempVendorCDR_20' ) end [2025-02-10 12:12:21] Production.INFO: ProcessCDR(1,14444317,1,1,2) [2025-02-10 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444317', 'tblTempUsageDetail_20' ) start [2025-02-10 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444317', 'tblTempUsageDetail_20' ) end [2025-02-10 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:12:26] Production.INFO: ==17672== Releasing lock... [2025-02-10 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:12:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:13:05 [end_date_ymd] => 2025-02-10 12:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:13:05' and `end` < '2025-02-10 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-10 12:13:21] Production.INFO: count ==5477 [2025-02-10 12:13:23] Production.ERROR: pbx CDR StartTime 2025-02-10 09:13:05 - End Time 2025-02-10 12:13:05 [2025-02-10 12:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444322', 'tblTempUsageDetail_20' ) start [2025-02-10 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444322', 'tblTempUsageDetail_20' ) end [2025-02-10 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444322', 'tblTempVendorCDR_20' ) start [2025-02-10 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444322', 'tblTempVendorCDR_20' ) end [2025-02-10 12:13:23] Production.INFO: ProcessCDR(1,14444322,1,1,2) [2025-02-10 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444322', 'tblTempUsageDetail_20' ) start [2025-02-10 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444322', 'tblTempUsageDetail_20' ) end [2025-02-10 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:13:28] Production.INFO: ==17743== Releasing lock... [2025-02-10 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:13:28] Production.INFO: 69 MB #Memory Used# [2025-02-10 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:14:05 [end_date_ymd] => 2025-02-10 12:14:05 [RateCDR] => 1 ) [2025-02-10 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:14:05' and `end` < '2025-02-10 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:14:32] Production.INFO: count ==5470 [2025-02-10 12:14:35] Production.ERROR: pbx CDR StartTime 2025-02-10 09:14:05 - End Time 2025-02-10 12:14:05 [2025-02-10 12:14:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:14:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444327', 'tblTempUsageDetail_20' ) start [2025-02-10 12:14:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444327', 'tblTempUsageDetail_20' ) end [2025-02-10 12:14:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444327', 'tblTempVendorCDR_20' ) start [2025-02-10 12:14:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444327', 'tblTempVendorCDR_20' ) end [2025-02-10 12:14:35] Production.INFO: ProcessCDR(1,14444327,1,1,2) [2025-02-10 12:14:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:14:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:14:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:14:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:14:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444327', 'tblTempUsageDetail_20' ) start [2025-02-10 12:14:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444327', 'tblTempUsageDetail_20' ) end [2025-02-10 12:14:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:14:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:14:40] Production.INFO: ==17814== Releasing lock... [2025-02-10 12:14:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:14:40] Production.INFO: 69 MB #Memory Used# [2025-02-10 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:15:05 [end_date_ymd] => 2025-02-10 12:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:15:05' and `end` < '2025-02-10 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-10 12:15:30] Production.INFO: count ==5469 [2025-02-10 12:15:32] Production.ERROR: pbx CDR StartTime 2025-02-10 09:15:05 - End Time 2025-02-10 12:15:05 [2025-02-10 12:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444332', 'tblTempUsageDetail_20' ) start [2025-02-10 12:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444332', 'tblTempUsageDetail_20' ) end [2025-02-10 12:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444332', 'tblTempVendorCDR_20' ) start [2025-02-10 12:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444332', 'tblTempVendorCDR_20' ) end [2025-02-10 12:15:33] Production.INFO: ProcessCDR(1,14444332,1,1,2) [2025-02-10 12:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444332', 'tblTempUsageDetail_20' ) start [2025-02-10 12:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444332', 'tblTempUsageDetail_20' ) end [2025-02-10 12:15:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:15:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:15:38] Production.INFO: ==17888== Releasing lock... [2025-02-10 12:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:15:38] Production.INFO: 69 MB #Memory Used# [2025-02-10 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:16:04 [end_date_ymd] => 2025-02-10 12:16:04 [RateCDR] => 1 ) [2025-02-10 12:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:16:04' and `end` < '2025-02-10 12:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:16:22] Production.INFO: count ==5467 [2025-02-10 12:16:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:16:04 - End Time 2025-02-10 12:16:04 [2025-02-10 12:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444337', 'tblTempUsageDetail_20' ) start [2025-02-10 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444337', 'tblTempUsageDetail_20' ) end [2025-02-10 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444337', 'tblTempVendorCDR_20' ) start [2025-02-10 12:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444337', 'tblTempVendorCDR_20' ) end [2025-02-10 12:16:24] Production.INFO: ProcessCDR(1,14444337,1,1,2) [2025-02-10 12:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444337', 'tblTempUsageDetail_20' ) start [2025-02-10 12:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444337', 'tblTempUsageDetail_20' ) end [2025-02-10 12:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:16:29] Production.INFO: ==17959== Releasing lock... [2025-02-10 12:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:16:29] Production.INFO: 69 MB #Memory Used# [2025-02-10 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:17:05 [end_date_ymd] => 2025-02-10 12:17:05 [RateCDR] => 1 ) [2025-02-10 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:17:05' and `end` < '2025-02-10 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:17:27] Production.INFO: count ==5460 [2025-02-10 12:17:29] Production.ERROR: pbx CDR StartTime 2025-02-10 09:17:05 - End Time 2025-02-10 12:17:05 [2025-02-10 12:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444342', 'tblTempUsageDetail_20' ) start [2025-02-10 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444342', 'tblTempUsageDetail_20' ) end [2025-02-10 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444342', 'tblTempVendorCDR_20' ) start [2025-02-10 12:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444342', 'tblTempVendorCDR_20' ) end [2025-02-10 12:17:29] Production.INFO: ProcessCDR(1,14444342,1,1,2) [2025-02-10 12:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444342', 'tblTempUsageDetail_20' ) start [2025-02-10 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444342', 'tblTempUsageDetail_20' ) end [2025-02-10 12:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:17:34] Production.INFO: ==18030== Releasing lock... [2025-02-10 12:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:17:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:18:05 [end_date_ymd] => 2025-02-10 12:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:18:05' and `end` < '2025-02-10 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-10 12:18:26] Production.INFO: count ==5452 [2025-02-10 12:18:29] Production.ERROR: pbx CDR StartTime 2025-02-10 09:18:05 - End Time 2025-02-10 12:18:05 [2025-02-10 12:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444347', 'tblTempUsageDetail_20' ) start [2025-02-10 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444347', 'tblTempUsageDetail_20' ) end [2025-02-10 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444347', 'tblTempVendorCDR_20' ) start [2025-02-10 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444347', 'tblTempVendorCDR_20' ) end [2025-02-10 12:18:29] Production.INFO: ProcessCDR(1,14444347,1,1,2) [2025-02-10 12:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444347', 'tblTempUsageDetail_20' ) start [2025-02-10 12:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444347', 'tblTempUsageDetail_20' ) end [2025-02-10 12:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:18:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:18:34] Production.INFO: ==18114== Releasing lock... [2025-02-10 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:18:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:19:05 [end_date_ymd] => 2025-02-10 12:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:19:05' and `end` < '2025-02-10 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-10 12:19:22] Production.INFO: count ==5428 [2025-02-10 12:19:25] Production.ERROR: pbx CDR StartTime 2025-02-10 09:19:05 - End Time 2025-02-10 12:19:05 [2025-02-10 12:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444352', 'tblTempUsageDetail_20' ) start [2025-02-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444352', 'tblTempUsageDetail_20' ) end [2025-02-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444352', 'tblTempVendorCDR_20' ) start [2025-02-10 12:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444352', 'tblTempVendorCDR_20' ) end [2025-02-10 12:19:25] Production.INFO: ProcessCDR(1,14444352,1,1,2) [2025-02-10 12:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444352', 'tblTempUsageDetail_20' ) start [2025-02-10 12:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444352', 'tblTempUsageDetail_20' ) end [2025-02-10 12:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:19:30] Production.INFO: ==18187== Releasing lock... [2025-02-10 12:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:19:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:20:06 [end_date_ymd] => 2025-02-10 12:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 09:20:06' and `end` < '2025-02-10 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-10 12:20:22] Production.INFO: count ==5405 [2025-02-10 12:20:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:20:06 - End Time 2025-02-10 12:20:06 [2025-02-10 12:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444358', 'tblTempUsageDetail_20' ) start [2025-02-10 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444358', 'tblTempUsageDetail_20' ) end [2025-02-10 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444358', 'tblTempVendorCDR_20' ) start [2025-02-10 12:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444358', 'tblTempVendorCDR_20' ) end [2025-02-10 12:20:25] Production.INFO: ProcessCDR(1,14444358,1,1,2) [2025-02-10 12:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444358', 'tblTempUsageDetail_20' ) start [2025-02-10 12:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444358', 'tblTempUsageDetail_20' ) end [2025-02-10 12:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:20:30] Production.INFO: ==18259== Releasing lock... [2025-02-10 12:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:20:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:21:05 [end_date_ymd] => 2025-02-10 12:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:21:05' and `end` < '2025-02-10 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-10 12:21:19] Production.INFO: count ==5386 [2025-02-10 12:21:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:21:05 - End Time 2025-02-10 12:21:05 [2025-02-10 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444363', 'tblTempUsageDetail_20' ) start [2025-02-10 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444363', 'tblTempUsageDetail_20' ) end [2025-02-10 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444363', 'tblTempVendorCDR_20' ) start [2025-02-10 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444363', 'tblTempVendorCDR_20' ) end [2025-02-10 12:21:21] Production.INFO: ProcessCDR(1,14444363,1,1,2) [2025-02-10 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444363', 'tblTempUsageDetail_20' ) start [2025-02-10 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444363', 'tblTempUsageDetail_20' ) end [2025-02-10 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:21:26] Production.INFO: ==18333== Releasing lock... [2025-02-10 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:21:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:22:05 [end_date_ymd] => 2025-02-10 12:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:22:05' and `end` < '2025-02-10 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-10 12:22:20] Production.INFO: count ==5356 [2025-02-10 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-10 09:22:05 - End Time 2025-02-10 12:22:05 [2025-02-10 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444368', 'tblTempUsageDetail_20' ) start [2025-02-10 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444368', 'tblTempUsageDetail_20' ) end [2025-02-10 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444368', 'tblTempVendorCDR_20' ) start [2025-02-10 12:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444368', 'tblTempVendorCDR_20' ) end [2025-02-10 12:22:23] Production.INFO: ProcessCDR(1,14444368,1,1,2) [2025-02-10 12:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444368', 'tblTempUsageDetail_20' ) start [2025-02-10 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444368', 'tblTempUsageDetail_20' ) end [2025-02-10 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:22:28] Production.INFO: ==18406== Releasing lock... [2025-02-10 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:22:28] Production.INFO: 68 MB #Memory Used# [2025-02-10 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:23:05 [end_date_ymd] => 2025-02-10 12:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:23:05' and `end` < '2025-02-10 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-10 12:23:20] Production.INFO: count ==5359 [2025-02-10 12:23:22] Production.ERROR: pbx CDR StartTime 2025-02-10 09:23:05 - End Time 2025-02-10 12:23:05 [2025-02-10 12:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444373', 'tblTempUsageDetail_20' ) start [2025-02-10 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444373', 'tblTempUsageDetail_20' ) end [2025-02-10 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444373', 'tblTempVendorCDR_20' ) start [2025-02-10 12:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444373', 'tblTempVendorCDR_20' ) end [2025-02-10 12:23:22] Production.INFO: ProcessCDR(1,14444373,1,1,2) [2025-02-10 12:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444373', 'tblTempUsageDetail_20' ) start [2025-02-10 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444373', 'tblTempUsageDetail_20' ) end [2025-02-10 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:23:27] Production.INFO: ==18481== Releasing lock... [2025-02-10 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:23:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:24:05 [end_date_ymd] => 2025-02-10 12:24:05 [RateCDR] => 1 ) [2025-02-10 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:24:05' and `end` < '2025-02-10 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:24:33] Production.INFO: count ==5374 [2025-02-10 12:24:36] Production.ERROR: pbx CDR StartTime 2025-02-10 09:24:05 - End Time 2025-02-10 12:24:05 [2025-02-10 12:24:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444378', 'tblTempUsageDetail_20' ) start [2025-02-10 12:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444378', 'tblTempUsageDetail_20' ) end [2025-02-10 12:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444378', 'tblTempVendorCDR_20' ) start [2025-02-10 12:24:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444378', 'tblTempVendorCDR_20' ) end [2025-02-10 12:24:36] Production.INFO: ProcessCDR(1,14444378,1,1,2) [2025-02-10 12:24:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:24:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:24:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444378', 'tblTempUsageDetail_20' ) start [2025-02-10 12:24:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444378', 'tblTempUsageDetail_20' ) end [2025-02-10 12:24:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:24:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:24:41] Production.INFO: ==18556== Releasing lock... [2025-02-10 12:24:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:24:41] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:25:06 [end_date_ymd] => 2025-02-10 12:25:06 [RateCDR] => 1 ) [2025-02-10 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:25:06' and `end` < '2025-02-10 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:25:30] Production.INFO: count ==5367 [2025-02-10 12:25:33] Production.ERROR: pbx CDR StartTime 2025-02-10 09:25:06 - End Time 2025-02-10 12:25:06 [2025-02-10 12:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444383', 'tblTempUsageDetail_20' ) start [2025-02-10 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444383', 'tblTempUsageDetail_20' ) end [2025-02-10 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444383', 'tblTempVendorCDR_20' ) start [2025-02-10 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444383', 'tblTempVendorCDR_20' ) end [2025-02-10 12:25:33] Production.INFO: ProcessCDR(1,14444383,1,1,2) [2025-02-10 12:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444383', 'tblTempUsageDetail_20' ) start [2025-02-10 12:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444383', 'tblTempUsageDetail_20' ) end [2025-02-10 12:25:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:25:38] Production.INFO: ==18627== Releasing lock... [2025-02-10 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:25:38] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:26:05 [end_date_ymd] => 2025-02-10 12:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:26:05' and `end` < '2025-02-10 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-10 12:26:28] Production.INFO: count ==5368 [2025-02-10 12:26:30] Production.ERROR: pbx CDR StartTime 2025-02-10 09:26:05 - End Time 2025-02-10 12:26:05 [2025-02-10 12:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444388', 'tblTempUsageDetail_20' ) start [2025-02-10 12:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444388', 'tblTempUsageDetail_20' ) end [2025-02-10 12:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444388', 'tblTempVendorCDR_20' ) start [2025-02-10 12:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444388', 'tblTempVendorCDR_20' ) end [2025-02-10 12:26:30] Production.INFO: ProcessCDR(1,14444388,1,1,2) [2025-02-10 12:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444388', 'tblTempUsageDetail_20' ) start [2025-02-10 12:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444388', 'tblTempUsageDetail_20' ) end [2025-02-10 12:26:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:26:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:26:35] Production.INFO: ==18739== Releasing lock... [2025-02-10 12:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:26:35] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:27:05 [end_date_ymd] => 2025-02-10 12:27:05 [RateCDR] => 1 ) [2025-02-10 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:27:05' and `end` < '2025-02-10 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:27:25] Production.INFO: count ==5368 [2025-02-10 12:27:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:27:05 - End Time 2025-02-10 12:27:05 [2025-02-10 12:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444393', 'tblTempUsageDetail_20' ) start [2025-02-10 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444393', 'tblTempUsageDetail_20' ) end [2025-02-10 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444393', 'tblTempVendorCDR_20' ) start [2025-02-10 12:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444393', 'tblTempVendorCDR_20' ) end [2025-02-10 12:27:27] Production.INFO: ProcessCDR(1,14444393,1,1,2) [2025-02-10 12:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444393', 'tblTempUsageDetail_20' ) start [2025-02-10 12:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444393', 'tblTempUsageDetail_20' ) end [2025-02-10 12:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:27:32] Production.INFO: ==18813== Releasing lock... [2025-02-10 12:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:27:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:28:05 [end_date_ymd] => 2025-02-10 12:28:05 [RateCDR] => 1 ) [2025-02-10 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:28:05' and `end` < '2025-02-10 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:28:24] Production.INFO: count ==5383 [2025-02-10 12:28:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:28:05 - End Time 2025-02-10 12:28:05 [2025-02-10 12:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444398', 'tblTempUsageDetail_20' ) start [2025-02-10 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444398', 'tblTempUsageDetail_20' ) end [2025-02-10 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444398', 'tblTempVendorCDR_20' ) start [2025-02-10 12:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444398', 'tblTempVendorCDR_20' ) end [2025-02-10 12:28:27] Production.INFO: ProcessCDR(1,14444398,1,1,2) [2025-02-10 12:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444398', 'tblTempUsageDetail_20' ) start [2025-02-10 12:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444398', 'tblTempUsageDetail_20' ) end [2025-02-10 12:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:28:32] Production.INFO: ==18887== Releasing lock... [2025-02-10 12:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:28:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:29:05 [end_date_ymd] => 2025-02-10 12:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:29:05' and `end` < '2025-02-10 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-10 12:29:25] Production.INFO: count ==5377 [2025-02-10 12:29:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:29:05 - End Time 2025-02-10 12:29:05 [2025-02-10 12:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444403', 'tblTempUsageDetail_20' ) start [2025-02-10 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444403', 'tblTempUsageDetail_20' ) end [2025-02-10 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444403', 'tblTempVendorCDR_20' ) start [2025-02-10 12:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444403', 'tblTempVendorCDR_20' ) end [2025-02-10 12:29:27] Production.INFO: ProcessCDR(1,14444403,1,1,2) [2025-02-10 12:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444403', 'tblTempUsageDetail_20' ) start [2025-02-10 12:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444403', 'tblTempUsageDetail_20' ) end [2025-02-10 12:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:29:32] Production.INFO: ==18970== Releasing lock... [2025-02-10 12:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:29:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:30:05 [end_date_ymd] => 2025-02-10 12:30:05 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:30:05' and `end` < '2025-02-10 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:30:26] Production.INFO: count ==5362 [2025-02-10 12:30:28] Production.ERROR: pbx CDR StartTime 2025-02-10 09:30:05 - End Time 2025-02-10 12:30:05 [2025-02-10 12:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444409', 'tblTempUsageDetail_20' ) start [2025-02-10 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444409', 'tblTempUsageDetail_20' ) end [2025-02-10 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444409', 'tblTempVendorCDR_20' ) start [2025-02-10 12:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444409', 'tblTempVendorCDR_20' ) end [2025-02-10 12:30:29] Production.INFO: ProcessCDR(1,14444409,1,1,2) [2025-02-10 12:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444409', 'tblTempUsageDetail_20' ) start [2025-02-10 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444409', 'tblTempUsageDetail_20' ) end [2025-02-10 12:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:30:33] Production.INFO: ==19045== Releasing lock... [2025-02-10 12:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:30:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:31:04 [end_date_ymd] => 2025-02-10 12:31:04 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:31:04' and `end` < '2025-02-10 12: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-10 12:31:24] Production.INFO: count ==5388 [2025-02-10 12:31:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:31:04 - End Time 2025-02-10 12:31:04 [2025-02-10 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444410', 'tblTempUsageDetail_20' ) start [2025-02-10 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444410', 'tblTempUsageDetail_20' ) end [2025-02-10 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444410', 'tblTempVendorCDR_20' ) start [2025-02-10 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444410', 'tblTempVendorCDR_20' ) end [2025-02-10 12:31:26] Production.INFO: ProcessCDR(1,14444410,1,1,2) [2025-02-10 12:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444410', 'tblTempUsageDetail_20' ) start [2025-02-10 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444410', 'tblTempUsageDetail_20' ) end [2025-02-10 12:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:31:31] Production.INFO: ==19130== Releasing lock... [2025-02-10 12:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:31:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:32:05 [end_date_ymd] => 2025-02-10 12:32:05 [RateCDR] => 1 ) [2025-02-10 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:32:05' and `end` < '2025-02-10 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:32:26] Production.INFO: count ==5399 [2025-02-10 12:32:29] Production.ERROR: pbx CDR StartTime 2025-02-10 09:32:05 - End Time 2025-02-10 12:32:05 [2025-02-10 12:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444419', 'tblTempUsageDetail_20' ) start [2025-02-10 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444419', 'tblTempUsageDetail_20' ) end [2025-02-10 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444419', 'tblTempVendorCDR_20' ) start [2025-02-10 12:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444419', 'tblTempVendorCDR_20' ) end [2025-02-10 12:32:29] Production.INFO: ProcessCDR(1,14444419,1,1,2) [2025-02-10 12:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444419', 'tblTempUsageDetail_20' ) start [2025-02-10 12:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444419', 'tblTempUsageDetail_20' ) end [2025-02-10 12:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:32:34] Production.INFO: ==19214== Releasing lock... [2025-02-10 12:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:32:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:33:05 [end_date_ymd] => 2025-02-10 12:33:05 [RateCDR] => 1 ) [2025-02-10 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:33:05' and `end` < '2025-02-10 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:33:24] Production.INFO: count ==5391 [2025-02-10 12:33:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:33:05 - End Time 2025-02-10 12:33:05 [2025-02-10 12:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444424', 'tblTempUsageDetail_20' ) start [2025-02-10 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444424', 'tblTempUsageDetail_20' ) end [2025-02-10 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444424', 'tblTempVendorCDR_20' ) start [2025-02-10 12:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444424', 'tblTempVendorCDR_20' ) end [2025-02-10 12:33:27] Production.INFO: ProcessCDR(1,14444424,1,1,2) [2025-02-10 12:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444424', 'tblTempUsageDetail_20' ) start [2025-02-10 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444424', 'tblTempUsageDetail_20' ) end [2025-02-10 12:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:33:32] Production.INFO: ==19293== Releasing lock... [2025-02-10 12:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:33:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:34:05 [end_date_ymd] => 2025-02-10 12:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:34:05' and `end` < '2025-02-10 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-10 12:34:24] Production.INFO: count ==5388 [2025-02-10 12:34:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:34:05 - End Time 2025-02-10 12:34:05 [2025-02-10 12:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444429', 'tblTempUsageDetail_20' ) start [2025-02-10 12:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444429', 'tblTempUsageDetail_20' ) end [2025-02-10 12:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444429', 'tblTempVendorCDR_20' ) start [2025-02-10 12:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444429', 'tblTempVendorCDR_20' ) end [2025-02-10 12:34:26] Production.INFO: ProcessCDR(1,14444429,1,1,2) [2025-02-10 12:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444429', 'tblTempUsageDetail_20' ) start [2025-02-10 12:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444429', 'tblTempUsageDetail_20' ) end [2025-02-10 12:34:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:34:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:34:31] Production.INFO: ==19379== Releasing lock... [2025-02-10 12:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:34:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:35:05 [end_date_ymd] => 2025-02-10 12:35:05 [RateCDR] => 1 ) [2025-02-10 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:35:05' and `end` < '2025-02-10 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:35:25] Production.INFO: count ==5392 [2025-02-10 12:35:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:35:05 - End Time 2025-02-10 12:35:05 [2025-02-10 12:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444434', 'tblTempUsageDetail_20' ) start [2025-02-10 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444434', 'tblTempUsageDetail_20' ) end [2025-02-10 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444434', 'tblTempVendorCDR_20' ) start [2025-02-10 12:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444434', 'tblTempVendorCDR_20' ) end [2025-02-10 12:35:27] Production.INFO: ProcessCDR(1,14444434,1,1,2) [2025-02-10 12:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444434', 'tblTempUsageDetail_20' ) start [2025-02-10 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444434', 'tblTempUsageDetail_20' ) end [2025-02-10 12:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:35:32] Production.INFO: ==19471== Releasing lock... [2025-02-10 12:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:35:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:36:05 [end_date_ymd] => 2025-02-10 12:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:36:05' and `end` < '2025-02-10 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-10 12:36:25] Production.INFO: count ==5390 [2025-02-10 12:36:28] Production.ERROR: pbx CDR StartTime 2025-02-10 09:36:05 - End Time 2025-02-10 12:36:05 [2025-02-10 12:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444439', 'tblTempUsageDetail_20' ) start [2025-02-10 12:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444439', 'tblTempUsageDetail_20' ) end [2025-02-10 12:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444439', 'tblTempVendorCDR_20' ) start [2025-02-10 12:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444439', 'tblTempVendorCDR_20' ) end [2025-02-10 12:36:28] Production.INFO: ProcessCDR(1,14444439,1,1,2) [2025-02-10 12:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444439', 'tblTempUsageDetail_20' ) start [2025-02-10 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444439', 'tblTempUsageDetail_20' ) end [2025-02-10 12:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:36:33] Production.INFO: ==19562== Releasing lock... [2025-02-10 12:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:36:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:37:04 [end_date_ymd] => 2025-02-10 12:37:04 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:37:04' and `end` < '2025-02-10 12: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-10 12:37:22] Production.INFO: count ==5384 [2025-02-10 12:37:25] Production.ERROR: pbx CDR StartTime 2025-02-10 09:37:04 - End Time 2025-02-10 12:37:04 [2025-02-10 12:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444444', 'tblTempUsageDetail_20' ) start [2025-02-10 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444444', 'tblTempUsageDetail_20' ) end [2025-02-10 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444444', 'tblTempVendorCDR_20' ) start [2025-02-10 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444444', 'tblTempVendorCDR_20' ) end [2025-02-10 12:37:25] Production.INFO: ProcessCDR(1,14444444,1,1,2) [2025-02-10 12:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444444', 'tblTempUsageDetail_20' ) start [2025-02-10 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444444', 'tblTempUsageDetail_20' ) end [2025-02-10 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:37:30] Production.INFO: ==19655== Releasing lock... [2025-02-10 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:37:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-10 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:38:06 [end_date_ymd] => 2025-02-10 12:38:06 [RateCDR] => 1 ) [2025-02-10 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:38:06' and `end` < '2025-02-10 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:38:20] Production.INFO: count ==5350 [2025-02-10 12:38:23] Production.ERROR: pbx CDR StartTime 2025-02-10 09:38:06 - End Time 2025-02-10 12:38:06 [2025-02-10 12:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444449', 'tblTempUsageDetail_20' ) start [2025-02-10 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444449', 'tblTempUsageDetail_20' ) end [2025-02-10 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444449', 'tblTempVendorCDR_20' ) start [2025-02-10 12:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444449', 'tblTempVendorCDR_20' ) end [2025-02-10 12:38:23] Production.INFO: ProcessCDR(1,14444449,1,1,2) [2025-02-10 12:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444449', 'tblTempUsageDetail_20' ) start [2025-02-10 12:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444449', 'tblTempUsageDetail_20' ) end [2025-02-10 12:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:38:28] Production.INFO: ==19749== Releasing lock... [2025-02-10 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:38:28] Production.INFO: 68 MB #Memory Used# [2025-02-10 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:39:04 [end_date_ymd] => 2025-02-10 12:39:04 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:39:04' and `end` < '2025-02-10 12: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-10 12:39:19] Production.INFO: count ==5316 [2025-02-10 12:39:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:39:04 - End Time 2025-02-10 12:39:04 [2025-02-10 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444454', 'tblTempUsageDetail_20' ) start [2025-02-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444454', 'tblTempUsageDetail_20' ) end [2025-02-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444454', 'tblTempVendorCDR_20' ) start [2025-02-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444454', 'tblTempVendorCDR_20' ) end [2025-02-10 12:39:21] Production.INFO: ProcessCDR(1,14444454,1,1,2) [2025-02-10 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444454', 'tblTempUsageDetail_20' ) start [2025-02-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444454', 'tblTempUsageDetail_20' ) end [2025-02-10 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:39:26] Production.INFO: ==19843== Releasing lock... [2025-02-10 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:39:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:40:06 [end_date_ymd] => 2025-02-10 12:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 09:40:06' and `end` < '2025-02-10 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-10 12:40:21] Production.INFO: count ==5302 [2025-02-10 12:40:23] Production.ERROR: pbx CDR StartTime 2025-02-10 09:40:06 - End Time 2025-02-10 12:40:06 [2025-02-10 12:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444460', 'tblTempUsageDetail_20' ) start [2025-02-10 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444460', 'tblTempUsageDetail_20' ) end [2025-02-10 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444460', 'tblTempVendorCDR_20' ) start [2025-02-10 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444460', 'tblTempVendorCDR_20' ) end [2025-02-10 12:40:23] Production.INFO: ProcessCDR(1,14444460,1,1,2) [2025-02-10 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444460', 'tblTempUsageDetail_20' ) start [2025-02-10 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444460', 'tblTempUsageDetail_20' ) end [2025-02-10 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:40:28] Production.INFO: ==19938== Releasing lock... [2025-02-10 12:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:40:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:41:05 [end_date_ymd] => 2025-02-10 12:41:05 [RateCDR] => 1 ) [2025-02-10 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:41:05' and `end` < '2025-02-10 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:41:33] Production.INFO: count ==5302 [2025-02-10 12:41:35] Production.ERROR: pbx CDR StartTime 2025-02-10 09:41:05 - End Time 2025-02-10 12:41:05 [2025-02-10 12:41:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444465', 'tblTempUsageDetail_20' ) start [2025-02-10 12:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444465', 'tblTempUsageDetail_20' ) end [2025-02-10 12:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444465', 'tblTempVendorCDR_20' ) start [2025-02-10 12:41:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444465', 'tblTempVendorCDR_20' ) end [2025-02-10 12:41:35] Production.INFO: ProcessCDR(1,14444465,1,1,2) [2025-02-10 12:41:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:41:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:41:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:41:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444465', 'tblTempUsageDetail_20' ) start [2025-02-10 12:41:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444465', 'tblTempUsageDetail_20' ) end [2025-02-10 12:41:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:41:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:41:40] Production.INFO: ==20074== Releasing lock... [2025-02-10 12:41:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:41:40] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:42:05 [end_date_ymd] => 2025-02-10 12:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:42:05' and `end` < '2025-02-10 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-10 12:42:25] Production.INFO: count ==5303 [2025-02-10 12:42:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:42:05 - End Time 2025-02-10 12:42:05 [2025-02-10 12:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444470', 'tblTempUsageDetail_20' ) start [2025-02-10 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444470', 'tblTempUsageDetail_20' ) end [2025-02-10 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444470', 'tblTempVendorCDR_20' ) start [2025-02-10 12:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444470', 'tblTempVendorCDR_20' ) end [2025-02-10 12:42:28] Production.INFO: ProcessCDR(1,14444470,1,1,2) [2025-02-10 12:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444470', 'tblTempUsageDetail_20' ) start [2025-02-10 12:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444470', 'tblTempUsageDetail_20' ) end [2025-02-10 12:42:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:42:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:42:32] Production.INFO: ==20165== Releasing lock... [2025-02-10 12:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:42:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:43:05 [end_date_ymd] => 2025-02-10 12:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:43:05' and `end` < '2025-02-10 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-10 12:43:23] Production.INFO: count ==5287 [2025-02-10 12:43:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:43:05 - End Time 2025-02-10 12:43:05 [2025-02-10 12:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444475', 'tblTempUsageDetail_20' ) start [2025-02-10 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444475', 'tblTempUsageDetail_20' ) end [2025-02-10 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444475', 'tblTempVendorCDR_20' ) start [2025-02-10 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444475', 'tblTempVendorCDR_20' ) end [2025-02-10 12:43:26] Production.INFO: ProcessCDR(1,14444475,1,1,2) [2025-02-10 12:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444475', 'tblTempUsageDetail_20' ) start [2025-02-10 12:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444475', 'tblTempUsageDetail_20' ) end [2025-02-10 12:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:43:30] Production.INFO: ==20259== Releasing lock... [2025-02-10 12:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:43:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:44:05 [end_date_ymd] => 2025-02-10 12:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:44:05' and `end` < '2025-02-10 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-10 12:44:22] Production.INFO: count ==5277 [2025-02-10 12:44:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:44:05 - End Time 2025-02-10 12:44:05 [2025-02-10 12:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444480', 'tblTempUsageDetail_20' ) start [2025-02-10 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444480', 'tblTempUsageDetail_20' ) end [2025-02-10 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444480', 'tblTempVendorCDR_20' ) start [2025-02-10 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444480', 'tblTempVendorCDR_20' ) end [2025-02-10 12:44:25] Production.INFO: ProcessCDR(1,14444480,1,1,2) [2025-02-10 12:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444480', 'tblTempUsageDetail_20' ) start [2025-02-10 12:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444480', 'tblTempUsageDetail_20' ) end [2025-02-10 12:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:44:29] Production.INFO: ==20351== Releasing lock... [2025-02-10 12:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:44:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:45:05 [end_date_ymd] => 2025-02-10 12:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:45:05' and `end` < '2025-02-10 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-10 12:45:33] Production.INFO: count ==5282 [2025-02-10 12:45:35] Production.ERROR: pbx CDR StartTime 2025-02-10 09:45:05 - End Time 2025-02-10 12:45:05 [2025-02-10 12:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444485', 'tblTempUsageDetail_20' ) start [2025-02-10 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444485', 'tblTempUsageDetail_20' ) end [2025-02-10 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444485', 'tblTempVendorCDR_20' ) start [2025-02-10 12:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444485', 'tblTempVendorCDR_20' ) end [2025-02-10 12:45:35] Production.INFO: ProcessCDR(1,14444485,1,1,2) [2025-02-10 12:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444485', 'tblTempUsageDetail_20' ) start [2025-02-10 12:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444485', 'tblTempUsageDetail_20' ) end [2025-02-10 12:45:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:45:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:45:40] Production.INFO: ==20446== Releasing lock... [2025-02-10 12:45:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:45:40] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:46:05 [end_date_ymd] => 2025-02-10 12:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:46:05' and `end` < '2025-02-10 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-10 12:46:32] Production.INFO: count ==5281 [2025-02-10 12:46:34] Production.ERROR: pbx CDR StartTime 2025-02-10 09:46:05 - End Time 2025-02-10 12:46:05 [2025-02-10 12:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444490', 'tblTempUsageDetail_20' ) start [2025-02-10 12:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444490', 'tblTempUsageDetail_20' ) end [2025-02-10 12:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444490', 'tblTempVendorCDR_20' ) start [2025-02-10 12:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444490', 'tblTempVendorCDR_20' ) end [2025-02-10 12:46:34] Production.INFO: ProcessCDR(1,14444490,1,1,2) [2025-02-10 12:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444490', 'tblTempUsageDetail_20' ) start [2025-02-10 12:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444490', 'tblTempUsageDetail_20' ) end [2025-02-10 12:46:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:46:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:46:39] Production.INFO: ==20538== Releasing lock... [2025-02-10 12:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:46:39] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:47:05 [end_date_ymd] => 2025-02-10 12:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:47:05' and `end` < '2025-02-10 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-10 12:47:30] Production.INFO: count ==5280 [2025-02-10 12:47:32] Production.ERROR: pbx CDR StartTime 2025-02-10 09:47:05 - End Time 2025-02-10 12:47:05 [2025-02-10 12:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444495', 'tblTempUsageDetail_20' ) start [2025-02-10 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444495', 'tblTempUsageDetail_20' ) end [2025-02-10 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444495', 'tblTempVendorCDR_20' ) start [2025-02-10 12:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444495', 'tblTempVendorCDR_20' ) end [2025-02-10 12:47:33] Production.INFO: ProcessCDR(1,14444495,1,1,2) [2025-02-10 12:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444495', 'tblTempUsageDetail_20' ) start [2025-02-10 12:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444495', 'tblTempUsageDetail_20' ) end [2025-02-10 12:47:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:47:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:47:37] Production.INFO: ==20633== Releasing lock... [2025-02-10 12:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:47:37] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:48:05 [end_date_ymd] => 2025-02-10 12:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:48:05' and `end` < '2025-02-10 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-10 12:48:26] Production.INFO: count ==5285 [2025-02-10 12:48:29] Production.ERROR: pbx CDR StartTime 2025-02-10 09:48:05 - End Time 2025-02-10 12:48:05 [2025-02-10 12:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444500', 'tblTempUsageDetail_20' ) start [2025-02-10 12:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444500', 'tblTempUsageDetail_20' ) end [2025-02-10 12:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444500', 'tblTempVendorCDR_20' ) start [2025-02-10 12:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444500', 'tblTempVendorCDR_20' ) end [2025-02-10 12:48:29] Production.INFO: ProcessCDR(1,14444500,1,1,2) [2025-02-10 12:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444500', 'tblTempUsageDetail_20' ) start [2025-02-10 12:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444500', 'tblTempUsageDetail_20' ) end [2025-02-10 12:48:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:48:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:48:34] Production.INFO: ==20729== Releasing lock... [2025-02-10 12:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:48:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:49:04 [end_date_ymd] => 2025-02-10 12:49:04 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:49:04' and `end` < '2025-02-10 12: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-10 12:49:24] Production.INFO: count ==5283 [2025-02-10 12:49:27] Production.ERROR: pbx CDR StartTime 2025-02-10 09:49:04 - End Time 2025-02-10 12:49:04 [2025-02-10 12:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444505', 'tblTempUsageDetail_20' ) start [2025-02-10 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444505', 'tblTempUsageDetail_20' ) end [2025-02-10 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444505', 'tblTempVendorCDR_20' ) start [2025-02-10 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444505', 'tblTempVendorCDR_20' ) end [2025-02-10 12:49:27] Production.INFO: ProcessCDR(1,14444505,1,1,2) [2025-02-10 12:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444505', 'tblTempUsageDetail_20' ) start [2025-02-10 12:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444505', 'tblTempUsageDetail_20' ) end [2025-02-10 12:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:49:32] Production.INFO: ==20826== Releasing lock... [2025-02-10 12:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:49:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:50:05 [end_date_ymd] => 2025-02-10 12:50:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:50:05' and `end` < '2025-02-10 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-10 12:50:21] Production.INFO: count ==5283 [2025-02-10 12:50:23] Production.ERROR: pbx CDR StartTime 2025-02-10 09:50:05 - End Time 2025-02-10 12:50:05 [2025-02-10 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444511', 'tblTempUsageDetail_20' ) start [2025-02-10 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444511', 'tblTempUsageDetail_20' ) end [2025-02-10 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444511', 'tblTempVendorCDR_20' ) start [2025-02-10 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444511', 'tblTempVendorCDR_20' ) end [2025-02-10 12:50:24] Production.INFO: ProcessCDR(1,14444511,1,1,2) [2025-02-10 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444511', 'tblTempUsageDetail_20' ) start [2025-02-10 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444511', 'tblTempUsageDetail_20' ) end [2025-02-10 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:50:28] Production.INFO: ==20919== Releasing lock... [2025-02-10 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:50:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:51:05 [end_date_ymd] => 2025-02-10 12:51:05 [RateCDR] => 1 ) [2025-02-10 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:51:05' and `end` < '2025-02-10 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-10 12:51:19] Production.INFO: count ==5244 [2025-02-10 12:51:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:51:05 - End Time 2025-02-10 12:51:05 [2025-02-10 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444516', 'tblTempUsageDetail_20' ) start [2025-02-10 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444516', 'tblTempUsageDetail_20' ) end [2025-02-10 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444516', 'tblTempVendorCDR_20' ) start [2025-02-10 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444516', 'tblTempVendorCDR_20' ) end [2025-02-10 12:51:22] Production.INFO: ProcessCDR(1,14444516,1,1,2) [2025-02-10 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444516', 'tblTempUsageDetail_20' ) start [2025-02-10 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444516', 'tblTempUsageDetail_20' ) end [2025-02-10 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:51:27] Production.INFO: ==21017== Releasing lock... [2025-02-10 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:51:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:52:05 [end_date_ymd] => 2025-02-10 12:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:52:05' and `end` < '2025-02-10 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-10 12:52:34] Production.INFO: count ==5232 [2025-02-10 12:52:36] Production.ERROR: pbx CDR StartTime 2025-02-10 09:52:05 - End Time 2025-02-10 12:52:05 [2025-02-10 12:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444521', 'tblTempUsageDetail_20' ) start [2025-02-10 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444521', 'tblTempUsageDetail_20' ) end [2025-02-10 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444521', 'tblTempVendorCDR_20' ) start [2025-02-10 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444521', 'tblTempVendorCDR_20' ) end [2025-02-10 12:52:36] Production.INFO: ProcessCDR(1,14444521,1,1,2) [2025-02-10 12:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444521', 'tblTempUsageDetail_20' ) start [2025-02-10 12:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444521', 'tblTempUsageDetail_20' ) end [2025-02-10 12:52:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:52:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:52:42] Production.INFO: ==21114== Releasing lock... [2025-02-10 12:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:52:42] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:53:05 [end_date_ymd] => 2025-02-10 12:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:53:05' and `end` < '2025-02-10 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-10 12:53:26] Production.INFO: count ==5232 [2025-02-10 12:53:28] Production.ERROR: pbx CDR StartTime 2025-02-10 09:53:05 - End Time 2025-02-10 12:53:05 [2025-02-10 12:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444526', 'tblTempUsageDetail_20' ) start [2025-02-10 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444526', 'tblTempUsageDetail_20' ) end [2025-02-10 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444526', 'tblTempVendorCDR_20' ) start [2025-02-10 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444526', 'tblTempVendorCDR_20' ) end [2025-02-10 12:53:28] Production.INFO: ProcessCDR(1,14444526,1,1,2) [2025-02-10 12:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444526', 'tblTempUsageDetail_20' ) start [2025-02-10 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444526', 'tblTempUsageDetail_20' ) end [2025-02-10 12:53:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:53:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:53:33] Production.INFO: ==21201== Releasing lock... [2025-02-10 12:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:53:33] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:54:05 [end_date_ymd] => 2025-02-10 12:54:05 [RateCDR] => 1 ) [2025-02-10 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:54:05' and `end` < '2025-02-10 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:54:23] Production.INFO: count ==5221 [2025-02-10 12:54:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:54:05 - End Time 2025-02-10 12:54:05 [2025-02-10 12:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444531', 'tblTempUsageDetail_20' ) start [2025-02-10 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444531', 'tblTempUsageDetail_20' ) end [2025-02-10 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444531', 'tblTempVendorCDR_20' ) start [2025-02-10 12:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444531', 'tblTempVendorCDR_20' ) end [2025-02-10 12:54:26] Production.INFO: ProcessCDR(1,14444531,1,1,2) [2025-02-10 12:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444531', 'tblTempUsageDetail_20' ) start [2025-02-10 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444531', 'tblTempUsageDetail_20' ) end [2025-02-10 12:54:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:54:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:54:31] Production.INFO: ==21321== Releasing lock... [2025-02-10 12:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:54:31] Production.INFO: 67 MB #Memory Used# [2025-02-10 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:55:05 [end_date_ymd] => 2025-02-10 12:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:55:05' and `end` < '2025-02-10 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-10 12:55:20] Production.INFO: count ==5203 [2025-02-10 12:55:22] Production.ERROR: pbx CDR StartTime 2025-02-10 09:55:05 - End Time 2025-02-10 12:55:05 [2025-02-10 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444536', 'tblTempUsageDetail_20' ) start [2025-02-10 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444536', 'tblTempUsageDetail_20' ) end [2025-02-10 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444536', 'tblTempVendorCDR_20' ) start [2025-02-10 12:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444536', 'tblTempVendorCDR_20' ) end [2025-02-10 12:55:23] Production.INFO: ProcessCDR(1,14444536,1,1,2) [2025-02-10 12:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444536', 'tblTempUsageDetail_20' ) start [2025-02-10 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444536', 'tblTempUsageDetail_20' ) end [2025-02-10 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:55:27] Production.INFO: ==21415== Releasing lock... [2025-02-10 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:55:27] Production.INFO: 67 MB #Memory Used# [2025-02-10 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:56:04 [end_date_ymd] => 2025-02-10 12:56:04 [RateCDR] => 1 ) [2025-02-10 12:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:56:04' and `end` < '2025-02-10 12:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:56:19] Production.INFO: count ==5203 [2025-02-10 12:56:21] Production.ERROR: pbx CDR StartTime 2025-02-10 09:56:04 - End Time 2025-02-10 12:56:04 [2025-02-10 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444541', 'tblTempUsageDetail_20' ) start [2025-02-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444541', 'tblTempUsageDetail_20' ) end [2025-02-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444541', 'tblTempVendorCDR_20' ) start [2025-02-10 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444541', 'tblTempVendorCDR_20' ) end [2025-02-10 12:56:22] Production.INFO: ProcessCDR(1,14444541,1,1,2) [2025-02-10 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444541', 'tblTempUsageDetail_20' ) start [2025-02-10 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444541', 'tblTempUsageDetail_20' ) end [2025-02-10 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:56:26] Production.INFO: ==21507== Releasing lock... [2025-02-10 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:56:26] Production.INFO: 67 MB #Memory Used# [2025-02-10 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:57:05 [end_date_ymd] => 2025-02-10 12:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 09:57:05' and `end` < '2025-02-10 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-10 12:57:20] Production.INFO: count ==5194 [2025-02-10 12:57:22] Production.ERROR: pbx CDR StartTime 2025-02-10 09:57:05 - End Time 2025-02-10 12:57:05 [2025-02-10 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444546', 'tblTempUsageDetail_20' ) start [2025-02-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444546', 'tblTempUsageDetail_20' ) end [2025-02-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444546', 'tblTempVendorCDR_20' ) start [2025-02-10 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444546', 'tblTempVendorCDR_20' ) end [2025-02-10 12:57:22] Production.INFO: ProcessCDR(1,14444546,1,1,2) [2025-02-10 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444546', 'tblTempUsageDetail_20' ) start [2025-02-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444546', 'tblTempUsageDetail_20' ) end [2025-02-10 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:57:26] Production.INFO: ==21642== Releasing lock... [2025-02-10 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:57:26] Production.INFO: 67 MB #Memory Used# [2025-02-10 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:58:04 [end_date_ymd] => 2025-02-10 12:58:04 [RateCDR] => 1 ) [2025-02-10 12: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-10 09:58:04' and `end` < '2025-02-10 12: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-10 12:58:22] Production.INFO: count ==5190 [2025-02-10 12:58:24] Production.ERROR: pbx CDR StartTime 2025-02-10 09:58:04 - End Time 2025-02-10 12:58:04 [2025-02-10 12:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444551', 'tblTempUsageDetail_20' ) start [2025-02-10 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444551', 'tblTempUsageDetail_20' ) end [2025-02-10 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444551', 'tblTempVendorCDR_20' ) start [2025-02-10 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444551', 'tblTempVendorCDR_20' ) end [2025-02-10 12:58:25] Production.INFO: ProcessCDR(1,14444551,1,1,2) [2025-02-10 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444551', 'tblTempUsageDetail_20' ) start [2025-02-10 12:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444551', 'tblTempUsageDetail_20' ) end [2025-02-10 12:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:58:28] Production.INFO: ==21734== Releasing lock... [2025-02-10 12:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:58:28] Production.INFO: 67 MB #Memory Used# [2025-02-10 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 09:59:04 [end_date_ymd] => 2025-02-10 12:59:04 [RateCDR] => 1 ) [2025-02-10 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 09:59:04' and `end` < '2025-02-10 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 12:59:23] Production.INFO: count ==5208 [2025-02-10 12:59:26] Production.ERROR: pbx CDR StartTime 2025-02-10 09:59:04 - End Time 2025-02-10 12:59:04 [2025-02-10 12:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444556', 'tblTempUsageDetail_20' ) start [2025-02-10 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444556', 'tblTempUsageDetail_20' ) end [2025-02-10 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444556', 'tblTempVendorCDR_20' ) start [2025-02-10 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444556', 'tblTempVendorCDR_20' ) end [2025-02-10 12:59:26] Production.INFO: ProcessCDR(1,14444556,1,1,2) [2025-02-10 12:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 12:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 12:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444556', 'tblTempUsageDetail_20' ) start [2025-02-10 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444556', 'tblTempUsageDetail_20' ) end [2025-02-10 12:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 12:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 12:59:31] Production.INFO: ==21824== Releasing lock... [2025-02-10 12:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 12:59:31] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:00:06 [end_date_ymd] => 2025-02-10 13:00:06 [RateCDR] => 1 ) [2025-02-10 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:00:06' and `end` < '2025-02-10 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:00:28] Production.INFO: count ==5218 [2025-02-10 13:00:30] Production.ERROR: pbx CDR StartTime 2025-02-10 10:00:06 - End Time 2025-02-10 13:00:06 [2025-02-10 13:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444561', 'tblTempUsageDetail_20' ) start [2025-02-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444561', 'tblTempUsageDetail_20' ) end [2025-02-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444561', 'tblTempVendorCDR_20' ) start [2025-02-10 13:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444561', 'tblTempVendorCDR_20' ) end [2025-02-10 13:00:31] Production.INFO: ProcessCDR(1,14444561,1,1,2) [2025-02-10 13:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444561', 'tblTempUsageDetail_20' ) start [2025-02-10 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444561', 'tblTempUsageDetail_20' ) end [2025-02-10 13:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:00:35] Production.INFO: ==21920== Releasing lock... [2025-02-10 13:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:00:35] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:01:05 [end_date_ymd] => 2025-02-10 13:01:05 [RateCDR] => 1 ) [2025-02-10 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:01:05' and `end` < '2025-02-10 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:01:24] Production.INFO: count ==5208 [2025-02-10 13:01:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:01:05 - End Time 2025-02-10 13:01:05 [2025-02-10 13:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444567', 'tblTempUsageDetail_20' ) start [2025-02-10 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444567', 'tblTempUsageDetail_20' ) end [2025-02-10 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444567', 'tblTempVendorCDR_20' ) start [2025-02-10 13:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444567', 'tblTempVendorCDR_20' ) end [2025-02-10 13:01:27] Production.INFO: ProcessCDR(1,14444567,1,1,2) [2025-02-10 13:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444567', 'tblTempUsageDetail_20' ) start [2025-02-10 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444567', 'tblTempUsageDetail_20' ) end [2025-02-10 13:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:01:31] Production.INFO: ==22028== Releasing lock... [2025-02-10 13:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:01:31] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:02:05 [end_date_ymd] => 2025-02-10 13:02:05 [RateCDR] => 1 ) [2025-02-10 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:02:05' and `end` < '2025-02-10 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:02:23] Production.INFO: count ==5216 [2025-02-10 13:02:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:02:05 - End Time 2025-02-10 13:02:05 [2025-02-10 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444572', 'tblTempUsageDetail_20' ) start [2025-02-10 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444572', 'tblTempUsageDetail_20' ) end [2025-02-10 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444572', 'tblTempVendorCDR_20' ) start [2025-02-10 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444572', 'tblTempVendorCDR_20' ) end [2025-02-10 13:02:26] Production.INFO: ProcessCDR(1,14444572,1,1,2) [2025-02-10 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444572', 'tblTempUsageDetail_20' ) start [2025-02-10 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444572', 'tblTempUsageDetail_20' ) end [2025-02-10 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:02:30] Production.INFO: ==22122== Releasing lock... [2025-02-10 13:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:02:30] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:03:05 [end_date_ymd] => 2025-02-10 13:03:05 [RateCDR] => 1 ) [2025-02-10 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:03:05' and `end` < '2025-02-10 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:03:23] Production.INFO: count ==5207 [2025-02-10 13:03:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:03:05 - End Time 2025-02-10 13:03:05 [2025-02-10 13:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444577', 'tblTempUsageDetail_20' ) start [2025-02-10 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444577', 'tblTempUsageDetail_20' ) end [2025-02-10 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444577', 'tblTempVendorCDR_20' ) start [2025-02-10 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444577', 'tblTempVendorCDR_20' ) end [2025-02-10 13:03:26] Production.INFO: ProcessCDR(1,14444577,1,1,2) [2025-02-10 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444577', 'tblTempUsageDetail_20' ) start [2025-02-10 13:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444577', 'tblTempUsageDetail_20' ) end [2025-02-10 13:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:03:30] Production.INFO: ==22209== Releasing lock... [2025-02-10 13:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:03:30] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:04:05 [end_date_ymd] => 2025-02-10 13:04:05 [RateCDR] => 1 ) [2025-02-10 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:04:05' and `end` < '2025-02-10 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:04:19] Production.INFO: count ==5184 [2025-02-10 13:04:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:04:05 - End Time 2025-02-10 13:04:05 [2025-02-10 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444582', 'tblTempUsageDetail_20' ) start [2025-02-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444582', 'tblTempUsageDetail_20' ) end [2025-02-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444582', 'tblTempVendorCDR_20' ) start [2025-02-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444582', 'tblTempVendorCDR_20' ) end [2025-02-10 13:04:21] Production.INFO: ProcessCDR(1,14444582,1,1,2) [2025-02-10 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444582', 'tblTempUsageDetail_20' ) start [2025-02-10 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444582', 'tblTempUsageDetail_20' ) end [2025-02-10 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:04:26] Production.INFO: ==22300== Releasing lock... [2025-02-10 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:04:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:05:04 [end_date_ymd] => 2025-02-10 13:05:04 [RateCDR] => 1 ) [2025-02-10 13:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:05:04' and `end` < '2025-02-10 13:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:05:27] Production.INFO: count ==5184 [2025-02-10 13:05:29] Production.ERROR: pbx CDR StartTime 2025-02-10 10:05:04 - End Time 2025-02-10 13:05:04 [2025-02-10 13:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444587', 'tblTempUsageDetail_20' ) start [2025-02-10 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444587', 'tblTempUsageDetail_20' ) end [2025-02-10 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444587', 'tblTempVendorCDR_20' ) start [2025-02-10 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444587', 'tblTempVendorCDR_20' ) end [2025-02-10 13:05:30] Production.INFO: ProcessCDR(1,14444587,1,1,2) [2025-02-10 13:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444587', 'tblTempUsageDetail_20' ) start [2025-02-10 13:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444587', 'tblTempUsageDetail_20' ) end [2025-02-10 13:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:05:34] Production.INFO: ==22385== Releasing lock... [2025-02-10 13:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:05:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:06:05 [end_date_ymd] => 2025-02-10 13:06:05 [RateCDR] => 1 ) [2025-02-10 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:06:05' and `end` < '2025-02-10 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:06:24] Production.INFO: count ==5187 [2025-02-10 13:06:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:06:05 - End Time 2025-02-10 13:06:05 [2025-02-10 13:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444592', 'tblTempUsageDetail_20' ) start [2025-02-10 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444592', 'tblTempUsageDetail_20' ) end [2025-02-10 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444592', 'tblTempVendorCDR_20' ) start [2025-02-10 13:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444592', 'tblTempVendorCDR_20' ) end [2025-02-10 13:06:27] Production.INFO: ProcessCDR(1,14444592,1,1,2) [2025-02-10 13:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444592', 'tblTempUsageDetail_20' ) start [2025-02-10 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444592', 'tblTempUsageDetail_20' ) end [2025-02-10 13:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:06:31] Production.INFO: ==22482== Releasing lock... [2025-02-10 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:06:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:07:05 [end_date_ymd] => 2025-02-10 13:07:05 [RateCDR] => 1 ) [2025-02-10 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:07:05' and `end` < '2025-02-10 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:07:31] Production.INFO: count ==5185 [2025-02-10 13:07:33] Production.ERROR: pbx CDR StartTime 2025-02-10 10:07:05 - End Time 2025-02-10 13:07:05 [2025-02-10 13:07:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:07:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444597', 'tblTempUsageDetail_20' ) start [2025-02-10 13:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444597', 'tblTempUsageDetail_20' ) end [2025-02-10 13:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444597', 'tblTempVendorCDR_20' ) start [2025-02-10 13:07:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444597', 'tblTempVendorCDR_20' ) end [2025-02-10 13:07:34] Production.INFO: ProcessCDR(1,14444597,1,1,2) [2025-02-10 13:07:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:07:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:07:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:07:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444597', 'tblTempUsageDetail_20' ) start [2025-02-10 13:07:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444597', 'tblTempUsageDetail_20' ) end [2025-02-10 13:07:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:07:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:07:38] Production.INFO: ==22570== Releasing lock... [2025-02-10 13:07:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:07:38] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:08:05 [end_date_ymd] => 2025-02-10 13:08:05 [RateCDR] => 1 ) [2025-02-10 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:08:05' and `end` < '2025-02-10 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:08:24] Production.INFO: count ==5198 [2025-02-10 13:08:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:08:05 - End Time 2025-02-10 13:08:05 [2025-02-10 13:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444602', 'tblTempUsageDetail_20' ) start [2025-02-10 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444602', 'tblTempUsageDetail_20' ) end [2025-02-10 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444602', 'tblTempVendorCDR_20' ) start [2025-02-10 13:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444602', 'tblTempVendorCDR_20' ) end [2025-02-10 13:08:26] Production.INFO: ProcessCDR(1,14444602,1,1,2) [2025-02-10 13:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444602', 'tblTempUsageDetail_20' ) start [2025-02-10 13:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444602', 'tblTempUsageDetail_20' ) end [2025-02-10 13:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:08:31] Production.INFO: ==22674== Releasing lock... [2025-02-10 13:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:08:31] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:09:05 [end_date_ymd] => 2025-02-10 13:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:09:05' and `end` < '2025-02-10 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-10 13:09:24] Production.INFO: count ==5198 [2025-02-10 13:09:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:09:05 - End Time 2025-02-10 13:09:05 [2025-02-10 13:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444607', 'tblTempUsageDetail_20' ) start [2025-02-10 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444607', 'tblTempUsageDetail_20' ) end [2025-02-10 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444607', 'tblTempVendorCDR_20' ) start [2025-02-10 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444607', 'tblTempVendorCDR_20' ) end [2025-02-10 13:09:26] Production.INFO: ProcessCDR(1,14444607,1,1,2) [2025-02-10 13:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444607', 'tblTempUsageDetail_20' ) start [2025-02-10 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444607', 'tblTempUsageDetail_20' ) end [2025-02-10 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:09:32] Production.INFO: ==22796== Releasing lock... [2025-02-10 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:09:32] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:10:06 [end_date_ymd] => 2025-02-10 13:10:06 [RateCDR] => 1 ) [2025-02-10 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:10:06' and `end` < '2025-02-10 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:10:28] Production.INFO: count ==5212 [2025-02-10 13:10:30] Production.ERROR: pbx CDR StartTime 2025-02-10 10:10:06 - End Time 2025-02-10 13:10:06 [2025-02-10 13:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444612', 'tblTempUsageDetail_20' ) start [2025-02-10 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444612', 'tblTempUsageDetail_20' ) end [2025-02-10 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444612', 'tblTempVendorCDR_20' ) start [2025-02-10 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444612', 'tblTempVendorCDR_20' ) end [2025-02-10 13:10:30] Production.INFO: ProcessCDR(1,14444612,1,1,2) [2025-02-10 13:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444612', 'tblTempUsageDetail_20' ) start [2025-02-10 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444612', 'tblTempUsageDetail_20' ) end [2025-02-10 13:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:10:34] Production.INFO: ==22918== Releasing lock... [2025-02-10 13:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:10:34] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:11:05 [end_date_ymd] => 2025-02-10 13:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:11:05' and `end` < '2025-02-10 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-10 13:11:25] Production.INFO: count ==5224 [2025-02-10 13:11:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:11:05 - End Time 2025-02-10 13:11:05 [2025-02-10 13:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444618', 'tblTempUsageDetail_20' ) start [2025-02-10 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444618', 'tblTempUsageDetail_20' ) end [2025-02-10 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444618', 'tblTempVendorCDR_20' ) start [2025-02-10 13:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444618', 'tblTempVendorCDR_20' ) end [2025-02-10 13:11:28] Production.INFO: ProcessCDR(1,14444618,1,1,2) [2025-02-10 13:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444618', 'tblTempUsageDetail_20' ) start [2025-02-10 13:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444618', 'tblTempUsageDetail_20' ) end [2025-02-10 13:11:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:11:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:11:33] Production.INFO: ==23036== Releasing lock... [2025-02-10 13:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:11:33] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:12:05 [end_date_ymd] => 2025-02-10 13:12:05 [RateCDR] => 1 ) [2025-02-10 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:12:05' and `end` < '2025-02-10 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:12:23] Production.INFO: count ==5225 [2025-02-10 13:12:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:12:05 - End Time 2025-02-10 13:12:05 [2025-02-10 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444623', 'tblTempUsageDetail_20' ) start [2025-02-10 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444623', 'tblTempUsageDetail_20' ) end [2025-02-10 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444623', 'tblTempVendorCDR_20' ) start [2025-02-10 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444623', 'tblTempVendorCDR_20' ) end [2025-02-10 13:12:25] Production.INFO: ProcessCDR(1,14444623,1,1,2) [2025-02-10 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444623', 'tblTempUsageDetail_20' ) start [2025-02-10 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444623', 'tblTempUsageDetail_20' ) end [2025-02-10 13:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:12:30] Production.INFO: ==23184== Releasing lock... [2025-02-10 13:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:12:30] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:13:05 [end_date_ymd] => 2025-02-10 13:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:13:05' and `end` < '2025-02-10 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-10 13:13:21] Production.INFO: count ==5225 [2025-02-10 13:13:23] Production.ERROR: pbx CDR StartTime 2025-02-10 10:13:05 - End Time 2025-02-10 13:13:05 [2025-02-10 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444628', 'tblTempUsageDetail_20' ) start [2025-02-10 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444628', 'tblTempUsageDetail_20' ) end [2025-02-10 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444628', 'tblTempVendorCDR_20' ) start [2025-02-10 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444628', 'tblTempVendorCDR_20' ) end [2025-02-10 13:13:23] Production.INFO: ProcessCDR(1,14444628,1,1,2) [2025-02-10 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444628', 'tblTempUsageDetail_20' ) start [2025-02-10 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444628', 'tblTempUsageDetail_20' ) end [2025-02-10 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:13:28] Production.INFO: ==23294== Releasing lock... [2025-02-10 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:13:28] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:14:05 [end_date_ymd] => 2025-02-10 13:14:05 [RateCDR] => 1 ) [2025-02-10 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:14:05' and `end` < '2025-02-10 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:14:26] Production.INFO: count ==5216 [2025-02-10 13:14:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:14:05 - End Time 2025-02-10 13:14:05 [2025-02-10 13:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444633', 'tblTempUsageDetail_20' ) start [2025-02-10 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444633', 'tblTempUsageDetail_20' ) end [2025-02-10 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444633', 'tblTempVendorCDR_20' ) start [2025-02-10 13:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444633', 'tblTempVendorCDR_20' ) end [2025-02-10 13:14:28] Production.INFO: ProcessCDR(1,14444633,1,1,2) [2025-02-10 13:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444633', 'tblTempUsageDetail_20' ) start [2025-02-10 13:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444633', 'tblTempUsageDetail_20' ) end [2025-02-10 13:14:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:14:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:14:33] Production.INFO: ==23400== Releasing lock... [2025-02-10 13:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:14:33] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:15:05 [end_date_ymd] => 2025-02-10 13:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:15:05' and `end` < '2025-02-10 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-10 13:15:27] Production.INFO: count ==5196 [2025-02-10 13:15:29] Production.ERROR: pbx CDR StartTime 2025-02-10 10:15:05 - End Time 2025-02-10 13:15:05 [2025-02-10 13:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444638', 'tblTempUsageDetail_20' ) start [2025-02-10 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444638', 'tblTempUsageDetail_20' ) end [2025-02-10 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444638', 'tblTempVendorCDR_20' ) start [2025-02-10 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444638', 'tblTempVendorCDR_20' ) end [2025-02-10 13:15:29] Production.INFO: ProcessCDR(1,14444638,1,1,2) [2025-02-10 13:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444638', 'tblTempUsageDetail_20' ) start [2025-02-10 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444638', 'tblTempUsageDetail_20' ) end [2025-02-10 13:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:15:34] Production.INFO: ==23511== Releasing lock... [2025-02-10 13:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:15:34] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:16:05 [end_date_ymd] => 2025-02-10 13:16:05 [RateCDR] => 1 ) [2025-02-10 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:16:05' and `end` < '2025-02-10 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:16:24] Production.INFO: count ==5209 [2025-02-10 13:16:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:16:05 - End Time 2025-02-10 13:16:05 [2025-02-10 13:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444643', 'tblTempUsageDetail_20' ) start [2025-02-10 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444643', 'tblTempUsageDetail_20' ) end [2025-02-10 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444643', 'tblTempVendorCDR_20' ) start [2025-02-10 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444643', 'tblTempVendorCDR_20' ) end [2025-02-10 13:16:26] Production.INFO: ProcessCDR(1,14444643,1,1,2) [2025-02-10 13:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444643', 'tblTempUsageDetail_20' ) start [2025-02-10 13:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444643', 'tblTempUsageDetail_20' ) end [2025-02-10 13:16:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:16:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:16:32] Production.INFO: ==23613== Releasing lock... [2025-02-10 13:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:16:32] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:17:05 [end_date_ymd] => 2025-02-10 13:17:05 [RateCDR] => 1 ) [2025-02-10 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:17:05' and `end` < '2025-02-10 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:17:24] Production.INFO: count ==5194 [2025-02-10 13:17:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:17:05 - End Time 2025-02-10 13:17:05 [2025-02-10 13:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444648', 'tblTempUsageDetail_20' ) start [2025-02-10 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444648', 'tblTempUsageDetail_20' ) end [2025-02-10 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444648', 'tblTempVendorCDR_20' ) start [2025-02-10 13:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444648', 'tblTempVendorCDR_20' ) end [2025-02-10 13:17:26] Production.INFO: ProcessCDR(1,14444648,1,1,2) [2025-02-10 13:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444648', 'tblTempUsageDetail_20' ) start [2025-02-10 13:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444648', 'tblTempUsageDetail_20' ) end [2025-02-10 13:17:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:17:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:17:31] Production.INFO: ==23721== Releasing lock... [2025-02-10 13:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:17:31] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:18:06 [end_date_ymd] => 2025-02-10 13:18:06 [RateCDR] => 1 ) [2025-02-10 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:18:06' and `end` < '2025-02-10 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:18:20] Production.INFO: count ==5185 [2025-02-10 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-10 10:18:06 - End Time 2025-02-10 13:18:06 [2025-02-10 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444653', 'tblTempUsageDetail_20' ) start [2025-02-10 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444653', 'tblTempUsageDetail_20' ) end [2025-02-10 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444653', 'tblTempVendorCDR_20' ) start [2025-02-10 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444653', 'tblTempVendorCDR_20' ) end [2025-02-10 13:18:22] Production.INFO: ProcessCDR(1,14444653,1,1,2) [2025-02-10 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444653', 'tblTempUsageDetail_20' ) start [2025-02-10 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444653', 'tblTempUsageDetail_20' ) end [2025-02-10 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:18:27] Production.INFO: ==23827== Releasing lock... [2025-02-10 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:18:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:19:05 [end_date_ymd] => 2025-02-10 13:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:19:05' and `end` < '2025-02-10 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-10 13:19:22] Production.INFO: count ==5160 [2025-02-10 13:19:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:19:05 - End Time 2025-02-10 13:19:05 [2025-02-10 13:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444658', 'tblTempUsageDetail_20' ) start [2025-02-10 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444658', 'tblTempUsageDetail_20' ) end [2025-02-10 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444658', 'tblTempVendorCDR_20' ) start [2025-02-10 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444658', 'tblTempVendorCDR_20' ) end [2025-02-10 13:19:25] Production.INFO: ProcessCDR(1,14444658,1,1,2) [2025-02-10 13:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444658', 'tblTempUsageDetail_20' ) start [2025-02-10 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444658', 'tblTempUsageDetail_20' ) end [2025-02-10 13:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:19:30] Production.INFO: ==23932== Releasing lock... [2025-02-10 13:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:19:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:20:06 [end_date_ymd] => 2025-02-10 13:20:06 [RateCDR] => 1 ) [2025-02-10 13: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-10 10:20:06' and `end` < '2025-02-10 13: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-10 13:20:22] Production.INFO: count ==5168 [2025-02-10 13:20:24] Production.ERROR: pbx CDR StartTime 2025-02-10 10:20:06 - End Time 2025-02-10 13:20:06 [2025-02-10 13:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444664', 'tblTempUsageDetail_20' ) start [2025-02-10 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444664', 'tblTempUsageDetail_20' ) end [2025-02-10 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444664', 'tblTempVendorCDR_20' ) start [2025-02-10 13:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444664', 'tblTempVendorCDR_20' ) end [2025-02-10 13:20:24] Production.INFO: ProcessCDR(1,14444664,1,1,2) [2025-02-10 13:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444664', 'tblTempUsageDetail_20' ) start [2025-02-10 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444664', 'tblTempUsageDetail_20' ) end [2025-02-10 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:20:29] Production.INFO: ==24041== Releasing lock... [2025-02-10 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:20:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:21:05 [end_date_ymd] => 2025-02-10 13:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:21:05' and `end` < '2025-02-10 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-10 13:21:23] Production.INFO: count ==5188 [2025-02-10 13:21:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:21:05 - End Time 2025-02-10 13:21:05 [2025-02-10 13:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444669', 'tblTempUsageDetail_20' ) start [2025-02-10 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444669', 'tblTempUsageDetail_20' ) end [2025-02-10 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444669', 'tblTempVendorCDR_20' ) start [2025-02-10 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444669', 'tblTempVendorCDR_20' ) end [2025-02-10 13:21:25] Production.INFO: ProcessCDR(1,14444669,1,1,2) [2025-02-10 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444669', 'tblTempUsageDetail_20' ) start [2025-02-10 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444669', 'tblTempUsageDetail_20' ) end [2025-02-10 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:21:30] Production.INFO: ==24154== Releasing lock... [2025-02-10 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:21:30] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:22:05 [end_date_ymd] => 2025-02-10 13:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:22:05' and `end` < '2025-02-10 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-10 13:22:22] Production.INFO: count ==5187 [2025-02-10 13:22:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:22:05 - End Time 2025-02-10 13:22:05 [2025-02-10 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444674', 'tblTempUsageDetail_20' ) start [2025-02-10 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444674', 'tblTempUsageDetail_20' ) end [2025-02-10 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444674', 'tblTempVendorCDR_20' ) start [2025-02-10 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444674', 'tblTempVendorCDR_20' ) end [2025-02-10 13:22:25] Production.INFO: ProcessCDR(1,14444674,1,1,2) [2025-02-10 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444674', 'tblTempUsageDetail_20' ) start [2025-02-10 13:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444674', 'tblTempUsageDetail_20' ) end [2025-02-10 13:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:22:30] Production.INFO: ==24260== Releasing lock... [2025-02-10 13:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:22:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:23:05 [end_date_ymd] => 2025-02-10 13:23:05 [RateCDR] => 1 ) [2025-02-10 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:23:05' and `end` < '2025-02-10 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:23:25] Production.INFO: count ==5183 [2025-02-10 13:23:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:23:05 - End Time 2025-02-10 13:23:05 [2025-02-10 13:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444679', 'tblTempUsageDetail_20' ) start [2025-02-10 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444679', 'tblTempUsageDetail_20' ) end [2025-02-10 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444679', 'tblTempVendorCDR_20' ) start [2025-02-10 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444679', 'tblTempVendorCDR_20' ) end [2025-02-10 13:23:28] Production.INFO: ProcessCDR(1,14444679,1,1,2) [2025-02-10 13:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444679', 'tblTempUsageDetail_20' ) start [2025-02-10 13:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444679', 'tblTempUsageDetail_20' ) end [2025-02-10 13:23:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:23:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:23:32] Production.INFO: ==24365== Releasing lock... [2025-02-10 13:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:23:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:24:05 [end_date_ymd] => 2025-02-10 13:24:05 [RateCDR] => 1 ) [2025-02-10 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:24:05' and `end` < '2025-02-10 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:24:19] Production.INFO: count ==5180 [2025-02-10 13:24:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:24:05 - End Time 2025-02-10 13:24:05 [2025-02-10 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444684', 'tblTempUsageDetail_20' ) start [2025-02-10 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444684', 'tblTempUsageDetail_20' ) end [2025-02-10 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444684', 'tblTempVendorCDR_20' ) start [2025-02-10 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444684', 'tblTempVendorCDR_20' ) end [2025-02-10 13:24:22] Production.INFO: ProcessCDR(1,14444684,1,1,2) [2025-02-10 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444684', 'tblTempUsageDetail_20' ) start [2025-02-10 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444684', 'tblTempUsageDetail_20' ) end [2025-02-10 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:24:26] Production.INFO: ==24437== Releasing lock... [2025-02-10 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:24:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:25:04 [end_date_ymd] => 2025-02-10 13:25:04 [RateCDR] => 1 ) [2025-02-10 13:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:25:04' and `end` < '2025-02-10 13:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:25:20] Production.INFO: count ==5188 [2025-02-10 13:25:22] Production.ERROR: pbx CDR StartTime 2025-02-10 10:25:04 - End Time 2025-02-10 13:25:04 [2025-02-10 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444689', 'tblTempUsageDetail_20' ) start [2025-02-10 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444689', 'tblTempUsageDetail_20' ) end [2025-02-10 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444689', 'tblTempVendorCDR_20' ) start [2025-02-10 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444689', 'tblTempVendorCDR_20' ) end [2025-02-10 13:25:23] Production.INFO: ProcessCDR(1,14444689,1,1,2) [2025-02-10 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444689', 'tblTempUsageDetail_20' ) start [2025-02-10 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444689', 'tblTempUsageDetail_20' ) end [2025-02-10 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:25:27] Production.INFO: ==24511== Releasing lock... [2025-02-10 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:25:27] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:26:05 [end_date_ymd] => 2025-02-10 13:26:05 [RateCDR] => 1 ) [2025-02-10 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:26:05' and `end` < '2025-02-10 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:26:30] Production.INFO: count ==5187 [2025-02-10 13:26:32] Production.ERROR: pbx CDR StartTime 2025-02-10 10:26:05 - End Time 2025-02-10 13:26:05 [2025-02-10 13:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444694', 'tblTempUsageDetail_20' ) start [2025-02-10 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444694', 'tblTempUsageDetail_20' ) end [2025-02-10 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444694', 'tblTempVendorCDR_20' ) start [2025-02-10 13:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444694', 'tblTempVendorCDR_20' ) end [2025-02-10 13:26:32] Production.INFO: ProcessCDR(1,14444694,1,1,2) [2025-02-10 13:26:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:26:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444694', 'tblTempUsageDetail_20' ) start [2025-02-10 13:26:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444694', 'tblTempUsageDetail_20' ) end [2025-02-10 13:26:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:26:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:26:37] Production.INFO: ==24587== Releasing lock... [2025-02-10 13:26:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:26:37] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:27:05 [end_date_ymd] => 2025-02-10 13:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:27:05' and `end` < '2025-02-10 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-10 13:27:25] Production.INFO: count ==5176 [2025-02-10 13:27:27] Production.ERROR: pbx CDR StartTime 2025-02-10 10:27:05 - End Time 2025-02-10 13:27:05 [2025-02-10 13:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444698', 'tblTempUsageDetail_20' ) start [2025-02-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444698', 'tblTempUsageDetail_20' ) end [2025-02-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444698', 'tblTempVendorCDR_20' ) start [2025-02-10 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444698', 'tblTempVendorCDR_20' ) end [2025-02-10 13:27:27] Production.INFO: ProcessCDR(1,14444698,1,1,2) [2025-02-10 13:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444698', 'tblTempUsageDetail_20' ) start [2025-02-10 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444698', 'tblTempUsageDetail_20' ) end [2025-02-10 13:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:27:32] Production.INFO: ==24668== Releasing lock... [2025-02-10 13:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:27:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:28:04 [end_date_ymd] => 2025-02-10 13:28:04 [RateCDR] => 1 ) [2025-02-10 13: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-10 10:28:04' and `end` < '2025-02-10 13: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-10 13:28:23] Production.INFO: count ==5183 [2025-02-10 13:28:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:28:04 - End Time 2025-02-10 13:28:04 [2025-02-10 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444700', 'tblTempUsageDetail_20' ) start [2025-02-10 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444700', 'tblTempUsageDetail_20' ) end [2025-02-10 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444700', 'tblTempVendorCDR_20' ) start [2025-02-10 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444700', 'tblTempVendorCDR_20' ) end [2025-02-10 13:28:26] Production.INFO: ProcessCDR(1,14444700,1,1,2) [2025-02-10 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444700', 'tblTempUsageDetail_20' ) start [2025-02-10 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444700', 'tblTempUsageDetail_20' ) end [2025-02-10 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:28:31] Production.INFO: ==24779== Releasing lock... [2025-02-10 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:28:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:29:05 [end_date_ymd] => 2025-02-10 13:29:05 [RateCDR] => 1 ) [2025-02-10 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:29:05' and `end` < '2025-02-10 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:29:25] Production.INFO: count ==5178 [2025-02-10 13:29:27] Production.ERROR: pbx CDR StartTime 2025-02-10 10:29:05 - End Time 2025-02-10 13:29:05 [2025-02-10 13:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444709', 'tblTempUsageDetail_20' ) start [2025-02-10 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444709', 'tblTempUsageDetail_20' ) end [2025-02-10 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444709', 'tblTempVendorCDR_20' ) start [2025-02-10 13:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444709', 'tblTempVendorCDR_20' ) end [2025-02-10 13:29:27] Production.INFO: ProcessCDR(1,14444709,1,1,2) [2025-02-10 13:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444709', 'tblTempUsageDetail_20' ) start [2025-02-10 13:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444709', 'tblTempUsageDetail_20' ) end [2025-02-10 13:29:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:29:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:29:32] Production.INFO: ==24853== Releasing lock... [2025-02-10 13:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:29:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:30:05 [end_date_ymd] => 2025-02-10 13:30:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:30:05' and `end` < '2025-02-10 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-10 13:30:25] Production.INFO: count ==5183 [2025-02-10 13:30:27] Production.ERROR: pbx CDR StartTime 2025-02-10 10:30:05 - End Time 2025-02-10 13:30:05 [2025-02-10 13:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444715', 'tblTempUsageDetail_20' ) start [2025-02-10 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444715', 'tblTempUsageDetail_20' ) end [2025-02-10 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444715', 'tblTempVendorCDR_20' ) start [2025-02-10 13:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444715', 'tblTempVendorCDR_20' ) end [2025-02-10 13:30:28] Production.INFO: ProcessCDR(1,14444715,1,1,2) [2025-02-10 13:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444715', 'tblTempUsageDetail_20' ) start [2025-02-10 13:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444715', 'tblTempUsageDetail_20' ) end [2025-02-10 13:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:30:32] Production.INFO: ==24928== Releasing lock... [2025-02-10 13:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:30:32] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:31:05 [end_date_ymd] => 2025-02-10 13:31:05 [RateCDR] => 1 ) [2025-02-10 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:31:05' and `end` < '2025-02-10 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:31:19] Production.INFO: count ==5164 [2025-02-10 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:31:05 - End Time 2025-02-10 13:31:05 [2025-02-10 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444720', 'tblTempUsageDetail_20' ) start [2025-02-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444720', 'tblTempUsageDetail_20' ) end [2025-02-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444720', 'tblTempVendorCDR_20' ) start [2025-02-10 13:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444720', 'tblTempVendorCDR_20' ) end [2025-02-10 13:31:22] Production.INFO: ProcessCDR(1,14444720,1,1,2) [2025-02-10 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444720', 'tblTempUsageDetail_20' ) start [2025-02-10 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444720', 'tblTempUsageDetail_20' ) end [2025-02-10 13:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:31:25] Production.INFO: ==25003== Releasing lock... [2025-02-10 13:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:31:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:32:05 [end_date_ymd] => 2025-02-10 13:32:05 [RateCDR] => 1 ) [2025-02-10 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:32:05' and `end` < '2025-02-10 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:32:20] Production.INFO: count ==5180 [2025-02-10 13:32:22] Production.ERROR: pbx CDR StartTime 2025-02-10 10:32:05 - End Time 2025-02-10 13:32:05 [2025-02-10 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444725', 'tblTempUsageDetail_20' ) start [2025-02-10 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444725', 'tblTempUsageDetail_20' ) end [2025-02-10 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444725', 'tblTempVendorCDR_20' ) start [2025-02-10 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444725', 'tblTempVendorCDR_20' ) end [2025-02-10 13:32:22] Production.INFO: ProcessCDR(1,14444725,1,1,2) [2025-02-10 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444725', 'tblTempUsageDetail_20' ) start [2025-02-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444725', 'tblTempUsageDetail_20' ) end [2025-02-10 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:32:27] Production.INFO: ==25078== Releasing lock... [2025-02-10 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:32:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:33:05 [end_date_ymd] => 2025-02-10 13:33:05 [RateCDR] => 1 ) [2025-02-10 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:33:05' and `end` < '2025-02-10 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:33:29] Production.INFO: count ==5183 [2025-02-10 13:33:32] Production.ERROR: pbx CDR StartTime 2025-02-10 10:33:05 - End Time 2025-02-10 13:33:05 [2025-02-10 13:33:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444730', 'tblTempUsageDetail_20' ) start [2025-02-10 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444730', 'tblTempUsageDetail_20' ) end [2025-02-10 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444730', 'tblTempVendorCDR_20' ) start [2025-02-10 13:33:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444730', 'tblTempVendorCDR_20' ) end [2025-02-10 13:33:32] Production.INFO: ProcessCDR(1,14444730,1,1,2) [2025-02-10 13:33:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:33:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:33:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:33:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:33:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444730', 'tblTempUsageDetail_20' ) start [2025-02-10 13:33:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444730', 'tblTempUsageDetail_20' ) end [2025-02-10 13:33:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:33:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:33:37] Production.INFO: ==25151== Releasing lock... [2025-02-10 13:33:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:33:37] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:34:05 [end_date_ymd] => 2025-02-10 13:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:34:05' and `end` < '2025-02-10 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-10 13:34:25] Production.INFO: count ==5204 [2025-02-10 13:34:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:34:05 - End Time 2025-02-10 13:34:05 [2025-02-10 13:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444735', 'tblTempUsageDetail_20' ) start [2025-02-10 13:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444735', 'tblTempUsageDetail_20' ) end [2025-02-10 13:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444735', 'tblTempVendorCDR_20' ) start [2025-02-10 13:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444735', 'tblTempVendorCDR_20' ) end [2025-02-10 13:34:28] Production.INFO: ProcessCDR(1,14444735,1,1,2) [2025-02-10 13:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444735', 'tblTempUsageDetail_20' ) start [2025-02-10 13:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444735', 'tblTempUsageDetail_20' ) end [2025-02-10 13:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:34:33] Production.INFO: ==25226== Releasing lock... [2025-02-10 13:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:34:33] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:35:05 [end_date_ymd] => 2025-02-10 13:35:05 [RateCDR] => 1 ) [2025-02-10 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:35:05' and `end` < '2025-02-10 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:35:25] Production.INFO: count ==5185 [2025-02-10 13:35:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:35:05 - End Time 2025-02-10 13:35:05 [2025-02-10 13:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444740', 'tblTempUsageDetail_20' ) start [2025-02-10 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444740', 'tblTempUsageDetail_20' ) end [2025-02-10 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444740', 'tblTempVendorCDR_20' ) start [2025-02-10 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444740', 'tblTempVendorCDR_20' ) end [2025-02-10 13:35:28] Production.INFO: ProcessCDR(1,14444740,1,1,2) [2025-02-10 13:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444740', 'tblTempUsageDetail_20' ) start [2025-02-10 13:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444740', 'tblTempUsageDetail_20' ) end [2025-02-10 13:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:35:33] Production.INFO: ==25300== Releasing lock... [2025-02-10 13:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:35:33] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:36:05 [end_date_ymd] => 2025-02-10 13:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:36:05' and `end` < '2025-02-10 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-10 13:36:23] Production.INFO: count ==5189 [2025-02-10 13:36:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:36:05 - End Time 2025-02-10 13:36:05 [2025-02-10 13:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444745', 'tblTempUsageDetail_20' ) start [2025-02-10 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444745', 'tblTempUsageDetail_20' ) end [2025-02-10 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444745', 'tblTempVendorCDR_20' ) start [2025-02-10 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444745', 'tblTempVendorCDR_20' ) end [2025-02-10 13:36:25] Production.INFO: ProcessCDR(1,14444745,1,1,2) [2025-02-10 13:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444745', 'tblTempUsageDetail_20' ) start [2025-02-10 13:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444745', 'tblTempUsageDetail_20' ) end [2025-02-10 13:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:36:30] Production.INFO: ==25373== Releasing lock... [2025-02-10 13:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:36:30] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:37:05 [end_date_ymd] => 2025-02-10 13:37:05 [RateCDR] => 1 ) [2025-02-10 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:37:05' and `end` < '2025-02-10 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:37:19] Production.INFO: count ==5191 [2025-02-10 13:37:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:37:05 - End Time 2025-02-10 13:37:05 [2025-02-10 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444750', 'tblTempUsageDetail_20' ) start [2025-02-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444750', 'tblTempUsageDetail_20' ) end [2025-02-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444750', 'tblTempVendorCDR_20' ) start [2025-02-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444750', 'tblTempVendorCDR_20' ) end [2025-02-10 13:37:21] Production.INFO: ProcessCDR(1,14444750,1,1,2) [2025-02-10 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444750', 'tblTempUsageDetail_20' ) start [2025-02-10 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444750', 'tblTempUsageDetail_20' ) end [2025-02-10 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:37:26] Production.INFO: ==25446== Releasing lock... [2025-02-10 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:37:26] Production.INFO: 67 MB #Memory Used# [2025-02-10 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:38:05 [end_date_ymd] => 2025-02-10 13:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:38:05' and `end` < '2025-02-10 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-10 13:38:21] Production.INFO: count ==5177 [2025-02-10 13:38:23] Production.ERROR: pbx CDR StartTime 2025-02-10 10:38:05 - End Time 2025-02-10 13:38:05 [2025-02-10 13:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444755', 'tblTempUsageDetail_20' ) start [2025-02-10 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444755', 'tblTempUsageDetail_20' ) end [2025-02-10 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444755', 'tblTempVendorCDR_20' ) start [2025-02-10 13:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444755', 'tblTempVendorCDR_20' ) end [2025-02-10 13:38:23] Production.INFO: ProcessCDR(1,14444755,1,1,2) [2025-02-10 13:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444755', 'tblTempUsageDetail_20' ) start [2025-02-10 13:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444755', 'tblTempUsageDetail_20' ) end [2025-02-10 13:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:38:28] Production.INFO: ==25517== Releasing lock... [2025-02-10 13:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:38:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:39:05 [end_date_ymd] => 2025-02-10 13:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:39:05' and `end` < '2025-02-10 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-10 13:39:29] Production.INFO: count ==5164 [2025-02-10 13:39:31] Production.ERROR: pbx CDR StartTime 2025-02-10 10:39:05 - End Time 2025-02-10 13:39:05 [2025-02-10 13:39:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444760', 'tblTempUsageDetail_20' ) start [2025-02-10 13:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444760', 'tblTempUsageDetail_20' ) end [2025-02-10 13:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444760', 'tblTempVendorCDR_20' ) start [2025-02-10 13:39:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444760', 'tblTempVendorCDR_20' ) end [2025-02-10 13:39:31] Production.INFO: ProcessCDR(1,14444760,1,1,2) [2025-02-10 13:39:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444760', 'tblTempUsageDetail_20' ) start [2025-02-10 13:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444760', 'tblTempUsageDetail_20' ) end [2025-02-10 13:39:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:39:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:39:36] Production.INFO: ==25598== Releasing lock... [2025-02-10 13:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:39:36] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:40:06 [end_date_ymd] => 2025-02-10 13:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 10:40:06' and `end` < '2025-02-10 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-10 13:40:41] Production.INFO: count ==5184 [2025-02-10 13:40:43] Production.ERROR: pbx CDR StartTime 2025-02-10 10:40:06 - End Time 2025-02-10 13:40:06 [2025-02-10 13:40:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:40:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444766', 'tblTempUsageDetail_20' ) start [2025-02-10 13:40:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444766', 'tblTempUsageDetail_20' ) end [2025-02-10 13:40:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444766', 'tblTempVendorCDR_20' ) start [2025-02-10 13:40:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444766', 'tblTempVendorCDR_20' ) end [2025-02-10 13:40:43] Production.INFO: ProcessCDR(1,14444766,1,1,2) [2025-02-10 13:40:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:40:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:40:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:40:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:40:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444766', 'tblTempUsageDetail_20' ) start [2025-02-10 13:40:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444766', 'tblTempUsageDetail_20' ) end [2025-02-10 13:40:48] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:40:48] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:40:48] Production.INFO: ==25675== Releasing lock... [2025-02-10 13:40:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:40:48] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:41:04 [end_date_ymd] => 2025-02-10 13:41:04 [RateCDR] => 1 ) [2025-02-10 13: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-10 10:41:04' and `end` < '2025-02-10 13: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-10 13:41:27] Production.INFO: count ==5171 [2025-02-10 13:41:30] Production.ERROR: pbx CDR StartTime 2025-02-10 10:41:04 - End Time 2025-02-10 13:41:04 [2025-02-10 13:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444771', 'tblTempUsageDetail_20' ) start [2025-02-10 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444771', 'tblTempUsageDetail_20' ) end [2025-02-10 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444771', 'tblTempVendorCDR_20' ) start [2025-02-10 13:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444771', 'tblTempVendorCDR_20' ) end [2025-02-10 13:41:30] Production.INFO: ProcessCDR(1,14444771,1,1,2) [2025-02-10 13:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444771', 'tblTempUsageDetail_20' ) start [2025-02-10 13:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444771', 'tblTempUsageDetail_20' ) end [2025-02-10 13:41:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:41:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:41:34] Production.INFO: ==25755== Releasing lock... [2025-02-10 13:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:41:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:42:05 [end_date_ymd] => 2025-02-10 13:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:42:05' and `end` < '2025-02-10 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-10 13:42:24] Production.INFO: count ==5175 [2025-02-10 13:42:26] Production.ERROR: pbx CDR StartTime 2025-02-10 10:42:05 - End Time 2025-02-10 13:42:05 [2025-02-10 13:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444776', 'tblTempUsageDetail_20' ) start [2025-02-10 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444776', 'tblTempUsageDetail_20' ) end [2025-02-10 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444776', 'tblTempVendorCDR_20' ) start [2025-02-10 13:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444776', 'tblTempVendorCDR_20' ) end [2025-02-10 13:42:27] Production.INFO: ProcessCDR(1,14444776,1,1,2) [2025-02-10 13:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444776', 'tblTempUsageDetail_20' ) start [2025-02-10 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444776', 'tblTempUsageDetail_20' ) end [2025-02-10 13:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:42:31] Production.INFO: ==25834== Releasing lock... [2025-02-10 13:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:42:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:43:05 [end_date_ymd] => 2025-02-10 13:43:05 [RateCDR] => 1 ) [2025-02-10 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:43:05' and `end` < '2025-02-10 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:43:19] Production.INFO: count ==5182 [2025-02-10 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:43:05 - End Time 2025-02-10 13:43:05 [2025-02-10 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444781', 'tblTempUsageDetail_20' ) start [2025-02-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444781', 'tblTempUsageDetail_20' ) end [2025-02-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444781', 'tblTempVendorCDR_20' ) start [2025-02-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444781', 'tblTempVendorCDR_20' ) end [2025-02-10 13:43:21] Production.INFO: ProcessCDR(1,14444781,1,1,2) [2025-02-10 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444781', 'tblTempUsageDetail_20' ) start [2025-02-10 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444781', 'tblTempUsageDetail_20' ) end [2025-02-10 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:43:26] Production.INFO: ==25949== Releasing lock... [2025-02-10 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:43:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:44:05 [end_date_ymd] => 2025-02-10 13:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:44:05' and `end` < '2025-02-10 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-10 13:44:23] Production.INFO: count ==5172 [2025-02-10 13:44:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:44:05 - End Time 2025-02-10 13:44:05 [2025-02-10 13:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444786', 'tblTempUsageDetail_20' ) start [2025-02-10 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444786', 'tblTempUsageDetail_20' ) end [2025-02-10 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444786', 'tblTempVendorCDR_20' ) start [2025-02-10 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444786', 'tblTempVendorCDR_20' ) end [2025-02-10 13:44:25] Production.INFO: ProcessCDR(1,14444786,1,1,2) [2025-02-10 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444786', 'tblTempUsageDetail_20' ) start [2025-02-10 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444786', 'tblTempUsageDetail_20' ) end [2025-02-10 13:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:44:30] Production.INFO: ==26030== Releasing lock... [2025-02-10 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:44:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:45:06 [end_date_ymd] => 2025-02-10 13:45:06 [RateCDR] => 1 ) [2025-02-10 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-10 10:45:06' and `end` < '2025-02-10 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-10 13:45:26] Production.INFO: count ==5165 [2025-02-10 13:45:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:45:06 - End Time 2025-02-10 13:45:06 [2025-02-10 13:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444791', 'tblTempUsageDetail_20' ) start [2025-02-10 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444791', 'tblTempUsageDetail_20' ) end [2025-02-10 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444791', 'tblTempVendorCDR_20' ) start [2025-02-10 13:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444791', 'tblTempVendorCDR_20' ) end [2025-02-10 13:45:28] Production.INFO: ProcessCDR(1,14444791,1,1,2) [2025-02-10 13:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444791', 'tblTempUsageDetail_20' ) start [2025-02-10 13:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444791', 'tblTempUsageDetail_20' ) end [2025-02-10 13:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:45:32] Production.INFO: ==26114== Releasing lock... [2025-02-10 13:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:45:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:46:04 [end_date_ymd] => 2025-02-10 13:46:04 [RateCDR] => 1 ) [2025-02-10 13:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:46:04' and `end` < '2025-02-10 13:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:46:27] Production.INFO: count ==5159 [2025-02-10 13:46:29] Production.ERROR: pbx CDR StartTime 2025-02-10 10:46:04 - End Time 2025-02-10 13:46:04 [2025-02-10 13:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444796', 'tblTempUsageDetail_20' ) start [2025-02-10 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444796', 'tblTempUsageDetail_20' ) end [2025-02-10 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444796', 'tblTempVendorCDR_20' ) start [2025-02-10 13:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444796', 'tblTempVendorCDR_20' ) end [2025-02-10 13:46:29] Production.INFO: ProcessCDR(1,14444796,1,1,2) [2025-02-10 13:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444796', 'tblTempUsageDetail_20' ) start [2025-02-10 13:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444796', 'tblTempUsageDetail_20' ) end [2025-02-10 13:46:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:46:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:46:34] Production.INFO: ==26191== Releasing lock... [2025-02-10 13:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:46:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:47:05 [end_date_ymd] => 2025-02-10 13:47:05 [RateCDR] => 1 ) [2025-02-10 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:47:05' and `end` < '2025-02-10 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:47:22] Production.INFO: count ==5167 [2025-02-10 13:47:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:47:05 - End Time 2025-02-10 13:47:05 [2025-02-10 13:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444801', 'tblTempUsageDetail_20' ) start [2025-02-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444801', 'tblTempUsageDetail_20' ) end [2025-02-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444801', 'tblTempVendorCDR_20' ) start [2025-02-10 13:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444801', 'tblTempVendorCDR_20' ) end [2025-02-10 13:47:25] Production.INFO: ProcessCDR(1,14444801,1,1,2) [2025-02-10 13:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444801', 'tblTempUsageDetail_20' ) start [2025-02-10 13:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444801', 'tblTempUsageDetail_20' ) end [2025-02-10 13:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:47:30] Production.INFO: ==26276== Releasing lock... [2025-02-10 13:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:47:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:48:05 [end_date_ymd] => 2025-02-10 13:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:48:05' and `end` < '2025-02-10 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-10 13:48:25] Production.INFO: count ==5166 [2025-02-10 13:48:27] Production.ERROR: pbx CDR StartTime 2025-02-10 10:48:05 - End Time 2025-02-10 13:48:05 [2025-02-10 13:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444806', 'tblTempUsageDetail_20' ) start [2025-02-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444806', 'tblTempUsageDetail_20' ) end [2025-02-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444806', 'tblTempVendorCDR_20' ) start [2025-02-10 13:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444806', 'tblTempVendorCDR_20' ) end [2025-02-10 13:48:27] Production.INFO: ProcessCDR(1,14444806,1,1,2) [2025-02-10 13:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444806', 'tblTempUsageDetail_20' ) start [2025-02-10 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444806', 'tblTempUsageDetail_20' ) end [2025-02-10 13:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:48:32] Production.INFO: ==26358== Releasing lock... [2025-02-10 13:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:48:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:49:05 [end_date_ymd] => 2025-02-10 13:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:49:05' and `end` < '2025-02-10 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-10 13:49:36] Production.INFO: count ==5160 [2025-02-10 13:49:38] Production.ERROR: pbx CDR StartTime 2025-02-10 10:49:05 - End Time 2025-02-10 13:49:05 [2025-02-10 13:49:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444811', 'tblTempUsageDetail_20' ) start [2025-02-10 13:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444811', 'tblTempUsageDetail_20' ) end [2025-02-10 13:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444811', 'tblTempVendorCDR_20' ) start [2025-02-10 13:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444811', 'tblTempVendorCDR_20' ) end [2025-02-10 13:49:38] Production.INFO: ProcessCDR(1,14444811,1,1,2) [2025-02-10 13:49:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:49:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:49:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:49:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444811', 'tblTempUsageDetail_20' ) start [2025-02-10 13:49:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444811', 'tblTempUsageDetail_20' ) end [2025-02-10 13:49:42] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:49:43] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:49:43] Production.INFO: ==26441== Releasing lock... [2025-02-10 13:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:49:43] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:50:06 [end_date_ymd] => 2025-02-10 13:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 10:50:06' and `end` < '2025-02-10 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-10 13:50:32] Production.INFO: count ==5163 [2025-02-10 13:50:35] Production.ERROR: pbx CDR StartTime 2025-02-10 10:50:06 - End Time 2025-02-10 13:50:06 [2025-02-10 13:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444817', 'tblTempUsageDetail_20' ) start [2025-02-10 13:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444817', 'tblTempUsageDetail_20' ) end [2025-02-10 13:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444817', 'tblTempVendorCDR_20' ) start [2025-02-10 13:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444817', 'tblTempVendorCDR_20' ) end [2025-02-10 13:50:35] Production.INFO: ProcessCDR(1,14444817,1,1,2) [2025-02-10 13:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:50:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:50:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444817', 'tblTempUsageDetail_20' ) start [2025-02-10 13:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444817', 'tblTempUsageDetail_20' ) end [2025-02-10 13:50:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:50:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:50:40] Production.INFO: ==26521== Releasing lock... [2025-02-10 13:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:50:40] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:51:05 [end_date_ymd] => 2025-02-10 13:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:51:05' and `end` < '2025-02-10 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-10 13:51:23] Production.INFO: count ==5180 [2025-02-10 13:51:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:51:05 - End Time 2025-02-10 13:51:05 [2025-02-10 13:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444822', 'tblTempUsageDetail_20' ) start [2025-02-10 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444822', 'tblTempUsageDetail_20' ) end [2025-02-10 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444822', 'tblTempVendorCDR_20' ) start [2025-02-10 13:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444822', 'tblTempVendorCDR_20' ) end [2025-02-10 13:51:25] Production.INFO: ProcessCDR(1,14444822,1,1,2) [2025-02-10 13:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444822', 'tblTempUsageDetail_20' ) start [2025-02-10 13:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444822', 'tblTempUsageDetail_20' ) end [2025-02-10 13:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:51:30] Production.INFO: ==26604== Releasing lock... [2025-02-10 13:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:51:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:52:05 [end_date_ymd] => 2025-02-10 13:52:05 [RateCDR] => 1 ) [2025-02-10 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:52:05' and `end` < '2025-02-10 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:52:19] Production.INFO: count ==5168 [2025-02-10 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:52:05 - End Time 2025-02-10 13:52:05 [2025-02-10 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444827', 'tblTempUsageDetail_20' ) start [2025-02-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444827', 'tblTempUsageDetail_20' ) end [2025-02-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444827', 'tblTempVendorCDR_20' ) start [2025-02-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444827', 'tblTempVendorCDR_20' ) end [2025-02-10 13:52:21] Production.INFO: ProcessCDR(1,14444827,1,1,2) [2025-02-10 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444827', 'tblTempUsageDetail_20' ) start [2025-02-10 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444827', 'tblTempUsageDetail_20' ) end [2025-02-10 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:52:26] Production.INFO: ==26683== Releasing lock... [2025-02-10 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:52:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:53:05 [end_date_ymd] => 2025-02-10 13:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:53:05' and `end` < '2025-02-10 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-10 13:53:19] Production.INFO: count ==5160 [2025-02-10 13:53:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:53:05 - End Time 2025-02-10 13:53:05 [2025-02-10 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444832', 'tblTempUsageDetail_20' ) start [2025-02-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444832', 'tblTempUsageDetail_20' ) end [2025-02-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444832', 'tblTempVendorCDR_20' ) start [2025-02-10 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444832', 'tblTempVendorCDR_20' ) end [2025-02-10 13:53:21] Production.INFO: ProcessCDR(1,14444832,1,1,2) [2025-02-10 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444832', 'tblTempUsageDetail_20' ) start [2025-02-10 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444832', 'tblTempUsageDetail_20' ) end [2025-02-10 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:53:25] Production.INFO: ==26772== Releasing lock... [2025-02-10 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:53:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:54:05 [end_date_ymd] => 2025-02-10 13:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:54:05' and `end` < '2025-02-10 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-10 13:54:27] Production.INFO: count ==5153 [2025-02-10 13:54:29] Production.ERROR: pbx CDR StartTime 2025-02-10 10:54:05 - End Time 2025-02-10 13:54:05 [2025-02-10 13:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444837', 'tblTempUsageDetail_20' ) start [2025-02-10 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444837', 'tblTempUsageDetail_20' ) end [2025-02-10 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444837', 'tblTempVendorCDR_20' ) start [2025-02-10 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444837', 'tblTempVendorCDR_20' ) end [2025-02-10 13:54:29] Production.INFO: ProcessCDR(1,14444837,1,1,2) [2025-02-10 13:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444837', 'tblTempUsageDetail_20' ) start [2025-02-10 13:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444837', 'tblTempUsageDetail_20' ) end [2025-02-10 13:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:54:34] Production.INFO: ==26853== Releasing lock... [2025-02-10 13:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:54:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:55:05 [end_date_ymd] => 2025-02-10 13:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:55:05' and `end` < '2025-02-10 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-10 13:55:19] Production.INFO: count ==5159 [2025-02-10 13:55:21] Production.ERROR: pbx CDR StartTime 2025-02-10 10:55:05 - End Time 2025-02-10 13:55:05 [2025-02-10 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444842', 'tblTempUsageDetail_20' ) start [2025-02-10 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444842', 'tblTempUsageDetail_20' ) end [2025-02-10 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444842', 'tblTempVendorCDR_20' ) start [2025-02-10 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444842', 'tblTempVendorCDR_20' ) end [2025-02-10 13:55:21] Production.INFO: ProcessCDR(1,14444842,1,1,2) [2025-02-10 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444842', 'tblTempUsageDetail_20' ) start [2025-02-10 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444842', 'tblTempUsageDetail_20' ) end [2025-02-10 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:55:26] Production.INFO: ==26930== Releasing lock... [2025-02-10 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:55:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:56:05 [end_date_ymd] => 2025-02-10 13:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:56:05' and `end` < '2025-02-10 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-10 13:56:23] Production.INFO: count ==5141 [2025-02-10 13:56:25] Production.ERROR: pbx CDR StartTime 2025-02-10 10:56:05 - End Time 2025-02-10 13:56:05 [2025-02-10 13:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444847', 'tblTempUsageDetail_20' ) start [2025-02-10 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444847', 'tblTempUsageDetail_20' ) end [2025-02-10 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444847', 'tblTempVendorCDR_20' ) start [2025-02-10 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444847', 'tblTempVendorCDR_20' ) end [2025-02-10 13:56:26] Production.INFO: ProcessCDR(1,14444847,1,1,2) [2025-02-10 13:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444847', 'tblTempUsageDetail_20' ) start [2025-02-10 13:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444847', 'tblTempUsageDetail_20' ) end [2025-02-10 13:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:56:30] Production.INFO: ==27016== Releasing lock... [2025-02-10 13:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:56:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:57:04 [end_date_ymd] => 2025-02-10 13:57:04 [RateCDR] => 1 ) [2025-02-10 13:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 10:57:04' and `end` < '2025-02-10 13:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 13:57:26] Production.INFO: count ==5124 [2025-02-10 13:57:28] Production.ERROR: pbx CDR StartTime 2025-02-10 10:57:04 - End Time 2025-02-10 13:57:04 [2025-02-10 13:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444852', 'tblTempUsageDetail_20' ) start [2025-02-10 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444852', 'tblTempUsageDetail_20' ) end [2025-02-10 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444852', 'tblTempVendorCDR_20' ) start [2025-02-10 13:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444852', 'tblTempVendorCDR_20' ) end [2025-02-10 13:57:28] Production.INFO: ProcessCDR(1,14444852,1,1,2) [2025-02-10 13:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444852', 'tblTempUsageDetail_20' ) start [2025-02-10 13:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444852', 'tblTempUsageDetail_20' ) end [2025-02-10 13:57:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:57:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:57:33] Production.INFO: ==27096== Releasing lock... [2025-02-10 13:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:57:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:58:05 [end_date_ymd] => 2025-02-10 13:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 10:58:05' and `end` < '2025-02-10 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-10 13:58:24] Production.INFO: count ==5120 [2025-02-10 13:58:27] Production.ERROR: pbx CDR StartTime 2025-02-10 10:58:05 - End Time 2025-02-10 13:58:05 [2025-02-10 13:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444857', 'tblTempUsageDetail_20' ) start [2025-02-10 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444857', 'tblTempUsageDetail_20' ) end [2025-02-10 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444857', 'tblTempVendorCDR_20' ) start [2025-02-10 13:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444857', 'tblTempVendorCDR_20' ) end [2025-02-10 13:58:27] Production.INFO: ProcessCDR(1,14444857,1,1,2) [2025-02-10 13:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444857', 'tblTempUsageDetail_20' ) start [2025-02-10 13:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444857', 'tblTempUsageDetail_20' ) end [2025-02-10 13:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:58:33] Production.INFO: ==27177== Releasing lock... [2025-02-10 13:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:58:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 10:59:05 [end_date_ymd] => 2025-02-10 13:59:05 [RateCDR] => 1 ) [2025-02-10 13: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-10 10:59:05' and `end` < '2025-02-10 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-10 13:59:20] Production.INFO: count ==5132 [2025-02-10 13:59:22] Production.ERROR: pbx CDR StartTime 2025-02-10 10:59:05 - End Time 2025-02-10 13:59:05 [2025-02-10 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444862', 'tblTempUsageDetail_20' ) start [2025-02-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444862', 'tblTempUsageDetail_20' ) end [2025-02-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444862', 'tblTempVendorCDR_20' ) start [2025-02-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444862', 'tblTempVendorCDR_20' ) end [2025-02-10 13:59:22] Production.INFO: ProcessCDR(1,14444862,1,1,2) [2025-02-10 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444862', 'tblTempUsageDetail_20' ) start [2025-02-10 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444862', 'tblTempUsageDetail_20' ) end [2025-02-10 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 13:59:26] Production.INFO: ==27295== Releasing lock... [2025-02-10 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 13:59:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:00:06 [end_date_ymd] => 2025-02-10 14:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 11:00:06' and `end` < '2025-02-10 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-10 14:00:27] Production.INFO: count ==5137 [2025-02-10 14:00:29] Production.ERROR: pbx CDR StartTime 2025-02-10 11:00:06 - End Time 2025-02-10 14:00:06 [2025-02-10 14:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444868', 'tblTempUsageDetail_20' ) start [2025-02-10 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444868', 'tblTempUsageDetail_20' ) end [2025-02-10 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444868', 'tblTempVendorCDR_20' ) start [2025-02-10 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444868', 'tblTempVendorCDR_20' ) end [2025-02-10 14:00:29] Production.INFO: ProcessCDR(1,14444868,1,1,2) [2025-02-10 14:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444868', 'tblTempUsageDetail_20' ) start [2025-02-10 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444868', 'tblTempUsageDetail_20' ) end [2025-02-10 14:00:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:00:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:00:34] Production.INFO: ==27378== Releasing lock... [2025-02-10 14:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:00:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:01:05 [end_date_ymd] => 2025-02-10 14:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:01:05' and `end` < '2025-02-10 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-10 14:01:23] Production.INFO: count ==5125 [2025-02-10 14:01:26] Production.ERROR: pbx CDR StartTime 2025-02-10 11:01:05 - End Time 2025-02-10 14:01:05 [2025-02-10 14:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444873', 'tblTempUsageDetail_20' ) start [2025-02-10 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444873', 'tblTempUsageDetail_20' ) end [2025-02-10 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444873', 'tblTempVendorCDR_20' ) start [2025-02-10 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444873', 'tblTempVendorCDR_20' ) end [2025-02-10 14:01:26] Production.INFO: ProcessCDR(1,14444873,1,1,2) [2025-02-10 14:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444873', 'tblTempUsageDetail_20' ) start [2025-02-10 14:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444873', 'tblTempUsageDetail_20' ) end [2025-02-10 14:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:01:30] Production.INFO: ==27470== Releasing lock... [2025-02-10 14:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:01:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:02:05 [end_date_ymd] => 2025-02-10 14:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:02:05' and `end` < '2025-02-10 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-10 14:02:33] Production.INFO: count ==5147 [2025-02-10 14:02:35] Production.ERROR: pbx CDR StartTime 2025-02-10 11:02:05 - End Time 2025-02-10 14:02:05 [2025-02-10 14:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444878', 'tblTempUsageDetail_20' ) start [2025-02-10 14:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444878', 'tblTempUsageDetail_20' ) end [2025-02-10 14:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444878', 'tblTempVendorCDR_20' ) start [2025-02-10 14:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444878', 'tblTempVendorCDR_20' ) end [2025-02-10 14:02:36] Production.INFO: ProcessCDR(1,14444878,1,1,2) [2025-02-10 14:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444878', 'tblTempUsageDetail_20' ) start [2025-02-10 14:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444878', 'tblTempUsageDetail_20' ) end [2025-02-10 14:02:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:02:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:02:41] Production.INFO: ==27553== Releasing lock... [2025-02-10 14:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:02:41] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:03:05 [end_date_ymd] => 2025-02-10 14:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:03:05' and `end` < '2025-02-10 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-10 14:03:23] Production.INFO: count ==5132 [2025-02-10 14:03:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:03:05 - End Time 2025-02-10 14:03:05 [2025-02-10 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444883', 'tblTempUsageDetail_20' ) start [2025-02-10 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444883', 'tblTempUsageDetail_20' ) end [2025-02-10 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444883', 'tblTempVendorCDR_20' ) start [2025-02-10 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444883', 'tblTempVendorCDR_20' ) end [2025-02-10 14:03:25] Production.INFO: ProcessCDR(1,14444883,1,1,2) [2025-02-10 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444883', 'tblTempUsageDetail_20' ) start [2025-02-10 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444883', 'tblTempUsageDetail_20' ) end [2025-02-10 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:03:30] Production.INFO: ==27632== Releasing lock... [2025-02-10 14:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:03:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:04:05 [end_date_ymd] => 2025-02-10 14:04:05 [RateCDR] => 1 ) [2025-02-10 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:04:05' and `end` < '2025-02-10 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:04:19] Production.INFO: count ==5134 [2025-02-10 14:04:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:04:05 - End Time 2025-02-10 14:04:05 [2025-02-10 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444888', 'tblTempUsageDetail_20' ) start [2025-02-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444888', 'tblTempUsageDetail_20' ) end [2025-02-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444888', 'tblTempVendorCDR_20' ) start [2025-02-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444888', 'tblTempVendorCDR_20' ) end [2025-02-10 14:04:21] Production.INFO: ProcessCDR(1,14444888,1,1,2) [2025-02-10 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444888', 'tblTempUsageDetail_20' ) start [2025-02-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444888', 'tblTempUsageDetail_20' ) end [2025-02-10 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:04:26] Production.INFO: ==27715== Releasing lock... [2025-02-10 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:04:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:05:05 [end_date_ymd] => 2025-02-10 14:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:05:05' and `end` < '2025-02-10 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-10 14:05:19] Production.INFO: count ==5123 [2025-02-10 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:05:05 - End Time 2025-02-10 14:05:05 [2025-02-10 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444893', 'tblTempUsageDetail_20' ) start [2025-02-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444893', 'tblTempUsageDetail_20' ) end [2025-02-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444893', 'tblTempVendorCDR_20' ) start [2025-02-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444893', 'tblTempVendorCDR_20' ) end [2025-02-10 14:05:21] Production.INFO: ProcessCDR(1,14444893,1,1,2) [2025-02-10 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444893', 'tblTempUsageDetail_20' ) start [2025-02-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444893', 'tblTempUsageDetail_20' ) end [2025-02-10 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:05:26] Production.INFO: ==27795== Releasing lock... [2025-02-10 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:05:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:06:05 [end_date_ymd] => 2025-02-10 14:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:06:05' and `end` < '2025-02-10 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-10 14:06:20] Production.INFO: count ==5125 [2025-02-10 14:06:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:06:05 - End Time 2025-02-10 14:06:05 [2025-02-10 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444898', 'tblTempUsageDetail_20' ) start [2025-02-10 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444898', 'tblTempUsageDetail_20' ) end [2025-02-10 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444898', 'tblTempVendorCDR_20' ) start [2025-02-10 14:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444898', 'tblTempVendorCDR_20' ) end [2025-02-10 14:06:23] Production.INFO: ProcessCDR(1,14444898,1,1,2) [2025-02-10 14:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444898', 'tblTempUsageDetail_20' ) start [2025-02-10 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444898', 'tblTempUsageDetail_20' ) end [2025-02-10 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:06:27] Production.INFO: ==27883== Releasing lock... [2025-02-10 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:06:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:07:05 [end_date_ymd] => 2025-02-10 14:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:07:05' and `end` < '2025-02-10 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-10 14:07:19] Production.INFO: count ==5139 [2025-02-10 14:07:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:07:05 - End Time 2025-02-10 14:07:05 [2025-02-10 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444903', 'tblTempUsageDetail_20' ) start [2025-02-10 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444903', 'tblTempUsageDetail_20' ) end [2025-02-10 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444903', 'tblTempVendorCDR_20' ) start [2025-02-10 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444903', 'tblTempVendorCDR_20' ) end [2025-02-10 14:07:21] Production.INFO: ProcessCDR(1,14444903,1,1,2) [2025-02-10 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444903', 'tblTempUsageDetail_20' ) start [2025-02-10 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444903', 'tblTempUsageDetail_20' ) end [2025-02-10 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:07:26] Production.INFO: ==27963== Releasing lock... [2025-02-10 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:07:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:08:05 [end_date_ymd] => 2025-02-10 14:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:08:05' and `end` < '2025-02-10 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-10 14:08:33] Production.INFO: count ==5147 [2025-02-10 14:08:35] Production.ERROR: pbx CDR StartTime 2025-02-10 11:08:05 - End Time 2025-02-10 14:08:05 [2025-02-10 14:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444908', 'tblTempUsageDetail_20' ) start [2025-02-10 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444908', 'tblTempUsageDetail_20' ) end [2025-02-10 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444908', 'tblTempVendorCDR_20' ) start [2025-02-10 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444908', 'tblTempVendorCDR_20' ) end [2025-02-10 14:08:36] Production.INFO: ProcessCDR(1,14444908,1,1,2) [2025-02-10 14:08:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:08:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444908', 'tblTempUsageDetail_20' ) start [2025-02-10 14:08:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444908', 'tblTempUsageDetail_20' ) end [2025-02-10 14:08:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:08:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:08:40] Production.INFO: ==28049== Releasing lock... [2025-02-10 14:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:08:40] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:09:04 [end_date_ymd] => 2025-02-10 14:09:04 [RateCDR] => 1 ) [2025-02-10 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:09:04' and `end` < '2025-02-10 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:09:24] Production.INFO: count ==5133 [2025-02-10 14:09:26] Production.ERROR: pbx CDR StartTime 2025-02-10 11:09:04 - End Time 2025-02-10 14:09:04 [2025-02-10 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444913', 'tblTempUsageDetail_20' ) start [2025-02-10 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444913', 'tblTempUsageDetail_20' ) end [2025-02-10 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444913', 'tblTempVendorCDR_20' ) start [2025-02-10 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444913', 'tblTempVendorCDR_20' ) end [2025-02-10 14:09:26] Production.INFO: ProcessCDR(1,14444913,1,1,2) [2025-02-10 14:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444913', 'tblTempUsageDetail_20' ) start [2025-02-10 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444913', 'tblTempUsageDetail_20' ) end [2025-02-10 14:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:09:31] Production.INFO: ==28132== Releasing lock... [2025-02-10 14:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:09:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:10:05 [end_date_ymd] => 2025-02-10 14:10:05 [RateCDR] => 1 ) [2025-02-10 14:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:10:05' and `end` < '2025-02-10 14:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:10:20] Production.INFO: count ==5148 [2025-02-10 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:10:05 - End Time 2025-02-10 14:10:05 [2025-02-10 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444919', 'tblTempUsageDetail_20' ) start [2025-02-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444919', 'tblTempUsageDetail_20' ) end [2025-02-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444919', 'tblTempVendorCDR_20' ) start [2025-02-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444919', 'tblTempVendorCDR_20' ) end [2025-02-10 14:10:22] Production.INFO: ProcessCDR(1,14444919,1,1,2) [2025-02-10 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444919', 'tblTempUsageDetail_20' ) start [2025-02-10 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444919', 'tblTempUsageDetail_20' ) end [2025-02-10 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:10:27] Production.INFO: ==28213== Releasing lock... [2025-02-10 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:10:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:11:04 [end_date_ymd] => 2025-02-10 14:11:04 [RateCDR] => 1 ) [2025-02-10 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:11:04' and `end` < '2025-02-10 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:11:20] Production.INFO: count ==5150 [2025-02-10 14:11:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:11:04 - End Time 2025-02-10 14:11:04 [2025-02-10 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444924', 'tblTempUsageDetail_20' ) start [2025-02-10 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444924', 'tblTempUsageDetail_20' ) end [2025-02-10 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444924', 'tblTempVendorCDR_20' ) start [2025-02-10 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444924', 'tblTempVendorCDR_20' ) end [2025-02-10 14:11:22] Production.INFO: ProcessCDR(1,14444924,1,1,2) [2025-02-10 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444924', 'tblTempUsageDetail_20' ) start [2025-02-10 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444924', 'tblTempUsageDetail_20' ) end [2025-02-10 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:11:27] Production.INFO: ==28291== Releasing lock... [2025-02-10 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:11:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:12:05 [end_date_ymd] => 2025-02-10 14:12:05 [RateCDR] => 1 ) [2025-02-10 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:12:05' and `end` < '2025-02-10 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:12:20] Production.INFO: count ==5117 [2025-02-10 14:12:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:12:05 - End Time 2025-02-10 14:12:05 [2025-02-10 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444929', 'tblTempUsageDetail_20' ) start [2025-02-10 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444929', 'tblTempUsageDetail_20' ) end [2025-02-10 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444929', 'tblTempVendorCDR_20' ) start [2025-02-10 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444929', 'tblTempVendorCDR_20' ) end [2025-02-10 14:12:22] Production.INFO: ProcessCDR(1,14444929,1,1,2) [2025-02-10 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444929', 'tblTempUsageDetail_20' ) start [2025-02-10 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444929', 'tblTempUsageDetail_20' ) end [2025-02-10 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:12:27] Production.INFO: ==28372== Releasing lock... [2025-02-10 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:12:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:13:04 [end_date_ymd] => 2025-02-10 14:13:04 [RateCDR] => 1 ) [2025-02-10 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:13:04' and `end` < '2025-02-10 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:13:24] Production.INFO: count ==5097 [2025-02-10 14:13:26] Production.ERROR: pbx CDR StartTime 2025-02-10 11:13:04 - End Time 2025-02-10 14:13:04 [2025-02-10 14:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444934', 'tblTempUsageDetail_20' ) start [2025-02-10 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444934', 'tblTempUsageDetail_20' ) end [2025-02-10 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444934', 'tblTempVendorCDR_20' ) start [2025-02-10 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444934', 'tblTempVendorCDR_20' ) end [2025-02-10 14:13:26] Production.INFO: ProcessCDR(1,14444934,1,1,2) [2025-02-10 14:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444934', 'tblTempUsageDetail_20' ) start [2025-02-10 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444934', 'tblTempUsageDetail_20' ) end [2025-02-10 14:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:13:31] Production.INFO: ==28458== Releasing lock... [2025-02-10 14:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:13:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:14:05 [end_date_ymd] => 2025-02-10 14:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:14:05' and `end` < '2025-02-10 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-10 14:14:26] Production.INFO: count ==5099 [2025-02-10 14:14:28] Production.ERROR: pbx CDR StartTime 2025-02-10 11:14:05 - End Time 2025-02-10 14:14:05 [2025-02-10 14:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444939', 'tblTempUsageDetail_20' ) start [2025-02-10 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444939', 'tblTempUsageDetail_20' ) end [2025-02-10 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444939', 'tblTempVendorCDR_20' ) start [2025-02-10 14:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444939', 'tblTempVendorCDR_20' ) end [2025-02-10 14:14:28] Production.INFO: ProcessCDR(1,14444939,1,1,2) [2025-02-10 14:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444939', 'tblTempUsageDetail_20' ) start [2025-02-10 14:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444939', 'tblTempUsageDetail_20' ) end [2025-02-10 14:14:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:14:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:14:33] Production.INFO: ==28575== Releasing lock... [2025-02-10 14:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:14:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:15:04 [end_date_ymd] => 2025-02-10 14:15:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:15:04' and `end` < '2025-02-10 14: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-10 14:15:19] Production.INFO: count ==5101 [2025-02-10 14:15:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:15:04 - End Time 2025-02-10 14:15:04 [2025-02-10 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444944', 'tblTempUsageDetail_20' ) start [2025-02-10 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444944', 'tblTempUsageDetail_20' ) end [2025-02-10 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444944', 'tblTempVendorCDR_20' ) start [2025-02-10 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444944', 'tblTempVendorCDR_20' ) end [2025-02-10 14:15:22] Production.INFO: ProcessCDR(1,14444944,1,1,2) [2025-02-10 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444944', 'tblTempUsageDetail_20' ) start [2025-02-10 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444944', 'tblTempUsageDetail_20' ) end [2025-02-10 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:15:27] Production.INFO: ==28659== Releasing lock... [2025-02-10 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:15:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:16:05 [end_date_ymd] => 2025-02-10 14:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:16:05' and `end` < '2025-02-10 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-10 14:16:21] Production.INFO: count ==5078 [2025-02-10 14:16:24] Production.ERROR: pbx CDR StartTime 2025-02-10 11:16:05 - End Time 2025-02-10 14:16:05 [2025-02-10 14:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444949', 'tblTempUsageDetail_20' ) start [2025-02-10 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444949', 'tblTempUsageDetail_20' ) end [2025-02-10 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444949', 'tblTempVendorCDR_20' ) start [2025-02-10 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444949', 'tblTempVendorCDR_20' ) end [2025-02-10 14:16:24] Production.INFO: ProcessCDR(1,14444949,1,1,2) [2025-02-10 14:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444949', 'tblTempUsageDetail_20' ) start [2025-02-10 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444949', 'tblTempUsageDetail_20' ) end [2025-02-10 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:16:29] Production.INFO: ==28738== Releasing lock... [2025-02-10 14:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:16:29] Production.INFO: 66 MB #Memory Used# [2025-02-10 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:17:05 [end_date_ymd] => 2025-02-10 14:17:05 [RateCDR] => 1 ) [2025-02-10 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:17:05' and `end` < '2025-02-10 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:17:19] Production.INFO: count ==5062 [2025-02-10 14:17:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:17:05 - End Time 2025-02-10 14:17:05 [2025-02-10 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444954', 'tblTempUsageDetail_20' ) start [2025-02-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444954', 'tblTempUsageDetail_20' ) end [2025-02-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444954', 'tblTempVendorCDR_20' ) start [2025-02-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444954', 'tblTempVendorCDR_20' ) end [2025-02-10 14:17:21] Production.INFO: ProcessCDR(1,14444954,1,1,2) [2025-02-10 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444954', 'tblTempUsageDetail_20' ) start [2025-02-10 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444954', 'tblTempUsageDetail_20' ) end [2025-02-10 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:17:26] Production.INFO: ==28817== Releasing lock... [2025-02-10 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:17:26] Production.INFO: 66 MB #Memory Used# [2025-02-10 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:18:05 [end_date_ymd] => 2025-02-10 14:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:18:05' and `end` < '2025-02-10 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-10 14:18:32] Production.INFO: count ==5045 [2025-02-10 14:18:34] Production.ERROR: pbx CDR StartTime 2025-02-10 11:18:05 - End Time 2025-02-10 14:18:05 [2025-02-10 14:18:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444959', 'tblTempUsageDetail_20' ) start [2025-02-10 14:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444959', 'tblTempUsageDetail_20' ) end [2025-02-10 14:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444959', 'tblTempVendorCDR_20' ) start [2025-02-10 14:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444959', 'tblTempVendorCDR_20' ) end [2025-02-10 14:18:34] Production.INFO: ProcessCDR(1,14444959,1,1,2) [2025-02-10 14:18:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444959', 'tblTempUsageDetail_20' ) start [2025-02-10 14:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444959', 'tblTempUsageDetail_20' ) end [2025-02-10 14:18:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:18:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:18:40] Production.INFO: ==28890== Releasing lock... [2025-02-10 14:18:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:18:40] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:19:05 [end_date_ymd] => 2025-02-10 14:19:05 [RateCDR] => 1 ) [2025-02-10 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:19:05' and `end` < '2025-02-10 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:19:23] Production.INFO: count ==5055 [2025-02-10 14:19:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:19:05 - End Time 2025-02-10 14:19:05 [2025-02-10 14:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444964', 'tblTempUsageDetail_20' ) start [2025-02-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444964', 'tblTempUsageDetail_20' ) end [2025-02-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444964', 'tblTempVendorCDR_20' ) start [2025-02-10 14:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444964', 'tblTempVendorCDR_20' ) end [2025-02-10 14:19:25] Production.INFO: ProcessCDR(1,14444964,1,1,2) [2025-02-10 14:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444964', 'tblTempUsageDetail_20' ) start [2025-02-10 14:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444964', 'tblTempUsageDetail_20' ) end [2025-02-10 14:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:19:30] Production.INFO: ==28982== Releasing lock... [2025-02-10 14:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:19:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:20:05 [end_date_ymd] => 2025-02-10 14:20:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:20:05' and `end` < '2025-02-10 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-10 14:20:20] Production.INFO: count ==5036 [2025-02-10 14:20:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:20:05 - End Time 2025-02-10 14:20:05 [2025-02-10 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444970', 'tblTempUsageDetail_20' ) start [2025-02-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444970', 'tblTempUsageDetail_20' ) end [2025-02-10 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444970', 'tblTempVendorCDR_20' ) start [2025-02-10 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444970', 'tblTempVendorCDR_20' ) end [2025-02-10 14:20:23] Production.INFO: ProcessCDR(1,14444970,1,1,2) [2025-02-10 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444970', 'tblTempUsageDetail_20' ) start [2025-02-10 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444970', 'tblTempUsageDetail_20' ) end [2025-02-10 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:20:27] Production.INFO: ==29062== Releasing lock... [2025-02-10 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:20:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:21:05 [end_date_ymd] => 2025-02-10 14:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:21:05' and `end` < '2025-02-10 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-10 14:21:19] Production.INFO: count ==5063 [2025-02-10 14:21:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:21:05 - End Time 2025-02-10 14:21:05 [2025-02-10 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444975', 'tblTempUsageDetail_20' ) start [2025-02-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444975', 'tblTempUsageDetail_20' ) end [2025-02-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444975', 'tblTempVendorCDR_20' ) start [2025-02-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444975', 'tblTempVendorCDR_20' ) end [2025-02-10 14:21:21] Production.INFO: ProcessCDR(1,14444975,1,1,2) [2025-02-10 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444975', 'tblTempUsageDetail_20' ) start [2025-02-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444975', 'tblTempUsageDetail_20' ) end [2025-02-10 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:21:26] Production.INFO: ==29144== Releasing lock... [2025-02-10 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:21:26] Production.INFO: 66 MB #Memory Used# [2025-02-10 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:22:05 [end_date_ymd] => 2025-02-10 14:22:05 [RateCDR] => 1 ) [2025-02-10 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:22:05' and `end` < '2025-02-10 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:22:19] Production.INFO: count ==5015 [2025-02-10 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:22:05 - End Time 2025-02-10 14:22:05 [2025-02-10 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444980', 'tblTempUsageDetail_20' ) start [2025-02-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444980', 'tblTempUsageDetail_20' ) end [2025-02-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444980', 'tblTempVendorCDR_20' ) start [2025-02-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444980', 'tblTempVendorCDR_20' ) end [2025-02-10 14:22:21] Production.INFO: ProcessCDR(1,14444980,1,1,2) [2025-02-10 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444980', 'tblTempUsageDetail_20' ) start [2025-02-10 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444980', 'tblTempUsageDetail_20' ) end [2025-02-10 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:22:26] Production.INFO: ==29219== Releasing lock... [2025-02-10 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:22:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:23:05 [end_date_ymd] => 2025-02-10 14:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:23:05' and `end` < '2025-02-10 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-10 14:23:19] Production.INFO: count ==5016 [2025-02-10 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:23:05 - End Time 2025-02-10 14:23:05 [2025-02-10 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444985', 'tblTempUsageDetail_20' ) start [2025-02-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444985', 'tblTempUsageDetail_20' ) end [2025-02-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444985', 'tblTempVendorCDR_20' ) start [2025-02-10 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444985', 'tblTempVendorCDR_20' ) end [2025-02-10 14:23:22] Production.INFO: ProcessCDR(1,14444985,1,1,2) [2025-02-10 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444985', 'tblTempUsageDetail_20' ) start [2025-02-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444985', 'tblTempUsageDetail_20' ) end [2025-02-10 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:23:26] Production.INFO: ==29300== Releasing lock... [2025-02-10 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:23:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:24:06 [end_date_ymd] => 2025-02-10 14:24:06 [RateCDR] => 1 ) [2025-02-10 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:24:06' and `end` < '2025-02-10 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:24:20] Production.INFO: count ==4974 [2025-02-10 14:24:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:24:06 - End Time 2025-02-10 14:24:06 [2025-02-10 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444990', 'tblTempUsageDetail_20' ) start [2025-02-10 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444990', 'tblTempUsageDetail_20' ) end [2025-02-10 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444990', 'tblTempVendorCDR_20' ) start [2025-02-10 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444990', 'tblTempVendorCDR_20' ) end [2025-02-10 14:24:22] Production.INFO: ProcessCDR(1,14444990,1,1,2) [2025-02-10 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444990', 'tblTempUsageDetail_20' ) start [2025-02-10 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444990', 'tblTempUsageDetail_20' ) end [2025-02-10 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:24:27] Production.INFO: ==29381== Releasing lock... [2025-02-10 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:24:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:25:05 [end_date_ymd] => 2025-02-10 14:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:25:05' and `end` < '2025-02-10 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-10 14:25:20] Production.INFO: count ==4924 [2025-02-10 14:25:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:25:05 - End Time 2025-02-10 14:25:05 [2025-02-10 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444995', 'tblTempUsageDetail_20' ) start [2025-02-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14444995', 'tblTempUsageDetail_20' ) end [2025-02-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444995', 'tblTempVendorCDR_20' ) start [2025-02-10 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14444995', 'tblTempVendorCDR_20' ) end [2025-02-10 14:25:22] Production.INFO: ProcessCDR(1,14444995,1,1,2) [2025-02-10 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14444995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14444995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14444995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14444995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444995', 'tblTempUsageDetail_20' ) start [2025-02-10 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14444995', 'tblTempUsageDetail_20' ) end [2025-02-10 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:25:27] Production.INFO: ==29462== Releasing lock... [2025-02-10 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:25:27] Production.INFO: 65 MB #Memory Used# [2025-02-10 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:26:05 [end_date_ymd] => 2025-02-10 14:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:26:05' and `end` < '2025-02-10 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-10 14:26:20] Production.INFO: count ==4901 [2025-02-10 14:26:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:26:05 - End Time 2025-02-10 14:26:05 [2025-02-10 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445000', 'tblTempUsageDetail_20' ) start [2025-02-10 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445000', 'tblTempUsageDetail_20' ) end [2025-02-10 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445000', 'tblTempVendorCDR_20' ) start [2025-02-10 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445000', 'tblTempVendorCDR_20' ) end [2025-02-10 14:26:22] Production.INFO: ProcessCDR(1,14445000,1,1,2) [2025-02-10 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445000', 'tblTempUsageDetail_20' ) start [2025-02-10 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445000', 'tblTempUsageDetail_20' ) end [2025-02-10 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:26:27] Production.INFO: ==29538== Releasing lock... [2025-02-10 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:26:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-10 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:27:04 [end_date_ymd] => 2025-02-10 14:27:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:27:04' and `end` < '2025-02-10 14: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-10 14:27:23] Production.INFO: count ==4883 [2025-02-10 14:27:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:27:04 - End Time 2025-02-10 14:27:04 [2025-02-10 14:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445005', 'tblTempUsageDetail_20' ) start [2025-02-10 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445005', 'tblTempUsageDetail_20' ) end [2025-02-10 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445005', 'tblTempVendorCDR_20' ) start [2025-02-10 14:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445005', 'tblTempVendorCDR_20' ) end [2025-02-10 14:27:25] Production.INFO: ProcessCDR(1,14445005,1,1,2) [2025-02-10 14:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445005', 'tblTempUsageDetail_20' ) start [2025-02-10 14:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445005', 'tblTempUsageDetail_20' ) end [2025-02-10 14:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:27:29] Production.INFO: ==29614== Releasing lock... [2025-02-10 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:27:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:28:05 [end_date_ymd] => 2025-02-10 14:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:28:05' and `end` < '2025-02-10 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-10 14:28:22] Production.INFO: count ==4865 [2025-02-10 14:28:24] Production.ERROR: pbx CDR StartTime 2025-02-10 11:28:05 - End Time 2025-02-10 14:28:05 [2025-02-10 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445010', 'tblTempUsageDetail_20' ) start [2025-02-10 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445010', 'tblTempUsageDetail_20' ) end [2025-02-10 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445010', 'tblTempVendorCDR_20' ) start [2025-02-10 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445010', 'tblTempVendorCDR_20' ) end [2025-02-10 14:28:25] Production.INFO: ProcessCDR(1,14445010,1,1,2) [2025-02-10 14:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445010', 'tblTempUsageDetail_20' ) start [2025-02-10 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445010', 'tblTempUsageDetail_20' ) end [2025-02-10 14:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:28:29] Production.INFO: ==29693== Releasing lock... [2025-02-10 14:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:28:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:29:04 [end_date_ymd] => 2025-02-10 14:29:04 [RateCDR] => 1 ) [2025-02-10 14:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:29:04' and `end` < '2025-02-10 14:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:29:18] Production.INFO: count ==4855 [2025-02-10 14:29:20] Production.ERROR: pbx CDR StartTime 2025-02-10 11:29:04 - End Time 2025-02-10 14:29:04 [2025-02-10 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445015', 'tblTempUsageDetail_20' ) start [2025-02-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445015', 'tblTempUsageDetail_20' ) end [2025-02-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445015', 'tblTempVendorCDR_20' ) start [2025-02-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445015', 'tblTempVendorCDR_20' ) end [2025-02-10 14:29:21] Production.INFO: ProcessCDR(1,14445015,1,1,2) [2025-02-10 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445015', 'tblTempUsageDetail_20' ) start [2025-02-10 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445015', 'tblTempUsageDetail_20' ) end [2025-02-10 14:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:29:25] Production.INFO: ==29770== Releasing lock... [2025-02-10 14:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:29:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:30:06 [end_date_ymd] => 2025-02-10 14:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 11:30:06' and `end` < '2025-02-10 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-10 14:30:20] Production.INFO: count ==4836 [2025-02-10 14:30:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:30:06 - End Time 2025-02-10 14:30:06 [2025-02-10 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445020', 'tblTempUsageDetail_20' ) start [2025-02-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445020', 'tblTempUsageDetail_20' ) end [2025-02-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445020', 'tblTempVendorCDR_20' ) start [2025-02-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445020', 'tblTempVendorCDR_20' ) end [2025-02-10 14:30:22] Production.INFO: ProcessCDR(1,14445020,1,1,2) [2025-02-10 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445020', 'tblTempUsageDetail_20' ) start [2025-02-10 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445020', 'tblTempUsageDetail_20' ) end [2025-02-10 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:30:27] Production.INFO: ==29892== Releasing lock... [2025-02-10 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:30:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:31:05 [end_date_ymd] => 2025-02-10 14:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:31:05' and `end` < '2025-02-10 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-10 14:31:21] Production.INFO: count ==4796 [2025-02-10 14:31:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:31:05 - End Time 2025-02-10 14:31:05 [2025-02-10 14:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445026', 'tblTempUsageDetail_20' ) start [2025-02-10 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445026', 'tblTempUsageDetail_20' ) end [2025-02-10 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445026', 'tblTempVendorCDR_20' ) start [2025-02-10 14:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445026', 'tblTempVendorCDR_20' ) end [2025-02-10 14:31:23] Production.INFO: ProcessCDR(1,14445026,1,1,2) [2025-02-10 14:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445026', 'tblTempUsageDetail_20' ) start [2025-02-10 14:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445026', 'tblTempUsageDetail_20' ) end [2025-02-10 14:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:31:28] Production.INFO: ==29972== Releasing lock... [2025-02-10 14:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:31:28] Production.INFO: 64 MB #Memory Used# [2025-02-10 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:32:05 [end_date_ymd] => 2025-02-10 14:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:32:05' and `end` < '2025-02-10 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-10 14:32:23] Production.INFO: count ==4786 [2025-02-10 14:32:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:32:05 - End Time 2025-02-10 14:32:05 [2025-02-10 14:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445031', 'tblTempUsageDetail_20' ) start [2025-02-10 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445031', 'tblTempUsageDetail_20' ) end [2025-02-10 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445031', 'tblTempVendorCDR_20' ) start [2025-02-10 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445031', 'tblTempVendorCDR_20' ) end [2025-02-10 14:32:25] Production.INFO: ProcessCDR(1,14445031,1,1,2) [2025-02-10 14:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445031', 'tblTempUsageDetail_20' ) start [2025-02-10 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445031', 'tblTempUsageDetail_20' ) end [2025-02-10 14:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:32:30] Production.INFO: ==30055== Releasing lock... [2025-02-10 14:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:32:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:33:05 [end_date_ymd] => 2025-02-10 14:33:05 [RateCDR] => 1 ) [2025-02-10 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:33:05' and `end` < '2025-02-10 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:33:28] Production.INFO: count ==4788 [2025-02-10 14:33:30] Production.ERROR: pbx CDR StartTime 2025-02-10 11:33:05 - End Time 2025-02-10 14:33:05 [2025-02-10 14:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445036', 'tblTempUsageDetail_20' ) start [2025-02-10 14:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445036', 'tblTempUsageDetail_20' ) end [2025-02-10 14:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445036', 'tblTempVendorCDR_20' ) start [2025-02-10 14:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445036', 'tblTempVendorCDR_20' ) end [2025-02-10 14:33:30] Production.INFO: ProcessCDR(1,14445036,1,1,2) [2025-02-10 14:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445036', 'tblTempUsageDetail_20' ) start [2025-02-10 14:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445036', 'tblTempUsageDetail_20' ) end [2025-02-10 14:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:33:35] Production.INFO: ==30133== Releasing lock... [2025-02-10 14:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:33:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:34:05 [end_date_ymd] => 2025-02-10 14:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:34:05' and `end` < '2025-02-10 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-10 14:34:26] Production.INFO: count ==4770 [2025-02-10 14:34:28] Production.ERROR: pbx CDR StartTime 2025-02-10 11:34:05 - End Time 2025-02-10 14:34:05 [2025-02-10 14:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445041', 'tblTempUsageDetail_20' ) start [2025-02-10 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445041', 'tblTempUsageDetail_20' ) end [2025-02-10 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445041', 'tblTempVendorCDR_20' ) start [2025-02-10 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445041', 'tblTempVendorCDR_20' ) end [2025-02-10 14:34:28] Production.INFO: ProcessCDR(1,14445041,1,1,2) [2025-02-10 14:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445041', 'tblTempUsageDetail_20' ) start [2025-02-10 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445041', 'tblTempUsageDetail_20' ) end [2025-02-10 14:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:34:32] Production.INFO: ==30213== Releasing lock... [2025-02-10 14:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:34:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:35:05 [end_date_ymd] => 2025-02-10 14:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:35:05' and `end` < '2025-02-10 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-10 14:35:26] Production.INFO: count ==4769 [2025-02-10 14:35:28] Production.ERROR: pbx CDR StartTime 2025-02-10 11:35:05 - End Time 2025-02-10 14:35:05 [2025-02-10 14:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445046', 'tblTempUsageDetail_20' ) start [2025-02-10 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445046', 'tblTempUsageDetail_20' ) end [2025-02-10 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445046', 'tblTempVendorCDR_20' ) start [2025-02-10 14:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445046', 'tblTempVendorCDR_20' ) end [2025-02-10 14:35:28] Production.INFO: ProcessCDR(1,14445046,1,1,2) [2025-02-10 14:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445046', 'tblTempUsageDetail_20' ) start [2025-02-10 14:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445046', 'tblTempUsageDetail_20' ) end [2025-02-10 14:35:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:35:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:35:33] Production.INFO: ==30298== Releasing lock... [2025-02-10 14:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:35:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:36:05 [end_date_ymd] => 2025-02-10 14:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:36:05' and `end` < '2025-02-10 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-10 14:36:34] Production.INFO: count ==4769 [2025-02-10 14:36:36] Production.ERROR: pbx CDR StartTime 2025-02-10 11:36:05 - End Time 2025-02-10 14:36:05 [2025-02-10 14:36:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445051', 'tblTempUsageDetail_20' ) start [2025-02-10 14:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445051', 'tblTempUsageDetail_20' ) end [2025-02-10 14:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445051', 'tblTempVendorCDR_20' ) start [2025-02-10 14:36:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445051', 'tblTempVendorCDR_20' ) end [2025-02-10 14:36:36] Production.INFO: ProcessCDR(1,14445051,1,1,2) [2025-02-10 14:36:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:36:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:36:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:36:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445051', 'tblTempUsageDetail_20' ) start [2025-02-10 14:36:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445051', 'tblTempUsageDetail_20' ) end [2025-02-10 14:36:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:36:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:36:41] Production.INFO: ==30373== Releasing lock... [2025-02-10 14:36:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:36:41] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:37:05 [end_date_ymd] => 2025-02-10 14:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:37:05' and `end` < '2025-02-10 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-10 14:37:22] Production.INFO: count ==4755 [2025-02-10 14:37:24] Production.ERROR: pbx CDR StartTime 2025-02-10 11:37:05 - End Time 2025-02-10 14:37:05 [2025-02-10 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445056', 'tblTempUsageDetail_20' ) start [2025-02-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445056', 'tblTempUsageDetail_20' ) end [2025-02-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445056', 'tblTempVendorCDR_20' ) start [2025-02-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445056', 'tblTempVendorCDR_20' ) end [2025-02-10 14:37:24] Production.INFO: ProcessCDR(1,14445056,1,1,2) [2025-02-10 14:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445056', 'tblTempUsageDetail_20' ) start [2025-02-10 14:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445056', 'tblTempUsageDetail_20' ) end [2025-02-10 14:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:37:29] Production.INFO: ==30445== Releasing lock... [2025-02-10 14:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:37:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:38:05 [end_date_ymd] => 2025-02-10 14:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:38:05' and `end` < '2025-02-10 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-10 14:38:23] Production.INFO: count ==4753 [2025-02-10 14:38:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:38:05 - End Time 2025-02-10 14:38:05 [2025-02-10 14:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445061', 'tblTempUsageDetail_20' ) start [2025-02-10 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445061', 'tblTempUsageDetail_20' ) end [2025-02-10 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445061', 'tblTempVendorCDR_20' ) start [2025-02-10 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445061', 'tblTempVendorCDR_20' ) end [2025-02-10 14:38:25] Production.INFO: ProcessCDR(1,14445061,1,1,2) [2025-02-10 14:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445061', 'tblTempUsageDetail_20' ) start [2025-02-10 14:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445061', 'tblTempUsageDetail_20' ) end [2025-02-10 14:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:38:30] Production.INFO: ==30525== Releasing lock... [2025-02-10 14:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:38:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:39:04 [end_date_ymd] => 2025-02-10 14:39:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:39:04' and `end` < '2025-02-10 14: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-10 14:39:19] Production.INFO: count ==4758 [2025-02-10 14:39:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:39:04 - End Time 2025-02-10 14:39:04 [2025-02-10 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445063', 'tblTempUsageDetail_20' ) start [2025-02-10 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445063', 'tblTempUsageDetail_20' ) end [2025-02-10 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445063', 'tblTempVendorCDR_20' ) start [2025-02-10 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445063', 'tblTempVendorCDR_20' ) end [2025-02-10 14:39:21] Production.INFO: ProcessCDR(1,14445063,1,1,2) [2025-02-10 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445063', 'tblTempUsageDetail_20' ) start [2025-02-10 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445063', 'tblTempUsageDetail_20' ) end [2025-02-10 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:39:26] Production.INFO: ==30595== Releasing lock... [2025-02-10 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:39:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:40:06 [end_date_ymd] => 2025-02-10 14:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 11:40:06' and `end` < '2025-02-10 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-10 14:40:21] Production.INFO: count ==4761 [2025-02-10 14:40:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:40:06 - End Time 2025-02-10 14:40:06 [2025-02-10 14:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445071', 'tblTempUsageDetail_20' ) start [2025-02-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445071', 'tblTempUsageDetail_20' ) end [2025-02-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445071', 'tblTempVendorCDR_20' ) start [2025-02-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445071', 'tblTempVendorCDR_20' ) end [2025-02-10 14:40:23] Production.INFO: ProcessCDR(1,14445071,1,1,2) [2025-02-10 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445071', 'tblTempUsageDetail_20' ) start [2025-02-10 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445071', 'tblTempUsageDetail_20' ) end [2025-02-10 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:40:27] Production.INFO: ==30670== Releasing lock... [2025-02-10 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:40:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:41:05 [end_date_ymd] => 2025-02-10 14:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:41:05' and `end` < '2025-02-10 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-10 14:41:19] Production.INFO: count ==4746 [2025-02-10 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:41:05 - End Time 2025-02-10 14:41:05 [2025-02-10 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445077', 'tblTempUsageDetail_20' ) start [2025-02-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445077', 'tblTempUsageDetail_20' ) end [2025-02-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445077', 'tblTempVendorCDR_20' ) start [2025-02-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445077', 'tblTempVendorCDR_20' ) end [2025-02-10 14:41:21] Production.INFO: ProcessCDR(1,14445077,1,1,2) [2025-02-10 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445077', 'tblTempUsageDetail_20' ) start [2025-02-10 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445077', 'tblTempUsageDetail_20' ) end [2025-02-10 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:41:27] Production.INFO: ==30747== Releasing lock... [2025-02-10 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:41:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:42:05 [end_date_ymd] => 2025-02-10 14:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:42:05' and `end` < '2025-02-10 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-10 14:42:32] Production.INFO: count ==4753 [2025-02-10 14:42:34] Production.ERROR: pbx CDR StartTime 2025-02-10 11:42:05 - End Time 2025-02-10 14:42:05 [2025-02-10 14:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445082', 'tblTempUsageDetail_20' ) start [2025-02-10 14:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445082', 'tblTempUsageDetail_20' ) end [2025-02-10 14:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445082', 'tblTempVendorCDR_20' ) start [2025-02-10 14:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445082', 'tblTempVendorCDR_20' ) end [2025-02-10 14:42:34] Production.INFO: ProcessCDR(1,14445082,1,1,2) [2025-02-10 14:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:42:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:42:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445082', 'tblTempUsageDetail_20' ) start [2025-02-10 14:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445082', 'tblTempUsageDetail_20' ) end [2025-02-10 14:42:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:42:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:42:39] Production.INFO: ==30819== Releasing lock... [2025-02-10 14:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:42:39] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:43:05 [end_date_ymd] => 2025-02-10 14:43:05 [RateCDR] => 1 ) [2025-02-10 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:43:05' and `end` < '2025-02-10 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:43:24] Production.INFO: count ==4750 [2025-02-10 14:43:26] Production.ERROR: pbx CDR StartTime 2025-02-10 11:43:05 - End Time 2025-02-10 14:43:05 [2025-02-10 14:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445087', 'tblTempUsageDetail_20' ) start [2025-02-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445087', 'tblTempUsageDetail_20' ) end [2025-02-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445087', 'tblTempVendorCDR_20' ) start [2025-02-10 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445087', 'tblTempVendorCDR_20' ) end [2025-02-10 14:43:26] Production.INFO: ProcessCDR(1,14445087,1,1,2) [2025-02-10 14:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445087', 'tblTempUsageDetail_20' ) start [2025-02-10 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445087', 'tblTempUsageDetail_20' ) end [2025-02-10 14:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:43:31] Production.INFO: ==30895== Releasing lock... [2025-02-10 14:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:43:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:44:05 [end_date_ymd] => 2025-02-10 14:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:44:05' and `end` < '2025-02-10 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-10 14:44:26] Production.INFO: count ==4762 [2025-02-10 14:44:28] Production.ERROR: pbx CDR StartTime 2025-02-10 11:44:05 - End Time 2025-02-10 14:44:05 [2025-02-10 14:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445092', 'tblTempUsageDetail_20' ) start [2025-02-10 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445092', 'tblTempUsageDetail_20' ) end [2025-02-10 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445092', 'tblTempVendorCDR_20' ) start [2025-02-10 14:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445092', 'tblTempVendorCDR_20' ) end [2025-02-10 14:44:28] Production.INFO: ProcessCDR(1,14445092,1,1,2) [2025-02-10 14:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445092', 'tblTempUsageDetail_20' ) start [2025-02-10 14:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445092', 'tblTempUsageDetail_20' ) end [2025-02-10 14:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:44:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:44:34] Production.INFO: ==30967== Releasing lock... [2025-02-10 14:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:44:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:45:05 [end_date_ymd] => 2025-02-10 14:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:45:05' and `end` < '2025-02-10 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-10 14:45:29] Production.INFO: count ==4771 [2025-02-10 14:45:31] Production.ERROR: pbx CDR StartTime 2025-02-10 11:45:05 - End Time 2025-02-10 14:45:05 [2025-02-10 14:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445097', 'tblTempUsageDetail_20' ) start [2025-02-10 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445097', 'tblTempUsageDetail_20' ) end [2025-02-10 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445097', 'tblTempVendorCDR_20' ) start [2025-02-10 14:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445097', 'tblTempVendorCDR_20' ) end [2025-02-10 14:45:31] Production.INFO: ProcessCDR(1,14445097,1,1,2) [2025-02-10 14:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445097', 'tblTempUsageDetail_20' ) start [2025-02-10 14:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445097', 'tblTempUsageDetail_20' ) end [2025-02-10 14:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:45:35] Production.INFO: ==31087== Releasing lock... [2025-02-10 14:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:45:35] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:46:05 [end_date_ymd] => 2025-02-10 14:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:46:05' and `end` < '2025-02-10 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-10 14:46:25] Production.INFO: count ==4764 [2025-02-10 14:46:27] Production.ERROR: pbx CDR StartTime 2025-02-10 11:46:05 - End Time 2025-02-10 14:46:05 [2025-02-10 14:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445102', 'tblTempUsageDetail_20' ) start [2025-02-10 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445102', 'tblTempUsageDetail_20' ) end [2025-02-10 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445102', 'tblTempVendorCDR_20' ) start [2025-02-10 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445102', 'tblTempVendorCDR_20' ) end [2025-02-10 14:46:27] Production.INFO: ProcessCDR(1,14445102,1,1,2) [2025-02-10 14:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445102', 'tblTempUsageDetail_20' ) start [2025-02-10 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445102', 'tblTempUsageDetail_20' ) end [2025-02-10 14:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:46:31] Production.INFO: ==31163== Releasing lock... [2025-02-10 14:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:46:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:47:05 [end_date_ymd] => 2025-02-10 14:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:47:05' and `end` < '2025-02-10 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-10 14:47:20] Production.INFO: count ==4752 [2025-02-10 14:47:22] Production.ERROR: pbx CDR StartTime 2025-02-10 11:47:05 - End Time 2025-02-10 14:47:05 [2025-02-10 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445107', 'tblTempUsageDetail_20' ) start [2025-02-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445107', 'tblTempUsageDetail_20' ) end [2025-02-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445107', 'tblTempVendorCDR_20' ) start [2025-02-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445107', 'tblTempVendorCDR_20' ) end [2025-02-10 14:47:22] Production.INFO: ProcessCDR(1,14445107,1,1,2) [2025-02-10 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445107', 'tblTempUsageDetail_20' ) start [2025-02-10 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445107', 'tblTempUsageDetail_20' ) end [2025-02-10 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:47:27] Production.INFO: ==31234== Releasing lock... [2025-02-10 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:47:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:48:04 [end_date_ymd] => 2025-02-10 14:48:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:48:04' and `end` < '2025-02-10 14: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-10 14:48:18] Production.INFO: count ==4735 [2025-02-10 14:48:20] Production.ERROR: pbx CDR StartTime 2025-02-10 11:48:04 - End Time 2025-02-10 14:48:04 [2025-02-10 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445112', 'tblTempUsageDetail_20' ) start [2025-02-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445112', 'tblTempUsageDetail_20' ) end [2025-02-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445112', 'tblTempVendorCDR_20' ) start [2025-02-10 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445112', 'tblTempVendorCDR_20' ) end [2025-02-10 14:48:20] Production.INFO: ProcessCDR(1,14445112,1,1,2) [2025-02-10 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445112', 'tblTempUsageDetail_20' ) start [2025-02-10 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445112', 'tblTempUsageDetail_20' ) end [2025-02-10 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:48:25] Production.INFO: ==31304== Releasing lock... [2025-02-10 14:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:48:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:49:05 [end_date_ymd] => 2025-02-10 14:49:05 [RateCDR] => 1 ) [2025-02-10 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:49:05' and `end` < '2025-02-10 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:49:21] Production.INFO: count ==4718 [2025-02-10 14:49:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:49:05 - End Time 2025-02-10 14:49:05 [2025-02-10 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445117', 'tblTempUsageDetail_20' ) start [2025-02-10 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445117', 'tblTempUsageDetail_20' ) end [2025-02-10 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445117', 'tblTempVendorCDR_20' ) start [2025-02-10 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445117', 'tblTempVendorCDR_20' ) end [2025-02-10 14:49:23] Production.INFO: ProcessCDR(1,14445117,1,1,2) [2025-02-10 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445117', 'tblTempUsageDetail_20' ) start [2025-02-10 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445117', 'tblTempUsageDetail_20' ) end [2025-02-10 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:49:28] Production.INFO: ==31376== Releasing lock... [2025-02-10 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:49:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:50:06 [end_date_ymd] => 2025-02-10 14:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 11:50:06' and `end` < '2025-02-10 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-10 14:50:23] Production.INFO: count ==4707 [2025-02-10 14:50:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:50:06 - End Time 2025-02-10 14:50:06 [2025-02-10 14:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445123', 'tblTempUsageDetail_20' ) start [2025-02-10 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445123', 'tblTempUsageDetail_20' ) end [2025-02-10 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445123', 'tblTempVendorCDR_20' ) start [2025-02-10 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445123', 'tblTempVendorCDR_20' ) end [2025-02-10 14:50:25] Production.INFO: ProcessCDR(1,14445123,1,1,2) [2025-02-10 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445123', 'tblTempUsageDetail_20' ) start [2025-02-10 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445123', 'tblTempUsageDetail_20' ) end [2025-02-10 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:50:30] Production.INFO: ==31448== Releasing lock... [2025-02-10 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:50:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:51:05 [end_date_ymd] => 2025-02-10 14:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:51:05' and `end` < '2025-02-10 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-10 14:51:26] Production.INFO: count ==4714 [2025-02-10 14:51:28] Production.ERROR: pbx CDR StartTime 2025-02-10 11:51:05 - End Time 2025-02-10 14:51:05 [2025-02-10 14:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445128', 'tblTempUsageDetail_20' ) start [2025-02-10 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445128', 'tblTempUsageDetail_20' ) end [2025-02-10 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445128', 'tblTempVendorCDR_20' ) start [2025-02-10 14:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445128', 'tblTempVendorCDR_20' ) end [2025-02-10 14:51:28] Production.INFO: ProcessCDR(1,14445128,1,1,2) [2025-02-10 14:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445128', 'tblTempUsageDetail_20' ) start [2025-02-10 14:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445128', 'tblTempUsageDetail_20' ) end [2025-02-10 14:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:51:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:51:33] Production.INFO: ==31520== Releasing lock... [2025-02-10 14:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:51:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:52:05 [end_date_ymd] => 2025-02-10 14:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:52:05' and `end` < '2025-02-10 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-10 14:52:19] Production.INFO: count ==4708 [2025-02-10 14:52:21] Production.ERROR: pbx CDR StartTime 2025-02-10 11:52:05 - End Time 2025-02-10 14:52:05 [2025-02-10 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445133', 'tblTempUsageDetail_20' ) start [2025-02-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445133', 'tblTempUsageDetail_20' ) end [2025-02-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445133', 'tblTempVendorCDR_20' ) start [2025-02-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445133', 'tblTempVendorCDR_20' ) end [2025-02-10 14:52:21] Production.INFO: ProcessCDR(1,14445133,1,1,2) [2025-02-10 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445133', 'tblTempUsageDetail_20' ) start [2025-02-10 14:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445133', 'tblTempUsageDetail_20' ) end [2025-02-10 14:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:52:24] Production.INFO: ==31590== Releasing lock... [2025-02-10 14:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:52:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:53:04 [end_date_ymd] => 2025-02-10 14:53:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:53:04' and `end` < '2025-02-10 14: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-10 14:53:32] Production.INFO: count ==4710 [2025-02-10 14:53:33] Production.ERROR: pbx CDR StartTime 2025-02-10 11:53:04 - End Time 2025-02-10 14:53:04 [2025-02-10 14:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445138', 'tblTempUsageDetail_20' ) start [2025-02-10 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445138', 'tblTempUsageDetail_20' ) end [2025-02-10 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445138', 'tblTempVendorCDR_20' ) start [2025-02-10 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445138', 'tblTempVendorCDR_20' ) end [2025-02-10 14:53:34] Production.INFO: ProcessCDR(1,14445138,1,1,2) [2025-02-10 14:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445138', 'tblTempUsageDetail_20' ) start [2025-02-10 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445138', 'tblTempUsageDetail_20' ) end [2025-02-10 14:53:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:53:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:53:38] Production.INFO: ==31660== Releasing lock... [2025-02-10 14:53:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:53:38] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:54:05 [end_date_ymd] => 2025-02-10 14:54:05 [RateCDR] => 1 ) [2025-02-10 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:54:05' and `end` < '2025-02-10 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:54:25] Production.INFO: count ==4771 [2025-02-10 14:54:27] Production.ERROR: pbx CDR StartTime 2025-02-10 11:54:05 - End Time 2025-02-10 14:54:05 [2025-02-10 14:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445143', 'tblTempUsageDetail_20' ) start [2025-02-10 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445143', 'tblTempUsageDetail_20' ) end [2025-02-10 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445143', 'tblTempVendorCDR_20' ) start [2025-02-10 14:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445143', 'tblTempVendorCDR_20' ) end [2025-02-10 14:54:27] Production.INFO: ProcessCDR(1,14445143,1,1,2) [2025-02-10 14:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445143', 'tblTempUsageDetail_20' ) start [2025-02-10 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445143', 'tblTempUsageDetail_20' ) end [2025-02-10 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:54:33] Production.INFO: ==31733== Releasing lock... [2025-02-10 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:54:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:55:06 [end_date_ymd] => 2025-02-10 14:55:06 [RateCDR] => 1 ) [2025-02-10 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-10 11:55:06' and `end` < '2025-02-10 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-10 14:55:21] Production.INFO: count ==4765 [2025-02-10 14:55:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:55:06 - End Time 2025-02-10 14:55:06 [2025-02-10 14:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445148', 'tblTempUsageDetail_20' ) start [2025-02-10 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445148', 'tblTempUsageDetail_20' ) end [2025-02-10 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445148', 'tblTempVendorCDR_20' ) start [2025-02-10 14:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445148', 'tblTempVendorCDR_20' ) end [2025-02-10 14:55:23] Production.INFO: ProcessCDR(1,14445148,1,1,2) [2025-02-10 14:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445148', 'tblTempUsageDetail_20' ) start [2025-02-10 14:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445148', 'tblTempUsageDetail_20' ) end [2025-02-10 14:55:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:55:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:55:29] Production.INFO: ==31808== Releasing lock... [2025-02-10 14:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:55:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:56:05 [end_date_ymd] => 2025-02-10 14:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:56:05' and `end` < '2025-02-10 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-10 14:56:20] Production.INFO: count ==4774 [2025-02-10 14:56:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:56:05 - End Time 2025-02-10 14:56:05 [2025-02-10 14:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445153', 'tblTempUsageDetail_20' ) start [2025-02-10 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445153', 'tblTempUsageDetail_20' ) end [2025-02-10 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445153', 'tblTempVendorCDR_20' ) start [2025-02-10 14:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445153', 'tblTempVendorCDR_20' ) end [2025-02-10 14:56:23] Production.INFO: ProcessCDR(1,14445153,1,1,2) [2025-02-10 14:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445153', 'tblTempUsageDetail_20' ) start [2025-02-10 14:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445153', 'tblTempUsageDetail_20' ) end [2025-02-10 14:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:56:28] Production.INFO: ==31880== Releasing lock... [2025-02-10 14:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:56:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:57:05 [end_date_ymd] => 2025-02-10 14:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 11:57:05' and `end` < '2025-02-10 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-10 14:57:21] Production.INFO: count ==4745 [2025-02-10 14:57:23] Production.ERROR: pbx CDR StartTime 2025-02-10 11:57:05 - End Time 2025-02-10 14:57:05 [2025-02-10 14:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445158', 'tblTempUsageDetail_20' ) start [2025-02-10 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445158', 'tblTempUsageDetail_20' ) end [2025-02-10 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445158', 'tblTempVendorCDR_20' ) start [2025-02-10 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445158', 'tblTempVendorCDR_20' ) end [2025-02-10 14:57:23] Production.INFO: ProcessCDR(1,14445158,1,1,2) [2025-02-10 14:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445158', 'tblTempUsageDetail_20' ) start [2025-02-10 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445158', 'tblTempUsageDetail_20' ) end [2025-02-10 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:57:27] Production.INFO: ==31951== Releasing lock... [2025-02-10 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:57:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:58:04 [end_date_ymd] => 2025-02-10 14:58:04 [RateCDR] => 1 ) [2025-02-10 14: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-10 11:58:04' and `end` < '2025-02-10 14: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-10 14:58:27] Production.INFO: count ==4717 [2025-02-10 14:58:29] Production.ERROR: pbx CDR StartTime 2025-02-10 11:58:04 - End Time 2025-02-10 14:58:04 [2025-02-10 14:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445163', 'tblTempUsageDetail_20' ) start [2025-02-10 14:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445163', 'tblTempUsageDetail_20' ) end [2025-02-10 14:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445163', 'tblTempVendorCDR_20' ) start [2025-02-10 14:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445163', 'tblTempVendorCDR_20' ) end [2025-02-10 14:58:29] Production.INFO: ProcessCDR(1,14445163,1,1,2) [2025-02-10 14:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445163', 'tblTempUsageDetail_20' ) start [2025-02-10 14:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445163', 'tblTempUsageDetail_20' ) end [2025-02-10 14:58:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:58:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:58:34] Production.INFO: ==32020== Releasing lock... [2025-02-10 14:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:58:34] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 11:59:05 [end_date_ymd] => 2025-02-10 14:59:05 [RateCDR] => 1 ) [2025-02-10 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 11:59:05' and `end` < '2025-02-10 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 14:59:23] Production.INFO: count ==4722 [2025-02-10 14:59:25] Production.ERROR: pbx CDR StartTime 2025-02-10 11:59:05 - End Time 2025-02-10 14:59:05 [2025-02-10 14:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445168', 'tblTempUsageDetail_20' ) start [2025-02-10 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445168', 'tblTempUsageDetail_20' ) end [2025-02-10 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445168', 'tblTempVendorCDR_20' ) start [2025-02-10 14:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445168', 'tblTempVendorCDR_20' ) end [2025-02-10 14:59:25] Production.INFO: ProcessCDR(1,14445168,1,1,2) [2025-02-10 14:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 14:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 14:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445168', 'tblTempUsageDetail_20' ) start [2025-02-10 14:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445168', 'tblTempUsageDetail_20' ) end [2025-02-10 14:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 14:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 14:59:30] Production.INFO: ==32097== Releasing lock... [2025-02-10 14:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 14:59:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:00:06 [end_date_ymd] => 2025-02-10 15:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:00:06' and `end` < '2025-02-10 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-10 15:00:27] Production.INFO: count ==4724 [2025-02-10 15:00:29] Production.ERROR: pbx CDR StartTime 2025-02-10 12:00:06 - End Time 2025-02-10 15:00:06 [2025-02-10 15:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445174', 'tblTempUsageDetail_20' ) start [2025-02-10 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445174', 'tblTempUsageDetail_20' ) end [2025-02-10 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445174', 'tblTempVendorCDR_20' ) start [2025-02-10 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445174', 'tblTempVendorCDR_20' ) end [2025-02-10 15:00:29] Production.INFO: ProcessCDR(1,14445174,1,1,2) [2025-02-10 15:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445174', 'tblTempUsageDetail_20' ) start [2025-02-10 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445174', 'tblTempUsageDetail_20' ) end [2025-02-10 15:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:00:32] Production.INFO: ==32212== Releasing lock... [2025-02-10 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:00:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:01:05 [end_date_ymd] => 2025-02-10 15:01:05 [RateCDR] => 1 ) [2025-02-10 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:01:05' and `end` < '2025-02-10 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:01:19] Production.INFO: count ==4771 [2025-02-10 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:01:05 - End Time 2025-02-10 15:01:05 [2025-02-10 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445179', 'tblTempUsageDetail_20' ) start [2025-02-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445179', 'tblTempUsageDetail_20' ) end [2025-02-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445179', 'tblTempVendorCDR_20' ) start [2025-02-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445179', 'tblTempVendorCDR_20' ) end [2025-02-10 15:01:21] Production.INFO: ProcessCDR(1,14445179,1,1,2) [2025-02-10 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445179', 'tblTempUsageDetail_20' ) start [2025-02-10 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445179', 'tblTempUsageDetail_20' ) end [2025-02-10 15:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:01:26] Production.INFO: ==32300== Releasing lock... [2025-02-10 15:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:01:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:02:06 [end_date_ymd] => 2025-02-10 15:02:06 [RateCDR] => 1 ) [2025-02-10 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:02:06' and `end` < '2025-02-10 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:02:23] Production.INFO: count ==4789 [2025-02-10 15:02:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:02:06 - End Time 2025-02-10 15:02:06 [2025-02-10 15:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445184', 'tblTempUsageDetail_20' ) start [2025-02-10 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445184', 'tblTempUsageDetail_20' ) end [2025-02-10 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445184', 'tblTempVendorCDR_20' ) start [2025-02-10 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445184', 'tblTempVendorCDR_20' ) end [2025-02-10 15:02:25] Production.INFO: ProcessCDR(1,14445184,1,1,2) [2025-02-10 15:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445184', 'tblTempUsageDetail_20' ) start [2025-02-10 15:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445184', 'tblTempUsageDetail_20' ) end [2025-02-10 15:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:02:30] Production.INFO: ==32451== Releasing lock... [2025-02-10 15:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:02:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:03:05 [end_date_ymd] => 2025-02-10 15:03:05 [RateCDR] => 1 ) [2025-02-10 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:03:05' and `end` < '2025-02-10 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:03:21] Production.INFO: count ==4777 [2025-02-10 15:03:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:03:05 - End Time 2025-02-10 15:03:05 [2025-02-10 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445189', 'tblTempUsageDetail_20' ) start [2025-02-10 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445189', 'tblTempUsageDetail_20' ) end [2025-02-10 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445189', 'tblTempVendorCDR_20' ) start [2025-02-10 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445189', 'tblTempVendorCDR_20' ) end [2025-02-10 15:03:23] Production.INFO: ProcessCDR(1,14445189,1,1,2) [2025-02-10 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445189', 'tblTempUsageDetail_20' ) start [2025-02-10 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445189', 'tblTempUsageDetail_20' ) end [2025-02-10 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:03:28] Production.INFO: ==32519== Releasing lock... [2025-02-10 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:03:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:04:05 [end_date_ymd] => 2025-02-10 15:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:04:05' and `end` < '2025-02-10 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-10 15:04:25] Production.INFO: count ==4790 [2025-02-10 15:04:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:04:05 - End Time 2025-02-10 15:04:05 [2025-02-10 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445194', 'tblTempUsageDetail_20' ) start [2025-02-10 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445194', 'tblTempUsageDetail_20' ) end [2025-02-10 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445194', 'tblTempVendorCDR_20' ) start [2025-02-10 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445194', 'tblTempVendorCDR_20' ) end [2025-02-10 15:04:27] Production.INFO: ProcessCDR(1,14445194,1,1,2) [2025-02-10 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445194', 'tblTempUsageDetail_20' ) start [2025-02-10 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445194', 'tblTempUsageDetail_20' ) end [2025-02-10 15:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:04:32] Production.INFO: ==32596== Releasing lock... [2025-02-10 15:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:04:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:05:05 [end_date_ymd] => 2025-02-10 15:05:05 [RateCDR] => 1 ) [2025-02-10 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:05:05' and `end` < '2025-02-10 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:05:21] Production.INFO: count ==4798 [2025-02-10 15:05:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:05:05 - End Time 2025-02-10 15:05:05 [2025-02-10 15:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445199', 'tblTempUsageDetail_20' ) start [2025-02-10 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445199', 'tblTempUsageDetail_20' ) end [2025-02-10 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445199', 'tblTempVendorCDR_20' ) start [2025-02-10 15:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445199', 'tblTempVendorCDR_20' ) end [2025-02-10 15:05:23] Production.INFO: ProcessCDR(1,14445199,1,1,2) [2025-02-10 15:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445199', 'tblTempUsageDetail_20' ) start [2025-02-10 15:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445199', 'tblTempUsageDetail_20' ) end [2025-02-10 15:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:05:29] Production.INFO: ==32745== Releasing lock... [2025-02-10 15:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:05:29] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:06:05 [end_date_ymd] => 2025-02-10 15:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:06:05' and `end` < '2025-02-10 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-10 15:06:27] Production.INFO: count ==4810 [2025-02-10 15:06:29] Production.ERROR: pbx CDR StartTime 2025-02-10 12:06:05 - End Time 2025-02-10 15:06:05 [2025-02-10 15:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445204', 'tblTempUsageDetail_20' ) start [2025-02-10 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445204', 'tblTempUsageDetail_20' ) end [2025-02-10 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445204', 'tblTempVendorCDR_20' ) start [2025-02-10 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445204', 'tblTempVendorCDR_20' ) end [2025-02-10 15:06:29] Production.INFO: ProcessCDR(1,14445204,1,1,2) [2025-02-10 15:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445204', 'tblTempUsageDetail_20' ) start [2025-02-10 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445204', 'tblTempUsageDetail_20' ) end [2025-02-10 15:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:06:34] Production.INFO: ==371== Releasing lock... [2025-02-10 15:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:06:34] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:07:05 [end_date_ymd] => 2025-02-10 15:07:05 [RateCDR] => 1 ) [2025-02-10 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:07:05' and `end` < '2025-02-10 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:07:23] Production.INFO: count ==4814 [2025-02-10 15:07:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:07:05 - End Time 2025-02-10 15:07:05 [2025-02-10 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445209', 'tblTempUsageDetail_20' ) start [2025-02-10 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445209', 'tblTempUsageDetail_20' ) end [2025-02-10 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445209', 'tblTempVendorCDR_20' ) start [2025-02-10 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445209', 'tblTempVendorCDR_20' ) end [2025-02-10 15:07:25] Production.INFO: ProcessCDR(1,14445209,1,1,2) [2025-02-10 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445209', 'tblTempUsageDetail_20' ) start [2025-02-10 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445209', 'tblTempUsageDetail_20' ) end [2025-02-10 15:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:07:30] Production.INFO: ==442== Releasing lock... [2025-02-10 15:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:07:30] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:08:05 [end_date_ymd] => 2025-02-10 15:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:08:05' and `end` < '2025-02-10 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-10 15:08:26] Production.INFO: count ==4824 [2025-02-10 15:08:28] Production.ERROR: pbx CDR StartTime 2025-02-10 12:08:05 - End Time 2025-02-10 15:08:05 [2025-02-10 15:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445214', 'tblTempUsageDetail_20' ) start [2025-02-10 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445214', 'tblTempUsageDetail_20' ) end [2025-02-10 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445214', 'tblTempVendorCDR_20' ) start [2025-02-10 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445214', 'tblTempVendorCDR_20' ) end [2025-02-10 15:08:28] Production.INFO: ProcessCDR(1,14445214,1,1,2) [2025-02-10 15:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445214', 'tblTempUsageDetail_20' ) start [2025-02-10 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445214', 'tblTempUsageDetail_20' ) end [2025-02-10 15:08:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:08:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:08:33] Production.INFO: ==598== Releasing lock... [2025-02-10 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:08:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:09:04 [end_date_ymd] => 2025-02-10 15:09:04 [RateCDR] => 1 ) [2025-02-10 15:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:09:04' and `end` < '2025-02-10 15:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:09:24] Production.INFO: count ==4824 [2025-02-10 15:09:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:09:04 - End Time 2025-02-10 15:09:04 [2025-02-10 15:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445219', 'tblTempUsageDetail_20' ) start [2025-02-10 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445219', 'tblTempUsageDetail_20' ) end [2025-02-10 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445219', 'tblTempVendorCDR_20' ) start [2025-02-10 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445219', 'tblTempVendorCDR_20' ) end [2025-02-10 15:09:26] Production.INFO: ProcessCDR(1,14445219,1,1,2) [2025-02-10 15:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445219', 'tblTempUsageDetail_20' ) start [2025-02-10 15:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445219', 'tblTempUsageDetail_20' ) end [2025-02-10 15:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:09:30] Production.INFO: ==693== Releasing lock... [2025-02-10 15:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:09:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:10:06 [end_date_ymd] => 2025-02-10 15:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:10:06' and `end` < '2025-02-10 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-10 15:10:32] Production.INFO: count ==4848 [2025-02-10 15:10:34] Production.ERROR: pbx CDR StartTime 2025-02-10 12:10:06 - End Time 2025-02-10 15:10:06 [2025-02-10 15:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445225', 'tblTempUsageDetail_20' ) start [2025-02-10 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445225', 'tblTempUsageDetail_20' ) end [2025-02-10 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445225', 'tblTempVendorCDR_20' ) start [2025-02-10 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445225', 'tblTempVendorCDR_20' ) end [2025-02-10 15:10:34] Production.INFO: ProcessCDR(1,14445225,1,1,2) [2025-02-10 15:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445225', 'tblTempUsageDetail_20' ) start [2025-02-10 15:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445225', 'tblTempUsageDetail_20' ) end [2025-02-10 15:10:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:10:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:10:39] Production.INFO: ==776== Releasing lock... [2025-02-10 15:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:10:39] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:11:05 [end_date_ymd] => 2025-02-10 15:11:05 [RateCDR] => 1 ) [2025-02-10 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:11:05' and `end` < '2025-02-10 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:11:27] Production.INFO: count ==4853 [2025-02-10 15:11:29] Production.ERROR: pbx CDR StartTime 2025-02-10 12:11:05 - End Time 2025-02-10 15:11:05 [2025-02-10 15:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445230', 'tblTempUsageDetail_20' ) start [2025-02-10 15:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445230', 'tblTempUsageDetail_20' ) end [2025-02-10 15:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445230', 'tblTempVendorCDR_20' ) start [2025-02-10 15:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445230', 'tblTempVendorCDR_20' ) end [2025-02-10 15:11:29] Production.INFO: ProcessCDR(1,14445230,1,1,2) [2025-02-10 15:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445230', 'tblTempUsageDetail_20' ) start [2025-02-10 15:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445230', 'tblTempUsageDetail_20' ) end [2025-02-10 15:11:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:11:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:11:34] Production.INFO: ==850== Releasing lock... [2025-02-10 15:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:11:34] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:12:05 [end_date_ymd] => 2025-02-10 15:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:12:05' and `end` < '2025-02-10 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-10 15:12:25] Production.INFO: count ==4852 [2025-02-10 15:12:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:12:05 - End Time 2025-02-10 15:12:05 [2025-02-10 15:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445235', 'tblTempUsageDetail_20' ) start [2025-02-10 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445235', 'tblTempUsageDetail_20' ) end [2025-02-10 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445235', 'tblTempVendorCDR_20' ) start [2025-02-10 15:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445235', 'tblTempVendorCDR_20' ) end [2025-02-10 15:12:28] Production.INFO: ProcessCDR(1,14445235,1,1,2) [2025-02-10 15:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445235', 'tblTempUsageDetail_20' ) start [2025-02-10 15:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445235', 'tblTempUsageDetail_20' ) end [2025-02-10 15:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:12:32] Production.INFO: ==1002== Releasing lock... [2025-02-10 15:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:12:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:13:05 [end_date_ymd] => 2025-02-10 15:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:13:05' and `end` < '2025-02-10 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-10 15:13:25] Production.INFO: count ==4849 [2025-02-10 15:13:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:13:05 - End Time 2025-02-10 15:13:05 [2025-02-10 15:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445240', 'tblTempUsageDetail_20' ) start [2025-02-10 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445240', 'tblTempUsageDetail_20' ) end [2025-02-10 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445240', 'tblTempVendorCDR_20' ) start [2025-02-10 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445240', 'tblTempVendorCDR_20' ) end [2025-02-10 15:13:27] Production.INFO: ProcessCDR(1,14445240,1,1,2) [2025-02-10 15:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445240', 'tblTempUsageDetail_20' ) start [2025-02-10 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445240', 'tblTempUsageDetail_20' ) end [2025-02-10 15:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:13:32] Production.INFO: ==1078== Releasing lock... [2025-02-10 15:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:13:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:14:05 [end_date_ymd] => 2025-02-10 15:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:14:05' and `end` < '2025-02-10 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-10 15:14:30] Production.INFO: count ==4865 [2025-02-10 15:14:32] Production.ERROR: pbx CDR StartTime 2025-02-10 12:14:05 - End Time 2025-02-10 15:14:05 [2025-02-10 15:14:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445245', 'tblTempUsageDetail_20' ) start [2025-02-10 15:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445245', 'tblTempUsageDetail_20' ) end [2025-02-10 15:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445245', 'tblTempVendorCDR_20' ) start [2025-02-10 15:14:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445245', 'tblTempVendorCDR_20' ) end [2025-02-10 15:14:32] Production.INFO: ProcessCDR(1,14445245,1,1,2) [2025-02-10 15:14:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:14:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:14:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:14:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:14:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445245', 'tblTempUsageDetail_20' ) start [2025-02-10 15:14:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445245', 'tblTempUsageDetail_20' ) end [2025-02-10 15:14:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:14:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:14:37] Production.INFO: ==1150== Releasing lock... [2025-02-10 15:14:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:14:37] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:15:05 [end_date_ymd] => 2025-02-10 15:15:05 [RateCDR] => 1 ) [2025-02-10 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:15:05' and `end` < '2025-02-10 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:15:28] Production.INFO: count ==4864 [2025-02-10 15:15:30] Production.ERROR: pbx CDR StartTime 2025-02-10 12:15:05 - End Time 2025-02-10 15:15:05 [2025-02-10 15:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445250', 'tblTempUsageDetail_20' ) start [2025-02-10 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445250', 'tblTempUsageDetail_20' ) end [2025-02-10 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445250', 'tblTempVendorCDR_20' ) start [2025-02-10 15:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445250', 'tblTempVendorCDR_20' ) end [2025-02-10 15:15:31] Production.INFO: ProcessCDR(1,14445250,1,1,2) [2025-02-10 15:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445250', 'tblTempUsageDetail_20' ) start [2025-02-10 15:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445250', 'tblTempUsageDetail_20' ) end [2025-02-10 15:15:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:15:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:15:35] Production.INFO: ==1317== Releasing lock... [2025-02-10 15:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:15:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 15:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:16:04 [end_date_ymd] => 2025-02-10 15:16:04 [RateCDR] => 1 ) [2025-02-10 15: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-10 12:16:04' and `end` < '2025-02-10 15: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-10 15:16:24] Production.INFO: count ==4855 [2025-02-10 15:16:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:16:04 - End Time 2025-02-10 15:16:04 [2025-02-10 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445255', 'tblTempUsageDetail_20' ) start [2025-02-10 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445255', 'tblTempUsageDetail_20' ) end [2025-02-10 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445255', 'tblTempVendorCDR_20' ) start [2025-02-10 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445255', 'tblTempVendorCDR_20' ) end [2025-02-10 15:16:26] Production.INFO: ProcessCDR(1,14445255,1,1,2) [2025-02-10 15:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445255', 'tblTempUsageDetail_20' ) start [2025-02-10 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445255', 'tblTempUsageDetail_20' ) end [2025-02-10 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:16:30] Production.INFO: ==1426== Releasing lock... [2025-02-10 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:16:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:17:05 [end_date_ymd] => 2025-02-10 15:17:05 [RateCDR] => 1 ) [2025-02-10 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:17:05' and `end` < '2025-02-10 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:17:23] Production.INFO: count ==4846 [2025-02-10 15:17:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:17:05 - End Time 2025-02-10 15:17:05 [2025-02-10 15:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445260', 'tblTempUsageDetail_20' ) start [2025-02-10 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445260', 'tblTempUsageDetail_20' ) end [2025-02-10 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445260', 'tblTempVendorCDR_20' ) start [2025-02-10 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445260', 'tblTempVendorCDR_20' ) end [2025-02-10 15:17:25] Production.INFO: ProcessCDR(1,14445260,1,1,2) [2025-02-10 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445260', 'tblTempUsageDetail_20' ) start [2025-02-10 15:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445260', 'tblTempUsageDetail_20' ) end [2025-02-10 15:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:17:30] Production.INFO: ==1497== Releasing lock... [2025-02-10 15:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:17:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:18:05 [end_date_ymd] => 2025-02-10 15:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:18:05' and `end` < '2025-02-10 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-10 15:18:22] Production.INFO: count ==4832 [2025-02-10 15:18:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:18:05 - End Time 2025-02-10 15:18:05 [2025-02-10 15:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445265', 'tblTempUsageDetail_20' ) start [2025-02-10 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445265', 'tblTempUsageDetail_20' ) end [2025-02-10 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445265', 'tblTempVendorCDR_20' ) start [2025-02-10 15:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445265', 'tblTempVendorCDR_20' ) end [2025-02-10 15:18:24] Production.INFO: ProcessCDR(1,14445265,1,1,2) [2025-02-10 15:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445265', 'tblTempUsageDetail_20' ) start [2025-02-10 15:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445265', 'tblTempUsageDetail_20' ) end [2025-02-10 15:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:18:29] Production.INFO: ==1609== Releasing lock... [2025-02-10 15:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:18:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:19:05 [end_date_ymd] => 2025-02-10 15:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:19:05' and `end` < '2025-02-10 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-10 15:19:22] Production.INFO: count ==4831 [2025-02-10 15:19:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:19:05 - End Time 2025-02-10 15:19:05 [2025-02-10 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445270', 'tblTempUsageDetail_20' ) start [2025-02-10 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445270', 'tblTempUsageDetail_20' ) end [2025-02-10 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445270', 'tblTempVendorCDR_20' ) start [2025-02-10 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445270', 'tblTempVendorCDR_20' ) end [2025-02-10 15:19:24] Production.INFO: ProcessCDR(1,14445270,1,1,2) [2025-02-10 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445270', 'tblTempUsageDetail_20' ) start [2025-02-10 15:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445270', 'tblTempUsageDetail_20' ) end [2025-02-10 15:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:19:28] Production.INFO: ==1682== Releasing lock... [2025-02-10 15:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:19:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:20:06 [end_date_ymd] => 2025-02-10 15:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:20:06' and `end` < '2025-02-10 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-10 15:20:24] Production.INFO: count ==4846 [2025-02-10 15:20:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:20:06 - End Time 2025-02-10 15:20:06 [2025-02-10 15:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445276', 'tblTempUsageDetail_20' ) start [2025-02-10 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445276', 'tblTempUsageDetail_20' ) end [2025-02-10 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445276', 'tblTempVendorCDR_20' ) start [2025-02-10 15:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445276', 'tblTempVendorCDR_20' ) end [2025-02-10 15:20:26] Production.INFO: ProcessCDR(1,14445276,1,1,2) [2025-02-10 15:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445276', 'tblTempUsageDetail_20' ) start [2025-02-10 15:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445276', 'tblTempUsageDetail_20' ) end [2025-02-10 15:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:20:31] Production.INFO: ==1755== Releasing lock... [2025-02-10 15:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:20:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:21:05 [end_date_ymd] => 2025-02-10 15:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:21:05' and `end` < '2025-02-10 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-10 15:21:22] Production.INFO: count ==4817 [2025-02-10 15:21:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:21:05 - End Time 2025-02-10 15:21:05 [2025-02-10 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445281', 'tblTempUsageDetail_20' ) start [2025-02-10 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445281', 'tblTempUsageDetail_20' ) end [2025-02-10 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445281', 'tblTempVendorCDR_20' ) start [2025-02-10 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445281', 'tblTempVendorCDR_20' ) end [2025-02-10 15:21:24] Production.INFO: ProcessCDR(1,14445281,1,1,2) [2025-02-10 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445281', 'tblTempUsageDetail_20' ) start [2025-02-10 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445281', 'tblTempUsageDetail_20' ) end [2025-02-10 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:21:28] Production.INFO: ==1833== Releasing lock... [2025-02-10 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:21:28] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:22:05 [end_date_ymd] => 2025-02-10 15:22:05 [RateCDR] => 1 ) [2025-02-10 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:22:05' and `end` < '2025-02-10 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:22:21] Production.INFO: count ==4797 [2025-02-10 15:22:22] Production.ERROR: pbx CDR StartTime 2025-02-10 12:22:05 - End Time 2025-02-10 15:22:05 [2025-02-10 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445286', 'tblTempUsageDetail_20' ) start [2025-02-10 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445286', 'tblTempUsageDetail_20' ) end [2025-02-10 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445286', 'tblTempVendorCDR_20' ) start [2025-02-10 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445286', 'tblTempVendorCDR_20' ) end [2025-02-10 15:22:23] Production.INFO: ProcessCDR(1,14445286,1,1,2) [2025-02-10 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445286', 'tblTempUsageDetail_20' ) start [2025-02-10 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445286', 'tblTempUsageDetail_20' ) end [2025-02-10 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:22:27] Production.INFO: ==1916== Releasing lock... [2025-02-10 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:22:27] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:23:05 [end_date_ymd] => 2025-02-10 15:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:23:05' and `end` < '2025-02-10 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-10 15:23:19] Production.INFO: count ==4793 [2025-02-10 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:23:05 - End Time 2025-02-10 15:23:05 [2025-02-10 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445291', 'tblTempUsageDetail_20' ) start [2025-02-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445291', 'tblTempUsageDetail_20' ) end [2025-02-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445291', 'tblTempVendorCDR_20' ) start [2025-02-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445291', 'tblTempVendorCDR_20' ) end [2025-02-10 15:23:21] Production.INFO: ProcessCDR(1,14445291,1,1,2) [2025-02-10 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445291', 'tblTempUsageDetail_20' ) start [2025-02-10 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445291', 'tblTempUsageDetail_20' ) end [2025-02-10 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:23:26] Production.INFO: ==1993== Releasing lock... [2025-02-10 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:23:26] Production.INFO: 64 MB #Memory Used# [2025-02-10 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:24:05 [end_date_ymd] => 2025-02-10 15:24:05 [RateCDR] => 1 ) [2025-02-10 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:24:05' and `end` < '2025-02-10 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:24:19] Production.INFO: count ==4773 [2025-02-10 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:24:05 - End Time 2025-02-10 15:24:05 [2025-02-10 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445296', 'tblTempUsageDetail_20' ) start [2025-02-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445296', 'tblTempUsageDetail_20' ) end [2025-02-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445296', 'tblTempVendorCDR_20' ) start [2025-02-10 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445296', 'tblTempVendorCDR_20' ) end [2025-02-10 15:24:21] Production.INFO: ProcessCDR(1,14445296,1,1,2) [2025-02-10 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445296', 'tblTempUsageDetail_20' ) start [2025-02-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445296', 'tblTempUsageDetail_20' ) end [2025-02-10 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:24:26] Production.INFO: ==2063== Releasing lock... [2025-02-10 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:24:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:25:06 [end_date_ymd] => 2025-02-10 15:25:06 [RateCDR] => 1 ) [2025-02-10 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:25:06' and `end` < '2025-02-10 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:25:20] Production.INFO: count ==4760 [2025-02-10 15:25:22] Production.ERROR: pbx CDR StartTime 2025-02-10 12:25:06 - End Time 2025-02-10 15:25:06 [2025-02-10 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445301', 'tblTempUsageDetail_20' ) start [2025-02-10 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445301', 'tblTempUsageDetail_20' ) end [2025-02-10 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445301', 'tblTempVendorCDR_20' ) start [2025-02-10 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445301', 'tblTempVendorCDR_20' ) end [2025-02-10 15:25:22] Production.INFO: ProcessCDR(1,14445301,1,1,2) [2025-02-10 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445301', 'tblTempUsageDetail_20' ) start [2025-02-10 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445301', 'tblTempUsageDetail_20' ) end [2025-02-10 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:25:27] Production.INFO: ==2135== Releasing lock... [2025-02-10 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:25:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:26:05 [end_date_ymd] => 2025-02-10 15:26:05 [RateCDR] => 1 ) [2025-02-10 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:26:05' and `end` < '2025-02-10 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:26:19] Production.INFO: count ==4759 [2025-02-10 15:26:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:26:05 - End Time 2025-02-10 15:26:05 [2025-02-10 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445306', 'tblTempUsageDetail_20' ) start [2025-02-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445306', 'tblTempUsageDetail_20' ) end [2025-02-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445306', 'tblTempVendorCDR_20' ) start [2025-02-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445306', 'tblTempVendorCDR_20' ) end [2025-02-10 15:26:21] Production.INFO: ProcessCDR(1,14445306,1,1,2) [2025-02-10 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445306', 'tblTempUsageDetail_20' ) start [2025-02-10 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445306', 'tblTempUsageDetail_20' ) end [2025-02-10 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:26:27] Production.INFO: ==2211== Releasing lock... [2025-02-10 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:26:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:27:05 [end_date_ymd] => 2025-02-10 15:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:27:05' and `end` < '2025-02-10 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-10 15:27:23] Production.INFO: count ==4761 [2025-02-10 15:27:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:27:05 - End Time 2025-02-10 15:27:05 [2025-02-10 15:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445311', 'tblTempUsageDetail_20' ) start [2025-02-10 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445311', 'tblTempUsageDetail_20' ) end [2025-02-10 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445311', 'tblTempVendorCDR_20' ) start [2025-02-10 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445311', 'tblTempVendorCDR_20' ) end [2025-02-10 15:27:25] Production.INFO: ProcessCDR(1,14445311,1,1,2) [2025-02-10 15:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445311', 'tblTempUsageDetail_20' ) start [2025-02-10 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445311', 'tblTempUsageDetail_20' ) end [2025-02-10 15:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:27:29] Production.INFO: ==2288== Releasing lock... [2025-02-10 15:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:27:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:28:05 [end_date_ymd] => 2025-02-10 15:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:28:05' and `end` < '2025-02-10 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-10 15:28:23] Production.INFO: count ==4752 [2025-02-10 15:28:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:28:05 - End Time 2025-02-10 15:28:05 [2025-02-10 15:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445316', 'tblTempUsageDetail_20' ) start [2025-02-10 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445316', 'tblTempUsageDetail_20' ) end [2025-02-10 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445316', 'tblTempVendorCDR_20' ) start [2025-02-10 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445316', 'tblTempVendorCDR_20' ) end [2025-02-10 15:28:25] Production.INFO: ProcessCDR(1,14445316,1,1,2) [2025-02-10 15:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445316', 'tblTempUsageDetail_20' ) start [2025-02-10 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445316', 'tblTempUsageDetail_20' ) end [2025-02-10 15:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:28:30] Production.INFO: ==2360== Releasing lock... [2025-02-10 15:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:28:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:29:05 [end_date_ymd] => 2025-02-10 15:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:29:05' and `end` < '2025-02-10 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-10 15:29:22] Production.INFO: count ==4755 [2025-02-10 15:29:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:29:05 - End Time 2025-02-10 15:29:05 [2025-02-10 15:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445321', 'tblTempUsageDetail_20' ) start [2025-02-10 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445321', 'tblTempUsageDetail_20' ) end [2025-02-10 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445321', 'tblTempVendorCDR_20' ) start [2025-02-10 15:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445321', 'tblTempVendorCDR_20' ) end [2025-02-10 15:29:24] Production.INFO: ProcessCDR(1,14445321,1,1,2) [2025-02-10 15:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445321', 'tblTempUsageDetail_20' ) start [2025-02-10 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445321', 'tblTempUsageDetail_20' ) end [2025-02-10 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:29:28] Production.INFO: ==2430== Releasing lock... [2025-02-10 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:29:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:30:06 [end_date_ymd] => 2025-02-10 15:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:30:06' and `end` < '2025-02-10 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-10 15:30:26] Production.INFO: count ==4748 [2025-02-10 15:30:28] Production.ERROR: pbx CDR StartTime 2025-02-10 12:30:06 - End Time 2025-02-10 15:30:06 [2025-02-10 15:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445326', 'tblTempUsageDetail_20' ) start [2025-02-10 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445326', 'tblTempUsageDetail_20' ) end [2025-02-10 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445326', 'tblTempVendorCDR_20' ) start [2025-02-10 15:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445326', 'tblTempVendorCDR_20' ) end [2025-02-10 15:30:28] Production.INFO: ProcessCDR(1,14445326,1,1,2) [2025-02-10 15:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445326', 'tblTempUsageDetail_20' ) start [2025-02-10 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445326', 'tblTempUsageDetail_20' ) end [2025-02-10 15:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:30:33] Production.INFO: ==2506== Releasing lock... [2025-02-10 15:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:30:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:31:04 [end_date_ymd] => 2025-02-10 15:31:04 [RateCDR] => 1 ) [2025-02-10 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-10 12:31:04' and `end` < '2025-02-10 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-10 15:31:19] Production.INFO: count ==4731 [2025-02-10 15:31:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:31:04 - End Time 2025-02-10 15:31:04 [2025-02-10 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445332', 'tblTempUsageDetail_20' ) start [2025-02-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445332', 'tblTempUsageDetail_20' ) end [2025-02-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445332', 'tblTempVendorCDR_20' ) start [2025-02-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445332', 'tblTempVendorCDR_20' ) end [2025-02-10 15:31:21] Production.INFO: ProcessCDR(1,14445332,1,1,2) [2025-02-10 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445332', 'tblTempUsageDetail_20' ) start [2025-02-10 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445332', 'tblTempUsageDetail_20' ) end [2025-02-10 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:31:26] Production.INFO: ==2617== Releasing lock... [2025-02-10 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:31:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:32:05 [end_date_ymd] => 2025-02-10 15:32:05 [RateCDR] => 1 ) [2025-02-10 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:32:05' and `end` < '2025-02-10 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:32:24] Production.INFO: count ==4760 [2025-02-10 15:32:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:32:05 - End Time 2025-02-10 15:32:05 [2025-02-10 15:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445337', 'tblTempUsageDetail_20' ) start [2025-02-10 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445337', 'tblTempUsageDetail_20' ) end [2025-02-10 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445337', 'tblTempVendorCDR_20' ) start [2025-02-10 15:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445337', 'tblTempVendorCDR_20' ) end [2025-02-10 15:32:26] Production.INFO: ProcessCDR(1,14445337,1,1,2) [2025-02-10 15:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445337', 'tblTempUsageDetail_20' ) start [2025-02-10 15:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445337', 'tblTempUsageDetail_20' ) end [2025-02-10 15:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:32:31] Production.INFO: ==2688== Releasing lock... [2025-02-10 15:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:32:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:33:05 [end_date_ymd] => 2025-02-10 15:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:33:05' and `end` < '2025-02-10 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-10 15:33:24] Production.INFO: count ==4753 [2025-02-10 15:33:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:33:05 - End Time 2025-02-10 15:33:05 [2025-02-10 15:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445342', 'tblTempUsageDetail_20' ) start [2025-02-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445342', 'tblTempUsageDetail_20' ) end [2025-02-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445342', 'tblTempVendorCDR_20' ) start [2025-02-10 15:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445342', 'tblTempVendorCDR_20' ) end [2025-02-10 15:33:26] Production.INFO: ProcessCDR(1,14445342,1,1,2) [2025-02-10 15:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445342', 'tblTempUsageDetail_20' ) start [2025-02-10 15:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445342', 'tblTempUsageDetail_20' ) end [2025-02-10 15:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:33:31] Production.INFO: ==2759== Releasing lock... [2025-02-10 15:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:33:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:34:05 [end_date_ymd] => 2025-02-10 15:34:05 [RateCDR] => 1 ) [2025-02-10 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:34:05' and `end` < '2025-02-10 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:34:21] Production.INFO: count ==4761 [2025-02-10 15:34:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:34:05 - End Time 2025-02-10 15:34:05 [2025-02-10 15:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445347', 'tblTempUsageDetail_20' ) start [2025-02-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445347', 'tblTempUsageDetail_20' ) end [2025-02-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445347', 'tblTempVendorCDR_20' ) start [2025-02-10 15:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445347', 'tblTempVendorCDR_20' ) end [2025-02-10 15:34:23] Production.INFO: ProcessCDR(1,14445347,1,1,2) [2025-02-10 15:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445347', 'tblTempUsageDetail_20' ) start [2025-02-10 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445347', 'tblTempUsageDetail_20' ) end [2025-02-10 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:34:27] Production.INFO: ==2831== Releasing lock... [2025-02-10 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:34:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:35:05 [end_date_ymd] => 2025-02-10 15:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:35:05' and `end` < '2025-02-10 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-10 15:35:25] Production.INFO: count ==4742 [2025-02-10 15:35:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:35:05 - End Time 2025-02-10 15:35:05 [2025-02-10 15:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445352', 'tblTempUsageDetail_20' ) start [2025-02-10 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445352', 'tblTempUsageDetail_20' ) end [2025-02-10 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445352', 'tblTempVendorCDR_20' ) start [2025-02-10 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445352', 'tblTempVendorCDR_20' ) end [2025-02-10 15:35:28] Production.INFO: ProcessCDR(1,14445352,1,1,2) [2025-02-10 15:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445352', 'tblTempUsageDetail_20' ) start [2025-02-10 15:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445352', 'tblTempUsageDetail_20' ) end [2025-02-10 15:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:35:32] Production.INFO: ==2902== Releasing lock... [2025-02-10 15:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:35:32] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:36:05 [end_date_ymd] => 2025-02-10 15:36:05 [RateCDR] => 1 ) [2025-02-10 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:36:05' and `end` < '2025-02-10 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:36:32] Production.INFO: count ==4742 [2025-02-10 15:36:34] Production.ERROR: pbx CDR StartTime 2025-02-10 12:36:05 - End Time 2025-02-10 15:36:05 [2025-02-10 15:36:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445357', 'tblTempUsageDetail_20' ) start [2025-02-10 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445357', 'tblTempUsageDetail_20' ) end [2025-02-10 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445357', 'tblTempVendorCDR_20' ) start [2025-02-10 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445357', 'tblTempVendorCDR_20' ) end [2025-02-10 15:36:34] Production.INFO: ProcessCDR(1,14445357,1,1,2) [2025-02-10 15:36:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:36:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:36:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:36:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445357', 'tblTempUsageDetail_20' ) start [2025-02-10 15:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445357', 'tblTempUsageDetail_20' ) end [2025-02-10 15:36:39] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:36:39] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:36:39] Production.INFO: ==2974== Releasing lock... [2025-02-10 15:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:36:39] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:37:04 [end_date_ymd] => 2025-02-10 15:37:04 [RateCDR] => 1 ) [2025-02-10 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:37:04' and `end` < '2025-02-10 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:37:22] Production.INFO: count ==4736 [2025-02-10 15:37:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:37:04 - End Time 2025-02-10 15:37:04 [2025-02-10 15:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445362', 'tblTempUsageDetail_20' ) start [2025-02-10 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445362', 'tblTempUsageDetail_20' ) end [2025-02-10 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445362', 'tblTempVendorCDR_20' ) start [2025-02-10 15:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445362', 'tblTempVendorCDR_20' ) end [2025-02-10 15:37:24] Production.INFO: ProcessCDR(1,14445362,1,1,2) [2025-02-10 15:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445362', 'tblTempUsageDetail_20' ) start [2025-02-10 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445362', 'tblTempUsageDetail_20' ) end [2025-02-10 15:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:37:29] Production.INFO: ==3047== Releasing lock... [2025-02-10 15:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:37:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:38:05 [end_date_ymd] => 2025-02-10 15:38:05 [RateCDR] => 1 ) [2025-02-10 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:38:05' and `end` < '2025-02-10 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:38:22] Production.INFO: count ==4727 [2025-02-10 15:38:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:38:05 - End Time 2025-02-10 15:38:05 [2025-02-10 15:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445367', 'tblTempUsageDetail_20' ) start [2025-02-10 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445367', 'tblTempUsageDetail_20' ) end [2025-02-10 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445367', 'tblTempVendorCDR_20' ) start [2025-02-10 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445367', 'tblTempVendorCDR_20' ) end [2025-02-10 15:38:24] Production.INFO: ProcessCDR(1,14445367,1,1,2) [2025-02-10 15:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445367', 'tblTempUsageDetail_20' ) start [2025-02-10 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445367', 'tblTempUsageDetail_20' ) end [2025-02-10 15:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:38:29] Production.INFO: ==3122== Releasing lock... [2025-02-10 15:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:38:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:39:05 [end_date_ymd] => 2025-02-10 15:39:05 [RateCDR] => 1 ) [2025-02-10 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:39:05' and `end` < '2025-02-10 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:39:21] Production.INFO: count ==4715 [2025-02-10 15:39:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:39:05 - End Time 2025-02-10 15:39:05 [2025-02-10 15:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445372', 'tblTempUsageDetail_20' ) start [2025-02-10 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445372', 'tblTempUsageDetail_20' ) end [2025-02-10 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445372', 'tblTempVendorCDR_20' ) start [2025-02-10 15:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445372', 'tblTempVendorCDR_20' ) end [2025-02-10 15:39:23] Production.INFO: ProcessCDR(1,14445372,1,1,2) [2025-02-10 15:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445372', 'tblTempUsageDetail_20' ) start [2025-02-10 15:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445372', 'tblTempUsageDetail_20' ) end [2025-02-10 15:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:39:28] Production.INFO: ==3194== Releasing lock... [2025-02-10 15:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:39:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:40:05 [end_date_ymd] => 2025-02-10 15:40:05 [RateCDR] => 1 ) [2025-02-10 15: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-10 12:40:05' and `end` < '2025-02-10 15: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-10 15:40:23] Production.INFO: count ==4705 [2025-02-10 15:40:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:40:05 - End Time 2025-02-10 15:40:05 [2025-02-10 15:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445378', 'tblTempUsageDetail_20' ) start [2025-02-10 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445378', 'tblTempUsageDetail_20' ) end [2025-02-10 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445378', 'tblTempVendorCDR_20' ) start [2025-02-10 15:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445378', 'tblTempVendorCDR_20' ) end [2025-02-10 15:40:25] Production.INFO: ProcessCDR(1,14445378,1,1,2) [2025-02-10 15:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445378', 'tblTempUsageDetail_20' ) start [2025-02-10 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445378', 'tblTempUsageDetail_20' ) end [2025-02-10 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:40:29] Production.INFO: ==3265== Releasing lock... [2025-02-10 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:40:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:41:05 [end_date_ymd] => 2025-02-10 15:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:41:05' and `end` < '2025-02-10 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-10 15:41:23] Production.INFO: count ==4702 [2025-02-10 15:41:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:41:05 - End Time 2025-02-10 15:41:05 [2025-02-10 15:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445383', 'tblTempUsageDetail_20' ) start [2025-02-10 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445383', 'tblTempUsageDetail_20' ) end [2025-02-10 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445383', 'tblTempVendorCDR_20' ) start [2025-02-10 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445383', 'tblTempVendorCDR_20' ) end [2025-02-10 15:41:25] Production.INFO: ProcessCDR(1,14445383,1,1,2) [2025-02-10 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445383', 'tblTempUsageDetail_20' ) start [2025-02-10 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445383', 'tblTempUsageDetail_20' ) end [2025-02-10 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:41:29] Production.INFO: ==3341== Releasing lock... [2025-02-10 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:41:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:42:04 [end_date_ymd] => 2025-02-10 15:42:04 [RateCDR] => 1 ) [2025-02-10 15:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:42:04' and `end` < '2025-02-10 15:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:42:24] Production.INFO: count ==4701 [2025-02-10 15:42:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:42:04 - End Time 2025-02-10 15:42:04 [2025-02-10 15:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445388', 'tblTempUsageDetail_20' ) start [2025-02-10 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445388', 'tblTempUsageDetail_20' ) end [2025-02-10 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445388', 'tblTempVendorCDR_20' ) start [2025-02-10 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445388', 'tblTempVendorCDR_20' ) end [2025-02-10 15:42:26] Production.INFO: ProcessCDR(1,14445388,1,1,2) [2025-02-10 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445388', 'tblTempUsageDetail_20' ) start [2025-02-10 15:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445388', 'tblTempUsageDetail_20' ) end [2025-02-10 15:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:42:31] Production.INFO: ==3412== Releasing lock... [2025-02-10 15:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:42:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:43:05 [end_date_ymd] => 2025-02-10 15:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:43:05' and `end` < '2025-02-10 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-10 15:43:28] Production.INFO: count ==4696 [2025-02-10 15:43:30] Production.ERROR: pbx CDR StartTime 2025-02-10 12:43:05 - End Time 2025-02-10 15:43:05 [2025-02-10 15:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445393', 'tblTempUsageDetail_20' ) start [2025-02-10 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445393', 'tblTempUsageDetail_20' ) end [2025-02-10 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445393', 'tblTempVendorCDR_20' ) start [2025-02-10 15:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445393', 'tblTempVendorCDR_20' ) end [2025-02-10 15:43:30] Production.INFO: ProcessCDR(1,14445393,1,1,2) [2025-02-10 15:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445393', 'tblTempUsageDetail_20' ) start [2025-02-10 15:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445393', 'tblTempUsageDetail_20' ) end [2025-02-10 15:43:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:43:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:43:34] Production.INFO: ==3492== Releasing lock... [2025-02-10 15:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:43:34] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:44:05 [end_date_ymd] => 2025-02-10 15:44:05 [RateCDR] => 1 ) [2025-02-10 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:44:05' and `end` < '2025-02-10 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:44:23] Production.INFO: count ==4707 [2025-02-10 15:44:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:44:05 - End Time 2025-02-10 15:44:05 [2025-02-10 15:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445398', 'tblTempUsageDetail_20' ) start [2025-02-10 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445398', 'tblTempUsageDetail_20' ) end [2025-02-10 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445398', 'tblTempVendorCDR_20' ) start [2025-02-10 15:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445398', 'tblTempVendorCDR_20' ) end [2025-02-10 15:44:25] Production.INFO: ProcessCDR(1,14445398,1,1,2) [2025-02-10 15:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445398', 'tblTempUsageDetail_20' ) start [2025-02-10 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445398', 'tblTempUsageDetail_20' ) end [2025-02-10 15:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:44:30] Production.INFO: ==3563== Releasing lock... [2025-02-10 15:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:44:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:45:05 [end_date_ymd] => 2025-02-10 15:45:05 [RateCDR] => 1 ) [2025-02-10 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:45:05' and `end` < '2025-02-10 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:45:22] Production.INFO: count ==4706 [2025-02-10 15:45:24] Production.ERROR: pbx CDR StartTime 2025-02-10 12:45:05 - End Time 2025-02-10 15:45:05 [2025-02-10 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445403', 'tblTempUsageDetail_20' ) start [2025-02-10 15:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445403', 'tblTempUsageDetail_20' ) end [2025-02-10 15:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445403', 'tblTempVendorCDR_20' ) start [2025-02-10 15:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445403', 'tblTempVendorCDR_20' ) end [2025-02-10 15:45:25] Production.INFO: ProcessCDR(1,14445403,1,1,2) [2025-02-10 15:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445403', 'tblTempUsageDetail_20' ) start [2025-02-10 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445403', 'tblTempUsageDetail_20' ) end [2025-02-10 15:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:45:29] Production.INFO: ==3633== Releasing lock... [2025-02-10 15:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:45:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:46:06 [end_date_ymd] => 2025-02-10 15:46:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:46:06' and `end` < '2025-02-10 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-10 15:46:20] Production.INFO: count ==4705 [2025-02-10 15:46:22] Production.ERROR: pbx CDR StartTime 2025-02-10 12:46:06 - End Time 2025-02-10 15:46:06 [2025-02-10 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445408', 'tblTempUsageDetail_20' ) start [2025-02-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445408', 'tblTempUsageDetail_20' ) end [2025-02-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445408', 'tblTempVendorCDR_20' ) start [2025-02-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445408', 'tblTempVendorCDR_20' ) end [2025-02-10 15:46:22] Production.INFO: ProcessCDR(1,14445408,1,1,2) [2025-02-10 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445408', 'tblTempUsageDetail_20' ) start [2025-02-10 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445408', 'tblTempUsageDetail_20' ) end [2025-02-10 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:46:26] Production.INFO: ==3705== Releasing lock... [2025-02-10 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:46:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:47:05 [end_date_ymd] => 2025-02-10 15:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:47:05' and `end` < '2025-02-10 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-10 15:47:24] Production.INFO: count ==4701 [2025-02-10 15:47:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:47:05 - End Time 2025-02-10 15:47:05 [2025-02-10 15:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445413', 'tblTempUsageDetail_20' ) start [2025-02-10 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445413', 'tblTempUsageDetail_20' ) end [2025-02-10 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445413', 'tblTempVendorCDR_20' ) start [2025-02-10 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445413', 'tblTempVendorCDR_20' ) end [2025-02-10 15:47:26] Production.INFO: ProcessCDR(1,14445413,1,1,2) [2025-02-10 15:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445413', 'tblTempUsageDetail_20' ) start [2025-02-10 15:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445413', 'tblTempUsageDetail_20' ) end [2025-02-10 15:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:47:31] Production.INFO: ==3814== Releasing lock... [2025-02-10 15:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:47:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:48:05 [end_date_ymd] => 2025-02-10 15:48:05 [RateCDR] => 1 ) [2025-02-10 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:48:05' and `end` < '2025-02-10 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:48:25] Production.INFO: count ==4708 [2025-02-10 15:48:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:48:05 - End Time 2025-02-10 15:48:05 [2025-02-10 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445418', 'tblTempUsageDetail_20' ) start [2025-02-10 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445418', 'tblTempUsageDetail_20' ) end [2025-02-10 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445418', 'tblTempVendorCDR_20' ) start [2025-02-10 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445418', 'tblTempVendorCDR_20' ) end [2025-02-10 15:48:27] Production.INFO: ProcessCDR(1,14445418,1,1,2) [2025-02-10 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445418', 'tblTempUsageDetail_20' ) start [2025-02-10 15:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445418', 'tblTempUsageDetail_20' ) end [2025-02-10 15:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:48:32] Production.INFO: ==3887== Releasing lock... [2025-02-10 15:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:48:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:49:05 [end_date_ymd] => 2025-02-10 15:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:49:05' and `end` < '2025-02-10 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-10 15:49:21] Production.INFO: count ==4699 [2025-02-10 15:49:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:49:05 - End Time 2025-02-10 15:49:05 [2025-02-10 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445423', 'tblTempUsageDetail_20' ) start [2025-02-10 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445423', 'tblTempUsageDetail_20' ) end [2025-02-10 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445423', 'tblTempVendorCDR_20' ) start [2025-02-10 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445423', 'tblTempVendorCDR_20' ) end [2025-02-10 15:49:23] Production.INFO: ProcessCDR(1,14445423,1,1,2) [2025-02-10 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445423', 'tblTempUsageDetail_20' ) start [2025-02-10 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445423', 'tblTempUsageDetail_20' ) end [2025-02-10 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:49:27] Production.INFO: ==3958== Releasing lock... [2025-02-10 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:49:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:50:06 [end_date_ymd] => 2025-02-10 15:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 12:50:06' and `end` < '2025-02-10 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-10 15:50:25] Production.INFO: count ==4704 [2025-02-10 15:50:27] Production.ERROR: pbx CDR StartTime 2025-02-10 12:50:06 - End Time 2025-02-10 15:50:06 [2025-02-10 15:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445429', 'tblTempUsageDetail_20' ) start [2025-02-10 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445429', 'tblTempUsageDetail_20' ) end [2025-02-10 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445429', 'tblTempVendorCDR_20' ) start [2025-02-10 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445429', 'tblTempVendorCDR_20' ) end [2025-02-10 15:50:27] Production.INFO: ProcessCDR(1,14445429,1,1,2) [2025-02-10 15:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445429', 'tblTempUsageDetail_20' ) start [2025-02-10 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445429', 'tblTempUsageDetail_20' ) end [2025-02-10 15:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:50:32] Production.INFO: ==4032== Releasing lock... [2025-02-10 15:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:50:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:51:05 [end_date_ymd] => 2025-02-10 15:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:51:05' and `end` < '2025-02-10 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-10 15:51:19] Production.INFO: count ==4736 [2025-02-10 15:51:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:51:05 - End Time 2025-02-10 15:51:05 [2025-02-10 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445434', 'tblTempUsageDetail_20' ) start [2025-02-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445434', 'tblTempUsageDetail_20' ) end [2025-02-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445434', 'tblTempVendorCDR_20' ) start [2025-02-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445434', 'tblTempVendorCDR_20' ) end [2025-02-10 15:51:21] Production.INFO: ProcessCDR(1,14445434,1,1,2) [2025-02-10 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445434', 'tblTempUsageDetail_20' ) start [2025-02-10 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445434', 'tblTempUsageDetail_20' ) end [2025-02-10 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:51:26] Production.INFO: ==4107== Releasing lock... [2025-02-10 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:51:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:52:05 [end_date_ymd] => 2025-02-10 15:52:05 [RateCDR] => 1 ) [2025-02-10 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:52:05' and `end` < '2025-02-10 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:52:23] Production.INFO: count ==4734 [2025-02-10 15:52:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:52:05 - End Time 2025-02-10 15:52:05 [2025-02-10 15:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445439', 'tblTempUsageDetail_20' ) start [2025-02-10 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445439', 'tblTempUsageDetail_20' ) end [2025-02-10 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445439', 'tblTempVendorCDR_20' ) start [2025-02-10 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445439', 'tblTempVendorCDR_20' ) end [2025-02-10 15:52:25] Production.INFO: ProcessCDR(1,14445439,1,1,2) [2025-02-10 15:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445439', 'tblTempUsageDetail_20' ) start [2025-02-10 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445439', 'tblTempUsageDetail_20' ) end [2025-02-10 15:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:52:30] Production.INFO: ==4182== Releasing lock... [2025-02-10 15:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:52:30] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:53:05 [end_date_ymd] => 2025-02-10 15:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:53:05' and `end` < '2025-02-10 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-10 15:53:19] Production.INFO: count ==4738 [2025-02-10 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-10 12:53:05 - End Time 2025-02-10 15:53:05 [2025-02-10 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445444', 'tblTempUsageDetail_20' ) start [2025-02-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445444', 'tblTempUsageDetail_20' ) end [2025-02-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445444', 'tblTempVendorCDR_20' ) start [2025-02-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445444', 'tblTempVendorCDR_20' ) end [2025-02-10 15:53:21] Production.INFO: ProcessCDR(1,14445444,1,1,2) [2025-02-10 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445444', 'tblTempUsageDetail_20' ) start [2025-02-10 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445444', 'tblTempUsageDetail_20' ) end [2025-02-10 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:53:26] Production.INFO: ==4258== Releasing lock... [2025-02-10 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:53:26] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:54:05 [end_date_ymd] => 2025-02-10 15:54:05 [RateCDR] => 1 ) [2025-02-10 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:54:05' and `end` < '2025-02-10 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:54:21] Production.INFO: count ==4740 [2025-02-10 15:54:23] Production.ERROR: pbx CDR StartTime 2025-02-10 12:54:05 - End Time 2025-02-10 15:54:05 [2025-02-10 15:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445449', 'tblTempUsageDetail_20' ) start [2025-02-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445449', 'tblTempUsageDetail_20' ) end [2025-02-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445449', 'tblTempVendorCDR_20' ) start [2025-02-10 15:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445449', 'tblTempVendorCDR_20' ) end [2025-02-10 15:54:23] Production.INFO: ProcessCDR(1,14445449,1,1,2) [2025-02-10 15:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445449', 'tblTempUsageDetail_20' ) start [2025-02-10 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445449', 'tblTempUsageDetail_20' ) end [2025-02-10 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:54:28] Production.INFO: ==4327== Releasing lock... [2025-02-10 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:54:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:55:05 [end_date_ymd] => 2025-02-10 15:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:55:05' and `end` < '2025-02-10 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-10 15:55:26] Production.INFO: count ==4788 [2025-02-10 15:55:28] Production.ERROR: pbx CDR StartTime 2025-02-10 12:55:05 - End Time 2025-02-10 15:55:05 [2025-02-10 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445454', 'tblTempUsageDetail_20' ) start [2025-02-10 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445454', 'tblTempUsageDetail_20' ) end [2025-02-10 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445454', 'tblTempVendorCDR_20' ) start [2025-02-10 15:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445454', 'tblTempVendorCDR_20' ) end [2025-02-10 15:55:29] Production.INFO: ProcessCDR(1,14445454,1,1,2) [2025-02-10 15:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445454', 'tblTempUsageDetail_20' ) start [2025-02-10 15:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445454', 'tblTempUsageDetail_20' ) end [2025-02-10 15:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:55:34] Production.INFO: ==4398== Releasing lock... [2025-02-10 15:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:55:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:56:06 [end_date_ymd] => 2025-02-10 15:56:06 [RateCDR] => 1 ) [2025-02-10 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:56:06' and `end` < '2025-02-10 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:56:29] Production.INFO: count ==4790 [2025-02-10 15:56:31] Production.ERROR: pbx CDR StartTime 2025-02-10 12:56:06 - End Time 2025-02-10 15:56:06 [2025-02-10 15:56:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445459', 'tblTempUsageDetail_20' ) start [2025-02-10 15:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445459', 'tblTempUsageDetail_20' ) end [2025-02-10 15:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445459', 'tblTempVendorCDR_20' ) start [2025-02-10 15:56:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445459', 'tblTempVendorCDR_20' ) end [2025-02-10 15:56:31] Production.INFO: ProcessCDR(1,14445459,1,1,2) [2025-02-10 15:56:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:56:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445459', 'tblTempUsageDetail_20' ) start [2025-02-10 15:56:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445459', 'tblTempUsageDetail_20' ) end [2025-02-10 15:56:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:56:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:56:36] Production.INFO: ==4470== Releasing lock... [2025-02-10 15:56:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:56:36] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:57:04 [end_date_ymd] => 2025-02-10 15:57:04 [RateCDR] => 1 ) [2025-02-10 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:57:04' and `end` < '2025-02-10 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:57:24] Production.INFO: count ==4769 [2025-02-10 15:57:26] Production.ERROR: pbx CDR StartTime 2025-02-10 12:57:04 - End Time 2025-02-10 15:57:04 [2025-02-10 15:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445464', 'tblTempUsageDetail_20' ) start [2025-02-10 15:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445464', 'tblTempUsageDetail_20' ) end [2025-02-10 15:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445464', 'tblTempVendorCDR_20' ) start [2025-02-10 15:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445464', 'tblTempVendorCDR_20' ) end [2025-02-10 15:57:27] Production.INFO: ProcessCDR(1,14445464,1,1,2) [2025-02-10 15:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445464', 'tblTempUsageDetail_20' ) start [2025-02-10 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445464', 'tblTempUsageDetail_20' ) end [2025-02-10 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:57:31] Production.INFO: ==4541== Releasing lock... [2025-02-10 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:57:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:58:05 [end_date_ymd] => 2025-02-10 15:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 12:58:05' and `end` < '2025-02-10 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-10 15:58:26] Production.INFO: count ==4774 [2025-02-10 15:58:28] Production.ERROR: pbx CDR StartTime 2025-02-10 12:58:05 - End Time 2025-02-10 15:58:05 [2025-02-10 15:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445469', 'tblTempUsageDetail_20' ) start [2025-02-10 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445469', 'tblTempUsageDetail_20' ) end [2025-02-10 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445469', 'tblTempVendorCDR_20' ) start [2025-02-10 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445469', 'tblTempVendorCDR_20' ) end [2025-02-10 15:58:28] Production.INFO: ProcessCDR(1,14445469,1,1,2) [2025-02-10 15:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445469', 'tblTempUsageDetail_20' ) start [2025-02-10 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445469', 'tblTempUsageDetail_20' ) end [2025-02-10 15:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:58:33] Production.INFO: ==4618== Releasing lock... [2025-02-10 15:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:58:33] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 12:59:05 [end_date_ymd] => 2025-02-10 15:59:05 [RateCDR] => 1 ) [2025-02-10 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 12:59:05' and `end` < '2025-02-10 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 15:59:23] Production.INFO: count ==4770 [2025-02-10 15:59:25] Production.ERROR: pbx CDR StartTime 2025-02-10 12:59:05 - End Time 2025-02-10 15:59:05 [2025-02-10 15:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445474', 'tblTempUsageDetail_20' ) start [2025-02-10 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445474', 'tblTempUsageDetail_20' ) end [2025-02-10 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445474', 'tblTempVendorCDR_20' ) start [2025-02-10 15:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445474', 'tblTempVendorCDR_20' ) end [2025-02-10 15:59:26] Production.INFO: ProcessCDR(1,14445474,1,1,2) [2025-02-10 15:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 15:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 15:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445474', 'tblTempUsageDetail_20' ) start [2025-02-10 15:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445474', 'tblTempUsageDetail_20' ) end [2025-02-10 15:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 15:59:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 15:59:29] Production.INFO: ==4693== Releasing lock... [2025-02-10 15:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 15:59:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:00:07 [end_date_ymd] => 2025-02-10 16:00:07 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:00:07' and `end` < '2025-02-10 16: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-10 16:00:26] Production.INFO: count ==4785 [2025-02-10 16:00:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:00:07 - End Time 2025-02-10 16:00:07 [2025-02-10 16:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445480', 'tblTempUsageDetail_20' ) start [2025-02-10 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445480', 'tblTempUsageDetail_20' ) end [2025-02-10 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445480', 'tblTempVendorCDR_20' ) start [2025-02-10 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445480', 'tblTempVendorCDR_20' ) end [2025-02-10 16:00:28] Production.INFO: ProcessCDR(1,14445480,1,1,2) [2025-02-10 16:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445480', 'tblTempUsageDetail_20' ) start [2025-02-10 16:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445480', 'tblTempUsageDetail_20' ) end [2025-02-10 16:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:00:32] Production.INFO: ==4767== Releasing lock... [2025-02-10 16:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:00:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:01:05 [end_date_ymd] => 2025-02-10 16:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:01:05' and `end` < '2025-02-10 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-10 16:01:24] Production.INFO: count ==4822 [2025-02-10 16:01:26] Production.ERROR: pbx CDR StartTime 2025-02-10 13:01:05 - End Time 2025-02-10 16:01:05 [2025-02-10 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445485', 'tblTempUsageDetail_20' ) start [2025-02-10 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445485', 'tblTempUsageDetail_20' ) end [2025-02-10 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445485', 'tblTempVendorCDR_20' ) start [2025-02-10 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445485', 'tblTempVendorCDR_20' ) end [2025-02-10 16:01:26] Production.INFO: ProcessCDR(1,14445485,1,1,2) [2025-02-10 16:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445485', 'tblTempUsageDetail_20' ) start [2025-02-10 16:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445485', 'tblTempUsageDetail_20' ) end [2025-02-10 16:01:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:01:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:01:32] Production.INFO: ==4852== Releasing lock... [2025-02-10 16:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:01:32] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:02:05 [end_date_ymd] => 2025-02-10 16:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:02:05' and `end` < '2025-02-10 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-10 16:02:29] Production.INFO: count ==4815 [2025-02-10 16:02:32] Production.ERROR: pbx CDR StartTime 2025-02-10 13:02:05 - End Time 2025-02-10 16:02:05 [2025-02-10 16:02:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445490', 'tblTempUsageDetail_20' ) start [2025-02-10 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445490', 'tblTempUsageDetail_20' ) end [2025-02-10 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445490', 'tblTempVendorCDR_20' ) start [2025-02-10 16:02:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445490', 'tblTempVendorCDR_20' ) end [2025-02-10 16:02:32] Production.INFO: ProcessCDR(1,14445490,1,1,2) [2025-02-10 16:02:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445490', 'tblTempUsageDetail_20' ) start [2025-02-10 16:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445490', 'tblTempUsageDetail_20' ) end [2025-02-10 16:02:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:02:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:02:37] Production.INFO: ==4969== Releasing lock... [2025-02-10 16:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:02:37] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:03:05 [end_date_ymd] => 2025-02-10 16:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:03:05' and `end` < '2025-02-10 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-10 16:03:27] Production.INFO: count ==4799 [2025-02-10 16:03:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:03:05 - End Time 2025-02-10 16:03:05 [2025-02-10 16:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445495', 'tblTempUsageDetail_20' ) start [2025-02-10 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445495', 'tblTempUsageDetail_20' ) end [2025-02-10 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445495', 'tblTempVendorCDR_20' ) start [2025-02-10 16:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445495', 'tblTempVendorCDR_20' ) end [2025-02-10 16:03:29] Production.INFO: ProcessCDR(1,14445495,1,1,2) [2025-02-10 16:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445495', 'tblTempUsageDetail_20' ) start [2025-02-10 16:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445495', 'tblTempUsageDetail_20' ) end [2025-02-10 16:03:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:03:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:03:34] Production.INFO: ==5042== Releasing lock... [2025-02-10 16:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:03:34] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:04:05 [end_date_ymd] => 2025-02-10 16:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:04:05' and `end` < '2025-02-10 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-10 16:04:25] Production.INFO: count ==4807 [2025-02-10 16:04:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:04:05 - End Time 2025-02-10 16:04:05 [2025-02-10 16:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445500', 'tblTempUsageDetail_20' ) start [2025-02-10 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445500', 'tblTempUsageDetail_20' ) end [2025-02-10 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445500', 'tblTempVendorCDR_20' ) start [2025-02-10 16:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445500', 'tblTempVendorCDR_20' ) end [2025-02-10 16:04:27] Production.INFO: ProcessCDR(1,14445500,1,1,2) [2025-02-10 16:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445500', 'tblTempUsageDetail_20' ) start [2025-02-10 16:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445500', 'tblTempUsageDetail_20' ) end [2025-02-10 16:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:04:31] Production.INFO: ==5119== Releasing lock... [2025-02-10 16:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:04:31] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:05:04 [end_date_ymd] => 2025-02-10 16:05:04 [RateCDR] => 1 ) [2025-02-10 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:05:04' and `end` < '2025-02-10 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:05:19] Production.INFO: count ==4808 [2025-02-10 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-10 13:05:04 - End Time 2025-02-10 16:05:04 [2025-02-10 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445505', 'tblTempUsageDetail_20' ) start [2025-02-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445505', 'tblTempUsageDetail_20' ) end [2025-02-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445505', 'tblTempVendorCDR_20' ) start [2025-02-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445505', 'tblTempVendorCDR_20' ) end [2025-02-10 16:05:21] Production.INFO: ProcessCDR(1,14445505,1,1,2) [2025-02-10 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445505', 'tblTempUsageDetail_20' ) start [2025-02-10 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445505', 'tblTempUsageDetail_20' ) end [2025-02-10 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:05:26] Production.INFO: ==5192== Releasing lock... [2025-02-10 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:05:26] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:06:05 [end_date_ymd] => 2025-02-10 16:06:05 [RateCDR] => 1 ) [2025-02-10 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:06:05' and `end` < '2025-02-10 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:06:20] Production.INFO: count ==4805 [2025-02-10 16:06:22] Production.ERROR: pbx CDR StartTime 2025-02-10 13:06:05 - End Time 2025-02-10 16:06:05 [2025-02-10 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445510', 'tblTempUsageDetail_20' ) start [2025-02-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445510', 'tblTempUsageDetail_20' ) end [2025-02-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445510', 'tblTempVendorCDR_20' ) start [2025-02-10 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445510', 'tblTempVendorCDR_20' ) end [2025-02-10 16:06:22] Production.INFO: ProcessCDR(1,14445510,1,1,2) [2025-02-10 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445510', 'tblTempUsageDetail_20' ) start [2025-02-10 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445510', 'tblTempUsageDetail_20' ) end [2025-02-10 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:06:25] Production.INFO: ==5269== Releasing lock... [2025-02-10 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:06:25] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:07:05 [end_date_ymd] => 2025-02-10 16:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:07:05' and `end` < '2025-02-10 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-10 16:07:27] Production.INFO: count ==4805 [2025-02-10 16:07:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:07:05 - End Time 2025-02-10 16:07:05 [2025-02-10 16:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445515', 'tblTempUsageDetail_20' ) start [2025-02-10 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445515', 'tblTempUsageDetail_20' ) end [2025-02-10 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445515', 'tblTempVendorCDR_20' ) start [2025-02-10 16:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445515', 'tblTempVendorCDR_20' ) end [2025-02-10 16:07:29] Production.INFO: ProcessCDR(1,14445515,1,1,2) [2025-02-10 16:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445515', 'tblTempUsageDetail_20' ) start [2025-02-10 16:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445515', 'tblTempUsageDetail_20' ) end [2025-02-10 16:07:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:07:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:07:34] Production.INFO: ==5347== Releasing lock... [2025-02-10 16:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:07:34] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:08:05 [end_date_ymd] => 2025-02-10 16:08:05 [RateCDR] => 1 ) [2025-02-10 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:08:05' and `end` < '2025-02-10 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:08:23] Production.INFO: count ==4775 [2025-02-10 16:08:25] Production.ERROR: pbx CDR StartTime 2025-02-10 13:08:05 - End Time 2025-02-10 16:08:05 [2025-02-10 16:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445520', 'tblTempUsageDetail_20' ) start [2025-02-10 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445520', 'tblTempUsageDetail_20' ) end [2025-02-10 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445520', 'tblTempVendorCDR_20' ) start [2025-02-10 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445520', 'tblTempVendorCDR_20' ) end [2025-02-10 16:08:25] Production.INFO: ProcessCDR(1,14445520,1,1,2) [2025-02-10 16:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445520', 'tblTempUsageDetail_20' ) start [2025-02-10 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445520', 'tblTempUsageDetail_20' ) end [2025-02-10 16:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:08:30] Production.INFO: ==5423== Releasing lock... [2025-02-10 16:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:08:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:09:05 [end_date_ymd] => 2025-02-10 16:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:09:05' and `end` < '2025-02-10 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-10 16:09:20] Production.INFO: count ==4774 [2025-02-10 16:09:22] Production.ERROR: pbx CDR StartTime 2025-02-10 13:09:05 - End Time 2025-02-10 16:09:05 [2025-02-10 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445525', 'tblTempUsageDetail_20' ) start [2025-02-10 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445525', 'tblTempUsageDetail_20' ) end [2025-02-10 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445525', 'tblTempVendorCDR_20' ) start [2025-02-10 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445525', 'tblTempVendorCDR_20' ) end [2025-02-10 16:09:22] Production.INFO: ProcessCDR(1,14445525,1,1,2) [2025-02-10 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445525', 'tblTempUsageDetail_20' ) start [2025-02-10 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445525', 'tblTempUsageDetail_20' ) end [2025-02-10 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:09:27] Production.INFO: ==5502== Releasing lock... [2025-02-10 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:09:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:10:06 [end_date_ymd] => 2025-02-10 16:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 13:10:06' and `end` < '2025-02-10 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-10 16:10:27] Production.INFO: count ==4776 [2025-02-10 16:10:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:10:06 - End Time 2025-02-10 16:10:06 [2025-02-10 16:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445531', 'tblTempUsageDetail_20' ) start [2025-02-10 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445531', 'tblTempUsageDetail_20' ) end [2025-02-10 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445531', 'tblTempVendorCDR_20' ) start [2025-02-10 16:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445531', 'tblTempVendorCDR_20' ) end [2025-02-10 16:10:29] Production.INFO: ProcessCDR(1,14445531,1,1,2) [2025-02-10 16:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445531', 'tblTempUsageDetail_20' ) start [2025-02-10 16:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445531', 'tblTempUsageDetail_20' ) end [2025-02-10 16:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:10:34] Production.INFO: ==5577== Releasing lock... [2025-02-10 16:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:10:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:11:05 [end_date_ymd] => 2025-02-10 16:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:11:05' and `end` < '2025-02-10 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-10 16:11:28] Production.INFO: count ==4804 [2025-02-10 16:11:30] Production.ERROR: pbx CDR StartTime 2025-02-10 13:11:05 - End Time 2025-02-10 16:11:05 [2025-02-10 16:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445536', 'tblTempUsageDetail_20' ) start [2025-02-10 16:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445536', 'tblTempUsageDetail_20' ) end [2025-02-10 16:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445536', 'tblTempVendorCDR_20' ) start [2025-02-10 16:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445536', 'tblTempVendorCDR_20' ) end [2025-02-10 16:11:30] Production.INFO: ProcessCDR(1,14445536,1,1,2) [2025-02-10 16:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445536', 'tblTempUsageDetail_20' ) start [2025-02-10 16:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445536', 'tblTempUsageDetail_20' ) end [2025-02-10 16:11:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:11:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:11:34] Production.INFO: ==5656== Releasing lock... [2025-02-10 16:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:11:34] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:12:05 [end_date_ymd] => 2025-02-10 16:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:12:05' and `end` < '2025-02-10 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-10 16:12:26] Production.INFO: count ==4807 [2025-02-10 16:12:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:12:05 - End Time 2025-02-10 16:12:05 [2025-02-10 16:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445541', 'tblTempUsageDetail_20' ) start [2025-02-10 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445541', 'tblTempUsageDetail_20' ) end [2025-02-10 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445541', 'tblTempVendorCDR_20' ) start [2025-02-10 16:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445541', 'tblTempVendorCDR_20' ) end [2025-02-10 16:12:28] Production.INFO: ProcessCDR(1,14445541,1,1,2) [2025-02-10 16:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445541', 'tblTempUsageDetail_20' ) start [2025-02-10 16:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445541', 'tblTempUsageDetail_20' ) end [2025-02-10 16:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:12:33] Production.INFO: ==5731== Releasing lock... [2025-02-10 16:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:12:33] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:13:05 [end_date_ymd] => 2025-02-10 16:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:13:05' and `end` < '2025-02-10 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-10 16:13:22] Production.INFO: count ==4811 [2025-02-10 16:13:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:13:05 - End Time 2025-02-10 16:13:05 [2025-02-10 16:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445546', 'tblTempUsageDetail_20' ) start [2025-02-10 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445546', 'tblTempUsageDetail_20' ) end [2025-02-10 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445546', 'tblTempVendorCDR_20' ) start [2025-02-10 16:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445546', 'tblTempVendorCDR_20' ) end [2025-02-10 16:13:24] Production.INFO: ProcessCDR(1,14445546,1,1,2) [2025-02-10 16:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445546', 'tblTempUsageDetail_20' ) start [2025-02-10 16:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445546', 'tblTempUsageDetail_20' ) end [2025-02-10 16:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:13:29] Production.INFO: ==5805== Releasing lock... [2025-02-10 16:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:13:29] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:14:05 [end_date_ymd] => 2025-02-10 16:14:05 [RateCDR] => 1 ) [2025-02-10 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:14:05' and `end` < '2025-02-10 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:14:19] Production.INFO: count ==4815 [2025-02-10 16:14:21] Production.ERROR: pbx CDR StartTime 2025-02-10 13:14:05 - End Time 2025-02-10 16:14:05 [2025-02-10 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445551', 'tblTempUsageDetail_20' ) start [2025-02-10 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445551', 'tblTempUsageDetail_20' ) end [2025-02-10 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445551', 'tblTempVendorCDR_20' ) start [2025-02-10 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445551', 'tblTempVendorCDR_20' ) end [2025-02-10 16:14:21] Production.INFO: ProcessCDR(1,14445551,1,1,2) [2025-02-10 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445551', 'tblTempUsageDetail_20' ) start [2025-02-10 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445551', 'tblTempUsageDetail_20' ) end [2025-02-10 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:14:26] Production.INFO: ==5881== Releasing lock... [2025-02-10 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:14:26] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:15:05 [end_date_ymd] => 2025-02-10 16:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:15:05' and `end` < '2025-02-10 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-10 16:15:20] Production.INFO: count ==4821 [2025-02-10 16:15:22] Production.ERROR: pbx CDR StartTime 2025-02-10 13:15:05 - End Time 2025-02-10 16:15:05 [2025-02-10 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445556', 'tblTempUsageDetail_20' ) start [2025-02-10 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445556', 'tblTempUsageDetail_20' ) end [2025-02-10 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445556', 'tblTempVendorCDR_20' ) start [2025-02-10 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445556', 'tblTempVendorCDR_20' ) end [2025-02-10 16:15:22] Production.INFO: ProcessCDR(1,14445556,1,1,2) [2025-02-10 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445556', 'tblTempUsageDetail_20' ) start [2025-02-10 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445556', 'tblTempUsageDetail_20' ) end [2025-02-10 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:15:27] Production.INFO: ==5962== Releasing lock... [2025-02-10 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:15:27] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:16:05 [end_date_ymd] => 2025-02-10 16:16:05 [RateCDR] => 1 ) [2025-02-10 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:16:05' and `end` < '2025-02-10 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:16:19] Production.INFO: count ==4821 [2025-02-10 16:16:21] Production.ERROR: pbx CDR StartTime 2025-02-10 13:16:05 - End Time 2025-02-10 16:16:05 [2025-02-10 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445561', 'tblTempUsageDetail_20' ) start [2025-02-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445561', 'tblTempUsageDetail_20' ) end [2025-02-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445561', 'tblTempVendorCDR_20' ) start [2025-02-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445561', 'tblTempVendorCDR_20' ) end [2025-02-10 16:16:21] Production.INFO: ProcessCDR(1,14445561,1,1,2) [2025-02-10 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445561', 'tblTempUsageDetail_20' ) start [2025-02-10 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445561', 'tblTempUsageDetail_20' ) end [2025-02-10 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:16:26] Production.INFO: ==6041== Releasing lock... [2025-02-10 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:16:26] Production.INFO: 64 MB #Memory Used# [2025-02-10 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:17:04 [end_date_ymd] => 2025-02-10 16:17:04 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:17:04' and `end` < '2025-02-10 16: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-10 16:17:25] Production.INFO: count ==4841 [2025-02-10 16:17:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:17:04 - End Time 2025-02-10 16:17:04 [2025-02-10 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445566', 'tblTempUsageDetail_20' ) start [2025-02-10 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445566', 'tblTempUsageDetail_20' ) end [2025-02-10 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445566', 'tblTempVendorCDR_20' ) start [2025-02-10 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445566', 'tblTempVendorCDR_20' ) end [2025-02-10 16:17:27] Production.INFO: ProcessCDR(1,14445566,1,1,2) [2025-02-10 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445566', 'tblTempUsageDetail_20' ) start [2025-02-10 16:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445566', 'tblTempUsageDetail_20' ) end [2025-02-10 16:17:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:17:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:17:33] Production.INFO: ==6115== Releasing lock... [2025-02-10 16:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:17:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:18:05 [end_date_ymd] => 2025-02-10 16:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:18:05' and `end` < '2025-02-10 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-10 16:18:26] Production.INFO: count ==4850 [2025-02-10 16:18:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:18:05 - End Time 2025-02-10 16:18:05 [2025-02-10 16:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445571', 'tblTempUsageDetail_20' ) start [2025-02-10 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445571', 'tblTempUsageDetail_20' ) end [2025-02-10 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445571', 'tblTempVendorCDR_20' ) start [2025-02-10 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445571', 'tblTempVendorCDR_20' ) end [2025-02-10 16:18:28] Production.INFO: ProcessCDR(1,14445571,1,1,2) [2025-02-10 16:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445571', 'tblTempUsageDetail_20' ) start [2025-02-10 16:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445571', 'tblTempUsageDetail_20' ) end [2025-02-10 16:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:18:33] Production.INFO: ==6239== Releasing lock... [2025-02-10 16:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:18:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 16:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:19:04 [end_date_ymd] => 2025-02-10 16:19:04 [RateCDR] => 1 ) [2025-02-10 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-10 13:19:04' and `end` < '2025-02-10 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-10 16:19:22] Production.INFO: count ==4867 [2025-02-10 16:19:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:19:04 - End Time 2025-02-10 16:19:04 [2025-02-10 16:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445576', 'tblTempUsageDetail_20' ) start [2025-02-10 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445576', 'tblTempUsageDetail_20' ) end [2025-02-10 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445576', 'tblTempVendorCDR_20' ) start [2025-02-10 16:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445576', 'tblTempVendorCDR_20' ) end [2025-02-10 16:19:24] Production.INFO: ProcessCDR(1,14445576,1,1,2) [2025-02-10 16:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445576', 'tblTempUsageDetail_20' ) start [2025-02-10 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445576', 'tblTempUsageDetail_20' ) end [2025-02-10 16:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:19:29] Production.INFO: ==6322== Releasing lock... [2025-02-10 16:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:19:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:20:05 [end_date_ymd] => 2025-02-10 16:20:05 [RateCDR] => 1 ) [2025-02-10 16:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:20:05' and `end` < '2025-02-10 16:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:20:22] Production.INFO: count ==4868 [2025-02-10 16:20:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:20:05 - End Time 2025-02-10 16:20:05 [2025-02-10 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445582', 'tblTempUsageDetail_20' ) start [2025-02-10 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445582', 'tblTempUsageDetail_20' ) end [2025-02-10 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445582', 'tblTempVendorCDR_20' ) start [2025-02-10 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445582', 'tblTempVendorCDR_20' ) end [2025-02-10 16:20:24] Production.INFO: ProcessCDR(1,14445582,1,1,2) [2025-02-10 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445582', 'tblTempUsageDetail_20' ) start [2025-02-10 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445582', 'tblTempUsageDetail_20' ) end [2025-02-10 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:20:29] Production.INFO: ==6402== Releasing lock... [2025-02-10 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:20:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:21:05 [end_date_ymd] => 2025-02-10 16:21:05 [RateCDR] => 1 ) [2025-02-10 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:21:05' and `end` < '2025-02-10 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:21:33] Production.INFO: count ==4936 [2025-02-10 16:21:35] Production.ERROR: pbx CDR StartTime 2025-02-10 13:21:05 - End Time 2025-02-10 16:21:05 [2025-02-10 16:21:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:21:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445587', 'tblTempUsageDetail_20' ) start [2025-02-10 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445587', 'tblTempUsageDetail_20' ) end [2025-02-10 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445587', 'tblTempVendorCDR_20' ) start [2025-02-10 16:21:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445587', 'tblTempVendorCDR_20' ) end [2025-02-10 16:21:36] Production.INFO: ProcessCDR(1,14445587,1,1,2) [2025-02-10 16:21:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:21:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:21:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:21:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:21:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445587', 'tblTempUsageDetail_20' ) start [2025-02-10 16:21:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445587', 'tblTempUsageDetail_20' ) end [2025-02-10 16:21:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:21:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:21:41] Production.INFO: ==6481== Releasing lock... [2025-02-10 16:21:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:21:41] Production.INFO: 65 MB #Memory Used# [2025-02-10 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:22:05 [end_date_ymd] => 2025-02-10 16:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:22:05' and `end` < '2025-02-10 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-10 16:22:23] Production.INFO: count ==5009 [2025-02-10 16:22:25] Production.ERROR: pbx CDR StartTime 2025-02-10 13:22:05 - End Time 2025-02-10 16:22:05 [2025-02-10 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445592', 'tblTempUsageDetail_20' ) start [2025-02-10 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445592', 'tblTempUsageDetail_20' ) end [2025-02-10 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445592', 'tblTempVendorCDR_20' ) start [2025-02-10 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445592', 'tblTempVendorCDR_20' ) end [2025-02-10 16:22:26] Production.INFO: ProcessCDR(1,14445592,1,1,2) [2025-02-10 16:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445592', 'tblTempUsageDetail_20' ) start [2025-02-10 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445592', 'tblTempUsageDetail_20' ) end [2025-02-10 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:22:30] Production.INFO: ==6558== Releasing lock... [2025-02-10 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:22:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:23:05 [end_date_ymd] => 2025-02-10 16:23:05 [RateCDR] => 1 ) [2025-02-10 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:23:05' and `end` < '2025-02-10 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:23:26] Production.INFO: count ==5001 [2025-02-10 16:23:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:23:05 - End Time 2025-02-10 16:23:05 [2025-02-10 16:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445597', 'tblTempUsageDetail_20' ) start [2025-02-10 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445597', 'tblTempUsageDetail_20' ) end [2025-02-10 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445597', 'tblTempVendorCDR_20' ) start [2025-02-10 16:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445597', 'tblTempVendorCDR_20' ) end [2025-02-10 16:23:29] Production.INFO: ProcessCDR(1,14445597,1,1,2) [2025-02-10 16:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445597', 'tblTempUsageDetail_20' ) start [2025-02-10 16:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445597', 'tblTempUsageDetail_20' ) end [2025-02-10 16:23:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:23:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:23:33] Production.INFO: ==6632== Releasing lock... [2025-02-10 16:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:23:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:24:05 [end_date_ymd] => 2025-02-10 16:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:24:05' and `end` < '2025-02-10 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-10 16:24:23] Production.INFO: count ==4999 [2025-02-10 16:24:25] Production.ERROR: pbx CDR StartTime 2025-02-10 13:24:05 - End Time 2025-02-10 16:24:05 [2025-02-10 16:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445602', 'tblTempUsageDetail_20' ) start [2025-02-10 16:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445602', 'tblTempUsageDetail_20' ) end [2025-02-10 16:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445602', 'tblTempVendorCDR_20' ) start [2025-02-10 16:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445602', 'tblTempVendorCDR_20' ) end [2025-02-10 16:24:25] Production.INFO: ProcessCDR(1,14445602,1,1,2) [2025-02-10 16:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445602', 'tblTempUsageDetail_20' ) start [2025-02-10 16:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445602', 'tblTempUsageDetail_20' ) end [2025-02-10 16:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:24:30] Production.INFO: ==6711== Releasing lock... [2025-02-10 16:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:24:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:25:05 [end_date_ymd] => 2025-02-10 16:25:05 [RateCDR] => 1 ) [2025-02-10 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:25:05' and `end` < '2025-02-10 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:25:30] Production.INFO: count ==5008 [2025-02-10 16:25:32] Production.ERROR: pbx CDR StartTime 2025-02-10 13:25:05 - End Time 2025-02-10 16:25:05 [2025-02-10 16:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445607', 'tblTempUsageDetail_20' ) start [2025-02-10 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445607', 'tblTempUsageDetail_20' ) end [2025-02-10 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445607', 'tblTempVendorCDR_20' ) start [2025-02-10 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445607', 'tblTempVendorCDR_20' ) end [2025-02-10 16:25:32] Production.INFO: ProcessCDR(1,14445607,1,1,2) [2025-02-10 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:25:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:25:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445607', 'tblTempUsageDetail_20' ) start [2025-02-10 16:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445607', 'tblTempUsageDetail_20' ) end [2025-02-10 16:25:38] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:25:38] Production.INFO: ==6784== Releasing lock... [2025-02-10 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:25:38] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:26:05 [end_date_ymd] => 2025-02-10 16:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:26:05' and `end` < '2025-02-10 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-10 16:26:27] Production.INFO: count ==5009 [2025-02-10 16:26:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:26:05 - End Time 2025-02-10 16:26:05 [2025-02-10 16:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445612', 'tblTempUsageDetail_20' ) start [2025-02-10 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445612', 'tblTempUsageDetail_20' ) end [2025-02-10 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445612', 'tblTempVendorCDR_20' ) start [2025-02-10 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445612', 'tblTempVendorCDR_20' ) end [2025-02-10 16:26:30] Production.INFO: ProcessCDR(1,14445612,1,1,2) [2025-02-10 16:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445612', 'tblTempUsageDetail_20' ) start [2025-02-10 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445612', 'tblTempUsageDetail_20' ) end [2025-02-10 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:26:33] Production.INFO: ==6860== Releasing lock... [2025-02-10 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:26:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:27:05 [end_date_ymd] => 2025-02-10 16:27:05 [RateCDR] => 1 ) [2025-02-10 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:27:05' and `end` < '2025-02-10 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:27:25] Production.INFO: count ==5004 [2025-02-10 16:27:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:27:05 - End Time 2025-02-10 16:27:05 [2025-02-10 16:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445617', 'tblTempUsageDetail_20' ) start [2025-02-10 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445617', 'tblTempUsageDetail_20' ) end [2025-02-10 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445617', 'tblTempVendorCDR_20' ) start [2025-02-10 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445617', 'tblTempVendorCDR_20' ) end [2025-02-10 16:27:27] Production.INFO: ProcessCDR(1,14445617,1,1,2) [2025-02-10 16:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445617', 'tblTempUsageDetail_20' ) start [2025-02-10 16:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445617', 'tblTempUsageDetail_20' ) end [2025-02-10 16:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:27:31] Production.INFO: ==6938== Releasing lock... [2025-02-10 16:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:27:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:28:05 [end_date_ymd] => 2025-02-10 16:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:28:05' and `end` < '2025-02-10 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-10 16:28:24] Production.INFO: count ==5006 [2025-02-10 16:28:26] Production.ERROR: pbx CDR StartTime 2025-02-10 13:28:05 - End Time 2025-02-10 16:28:05 [2025-02-10 16:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445622', 'tblTempUsageDetail_20' ) start [2025-02-10 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445622', 'tblTempUsageDetail_20' ) end [2025-02-10 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445622', 'tblTempVendorCDR_20' ) start [2025-02-10 16:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445622', 'tblTempVendorCDR_20' ) end [2025-02-10 16:28:26] Production.INFO: ProcessCDR(1,14445622,1,1,2) [2025-02-10 16:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445622', 'tblTempUsageDetail_20' ) start [2025-02-10 16:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445622', 'tblTempUsageDetail_20' ) end [2025-02-10 16:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:28:31] Production.INFO: ==7013== Releasing lock... [2025-02-10 16:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:28:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:29:05 [end_date_ymd] => 2025-02-10 16:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:29:05' and `end` < '2025-02-10 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-10 16:29:26] Production.INFO: count ==5003 [2025-02-10 16:29:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:29:05 - End Time 2025-02-10 16:29:05 [2025-02-10 16:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445627', 'tblTempUsageDetail_20' ) start [2025-02-10 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445627', 'tblTempUsageDetail_20' ) end [2025-02-10 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445627', 'tblTempVendorCDR_20' ) start [2025-02-10 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445627', 'tblTempVendorCDR_20' ) end [2025-02-10 16:29:29] Production.INFO: ProcessCDR(1,14445627,1,1,2) [2025-02-10 16:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445627', 'tblTempUsageDetail_20' ) start [2025-02-10 16:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445627', 'tblTempUsageDetail_20' ) end [2025-02-10 16:29:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:29:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:29:34] Production.INFO: ==7086== Releasing lock... [2025-02-10 16:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:29:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:30:06 [end_date_ymd] => 2025-02-10 16:30:06 [RateCDR] => 1 ) [2025-02-10 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:30:06' and `end` < '2025-02-10 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:30:26] Production.INFO: count ==5066 [2025-02-10 16:30:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:30:06 - End Time 2025-02-10 16:30:06 [2025-02-10 16:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445633', 'tblTempUsageDetail_20' ) start [2025-02-10 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445633', 'tblTempUsageDetail_20' ) end [2025-02-10 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445633', 'tblTempVendorCDR_20' ) start [2025-02-10 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445633', 'tblTempVendorCDR_20' ) end [2025-02-10 16:30:28] Production.INFO: ProcessCDR(1,14445633,1,1,2) [2025-02-10 16:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445633', 'tblTempUsageDetail_20' ) start [2025-02-10 16:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445633', 'tblTempUsageDetail_20' ) end [2025-02-10 16:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:30:33] Production.INFO: ==7169== Releasing lock... [2025-02-10 16:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:30:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:31:05 [end_date_ymd] => 2025-02-10 16:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:31:05' and `end` < '2025-02-10 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-10 16:31:22] Production.INFO: count ==5119 [2025-02-10 16:31:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:31:05 - End Time 2025-02-10 16:31:05 [2025-02-10 16:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445638', 'tblTempUsageDetail_20' ) start [2025-02-10 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445638', 'tblTempUsageDetail_20' ) end [2025-02-10 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445638', 'tblTempVendorCDR_20' ) start [2025-02-10 16:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445638', 'tblTempVendorCDR_20' ) end [2025-02-10 16:31:24] Production.INFO: ProcessCDR(1,14445638,1,1,2) [2025-02-10 16:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445638', 'tblTempUsageDetail_20' ) start [2025-02-10 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445638', 'tblTempUsageDetail_20' ) end [2025-02-10 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:31:29] Production.INFO: ==7246== Releasing lock... [2025-02-10 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:31:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:32:05 [end_date_ymd] => 2025-02-10 16:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:32:05' and `end` < '2025-02-10 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-10 16:32:28] Production.INFO: count ==5087 [2025-02-10 16:32:30] Production.ERROR: pbx CDR StartTime 2025-02-10 13:32:05 - End Time 2025-02-10 16:32:05 [2025-02-10 16:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445643', 'tblTempUsageDetail_20' ) start [2025-02-10 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445643', 'tblTempUsageDetail_20' ) end [2025-02-10 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445643', 'tblTempVendorCDR_20' ) start [2025-02-10 16:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445643', 'tblTempVendorCDR_20' ) end [2025-02-10 16:32:31] Production.INFO: ProcessCDR(1,14445643,1,1,2) [2025-02-10 16:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445643', 'tblTempUsageDetail_20' ) start [2025-02-10 16:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445643', 'tblTempUsageDetail_20' ) end [2025-02-10 16:32:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:32:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:32:35] Production.INFO: ==7327== Releasing lock... [2025-02-10 16:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:32:35] Production.INFO: 66 MB #Memory Used# [2025-02-10 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:33:05 [end_date_ymd] => 2025-02-10 16:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:33:05' and `end` < '2025-02-10 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-10 16:33:28] Production.INFO: count ==5103 [2025-02-10 16:33:30] Production.ERROR: pbx CDR StartTime 2025-02-10 13:33:05 - End Time 2025-02-10 16:33:05 [2025-02-10 16:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445648', 'tblTempUsageDetail_20' ) start [2025-02-10 16:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445648', 'tblTempUsageDetail_20' ) end [2025-02-10 16:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445648', 'tblTempVendorCDR_20' ) start [2025-02-10 16:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445648', 'tblTempVendorCDR_20' ) end [2025-02-10 16:33:30] Production.INFO: ProcessCDR(1,14445648,1,1,2) [2025-02-10 16:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445648', 'tblTempUsageDetail_20' ) start [2025-02-10 16:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445648', 'tblTempUsageDetail_20' ) end [2025-02-10 16:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:33:35] Production.INFO: ==7442== Releasing lock... [2025-02-10 16:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:33:35] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:34:05 [end_date_ymd] => 2025-02-10 16:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:34:05' and `end` < '2025-02-10 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-10 16:34:23] Production.INFO: count ==5102 [2025-02-10 16:34:25] Production.ERROR: pbx CDR StartTime 2025-02-10 13:34:05 - End Time 2025-02-10 16:34:05 [2025-02-10 16:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445653', 'tblTempUsageDetail_20' ) start [2025-02-10 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445653', 'tblTempUsageDetail_20' ) end [2025-02-10 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445653', 'tblTempVendorCDR_20' ) start [2025-02-10 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445653', 'tblTempVendorCDR_20' ) end [2025-02-10 16:34:25] Production.INFO: ProcessCDR(1,14445653,1,1,2) [2025-02-10 16:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445653', 'tblTempUsageDetail_20' ) start [2025-02-10 16:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445653', 'tblTempUsageDetail_20' ) end [2025-02-10 16:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:34:30] Production.INFO: ==7525== Releasing lock... [2025-02-10 16:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:34:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:35:06 [end_date_ymd] => 2025-02-10 16:35:06 [RateCDR] => 1 ) [2025-02-10 16:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:35:06' and `end` < '2025-02-10 16:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:35:26] Production.INFO: count ==5093 [2025-02-10 16:35:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:35:06 - End Time 2025-02-10 16:35:06 [2025-02-10 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445658', 'tblTempUsageDetail_20' ) start [2025-02-10 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445658', 'tblTempUsageDetail_20' ) end [2025-02-10 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445658', 'tblTempVendorCDR_20' ) start [2025-02-10 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445658', 'tblTempVendorCDR_20' ) end [2025-02-10 16:35:29] Production.INFO: ProcessCDR(1,14445658,1,1,2) [2025-02-10 16:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:35:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:35:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445658', 'tblTempUsageDetail_20' ) start [2025-02-10 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445658', 'tblTempUsageDetail_20' ) end [2025-02-10 16:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:35:34] Production.INFO: ==7605== Releasing lock... [2025-02-10 16:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:35:34] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:36:05 [end_date_ymd] => 2025-02-10 16:36:05 [RateCDR] => 1 ) [2025-02-10 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:36:05' and `end` < '2025-02-10 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:36:22] Production.INFO: count ==5098 [2025-02-10 16:36:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:36:05 - End Time 2025-02-10 16:36:05 [2025-02-10 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445663', 'tblTempUsageDetail_20' ) start [2025-02-10 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445663', 'tblTempUsageDetail_20' ) end [2025-02-10 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445663', 'tblTempVendorCDR_20' ) start [2025-02-10 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445663', 'tblTempVendorCDR_20' ) end [2025-02-10 16:36:24] Production.INFO: ProcessCDR(1,14445663,1,1,2) [2025-02-10 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445663', 'tblTempUsageDetail_20' ) start [2025-02-10 16:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445663', 'tblTempUsageDetail_20' ) end [2025-02-10 16:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:36:28] Production.INFO: ==7678== Releasing lock... [2025-02-10 16:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:36:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:37:05 [end_date_ymd] => 2025-02-10 16:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:37:05' and `end` < '2025-02-10 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-10 16:37:19] Production.INFO: count ==5089 [2025-02-10 16:37:21] Production.ERROR: pbx CDR StartTime 2025-02-10 13:37:05 - End Time 2025-02-10 16:37:05 [2025-02-10 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445668', 'tblTempUsageDetail_20' ) start [2025-02-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445668', 'tblTempUsageDetail_20' ) end [2025-02-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445668', 'tblTempVendorCDR_20' ) start [2025-02-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445668', 'tblTempVendorCDR_20' ) end [2025-02-10 16:37:21] Production.INFO: ProcessCDR(1,14445668,1,1,2) [2025-02-10 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445668', 'tblTempUsageDetail_20' ) start [2025-02-10 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445668', 'tblTempUsageDetail_20' ) end [2025-02-10 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:37:26] Production.INFO: ==7767== Releasing lock... [2025-02-10 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:37:26] Production.INFO: 66 MB #Memory Used# [2025-02-10 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:38:05 [end_date_ymd] => 2025-02-10 16:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:38:05' and `end` < '2025-02-10 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-10 16:38:23] Production.INFO: count ==5140 [2025-02-10 16:38:26] Production.ERROR: pbx CDR StartTime 2025-02-10 13:38:05 - End Time 2025-02-10 16:38:05 [2025-02-10 16:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445673', 'tblTempUsageDetail_20' ) start [2025-02-10 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445673', 'tblTempUsageDetail_20' ) end [2025-02-10 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445673', 'tblTempVendorCDR_20' ) start [2025-02-10 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445673', 'tblTempVendorCDR_20' ) end [2025-02-10 16:38:26] Production.INFO: ProcessCDR(1,14445673,1,1,2) [2025-02-10 16:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445673', 'tblTempUsageDetail_20' ) start [2025-02-10 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445673', 'tblTempUsageDetail_20' ) end [2025-02-10 16:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:38:31] Production.INFO: ==7866== Releasing lock... [2025-02-10 16:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:38:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:39:05 [end_date_ymd] => 2025-02-10 16:39:05 [RateCDR] => 1 ) [2025-02-10 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:39:05' and `end` < '2025-02-10 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:39:28] Production.INFO: count ==5148 [2025-02-10 16:39:30] Production.ERROR: pbx CDR StartTime 2025-02-10 13:39:05 - End Time 2025-02-10 16:39:05 [2025-02-10 16:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445678', 'tblTempUsageDetail_20' ) start [2025-02-10 16:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445678', 'tblTempUsageDetail_20' ) end [2025-02-10 16:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445678', 'tblTempVendorCDR_20' ) start [2025-02-10 16:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445678', 'tblTempVendorCDR_20' ) end [2025-02-10 16:39:30] Production.INFO: ProcessCDR(1,14445678,1,1,2) [2025-02-10 16:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445678', 'tblTempUsageDetail_20' ) start [2025-02-10 16:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445678', 'tblTempUsageDetail_20' ) end [2025-02-10 16:39:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:39:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:39:36] Production.INFO: ==7968== Releasing lock... [2025-02-10 16:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:39:36] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:40:06 [end_date_ymd] => 2025-02-10 16:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 13:40:06' and `end` < '2025-02-10 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-10 16:40:27] Production.INFO: count ==5141 [2025-02-10 16:40:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:40:06 - End Time 2025-02-10 16:40:06 [2025-02-10 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445684', 'tblTempUsageDetail_20' ) start [2025-02-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445684', 'tblTempUsageDetail_20' ) end [2025-02-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445684', 'tblTempVendorCDR_20' ) start [2025-02-10 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445684', 'tblTempVendorCDR_20' ) end [2025-02-10 16:40:30] Production.INFO: ProcessCDR(1,14445684,1,1,2) [2025-02-10 16:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445684', 'tblTempUsageDetail_20' ) start [2025-02-10 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445684', 'tblTempUsageDetail_20' ) end [2025-02-10 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:40:35] Production.INFO: ==8074== Releasing lock... [2025-02-10 16:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:40:35] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:41:06 [end_date_ymd] => 2025-02-10 16:41:06 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:41:06' and `end` < '2025-02-10 16: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-10 16:41:26] Production.INFO: count ==5165 [2025-02-10 16:41:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:41:06 - End Time 2025-02-10 16:41:06 [2025-02-10 16:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445689', 'tblTempUsageDetail_20' ) start [2025-02-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445689', 'tblTempUsageDetail_20' ) end [2025-02-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445689', 'tblTempVendorCDR_20' ) start [2025-02-10 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445689', 'tblTempVendorCDR_20' ) end [2025-02-10 16:41:28] Production.INFO: ProcessCDR(1,14445689,1,1,2) [2025-02-10 16:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445689', 'tblTempUsageDetail_20' ) start [2025-02-10 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445689', 'tblTempUsageDetail_20' ) end [2025-02-10 16:41:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:41:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:41:33] Production.INFO: ==8189== Releasing lock... [2025-02-10 16:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:41:33] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:42:05 [end_date_ymd] => 2025-02-10 16:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:42:05' and `end` < '2025-02-10 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-10 16:42:26] Production.INFO: count ==5204 [2025-02-10 16:42:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:42:05 - End Time 2025-02-10 16:42:05 [2025-02-10 16:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445694', 'tblTempUsageDetail_20' ) start [2025-02-10 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445694', 'tblTempUsageDetail_20' ) end [2025-02-10 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445694', 'tblTempVendorCDR_20' ) start [2025-02-10 16:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445694', 'tblTempVendorCDR_20' ) end [2025-02-10 16:42:28] Production.INFO: ProcessCDR(1,14445694,1,1,2) [2025-02-10 16:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445694', 'tblTempUsageDetail_20' ) start [2025-02-10 16:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445694', 'tblTempUsageDetail_20' ) end [2025-02-10 16:42:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:42:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:42:33] Production.INFO: ==8285== Releasing lock... [2025-02-10 16:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:42:33] Production.INFO: 67 MB #Memory Used# [2025-02-10 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:43:05 [end_date_ymd] => 2025-02-10 16:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:43:05' and `end` < '2025-02-10 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-10 16:43:26] Production.INFO: count ==5208 [2025-02-10 16:43:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:43:05 - End Time 2025-02-10 16:43:05 [2025-02-10 16:43:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445699', 'tblTempUsageDetail_20' ) start [2025-02-10 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445699', 'tblTempUsageDetail_20' ) end [2025-02-10 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445699', 'tblTempVendorCDR_20' ) start [2025-02-10 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445699', 'tblTempVendorCDR_20' ) end [2025-02-10 16:43:28] Production.INFO: ProcessCDR(1,14445699,1,1,2) [2025-02-10 16:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445699', 'tblTempUsageDetail_20' ) start [2025-02-10 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445699', 'tblTempUsageDetail_20' ) end [2025-02-10 16:43:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:43:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:43:33] Production.INFO: ==8385== Releasing lock... [2025-02-10 16:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:43:33] Production.INFO: 67 MB #Memory Used# [2025-02-10 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:44:05 [end_date_ymd] => 2025-02-10 16:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:44:05' and `end` < '2025-02-10 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-10 16:44:26] Production.INFO: count ==5278 [2025-02-10 16:44:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:44:05 - End Time 2025-02-10 16:44:05 [2025-02-10 16:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445704', 'tblTempUsageDetail_20' ) start [2025-02-10 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445704', 'tblTempUsageDetail_20' ) end [2025-02-10 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445704', 'tblTempVendorCDR_20' ) start [2025-02-10 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445704', 'tblTempVendorCDR_20' ) end [2025-02-10 16:44:28] Production.INFO: ProcessCDR(1,14445704,1,1,2) [2025-02-10 16:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445704', 'tblTempUsageDetail_20' ) start [2025-02-10 16:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445704', 'tblTempUsageDetail_20' ) end [2025-02-10 16:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:44:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:44:33] Production.INFO: ==8485== Releasing lock... [2025-02-10 16:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:44:33] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:45:05 [end_date_ymd] => 2025-02-10 16:45:05 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:45:05' and `end` < '2025-02-10 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-10 16:45:29] Production.INFO: count ==5289 [2025-02-10 16:45:31] Production.ERROR: pbx CDR StartTime 2025-02-10 13:45:05 - End Time 2025-02-10 16:45:05 [2025-02-10 16:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445709', 'tblTempUsageDetail_20' ) start [2025-02-10 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445709', 'tblTempUsageDetail_20' ) end [2025-02-10 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445709', 'tblTempVendorCDR_20' ) start [2025-02-10 16:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445709', 'tblTempVendorCDR_20' ) end [2025-02-10 16:45:31] Production.INFO: ProcessCDR(1,14445709,1,1,2) [2025-02-10 16:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445709', 'tblTempUsageDetail_20' ) start [2025-02-10 16:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445709', 'tblTempUsageDetail_20' ) end [2025-02-10 16:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:45:36] Production.INFO: ==8595== Releasing lock... [2025-02-10 16:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:45:36] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:46:06 [end_date_ymd] => 2025-02-10 16:46:06 [RateCDR] => 1 ) [2025-02-10 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-10 13:46:06' and `end` < '2025-02-10 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-10 16:46:24] Production.INFO: count ==5299 [2025-02-10 16:46:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:46:06 - End Time 2025-02-10 16:46:06 [2025-02-10 16:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445714', 'tblTempUsageDetail_20' ) start [2025-02-10 16:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445714', 'tblTempUsageDetail_20' ) end [2025-02-10 16:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445714', 'tblTempVendorCDR_20' ) start [2025-02-10 16:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445714', 'tblTempVendorCDR_20' ) end [2025-02-10 16:46:27] Production.INFO: ProcessCDR(1,14445714,1,1,2) [2025-02-10 16:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445714', 'tblTempUsageDetail_20' ) start [2025-02-10 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445714', 'tblTempUsageDetail_20' ) end [2025-02-10 16:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:46:32] Production.INFO: ==8695== Releasing lock... [2025-02-10 16:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:46:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:47:04 [end_date_ymd] => 2025-02-10 16:47:04 [RateCDR] => 1 ) [2025-02-10 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:47:04' and `end` < '2025-02-10 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:47:19] Production.INFO: count ==5294 [2025-02-10 16:47:22] Production.ERROR: pbx CDR StartTime 2025-02-10 13:47:04 - End Time 2025-02-10 16:47:04 [2025-02-10 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445719', 'tblTempUsageDetail_20' ) start [2025-02-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445719', 'tblTempUsageDetail_20' ) end [2025-02-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445719', 'tblTempVendorCDR_20' ) start [2025-02-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445719', 'tblTempVendorCDR_20' ) end [2025-02-10 16:47:22] Production.INFO: ProcessCDR(1,14445719,1,1,2) [2025-02-10 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445719', 'tblTempUsageDetail_20' ) start [2025-02-10 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445719', 'tblTempUsageDetail_20' ) end [2025-02-10 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:47:27] Production.INFO: ==8790== Releasing lock... [2025-02-10 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:47:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:48:05 [end_date_ymd] => 2025-02-10 16:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:48:05' and `end` < '2025-02-10 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-10 16:48:28] Production.INFO: count ==5301 [2025-02-10 16:48:30] Production.ERROR: pbx CDR StartTime 2025-02-10 13:48:05 - End Time 2025-02-10 16:48:05 [2025-02-10 16:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445724', 'tblTempUsageDetail_20' ) start [2025-02-10 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445724', 'tblTempUsageDetail_20' ) end [2025-02-10 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445724', 'tblTempVendorCDR_20' ) start [2025-02-10 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445724', 'tblTempVendorCDR_20' ) end [2025-02-10 16:48:30] Production.INFO: ProcessCDR(1,14445724,1,1,2) [2025-02-10 16:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445724', 'tblTempUsageDetail_20' ) start [2025-02-10 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445724', 'tblTempUsageDetail_20' ) end [2025-02-10 16:48:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:48:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:48:35] Production.INFO: ==8898== Releasing lock... [2025-02-10 16:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:48:35] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 16:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:49:04 [end_date_ymd] => 2025-02-10 16:49:04 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:49:04' and `end` < '2025-02-10 16: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-10 16:49:25] Production.INFO: count ==5316 [2025-02-10 16:49:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:49:04 - End Time 2025-02-10 16:49:04 [2025-02-10 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445729', 'tblTempUsageDetail_20' ) start [2025-02-10 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445729', 'tblTempUsageDetail_20' ) end [2025-02-10 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445729', 'tblTempVendorCDR_20' ) start [2025-02-10 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445729', 'tblTempVendorCDR_20' ) end [2025-02-10 16:49:27] Production.INFO: ProcessCDR(1,14445729,1,1,2) [2025-02-10 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445729', 'tblTempUsageDetail_20' ) start [2025-02-10 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445729', 'tblTempUsageDetail_20' ) end [2025-02-10 16:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:49:32] Production.INFO: ==9036== Releasing lock... [2025-02-10 16:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:49:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:50:06 [end_date_ymd] => 2025-02-10 16:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 13:50:06' and `end` < '2025-02-10 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-10 16:50:29] Production.INFO: count ==5347 [2025-02-10 16:50:32] Production.ERROR: pbx CDR StartTime 2025-02-10 13:50:06 - End Time 2025-02-10 16:50:06 [2025-02-10 16:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445734', 'tblTempUsageDetail_20' ) start [2025-02-10 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445734', 'tblTempUsageDetail_20' ) end [2025-02-10 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445734', 'tblTempVendorCDR_20' ) start [2025-02-10 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445734', 'tblTempVendorCDR_20' ) end [2025-02-10 16:50:32] Production.INFO: ProcessCDR(1,14445734,1,1,2) [2025-02-10 16:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445734', 'tblTempUsageDetail_20' ) start [2025-02-10 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445734', 'tblTempUsageDetail_20' ) end [2025-02-10 16:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:50:37] Production.INFO: ==9139== Releasing lock... [2025-02-10 16:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:50:37] Production.INFO: 68 MB #Memory Used# [2025-02-10 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:51:04 [end_date_ymd] => 2025-02-10 16:51:04 [RateCDR] => 1 ) [2025-02-10 16: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-10 13:51:04' and `end` < '2025-02-10 16: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-10 16:51:25] Production.INFO: count ==5424 [2025-02-10 16:51:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:51:04 - End Time 2025-02-10 16:51:04 [2025-02-10 16:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445740', 'tblTempUsageDetail_20' ) start [2025-02-10 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445740', 'tblTempUsageDetail_20' ) end [2025-02-10 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445740', 'tblTempVendorCDR_20' ) start [2025-02-10 16:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445740', 'tblTempVendorCDR_20' ) end [2025-02-10 16:51:28] Production.INFO: ProcessCDR(1,14445740,1,1,2) [2025-02-10 16:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445740', 'tblTempUsageDetail_20' ) start [2025-02-10 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445740', 'tblTempUsageDetail_20' ) end [2025-02-10 16:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:51:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:51:33] Production.INFO: ==9245== Releasing lock... [2025-02-10 16:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:51:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:52:05 [end_date_ymd] => 2025-02-10 16:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:52:05' and `end` < '2025-02-10 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-10 16:52:32] Production.INFO: count ==5518 [2025-02-10 16:52:35] Production.ERROR: pbx CDR StartTime 2025-02-10 13:52:05 - End Time 2025-02-10 16:52:05 [2025-02-10 16:52:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445745', 'tblTempUsageDetail_20' ) start [2025-02-10 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445745', 'tblTempUsageDetail_20' ) end [2025-02-10 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445745', 'tblTempVendorCDR_20' ) start [2025-02-10 16:52:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445745', 'tblTempVendorCDR_20' ) end [2025-02-10 16:52:35] Production.INFO: ProcessCDR(1,14445745,1,1,2) [2025-02-10 16:52:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:52:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:52:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:52:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445745', 'tblTempUsageDetail_20' ) start [2025-02-10 16:52:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445745', 'tblTempUsageDetail_20' ) end [2025-02-10 16:52:40] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:52:40] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:52:40] Production.INFO: ==9336== Releasing lock... [2025-02-10 16:52:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:52:40] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:53:06 [end_date_ymd] => 2025-02-10 16:53:06 [RateCDR] => 1 ) [2025-02-10 16:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:53:06' and `end` < '2025-02-10 16:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 16:53:27] Production.INFO: count ==5526 [2025-02-10 16:53:29] Production.ERROR: pbx CDR StartTime 2025-02-10 13:53:06 - End Time 2025-02-10 16:53:06 [2025-02-10 16:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445750', 'tblTempUsageDetail_20' ) start [2025-02-10 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445750', 'tblTempUsageDetail_20' ) end [2025-02-10 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445750', 'tblTempVendorCDR_20' ) start [2025-02-10 16:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445750', 'tblTempVendorCDR_20' ) end [2025-02-10 16:53:29] Production.INFO: ProcessCDR(1,14445750,1,1,2) [2025-02-10 16:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445750', 'tblTempUsageDetail_20' ) start [2025-02-10 16:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445750', 'tblTempUsageDetail_20' ) end [2025-02-10 16:53:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:53:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:53:34] Production.INFO: ==9438== Releasing lock... [2025-02-10 16:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:53:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:54:05 [end_date_ymd] => 2025-02-10 16:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:54:05' and `end` < '2025-02-10 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-10 16:54:23] Production.INFO: count ==5522 [2025-02-10 16:54:26] Production.ERROR: pbx CDR StartTime 2025-02-10 13:54:05 - End Time 2025-02-10 16:54:05 [2025-02-10 16:54:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445755', 'tblTempUsageDetail_20' ) start [2025-02-10 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445755', 'tblTempUsageDetail_20' ) end [2025-02-10 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445755', 'tblTempVendorCDR_20' ) start [2025-02-10 16:54:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445755', 'tblTempVendorCDR_20' ) end [2025-02-10 16:54:26] Production.INFO: ProcessCDR(1,14445755,1,1,2) [2025-02-10 16:54:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445755', 'tblTempUsageDetail_20' ) start [2025-02-10 16:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445755', 'tblTempUsageDetail_20' ) end [2025-02-10 16:54:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:54:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:54:31] Production.INFO: ==9530== Releasing lock... [2025-02-10 16:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:54:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:55:05 [end_date_ymd] => 2025-02-10 16:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:55:05' and `end` < '2025-02-10 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-10 16:55:26] Production.INFO: count ==5529 [2025-02-10 16:55:28] Production.ERROR: pbx CDR StartTime 2025-02-10 13:55:05 - End Time 2025-02-10 16:55:05 [2025-02-10 16:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445760', 'tblTempUsageDetail_20' ) start [2025-02-10 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445760', 'tblTempUsageDetail_20' ) end [2025-02-10 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445760', 'tblTempVendorCDR_20' ) start [2025-02-10 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445760', 'tblTempVendorCDR_20' ) end [2025-02-10 16:55:29] Production.INFO: ProcessCDR(1,14445760,1,1,2) [2025-02-10 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445760', 'tblTempUsageDetail_20' ) start [2025-02-10 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445760', 'tblTempUsageDetail_20' ) end [2025-02-10 16:55:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:55:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:55:34] Production.INFO: ==9624== Releasing lock... [2025-02-10 16:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:55:34] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:56:05 [end_date_ymd] => 2025-02-10 16:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:56:05' and `end` < '2025-02-10 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-10 16:56:24] Production.INFO: count ==5545 [2025-02-10 16:56:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:56:05 - End Time 2025-02-10 16:56:05 [2025-02-10 16:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445765', 'tblTempUsageDetail_20' ) start [2025-02-10 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445765', 'tblTempUsageDetail_20' ) end [2025-02-10 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445765', 'tblTempVendorCDR_20' ) start [2025-02-10 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445765', 'tblTempVendorCDR_20' ) end [2025-02-10 16:56:27] Production.INFO: ProcessCDR(1,14445765,1,1,2) [2025-02-10 16:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445765', 'tblTempUsageDetail_20' ) start [2025-02-10 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445765', 'tblTempUsageDetail_20' ) end [2025-02-10 16:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:56:32] Production.INFO: ==9722== Releasing lock... [2025-02-10 16:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:56:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:57:05 [end_date_ymd] => 2025-02-10 16:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:57:05' and `end` < '2025-02-10 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-10 16:57:25] Production.INFO: count ==5556 [2025-02-10 16:57:27] Production.ERROR: pbx CDR StartTime 2025-02-10 13:57:05 - End Time 2025-02-10 16:57:05 [2025-02-10 16:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445770', 'tblTempUsageDetail_20' ) start [2025-02-10 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445770', 'tblTempUsageDetail_20' ) end [2025-02-10 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445770', 'tblTempVendorCDR_20' ) start [2025-02-10 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445770', 'tblTempVendorCDR_20' ) end [2025-02-10 16:57:28] Production.INFO: ProcessCDR(1,14445770,1,1,2) [2025-02-10 16:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445770', 'tblTempUsageDetail_20' ) start [2025-02-10 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445770', 'tblTempUsageDetail_20' ) end [2025-02-10 16:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:57:32] Production.INFO: ==9820== Releasing lock... [2025-02-10 16:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:57:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:58:05 [end_date_ymd] => 2025-02-10 16:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 13:58:05' and `end` < '2025-02-10 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-10 16:58:21] Production.INFO: count ==5540 [2025-02-10 16:58:24] Production.ERROR: pbx CDR StartTime 2025-02-10 13:58:05 - End Time 2025-02-10 16:58:05 [2025-02-10 16:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445775', 'tblTempUsageDetail_20' ) start [2025-02-10 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445775', 'tblTempUsageDetail_20' ) end [2025-02-10 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445775', 'tblTempVendorCDR_20' ) start [2025-02-10 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445775', 'tblTempVendorCDR_20' ) end [2025-02-10 16:58:24] Production.INFO: ProcessCDR(1,14445775,1,1,2) [2025-02-10 16:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445775', 'tblTempUsageDetail_20' ) start [2025-02-10 16:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445775', 'tblTempUsageDetail_20' ) end [2025-02-10 16:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:58:29] Production.INFO: ==9915== Releasing lock... [2025-02-10 16:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:58:29] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 13:59:05 [end_date_ymd] => 2025-02-10 16:59:05 [RateCDR] => 1 ) [2025-02-10 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 13:59:05' and `end` < '2025-02-10 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-10 16:59:21] Production.INFO: count ==5533 [2025-02-10 16:59:23] Production.ERROR: pbx CDR StartTime 2025-02-10 13:59:05 - End Time 2025-02-10 16:59:05 [2025-02-10 16:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445780', 'tblTempUsageDetail_20' ) start [2025-02-10 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445780', 'tblTempUsageDetail_20' ) end [2025-02-10 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445780', 'tblTempVendorCDR_20' ) start [2025-02-10 16:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445780', 'tblTempVendorCDR_20' ) end [2025-02-10 16:59:23] Production.INFO: ProcessCDR(1,14445780,1,1,2) [2025-02-10 16:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445780', 'tblTempUsageDetail_20' ) start [2025-02-10 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445780', 'tblTempUsageDetail_20' ) end [2025-02-10 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 16:59:28] Production.INFO: ==10018== Releasing lock... [2025-02-10 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 16:59:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:00:05 [end_date_ymd] => 2025-02-10 17:00:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:00:05' and `end` < '2025-02-10 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-10 17:00:29] Production.INFO: count ==5531 [2025-02-10 17:00:31] Production.ERROR: pbx CDR StartTime 2025-02-10 14:00:05 - End Time 2025-02-10 17:00:05 [2025-02-10 17:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445786', 'tblTempUsageDetail_20' ) start [2025-02-10 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445786', 'tblTempUsageDetail_20' ) end [2025-02-10 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445786', 'tblTempVendorCDR_20' ) start [2025-02-10 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445786', 'tblTempVendorCDR_20' ) end [2025-02-10 17:00:31] Production.INFO: ProcessCDR(1,14445786,1,1,2) [2025-02-10 17:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445786', 'tblTempUsageDetail_20' ) start [2025-02-10 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445786', 'tblTempUsageDetail_20' ) end [2025-02-10 17:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:00:35] Production.INFO: ==10119== Releasing lock... [2025-02-10 17:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:00:35] Production.INFO: 69.5 MB #Memory Used# [2025-02-10 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:01:06 [end_date_ymd] => 2025-02-10 17:01:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:01:06' and `end` < '2025-02-10 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-10 17:01:27] Production.INFO: count ==5497 [2025-02-10 17:01:29] Production.ERROR: pbx CDR StartTime 2025-02-10 14:01:06 - End Time 2025-02-10 17:01:06 [2025-02-10 17:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445791', 'tblTempUsageDetail_20' ) start [2025-02-10 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445791', 'tblTempUsageDetail_20' ) end [2025-02-10 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445791', 'tblTempVendorCDR_20' ) start [2025-02-10 17:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445791', 'tblTempVendorCDR_20' ) end [2025-02-10 17:01:30] Production.INFO: ProcessCDR(1,14445791,1,1,2) [2025-02-10 17:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445791', 'tblTempUsageDetail_20' ) start [2025-02-10 17:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445791', 'tblTempUsageDetail_20' ) end [2025-02-10 17:01:34] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:01:34] Production.INFO: ==10230== Releasing lock... [2025-02-10 17:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:01:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-10 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:02:05 [end_date_ymd] => 2025-02-10 17:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:02:05' and `end` < '2025-02-10 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-10 17:02:25] Production.INFO: count ==5478 [2025-02-10 17:02:27] Production.ERROR: pbx CDR StartTime 2025-02-10 14:02:05 - End Time 2025-02-10 17:02:05 [2025-02-10 17:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445796', 'tblTempUsageDetail_20' ) start [2025-02-10 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445796', 'tblTempUsageDetail_20' ) end [2025-02-10 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445796', 'tblTempVendorCDR_20' ) start [2025-02-10 17:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445796', 'tblTempVendorCDR_20' ) end [2025-02-10 17:02:27] Production.INFO: ProcessCDR(1,14445796,1,1,2) [2025-02-10 17:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445796', 'tblTempUsageDetail_20' ) start [2025-02-10 17:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445796', 'tblTempUsageDetail_20' ) end [2025-02-10 17:02:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:02:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:02:32] Production.INFO: ==10329== Releasing lock... [2025-02-10 17:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:02:32] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:03:05 [end_date_ymd] => 2025-02-10 17:03:05 [RateCDR] => 1 ) [2025-02-10 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:03:05' and `end` < '2025-02-10 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:03:22] Production.INFO: count ==5478 [2025-02-10 17:03:25] Production.ERROR: pbx CDR StartTime 2025-02-10 14:03:05 - End Time 2025-02-10 17:03:05 [2025-02-10 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445801', 'tblTempUsageDetail_20' ) start [2025-02-10 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445801', 'tblTempUsageDetail_20' ) end [2025-02-10 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445801', 'tblTempVendorCDR_20' ) start [2025-02-10 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445801', 'tblTempVendorCDR_20' ) end [2025-02-10 17:03:25] Production.INFO: ProcessCDR(1,14445801,1,1,2) [2025-02-10 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445801', 'tblTempUsageDetail_20' ) start [2025-02-10 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445801', 'tblTempUsageDetail_20' ) end [2025-02-10 17:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:03:30] Production.INFO: ==10431== Releasing lock... [2025-02-10 17:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:03:30] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:04:05 [end_date_ymd] => 2025-02-10 17:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:04:05' and `end` < '2025-02-10 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-10 17:04:19] Production.INFO: count ==5485 [2025-02-10 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:04:05 - End Time 2025-02-10 17:04:05 [2025-02-10 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445806', 'tblTempUsageDetail_20' ) start [2025-02-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445806', 'tblTempUsageDetail_20' ) end [2025-02-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445806', 'tblTempVendorCDR_20' ) start [2025-02-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445806', 'tblTempVendorCDR_20' ) end [2025-02-10 17:04:22] Production.INFO: ProcessCDR(1,14445806,1,1,2) [2025-02-10 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445806', 'tblTempUsageDetail_20' ) start [2025-02-10 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445806', 'tblTempUsageDetail_20' ) end [2025-02-10 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:04:26] Production.INFO: ==10573== Releasing lock... [2025-02-10 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:04:26] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:05:05 [end_date_ymd] => 2025-02-10 17:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:05:05' and `end` < '2025-02-10 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-10 17:05:23] Production.INFO: count ==5486 [2025-02-10 17:05:26] Production.ERROR: pbx CDR StartTime 2025-02-10 14:05:05 - End Time 2025-02-10 17:05:05 [2025-02-10 17:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445811', 'tblTempUsageDetail_20' ) start [2025-02-10 17:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445811', 'tblTempUsageDetail_20' ) end [2025-02-10 17:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445811', 'tblTempVendorCDR_20' ) start [2025-02-10 17:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445811', 'tblTempVendorCDR_20' ) end [2025-02-10 17:05:26] Production.INFO: ProcessCDR(1,14445811,1,1,2) [2025-02-10 17:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445811', 'tblTempUsageDetail_20' ) start [2025-02-10 17:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445811', 'tblTempUsageDetail_20' ) end [2025-02-10 17:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:05:32] Production.INFO: ==10674== Releasing lock... [2025-02-10 17:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:05:32] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:06:05 [end_date_ymd] => 2025-02-10 17:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:06:05' and `end` < '2025-02-10 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-10 17:06:22] Production.INFO: count ==5476 [2025-02-10 17:06:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:06:05 - End Time 2025-02-10 17:06:05 [2025-02-10 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445816', 'tblTempUsageDetail_20' ) start [2025-02-10 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445816', 'tblTempUsageDetail_20' ) end [2025-02-10 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445816', 'tblTempVendorCDR_20' ) start [2025-02-10 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445816', 'tblTempVendorCDR_20' ) end [2025-02-10 17:06:24] Production.INFO: ProcessCDR(1,14445816,1,1,2) [2025-02-10 17:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445816', 'tblTempUsageDetail_20' ) start [2025-02-10 17:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445816', 'tblTempUsageDetail_20' ) end [2025-02-10 17:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:06:29] Production.INFO: ==10770== Releasing lock... [2025-02-10 17:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:06:29] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:07:05 [end_date_ymd] => 2025-02-10 17:07:05 [RateCDR] => 1 ) [2025-02-10 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:07:05' and `end` < '2025-02-10 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:07:20] Production.INFO: count ==5478 [2025-02-10 17:07:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:07:05 - End Time 2025-02-10 17:07:05 [2025-02-10 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445821', 'tblTempUsageDetail_20' ) start [2025-02-10 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445821', 'tblTempUsageDetail_20' ) end [2025-02-10 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445821', 'tblTempVendorCDR_20' ) start [2025-02-10 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445821', 'tblTempVendorCDR_20' ) end [2025-02-10 17:07:22] Production.INFO: ProcessCDR(1,14445821,1,1,2) [2025-02-10 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445821', 'tblTempUsageDetail_20' ) start [2025-02-10 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445821', 'tblTempUsageDetail_20' ) end [2025-02-10 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:07:27] Production.INFO: ==10864== Releasing lock... [2025-02-10 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:07:27] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:08:05 [end_date_ymd] => 2025-02-10 17:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:08:05' and `end` < '2025-02-10 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-10 17:08:21] Production.INFO: count ==5471 [2025-02-10 17:08:23] Production.ERROR: pbx CDR StartTime 2025-02-10 14:08:05 - End Time 2025-02-10 17:08:05 [2025-02-10 17:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445826', 'tblTempUsageDetail_20' ) start [2025-02-10 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445826', 'tblTempUsageDetail_20' ) end [2025-02-10 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445826', 'tblTempVendorCDR_20' ) start [2025-02-10 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445826', 'tblTempVendorCDR_20' ) end [2025-02-10 17:08:23] Production.INFO: ProcessCDR(1,14445826,1,1,2) [2025-02-10 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445826', 'tblTempUsageDetail_20' ) start [2025-02-10 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445826', 'tblTempUsageDetail_20' ) end [2025-02-10 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:08:27] Production.INFO: ==10960== Releasing lock... [2025-02-10 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:08:27] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:09:05 [end_date_ymd] => 2025-02-10 17:09:05 [RateCDR] => 1 ) [2025-02-10 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:09:05' and `end` < '2025-02-10 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:09:19] Production.INFO: count ==5476 [2025-02-10 17:09:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:09:05 - End Time 2025-02-10 17:09:05 [2025-02-10 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445831', 'tblTempUsageDetail_20' ) start [2025-02-10 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445831', 'tblTempUsageDetail_20' ) end [2025-02-10 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445831', 'tblTempVendorCDR_20' ) start [2025-02-10 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445831', 'tblTempVendorCDR_20' ) end [2025-02-10 17:09:22] Production.INFO: ProcessCDR(1,14445831,1,1,2) [2025-02-10 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445831', 'tblTempUsageDetail_20' ) start [2025-02-10 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445831', 'tblTempUsageDetail_20' ) end [2025-02-10 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:09:27] Production.INFO: ==11052== Releasing lock... [2025-02-10 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:09:27] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:10:06 [end_date_ymd] => 2025-02-10 17:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:10:06' and `end` < '2025-02-10 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-10 17:10:20] Production.INFO: count ==5461 [2025-02-10 17:10:23] Production.ERROR: pbx CDR StartTime 2025-02-10 14:10:06 - End Time 2025-02-10 17:10:06 [2025-02-10 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445837', 'tblTempUsageDetail_20' ) start [2025-02-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445837', 'tblTempUsageDetail_20' ) end [2025-02-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445837', 'tblTempVendorCDR_20' ) start [2025-02-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445837', 'tblTempVendorCDR_20' ) end [2025-02-10 17:10:23] Production.INFO: ProcessCDR(1,14445837,1,1,2) [2025-02-10 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445837', 'tblTempUsageDetail_20' ) start [2025-02-10 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445837', 'tblTempUsageDetail_20' ) end [2025-02-10 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:10:28] Production.INFO: ==11152== Releasing lock... [2025-02-10 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:10:28] Production.INFO: 69 MB #Memory Used# [2025-02-10 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:11:06 [end_date_ymd] => 2025-02-10 17:11:06 [RateCDR] => 1 ) [2025-02-10 17: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-10 14:11:06' and `end` < '2025-02-10 17: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-10 17:11:22] Production.INFO: count ==5439 [2025-02-10 17:11:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:11:06 - End Time 2025-02-10 17:11:06 [2025-02-10 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445842', 'tblTempUsageDetail_20' ) start [2025-02-10 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445842', 'tblTempUsageDetail_20' ) end [2025-02-10 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445842', 'tblTempVendorCDR_20' ) start [2025-02-10 17:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445842', 'tblTempVendorCDR_20' ) end [2025-02-10 17:11:25] Production.INFO: ProcessCDR(1,14445842,1,1,2) [2025-02-10 17:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445842', 'tblTempUsageDetail_20' ) start [2025-02-10 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445842', 'tblTempUsageDetail_20' ) end [2025-02-10 17:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:11:30] Production.INFO: ==11249== Releasing lock... [2025-02-10 17:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:11:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:12:05 [end_date_ymd] => 2025-02-10 17:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:12:05' and `end` < '2025-02-10 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-10 17:12:22] Production.INFO: count ==5438 [2025-02-10 17:12:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:12:05 - End Time 2025-02-10 17:12:05 [2025-02-10 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445847', 'tblTempUsageDetail_20' ) start [2025-02-10 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445847', 'tblTempUsageDetail_20' ) end [2025-02-10 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445847', 'tblTempVendorCDR_20' ) start [2025-02-10 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445847', 'tblTempVendorCDR_20' ) end [2025-02-10 17:12:24] Production.INFO: ProcessCDR(1,14445847,1,1,2) [2025-02-10 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445847', 'tblTempUsageDetail_20' ) start [2025-02-10 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445847', 'tblTempUsageDetail_20' ) end [2025-02-10 17:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:12:29] Production.INFO: ==11342== Releasing lock... [2025-02-10 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:12:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:13:04 [end_date_ymd] => 2025-02-10 17:13:04 [RateCDR] => 1 ) [2025-02-10 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:13:04' and `end` < '2025-02-10 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:13:22] Production.INFO: count ==5449 [2025-02-10 17:13:25] Production.ERROR: pbx CDR StartTime 2025-02-10 14:13:04 - End Time 2025-02-10 17:13:04 [2025-02-10 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445852', 'tblTempUsageDetail_20' ) start [2025-02-10 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445852', 'tblTempUsageDetail_20' ) end [2025-02-10 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445852', 'tblTempVendorCDR_20' ) start [2025-02-10 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445852', 'tblTempVendorCDR_20' ) end [2025-02-10 17:13:25] Production.INFO: ProcessCDR(1,14445852,1,1,2) [2025-02-10 17:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445852', 'tblTempUsageDetail_20' ) start [2025-02-10 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445852', 'tblTempUsageDetail_20' ) end [2025-02-10 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:13:30] Production.INFO: ==11435== Releasing lock... [2025-02-10 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:13:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:14:05 [end_date_ymd] => 2025-02-10 17:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:14:05' and `end` < '2025-02-10 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-10 17:14:19] Production.INFO: count ==5435 [2025-02-10 17:14:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:14:05 - End Time 2025-02-10 17:14:05 [2025-02-10 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445857', 'tblTempUsageDetail_20' ) start [2025-02-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445857', 'tblTempUsageDetail_20' ) end [2025-02-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445857', 'tblTempVendorCDR_20' ) start [2025-02-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445857', 'tblTempVendorCDR_20' ) end [2025-02-10 17:14:22] Production.INFO: ProcessCDR(1,14445857,1,1,2) [2025-02-10 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445857', 'tblTempUsageDetail_20' ) start [2025-02-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445857', 'tblTempUsageDetail_20' ) end [2025-02-10 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:14:27] Production.INFO: ==11531== Releasing lock... [2025-02-10 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:14:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:15:05 [end_date_ymd] => 2025-02-10 17:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:15:05' and `end` < '2025-02-10 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-10 17:15:20] Production.INFO: count ==5440 [2025-02-10 17:15:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:15:05 - End Time 2025-02-10 17:15:05 [2025-02-10 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445862', 'tblTempUsageDetail_20' ) start [2025-02-10 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445862', 'tblTempUsageDetail_20' ) end [2025-02-10 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445862', 'tblTempVendorCDR_20' ) start [2025-02-10 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445862', 'tblTempVendorCDR_20' ) end [2025-02-10 17:15:22] Production.INFO: ProcessCDR(1,14445862,1,1,2) [2025-02-10 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445862', 'tblTempUsageDetail_20' ) start [2025-02-10 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445862', 'tblTempUsageDetail_20' ) end [2025-02-10 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:15:27] Production.INFO: ==11618== Releasing lock... [2025-02-10 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:15:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:16:05 [end_date_ymd] => 2025-02-10 17:16:05 [RateCDR] => 1 ) [2025-02-10 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:16:05' and `end` < '2025-02-10 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-10 17:16:27] Production.INFO: count ==5435 [2025-02-10 17:16:30] Production.ERROR: pbx CDR StartTime 2025-02-10 14:16:05 - End Time 2025-02-10 17:16:05 [2025-02-10 17:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445867', 'tblTempUsageDetail_20' ) start [2025-02-10 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445867', 'tblTempUsageDetail_20' ) end [2025-02-10 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445867', 'tblTempVendorCDR_20' ) start [2025-02-10 17:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445867', 'tblTempVendorCDR_20' ) end [2025-02-10 17:16:30] Production.INFO: ProcessCDR(1,14445867,1,1,2) [2025-02-10 17:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445867', 'tblTempUsageDetail_20' ) start [2025-02-10 17:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445867', 'tblTempUsageDetail_20' ) end [2025-02-10 17:16:35] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:16:35] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:16:35] Production.INFO: ==11712== Releasing lock... [2025-02-10 17:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:16:35] Production.INFO: 68.75 MB #Memory Used# [2025-02-10 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:17:05 [end_date_ymd] => 2025-02-10 17:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:17:05' and `end` < '2025-02-10 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-10 17:17:34] Production.INFO: count ==5425 [2025-02-10 17:17:37] Production.ERROR: pbx CDR StartTime 2025-02-10 14:17:05 - End Time 2025-02-10 17:17:05 [2025-02-10 17:17:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445872', 'tblTempUsageDetail_20' ) start [2025-02-10 17:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445872', 'tblTempUsageDetail_20' ) end [2025-02-10 17:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445872', 'tblTempVendorCDR_20' ) start [2025-02-10 17:17:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445872', 'tblTempVendorCDR_20' ) end [2025-02-10 17:17:37] Production.INFO: ProcessCDR(1,14445872,1,1,2) [2025-02-10 17:17:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:17:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:17:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:17:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:17:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445872', 'tblTempUsageDetail_20' ) start [2025-02-10 17:17:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445872', 'tblTempUsageDetail_20' ) end [2025-02-10 17:17:42] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:17:42] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:17:42] Production.INFO: ==11804== Releasing lock... [2025-02-10 17:17:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:17:42] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:18:05 [end_date_ymd] => 2025-02-10 17:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:18:05' and `end` < '2025-02-10 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-10 17:18:25] Production.INFO: count ==5415 [2025-02-10 17:18:27] Production.ERROR: pbx CDR StartTime 2025-02-10 14:18:05 - End Time 2025-02-10 17:18:05 [2025-02-10 17:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445877', 'tblTempUsageDetail_20' ) start [2025-02-10 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445877', 'tblTempUsageDetail_20' ) end [2025-02-10 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445877', 'tblTempVendorCDR_20' ) start [2025-02-10 17:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445877', 'tblTempVendorCDR_20' ) end [2025-02-10 17:18:27] Production.INFO: ProcessCDR(1,14445877,1,1,2) [2025-02-10 17:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445877', 'tblTempUsageDetail_20' ) start [2025-02-10 17:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445877', 'tblTempUsageDetail_20' ) end [2025-02-10 17:18:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:18:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:18:33] Production.INFO: ==11894== Releasing lock... [2025-02-10 17:18:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:18:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:19:06 [end_date_ymd] => 2025-02-10 17:19:06 [RateCDR] => 1 ) [2025-02-10 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:19:06' and `end` < '2025-02-10 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:19:24] Production.INFO: count ==5413 [2025-02-10 17:19:26] Production.ERROR: pbx CDR StartTime 2025-02-10 14:19:06 - End Time 2025-02-10 17:19:06 [2025-02-10 17:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445882', 'tblTempUsageDetail_20' ) start [2025-02-10 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445882', 'tblTempUsageDetail_20' ) end [2025-02-10 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445882', 'tblTempVendorCDR_20' ) start [2025-02-10 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445882', 'tblTempVendorCDR_20' ) end [2025-02-10 17:19:26] Production.INFO: ProcessCDR(1,14445882,1,1,2) [2025-02-10 17:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445882', 'tblTempUsageDetail_20' ) start [2025-02-10 17:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445882', 'tblTempUsageDetail_20' ) end [2025-02-10 17:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:19:31] Production.INFO: ==11988== Releasing lock... [2025-02-10 17:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:19:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:20:06 [end_date_ymd] => 2025-02-10 17:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:20:06' and `end` < '2025-02-10 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-10 17:20:21] Production.INFO: count ==5402 [2025-02-10 17:20:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:20:06 - End Time 2025-02-10 17:20:06 [2025-02-10 17:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445888', 'tblTempUsageDetail_20' ) start [2025-02-10 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445888', 'tblTempUsageDetail_20' ) end [2025-02-10 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445888', 'tblTempVendorCDR_20' ) start [2025-02-10 17:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445888', 'tblTempVendorCDR_20' ) end [2025-02-10 17:20:24] Production.INFO: ProcessCDR(1,14445888,1,1,2) [2025-02-10 17:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445888', 'tblTempUsageDetail_20' ) start [2025-02-10 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445888', 'tblTempUsageDetail_20' ) end [2025-02-10 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:20:29] Production.INFO: ==12124== Releasing lock... [2025-02-10 17:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:20:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-10 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:21:05 [end_date_ymd] => 2025-02-10 17:21:05 [RateCDR] => 1 ) [2025-02-10 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:21:05' and `end` < '2025-02-10 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:21:24] Production.INFO: count ==5351 [2025-02-10 17:21:26] Production.ERROR: pbx CDR StartTime 2025-02-10 14:21:05 - End Time 2025-02-10 17:21:05 [2025-02-10 17:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445893', 'tblTempUsageDetail_20' ) start [2025-02-10 17:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445893', 'tblTempUsageDetail_20' ) end [2025-02-10 17:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445893', 'tblTempVendorCDR_20' ) start [2025-02-10 17:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445893', 'tblTempVendorCDR_20' ) end [2025-02-10 17:21:26] Production.INFO: ProcessCDR(1,14445893,1,1,2) [2025-02-10 17:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445893', 'tblTempUsageDetail_20' ) start [2025-02-10 17:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445893', 'tblTempUsageDetail_20' ) end [2025-02-10 17:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:21:31] Production.INFO: ==12222== Releasing lock... [2025-02-10 17:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:21:31] Production.INFO: 68 MB #Memory Used# [2025-02-10 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:22:05 [end_date_ymd] => 2025-02-10 17:22:05 [RateCDR] => 1 ) [2025-02-10 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:22:05' and `end` < '2025-02-10 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:22:19] Production.INFO: count ==5340 [2025-02-10 17:22:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:22:05 - End Time 2025-02-10 17:22:05 [2025-02-10 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445898', 'tblTempUsageDetail_20' ) start [2025-02-10 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445898', 'tblTempUsageDetail_20' ) end [2025-02-10 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445898', 'tblTempVendorCDR_20' ) start [2025-02-10 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445898', 'tblTempVendorCDR_20' ) end [2025-02-10 17:22:22] Production.INFO: ProcessCDR(1,14445898,1,1,2) [2025-02-10 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445898', 'tblTempUsageDetail_20' ) start [2025-02-10 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445898', 'tblTempUsageDetail_20' ) end [2025-02-10 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:22:27] Production.INFO: ==12316== Releasing lock... [2025-02-10 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:22:27] Production.INFO: 68 MB #Memory Used# [2025-02-10 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:23:05 [end_date_ymd] => 2025-02-10 17:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:23:05' and `end` < '2025-02-10 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-10 17:23:21] Production.INFO: count ==5334 [2025-02-10 17:23:23] Production.ERROR: pbx CDR StartTime 2025-02-10 14:23:05 - End Time 2025-02-10 17:23:05 [2025-02-10 17:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445903', 'tblTempUsageDetail_20' ) start [2025-02-10 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445903', 'tblTempUsageDetail_20' ) end [2025-02-10 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445903', 'tblTempVendorCDR_20' ) start [2025-02-10 17:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445903', 'tblTempVendorCDR_20' ) end [2025-02-10 17:23:23] Production.INFO: ProcessCDR(1,14445903,1,1,2) [2025-02-10 17:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445903', 'tblTempUsageDetail_20' ) start [2025-02-10 17:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445903', 'tblTempUsageDetail_20' ) end [2025-02-10 17:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:23:28] Production.INFO: ==12409== Releasing lock... [2025-02-10 17:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:23:28] Production.INFO: 68 MB #Memory Used# [2025-02-10 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:24:05 [end_date_ymd] => 2025-02-10 17:24:05 [RateCDR] => 1 ) [2025-02-10 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:24:05' and `end` < '2025-02-10 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:24:22] Production.INFO: count ==5340 [2025-02-10 17:24:25] Production.ERROR: pbx CDR StartTime 2025-02-10 14:24:05 - End Time 2025-02-10 17:24:05 [2025-02-10 17:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445908', 'tblTempUsageDetail_20' ) start [2025-02-10 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445908', 'tblTempUsageDetail_20' ) end [2025-02-10 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445908', 'tblTempVendorCDR_20' ) start [2025-02-10 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445908', 'tblTempVendorCDR_20' ) end [2025-02-10 17:24:25] Production.INFO: ProcessCDR(1,14445908,1,1,2) [2025-02-10 17:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445908', 'tblTempUsageDetail_20' ) start [2025-02-10 17:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445908', 'tblTempUsageDetail_20' ) end [2025-02-10 17:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:24:30] Production.INFO: ==12502== Releasing lock... [2025-02-10 17:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:24:30] Production.INFO: 68 MB #Memory Used# [2025-02-10 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:25:04 [end_date_ymd] => 2025-02-10 17:25:04 [RateCDR] => 1 ) [2025-02-10 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:25:04' and `end` < '2025-02-10 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:25:18] Production.INFO: count ==5331 [2025-02-10 17:25:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:25:04 - End Time 2025-02-10 17:25:04 [2025-02-10 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445911', 'tblTempUsageDetail_20' ) start [2025-02-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445911', 'tblTempUsageDetail_20' ) end [2025-02-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445911', 'tblTempVendorCDR_20' ) start [2025-02-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445911', 'tblTempVendorCDR_20' ) end [2025-02-10 17:25:21] Production.INFO: ProcessCDR(1,14445911,1,1,2) [2025-02-10 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445911', 'tblTempUsageDetail_20' ) start [2025-02-10 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445911', 'tblTempUsageDetail_20' ) end [2025-02-10 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:25:26] Production.INFO: ==12601== Releasing lock... [2025-02-10 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:25:26] Production.INFO: 68 MB #Memory Used# [2025-02-10 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:26:20 [end_date_ymd] => 2025-02-10 17:26:20 [RateCDR] => 1 ) [2025-02-10 17:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:26:20' and `end` < '2025-02-10 17:26:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:26:36] Production.INFO: count ==5309 [2025-02-10 17:28:02] Production.ERROR: pbx CDR StartTime 2025-02-10 14:26:20 - End Time 2025-02-10 17:26:20 [2025-02-10 17:28:02] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:28:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445918', 'tblTempUsageDetail_20' ) start [2025-02-10 17:28:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445918', 'tblTempUsageDetail_20' ) end [2025-02-10 17:28:07] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445918', 'tblTempVendorCDR_20' ) start [2025-02-10 17:28:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445918', 'tblTempVendorCDR_20' ) end [2025-02-10 17:28:08] Production.INFO: ProcessCDR(1,14445918,1,1,2) [2025-02-10 17:28:08] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445918', 'tblTempUsageDetail_20' ) start [2025-02-10 17:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445918', 'tblTempUsageDetail_20' ) end [2025-02-10 17:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:28:37] Production.INFO: ==12703== Releasing lock... [2025-02-10 17:28:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:28:37] Production.INFO: 67.75 MB #Memory Used# [2025-02-10 17:29:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:29:19 [end_date_ymd] => 2025-02-10 17:29:19 [RateCDR] => 1 ) [2025-02-10 17:29:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:29:19' and `end` < '2025-02-10 17:29:19' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:29:35] Production.INFO: count ==5293 [2025-02-10 17:30:33] Production.ERROR: pbx CDR StartTime 2025-02-10 14:29:19 - End Time 2025-02-10 17:29:19 [2025-02-10 17:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445929', 'tblTempUsageDetail_20' ) start [2025-02-10 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445929', 'tblTempUsageDetail_20' ) end [2025-02-10 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445929', 'tblTempVendorCDR_20' ) start [2025-02-10 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445929', 'tblTempVendorCDR_20' ) end [2025-02-10 17:30:35] Production.INFO: ProcessCDR(1,14445929,1,1,2) [2025-02-10 17:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:30:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:30:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445929', 'tblTempUsageDetail_20' ) start [2025-02-10 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445929', 'tblTempUsageDetail_20' ) end [2025-02-10 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:31:29] Production.INFO: ==12990== Releasing lock... [2025-02-10 17:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:31:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 17:32:20] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:32:20 [end_date_ymd] => 2025-02-10 17:32:20 [RateCDR] => 1 ) [2025-02-10 17:32:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:32:20' and `end` < '2025-02-10 17:32:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:32:33] Production.INFO: count ==5227 [2025-02-10 17:32:36] Production.ERROR: pbx CDR StartTime 2025-02-10 14:32:20 - End Time 2025-02-10 17:32:20 [2025-02-10 17:32:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445941', 'tblTempUsageDetail_20' ) start [2025-02-10 17:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445941', 'tblTempUsageDetail_20' ) end [2025-02-10 17:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445941', 'tblTempVendorCDR_20' ) start [2025-02-10 17:32:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445941', 'tblTempVendorCDR_20' ) end [2025-02-10 17:32:36] Production.INFO: ProcessCDR(1,14445941,1,1,2) [2025-02-10 17:32:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:32:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:32:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:32:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445941', 'tblTempUsageDetail_20' ) start [2025-02-10 17:32:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445941', 'tblTempUsageDetail_20' ) end [2025-02-10 17:32:41] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:32:41] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:32:41] Production.INFO: ==13294== Releasing lock... [2025-02-10 17:32:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:32:41] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:33:05 [end_date_ymd] => 2025-02-10 17:33:05 [RateCDR] => 1 ) [2025-02-10 17: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-10 14:33:05' and `end` < '2025-02-10 17: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-10 17:33:19] Production.INFO: count ==5223 [2025-02-10 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:33:05 - End Time 2025-02-10 17:33:05 [2025-02-10 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445946', 'tblTempUsageDetail_20' ) start [2025-02-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445946', 'tblTempUsageDetail_20' ) end [2025-02-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445946', 'tblTempVendorCDR_20' ) start [2025-02-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445946', 'tblTempVendorCDR_20' ) end [2025-02-10 17:33:21] Production.INFO: ProcessCDR(1,14445946,1,1,2) [2025-02-10 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445946', 'tblTempUsageDetail_20' ) start [2025-02-10 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445946', 'tblTempUsageDetail_20' ) end [2025-02-10 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:33:26] Production.INFO: ==13408== Releasing lock... [2025-02-10 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:33:26] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:34:05 [end_date_ymd] => 2025-02-10 17:34:05 [RateCDR] => 1 ) [2025-02-10 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:34:05' and `end` < '2025-02-10 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:34:19] Production.INFO: count ==5212 [2025-02-10 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:34:05 - End Time 2025-02-10 17:34:05 [2025-02-10 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445951', 'tblTempUsageDetail_20' ) start [2025-02-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445951', 'tblTempUsageDetail_20' ) end [2025-02-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445951', 'tblTempVendorCDR_20' ) start [2025-02-10 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445951', 'tblTempVendorCDR_20' ) end [2025-02-10 17:34:22] Production.INFO: ProcessCDR(1,14445951,1,1,2) [2025-02-10 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445951', 'tblTempUsageDetail_20' ) start [2025-02-10 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445951', 'tblTempUsageDetail_20' ) end [2025-02-10 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:34:27] Production.INFO: ==13515== Releasing lock... [2025-02-10 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:34:27] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:35:05 [end_date_ymd] => 2025-02-10 17:35:05 [RateCDR] => 1 ) [2025-02-10 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:35:05' and `end` < '2025-02-10 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:35:19] Production.INFO: count ==5208 [2025-02-10 17:35:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:35:05 - End Time 2025-02-10 17:35:05 [2025-02-10 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445956', 'tblTempUsageDetail_20' ) start [2025-02-10 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445956', 'tblTempUsageDetail_20' ) end [2025-02-10 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445956', 'tblTempVendorCDR_20' ) start [2025-02-10 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445956', 'tblTempVendorCDR_20' ) end [2025-02-10 17:35:22] Production.INFO: ProcessCDR(1,14445956,1,1,2) [2025-02-10 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445956', 'tblTempUsageDetail_20' ) start [2025-02-10 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445956', 'tblTempUsageDetail_20' ) end [2025-02-10 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:35:26] Production.INFO: ==13663== Releasing lock... [2025-02-10 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:35:26] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:36:05 [end_date_ymd] => 2025-02-10 17:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:36:05' and `end` < '2025-02-10 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-10 17:36:19] Production.INFO: count ==5178 [2025-02-10 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:36:05 - End Time 2025-02-10 17:36:05 [2025-02-10 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445961', 'tblTempUsageDetail_20' ) start [2025-02-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445961', 'tblTempUsageDetail_20' ) end [2025-02-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445961', 'tblTempVendorCDR_20' ) start [2025-02-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445961', 'tblTempVendorCDR_20' ) end [2025-02-10 17:36:21] Production.INFO: ProcessCDR(1,14445961,1,1,2) [2025-02-10 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445961', 'tblTempUsageDetail_20' ) start [2025-02-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445961', 'tblTempUsageDetail_20' ) end [2025-02-10 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:36:26] Production.INFO: ==13777== Releasing lock... [2025-02-10 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:36:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:37:06 [end_date_ymd] => 2025-02-10 17:37:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:37:06' and `end` < '2025-02-10 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-10 17:37:20] Production.INFO: count ==5169 [2025-02-10 17:37:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:37:06 - End Time 2025-02-10 17:37:06 [2025-02-10 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445966', 'tblTempUsageDetail_20' ) start [2025-02-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445966', 'tblTempUsageDetail_20' ) end [2025-02-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445966', 'tblTempVendorCDR_20' ) start [2025-02-10 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445966', 'tblTempVendorCDR_20' ) end [2025-02-10 17:37:22] Production.INFO: ProcessCDR(1,14445966,1,1,2) [2025-02-10 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445966', 'tblTempUsageDetail_20' ) start [2025-02-10 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445966', 'tblTempUsageDetail_20' ) end [2025-02-10 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:37:27] Production.INFO: ==13887== Releasing lock... [2025-02-10 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:37:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-10 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:38:05 [end_date_ymd] => 2025-02-10 17:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:38:05' and `end` < '2025-02-10 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-10 17:38:19] Production.INFO: count ==5152 [2025-02-10 17:38:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:38:05 - End Time 2025-02-10 17:38:05 [2025-02-10 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445971', 'tblTempUsageDetail_20' ) start [2025-02-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445971', 'tblTempUsageDetail_20' ) end [2025-02-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445971', 'tblTempVendorCDR_20' ) start [2025-02-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445971', 'tblTempVendorCDR_20' ) end [2025-02-10 17:38:22] Production.INFO: ProcessCDR(1,14445971,1,1,2) [2025-02-10 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445971', 'tblTempUsageDetail_20' ) start [2025-02-10 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445971', 'tblTempUsageDetail_20' ) end [2025-02-10 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:38:27] Production.INFO: ==14004== Releasing lock... [2025-02-10 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:38:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:39:06 [end_date_ymd] => 2025-02-10 17:39:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:39:06' and `end` < '2025-02-10 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-10 17:39:19] Production.INFO: count ==5138 [2025-02-10 17:39:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:39:06 - End Time 2025-02-10 17:39:06 [2025-02-10 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445976', 'tblTempUsageDetail_20' ) start [2025-02-10 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445976', 'tblTempUsageDetail_20' ) end [2025-02-10 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445976', 'tblTempVendorCDR_20' ) start [2025-02-10 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445976', 'tblTempVendorCDR_20' ) end [2025-02-10 17:39:22] Production.INFO: ProcessCDR(1,14445976,1,1,2) [2025-02-10 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445976', 'tblTempUsageDetail_20' ) start [2025-02-10 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445976', 'tblTempUsageDetail_20' ) end [2025-02-10 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:39:25] Production.INFO: ==14115== Releasing lock... [2025-02-10 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:39:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:40:06 [end_date_ymd] => 2025-02-10 17:40:06 [RateCDR] => 1 ) [2025-02-10 17: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-10 14:40:06' and `end` < '2025-02-10 17: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-10 17:40:20] Production.INFO: count ==5141 [2025-02-10 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:40:06 - End Time 2025-02-10 17:40:06 [2025-02-10 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445981', 'tblTempUsageDetail_20' ) start [2025-02-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445981', 'tblTempUsageDetail_20' ) end [2025-02-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445981', 'tblTempVendorCDR_20' ) start [2025-02-10 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445981', 'tblTempVendorCDR_20' ) end [2025-02-10 17:40:22] Production.INFO: ProcessCDR(1,14445981,1,1,2) [2025-02-10 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445981', 'tblTempUsageDetail_20' ) start [2025-02-10 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445981', 'tblTempUsageDetail_20' ) end [2025-02-10 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:40:27] Production.INFO: ==14229== Releasing lock... [2025-02-10 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:40:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:41:06 [end_date_ymd] => 2025-02-10 17:41:06 [RateCDR] => 1 ) [2025-02-10 17: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-10 14:41:06' and `end` < '2025-02-10 17: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-10 17:41:20] Production.INFO: count ==5110 [2025-02-10 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:41:06 - End Time 2025-02-10 17:41:06 [2025-02-10 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445987', 'tblTempUsageDetail_20' ) start [2025-02-10 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445987', 'tblTempUsageDetail_20' ) end [2025-02-10 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445987', 'tblTempVendorCDR_20' ) start [2025-02-10 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445987', 'tblTempVendorCDR_20' ) end [2025-02-10 17:41:22] Production.INFO: ProcessCDR(1,14445987,1,1,2) [2025-02-10 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445987', 'tblTempUsageDetail_20' ) start [2025-02-10 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445987', 'tblTempUsageDetail_20' ) end [2025-02-10 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:41:27] Production.INFO: ==14338== Releasing lock... [2025-02-10 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:41:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:42:05 [end_date_ymd] => 2025-02-10 17:42:05 [RateCDR] => 1 ) [2025-02-10 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:42:05' and `end` < '2025-02-10 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:42:21] Production.INFO: count ==5145 [2025-02-10 17:42:23] Production.ERROR: pbx CDR StartTime 2025-02-10 14:42:05 - End Time 2025-02-10 17:42:05 [2025-02-10 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445992', 'tblTempUsageDetail_20' ) start [2025-02-10 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445992', 'tblTempUsageDetail_20' ) end [2025-02-10 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445992', 'tblTempVendorCDR_20' ) start [2025-02-10 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445992', 'tblTempVendorCDR_20' ) end [2025-02-10 17:42:23] Production.INFO: ProcessCDR(1,14445992,1,1,2) [2025-02-10 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445992', 'tblTempUsageDetail_20' ) start [2025-02-10 17:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445992', 'tblTempUsageDetail_20' ) end [2025-02-10 17:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:42:28] Production.INFO: ==14453== Releasing lock... [2025-02-10 17:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:42:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:43:05 [end_date_ymd] => 2025-02-10 17:43:05 [RateCDR] => 1 ) [2025-02-10 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:43:05' and `end` < '2025-02-10 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:43:19] Production.INFO: count ==5279 [2025-02-10 17:43:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:43:05 - End Time 2025-02-10 17:43:05 [2025-02-10 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445997', 'tblTempUsageDetail_20' ) start [2025-02-10 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14445997', 'tblTempUsageDetail_20' ) end [2025-02-10 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445997', 'tblTempVendorCDR_20' ) start [2025-02-10 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14445997', 'tblTempVendorCDR_20' ) end [2025-02-10 17:43:22] Production.INFO: ProcessCDR(1,14445997,1,1,2) [2025-02-10 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14445997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14445997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14445997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14445997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445997', 'tblTempUsageDetail_20' ) start [2025-02-10 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14445997', 'tblTempUsageDetail_20' ) end [2025-02-10 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:43:27] Production.INFO: ==14558== Releasing lock... [2025-02-10 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:43:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:44:05 [end_date_ymd] => 2025-02-10 17:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:44:05' and `end` < '2025-02-10 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-10 17:44:20] Production.INFO: count ==5266 [2025-02-10 17:44:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:44:05 - End Time 2025-02-10 17:44:05 [2025-02-10 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446002', 'tblTempUsageDetail_20' ) start [2025-02-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446002', 'tblTempUsageDetail_20' ) end [2025-02-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446002', 'tblTempVendorCDR_20' ) start [2025-02-10 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446002', 'tblTempVendorCDR_20' ) end [2025-02-10 17:44:22] Production.INFO: ProcessCDR(1,14446002,1,1,2) [2025-02-10 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446002', 'tblTempUsageDetail_20' ) start [2025-02-10 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446002', 'tblTempUsageDetail_20' ) end [2025-02-10 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:44:27] Production.INFO: ==14660== Releasing lock... [2025-02-10 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:44:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:45:05 [end_date_ymd] => 2025-02-10 17:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:45:05' and `end` < '2025-02-10 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-10 17:45:19] Production.INFO: count ==5265 [2025-02-10 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:45:05 - End Time 2025-02-10 17:45:05 [2025-02-10 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446007', 'tblTempUsageDetail_20' ) start [2025-02-10 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446007', 'tblTempUsageDetail_20' ) end [2025-02-10 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446007', 'tblTempVendorCDR_20' ) start [2025-02-10 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446007', 'tblTempVendorCDR_20' ) end [2025-02-10 17:45:21] Production.INFO: ProcessCDR(1,14446007,1,1,2) [2025-02-10 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446007', 'tblTempUsageDetail_20' ) start [2025-02-10 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446007', 'tblTempUsageDetail_20' ) end [2025-02-10 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:45:27] Production.INFO: ==14778== Releasing lock... [2025-02-10 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:45:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:46:04 [end_date_ymd] => 2025-02-10 17:46:04 [RateCDR] => 1 ) [2025-02-10 17:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:46:04' and `end` < '2025-02-10 17:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:46:18] Production.INFO: count ==5272 [2025-02-10 17:46:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:46:04 - End Time 2025-02-10 17:46:04 [2025-02-10 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446012', 'tblTempUsageDetail_20' ) start [2025-02-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446012', 'tblTempUsageDetail_20' ) end [2025-02-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446012', 'tblTempVendorCDR_20' ) start [2025-02-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446012', 'tblTempVendorCDR_20' ) end [2025-02-10 17:46:21] Production.INFO: ProcessCDR(1,14446012,1,1,2) [2025-02-10 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446012', 'tblTempUsageDetail_20' ) start [2025-02-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446012', 'tblTempUsageDetail_20' ) end [2025-02-10 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:46:26] Production.INFO: ==14886== Releasing lock... [2025-02-10 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:46:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-10 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:47:05 [end_date_ymd] => 2025-02-10 17:47:05 [RateCDR] => 1 ) [2025-02-10 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:47:05' and `end` < '2025-02-10 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:47:22] Production.INFO: count ==5257 [2025-02-10 17:47:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:47:05 - End Time 2025-02-10 17:47:05 [2025-02-10 17:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446017', 'tblTempUsageDetail_20' ) start [2025-02-10 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446017', 'tblTempUsageDetail_20' ) end [2025-02-10 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446017', 'tblTempVendorCDR_20' ) start [2025-02-10 17:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446017', 'tblTempVendorCDR_20' ) end [2025-02-10 17:47:24] Production.INFO: ProcessCDR(1,14446017,1,1,2) [2025-02-10 17:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446017', 'tblTempUsageDetail_20' ) start [2025-02-10 17:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446017', 'tblTempUsageDetail_20' ) end [2025-02-10 17:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:47:29] Production.INFO: ==14997== Releasing lock... [2025-02-10 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:47:29] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:48:04 [end_date_ymd] => 2025-02-10 17:48:04 [RateCDR] => 1 ) [2025-02-10 17: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-10 14:48:04' and `end` < '2025-02-10 17: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-10 17:48:22] Production.INFO: count ==5236 [2025-02-10 17:48:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:48:04 - End Time 2025-02-10 17:48:04 [2025-02-10 17:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446022', 'tblTempUsageDetail_20' ) start [2025-02-10 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446022', 'tblTempUsageDetail_20' ) end [2025-02-10 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446022', 'tblTempVendorCDR_20' ) start [2025-02-10 17:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446022', 'tblTempVendorCDR_20' ) end [2025-02-10 17:48:24] Production.INFO: ProcessCDR(1,14446022,1,1,2) [2025-02-10 17:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446022', 'tblTempUsageDetail_20' ) start [2025-02-10 17:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446022', 'tblTempUsageDetail_20' ) end [2025-02-10 17:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:48:29] Production.INFO: ==15102== Releasing lock... [2025-02-10 17:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:48:29] Production.INFO: 67.25 MB #Memory Used# [2025-02-10 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:49:05 [end_date_ymd] => 2025-02-10 17:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:49:05' and `end` < '2025-02-10 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-10 17:49:23] Production.INFO: count ==5223 [2025-02-10 17:49:25] Production.ERROR: pbx CDR StartTime 2025-02-10 14:49:05 - End Time 2025-02-10 17:49:05 [2025-02-10 17:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446027', 'tblTempUsageDetail_20' ) start [2025-02-10 17:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446027', 'tblTempUsageDetail_20' ) end [2025-02-10 17:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446027', 'tblTempVendorCDR_20' ) start [2025-02-10 17:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446027', 'tblTempVendorCDR_20' ) end [2025-02-10 17:49:26] Production.INFO: ProcessCDR(1,14446027,1,1,2) [2025-02-10 17:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446027', 'tblTempUsageDetail_20' ) start [2025-02-10 17:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446027', 'tblTempUsageDetail_20' ) end [2025-02-10 17:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:49:30] Production.INFO: ==15212== Releasing lock... [2025-02-10 17:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:49:30] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:50:06 [end_date_ymd] => 2025-02-10 17:50:06 [RateCDR] => 1 ) [2025-02-10 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:50:06' and `end` < '2025-02-10 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:50:22] Production.INFO: count ==5211 [2025-02-10 17:50:24] Production.ERROR: pbx CDR StartTime 2025-02-10 14:50:06 - End Time 2025-02-10 17:50:06 [2025-02-10 17:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446033', 'tblTempUsageDetail_20' ) start [2025-02-10 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446033', 'tblTempUsageDetail_20' ) end [2025-02-10 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446033', 'tblTempVendorCDR_20' ) start [2025-02-10 17:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446033', 'tblTempVendorCDR_20' ) end [2025-02-10 17:50:24] Production.INFO: ProcessCDR(1,14446033,1,1,2) [2025-02-10 17:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446033', 'tblTempUsageDetail_20' ) start [2025-02-10 17:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446033', 'tblTempUsageDetail_20' ) end [2025-02-10 17:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:50:29] Production.INFO: ==15367== Releasing lock... [2025-02-10 17:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:50:29] Production.INFO: 67 MB #Memory Used# [2025-02-10 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:51:05 [end_date_ymd] => 2025-02-10 17:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:51:05' and `end` < '2025-02-10 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-10 17:51:18] Production.INFO: count ==5131 [2025-02-10 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:51:05 - End Time 2025-02-10 17:51:05 [2025-02-10 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446038', 'tblTempUsageDetail_20' ) start [2025-02-10 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446038', 'tblTempUsageDetail_20' ) end [2025-02-10 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446038', 'tblTempVendorCDR_20' ) start [2025-02-10 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446038', 'tblTempVendorCDR_20' ) end [2025-02-10 17:51:21] Production.INFO: ProcessCDR(1,14446038,1,1,2) [2025-02-10 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446038', 'tblTempUsageDetail_20' ) start [2025-02-10 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446038', 'tblTempUsageDetail_20' ) end [2025-02-10 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:51:26] Production.INFO: ==15471== Releasing lock... [2025-02-10 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:51:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-10 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:52:06 [end_date_ymd] => 2025-02-10 17:52:06 [RateCDR] => 1 ) [2025-02-10 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 14:52:06' and `end` < '2025-02-10 17:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 17:52:25] Production.INFO: count ==5111 [2025-02-10 17:52:27] Production.ERROR: pbx CDR StartTime 2025-02-10 14:52:06 - End Time 2025-02-10 17:52:06 [2025-02-10 17:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446043', 'tblTempUsageDetail_20' ) start [2025-02-10 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446043', 'tblTempUsageDetail_20' ) end [2025-02-10 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446043', 'tblTempVendorCDR_20' ) start [2025-02-10 17:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446043', 'tblTempVendorCDR_20' ) end [2025-02-10 17:52:27] Production.INFO: ProcessCDR(1,14446043,1,1,2) [2025-02-10 17:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446043', 'tblTempUsageDetail_20' ) start [2025-02-10 17:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446043', 'tblTempUsageDetail_20' ) end [2025-02-10 17:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:52:32] Production.INFO: ==15650== Releasing lock... [2025-02-10 17:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:52:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-10 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:53:05 [end_date_ymd] => 2025-02-10 17:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:53:05' and `end` < '2025-02-10 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-10 17:53:20] Production.INFO: count ==5072 [2025-02-10 17:53:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:53:05 - End Time 2025-02-10 17:53:05 [2025-02-10 17:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446048', 'tblTempUsageDetail_20' ) start [2025-02-10 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446048', 'tblTempUsageDetail_20' ) end [2025-02-10 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446048', 'tblTempVendorCDR_20' ) start [2025-02-10 17:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446048', 'tblTempVendorCDR_20' ) end [2025-02-10 17:53:22] Production.INFO: ProcessCDR(1,14446048,1,1,2) [2025-02-10 17:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446048', 'tblTempUsageDetail_20' ) start [2025-02-10 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446048', 'tblTempUsageDetail_20' ) end [2025-02-10 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:53:25] Production.INFO: ==15751== Releasing lock... [2025-02-10 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:53:25] Production.INFO: 66 MB #Memory Used# [2025-02-10 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:54:05 [end_date_ymd] => 2025-02-10 17:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:54:05' and `end` < '2025-02-10 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-10 17:54:19] Production.INFO: count ==5047 [2025-02-10 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:54:05 - End Time 2025-02-10 17:54:05 [2025-02-10 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446053', 'tblTempUsageDetail_20' ) start [2025-02-10 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446053', 'tblTempUsageDetail_20' ) end [2025-02-10 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446053', 'tblTempVendorCDR_20' ) start [2025-02-10 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446053', 'tblTempVendorCDR_20' ) end [2025-02-10 17:54:21] Production.INFO: ProcessCDR(1,14446053,1,1,2) [2025-02-10 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446053', 'tblTempUsageDetail_20' ) start [2025-02-10 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446053', 'tblTempUsageDetail_20' ) end [2025-02-10 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:54:26] Production.INFO: ==15884== Releasing lock... [2025-02-10 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:54:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:55:05 [end_date_ymd] => 2025-02-10 17:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:55:05' and `end` < '2025-02-10 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-10 17:55:19] Production.INFO: count ==5029 [2025-02-10 17:55:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:55:05 - End Time 2025-02-10 17:55:05 [2025-02-10 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446058', 'tblTempUsageDetail_20' ) start [2025-02-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446058', 'tblTempUsageDetail_20' ) end [2025-02-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446058', 'tblTempVendorCDR_20' ) start [2025-02-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446058', 'tblTempVendorCDR_20' ) end [2025-02-10 17:55:21] Production.INFO: ProcessCDR(1,14446058,1,1,2) [2025-02-10 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446058', 'tblTempUsageDetail_20' ) start [2025-02-10 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446058', 'tblTempUsageDetail_20' ) end [2025-02-10 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:55:26] Production.INFO: ==15976== Releasing lock... [2025-02-10 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:55:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:56:05 [end_date_ymd] => 2025-02-10 17:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:56:05' and `end` < '2025-02-10 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-10 17:56:20] Production.INFO: count ==5028 [2025-02-10 17:56:22] Production.ERROR: pbx CDR StartTime 2025-02-10 14:56:05 - End Time 2025-02-10 17:56:05 [2025-02-10 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446063', 'tblTempUsageDetail_20' ) start [2025-02-10 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446063', 'tblTempUsageDetail_20' ) end [2025-02-10 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446063', 'tblTempVendorCDR_20' ) start [2025-02-10 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446063', 'tblTempVendorCDR_20' ) end [2025-02-10 17:56:22] Production.INFO: ProcessCDR(1,14446063,1,1,2) [2025-02-10 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446063', 'tblTempUsageDetail_20' ) start [2025-02-10 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446063', 'tblTempUsageDetail_20' ) end [2025-02-10 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:56:25] Production.INFO: ==16100== Releasing lock... [2025-02-10 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:56:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:57:05 [end_date_ymd] => 2025-02-10 17:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:57:05' and `end` < '2025-02-10 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-10 17:57:18] Production.INFO: count ==5031 [2025-02-10 17:57:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:57:05 - End Time 2025-02-10 17:57:05 [2025-02-10 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446068', 'tblTempUsageDetail_20' ) start [2025-02-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446068', 'tblTempUsageDetail_20' ) end [2025-02-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446068', 'tblTempVendorCDR_20' ) start [2025-02-10 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446068', 'tblTempVendorCDR_20' ) end [2025-02-10 17:57:21] Production.INFO: ProcessCDR(1,14446068,1,1,2) [2025-02-10 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446068', 'tblTempUsageDetail_20' ) start [2025-02-10 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446068', 'tblTempUsageDetail_20' ) end [2025-02-10 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:57:26] Production.INFO: ==16184== Releasing lock... [2025-02-10 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:57:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-10 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:58:06 [end_date_ymd] => 2025-02-10 17:58:06 [RateCDR] => 1 ) [2025-02-10 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-10 14:58:06' and `end` < '2025-02-10 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-10 17:58:19] Production.INFO: count ==5012 [2025-02-10 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:58:06 - End Time 2025-02-10 17:58:06 [2025-02-10 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446073', 'tblTempUsageDetail_20' ) start [2025-02-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446073', 'tblTempUsageDetail_20' ) end [2025-02-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446073', 'tblTempVendorCDR_20' ) start [2025-02-10 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446073', 'tblTempVendorCDR_20' ) end [2025-02-10 17:58:22] Production.INFO: ProcessCDR(1,14446073,1,1,2) [2025-02-10 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446073', 'tblTempUsageDetail_20' ) start [2025-02-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446073', 'tblTempUsageDetail_20' ) end [2025-02-10 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:58:25] Production.INFO: ==16277== Releasing lock... [2025-02-10 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:58:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 14:59:05 [end_date_ymd] => 2025-02-10 17:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 14:59:05' and `end` < '2025-02-10 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-10 17:59:19] Production.INFO: count ==4999 [2025-02-10 17:59:21] Production.ERROR: pbx CDR StartTime 2025-02-10 14:59:05 - End Time 2025-02-10 17:59:05 [2025-02-10 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446078', 'tblTempUsageDetail_20' ) start [2025-02-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446078', 'tblTempUsageDetail_20' ) end [2025-02-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446078', 'tblTempVendorCDR_20' ) start [2025-02-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446078', 'tblTempVendorCDR_20' ) end [2025-02-10 17:59:21] Production.INFO: ProcessCDR(1,14446078,1,1,2) [2025-02-10 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446078', 'tblTempUsageDetail_20' ) start [2025-02-10 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446078', 'tblTempUsageDetail_20' ) end [2025-02-10 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 17:59:24] Production.INFO: ==16361== Releasing lock... [2025-02-10 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 17:59:24] Production.INFO: 65.5 MB #Memory Used# [2025-02-10 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:00:05 [end_date_ymd] => 2025-02-10 18:00:05 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:00:05' and `end` < '2025-02-10 18: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-10 18:00:24] Production.INFO: count ==4990 [2025-02-10 18:00:26] Production.ERROR: pbx CDR StartTime 2025-02-10 15:00:05 - End Time 2025-02-10 18:00:05 [2025-02-10 18:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446084', 'tblTempUsageDetail_20' ) start [2025-02-10 18:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446084', 'tblTempUsageDetail_20' ) end [2025-02-10 18:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446084', 'tblTempVendorCDR_20' ) start [2025-02-10 18:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446084', 'tblTempVendorCDR_20' ) end [2025-02-10 18:00:26] Production.INFO: ProcessCDR(1,14446084,1,1,2) [2025-02-10 18:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446084', 'tblTempUsageDetail_20' ) start [2025-02-10 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446084', 'tblTempUsageDetail_20' ) end [2025-02-10 18:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:00:32] Production.INFO: ==16457== Releasing lock... [2025-02-10 18:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:00:32] Production.INFO: 65.25 MB #Memory Used# [2025-02-10 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:01:05 [end_date_ymd] => 2025-02-10 18:01:05 [RateCDR] => 1 ) [2025-02-10 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:01:05' and `end` < '2025-02-10 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:01:22] Production.INFO: count ==4965 [2025-02-10 18:01:25] Production.ERROR: pbx CDR StartTime 2025-02-10 15:01:05 - End Time 2025-02-10 18:01:05 [2025-02-10 18:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446089', 'tblTempUsageDetail_20' ) start [2025-02-10 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446089', 'tblTempUsageDetail_20' ) end [2025-02-10 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446089', 'tblTempVendorCDR_20' ) start [2025-02-10 18:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446089', 'tblTempVendorCDR_20' ) end [2025-02-10 18:01:25] Production.INFO: ProcessCDR(1,14446089,1,1,2) [2025-02-10 18:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446089', 'tblTempUsageDetail_20' ) start [2025-02-10 18:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446089', 'tblTempUsageDetail_20' ) end [2025-02-10 18:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:01:30] Production.INFO: ==16555== Releasing lock... [2025-02-10 18:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:01:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-10 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:02:05 [end_date_ymd] => 2025-02-10 18:02:05 [RateCDR] => 1 ) [2025-02-10 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:02:05' and `end` < '2025-02-10 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:02:19] Production.INFO: count ==4955 [2025-02-10 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:02:05 - End Time 2025-02-10 18:02:05 [2025-02-10 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446094', 'tblTempUsageDetail_20' ) start [2025-02-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446094', 'tblTempUsageDetail_20' ) end [2025-02-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446094', 'tblTempVendorCDR_20' ) start [2025-02-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446094', 'tblTempVendorCDR_20' ) end [2025-02-10 18:02:21] Production.INFO: ProcessCDR(1,14446094,1,1,2) [2025-02-10 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446094', 'tblTempUsageDetail_20' ) start [2025-02-10 18:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446094', 'tblTempUsageDetail_20' ) end [2025-02-10 18:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:02:27] Production.INFO: ==16638== Releasing lock... [2025-02-10 18:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:02:27] Production.INFO: 65 MB #Memory Used# [2025-02-10 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:03:05 [end_date_ymd] => 2025-02-10 18:03:05 [RateCDR] => 1 ) [2025-02-10 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:03:05' and `end` < '2025-02-10 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:03:18] Production.INFO: count ==4942 [2025-02-10 18:03:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:03:05 - End Time 2025-02-10 18:03:05 [2025-02-10 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446099', 'tblTempUsageDetail_20' ) start [2025-02-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446099', 'tblTempUsageDetail_20' ) end [2025-02-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446099', 'tblTempVendorCDR_20' ) start [2025-02-10 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446099', 'tblTempVendorCDR_20' ) end [2025-02-10 18:03:21] Production.INFO: ProcessCDR(1,14446099,1,1,2) [2025-02-10 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446099', 'tblTempUsageDetail_20' ) start [2025-02-10 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446099', 'tblTempUsageDetail_20' ) end [2025-02-10 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:03:26] Production.INFO: ==16721== Releasing lock... [2025-02-10 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:03:26] Production.INFO: 65 MB #Memory Used# [2025-02-10 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:04:06 [end_date_ymd] => 2025-02-10 18:04:06 [RateCDR] => 1 ) [2025-02-10 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-10 15:04:06' and `end` < '2025-02-10 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-10 18:04:23] Production.INFO: count ==4918 [2025-02-10 18:04:26] Production.ERROR: pbx CDR StartTime 2025-02-10 15:04:06 - End Time 2025-02-10 18:04:06 [2025-02-10 18:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446104', 'tblTempUsageDetail_20' ) start [2025-02-10 18:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446104', 'tblTempUsageDetail_20' ) end [2025-02-10 18:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446104', 'tblTempVendorCDR_20' ) start [2025-02-10 18:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446104', 'tblTempVendorCDR_20' ) end [2025-02-10 18:04:26] Production.INFO: ProcessCDR(1,14446104,1,1,2) [2025-02-10 18:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446104', 'tblTempUsageDetail_20' ) start [2025-02-10 18:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446104', 'tblTempUsageDetail_20' ) end [2025-02-10 18:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:04:31] Production.INFO: ==16805== Releasing lock... [2025-02-10 18:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:04:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-10 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:05:05 [end_date_ymd] => 2025-02-10 18:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:05:05' and `end` < '2025-02-10 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-10 18:05:24] Production.INFO: count ==4900 [2025-02-10 18:05:26] Production.ERROR: pbx CDR StartTime 2025-02-10 15:05:05 - End Time 2025-02-10 18:05:05 [2025-02-10 18:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446109', 'tblTempUsageDetail_20' ) start [2025-02-10 18:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446109', 'tblTempUsageDetail_20' ) end [2025-02-10 18:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446109', 'tblTempVendorCDR_20' ) start [2025-02-10 18:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446109', 'tblTempVendorCDR_20' ) end [2025-02-10 18:05:26] Production.INFO: ProcessCDR(1,14446109,1,1,2) [2025-02-10 18:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446109', 'tblTempUsageDetail_20' ) start [2025-02-10 18:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446109', 'tblTempUsageDetail_20' ) end [2025-02-10 18:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:05:32] Production.INFO: ==16886== Releasing lock... [2025-02-10 18:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:05:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-10 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:06:05 [end_date_ymd] => 2025-02-10 18:06:05 [RateCDR] => 1 ) [2025-02-10 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:06:05' and `end` < '2025-02-10 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:06:19] Production.INFO: count ==4881 [2025-02-10 18:06:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:06:05 - End Time 2025-02-10 18:06:05 [2025-02-10 18:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446114', 'tblTempUsageDetail_20' ) start [2025-02-10 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446114', 'tblTempUsageDetail_20' ) end [2025-02-10 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446114', 'tblTempVendorCDR_20' ) start [2025-02-10 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446114', 'tblTempVendorCDR_20' ) end [2025-02-10 18:06:22] Production.INFO: ProcessCDR(1,14446114,1,1,2) [2025-02-10 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446114', 'tblTempUsageDetail_20' ) start [2025-02-10 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446114', 'tblTempUsageDetail_20' ) end [2025-02-10 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:06:27] Production.INFO: ==17006== Releasing lock... [2025-02-10 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:06:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:07:05 [end_date_ymd] => 2025-02-10 18:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:07:05' and `end` < '2025-02-10 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-10 18:07:21] Production.INFO: count ==4884 [2025-02-10 18:07:23] Production.ERROR: pbx CDR StartTime 2025-02-10 15:07:05 - End Time 2025-02-10 18:07:05 [2025-02-10 18:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446119', 'tblTempUsageDetail_20' ) start [2025-02-10 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446119', 'tblTempUsageDetail_20' ) end [2025-02-10 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446119', 'tblTempVendorCDR_20' ) start [2025-02-10 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446119', 'tblTempVendorCDR_20' ) end [2025-02-10 18:07:23] Production.INFO: ProcessCDR(1,14446119,1,1,2) [2025-02-10 18:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446119', 'tblTempUsageDetail_20' ) start [2025-02-10 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446119', 'tblTempUsageDetail_20' ) end [2025-02-10 18:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:07:28] Production.INFO: ==17082== Releasing lock... [2025-02-10 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:07:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:08:06 [end_date_ymd] => 2025-02-10 18:08:06 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:08:06' and `end` < '2025-02-10 18: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-10 18:08:20] Production.INFO: count ==4865 [2025-02-10 18:08:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:08:06 - End Time 2025-02-10 18:08:06 [2025-02-10 18:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446124', 'tblTempUsageDetail_20' ) start [2025-02-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446124', 'tblTempUsageDetail_20' ) end [2025-02-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446124', 'tblTempVendorCDR_20' ) start [2025-02-10 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446124', 'tblTempVendorCDR_20' ) end [2025-02-10 18:08:22] Production.INFO: ProcessCDR(1,14446124,1,1,2) [2025-02-10 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446124', 'tblTempUsageDetail_20' ) start [2025-02-10 18:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446124', 'tblTempUsageDetail_20' ) end [2025-02-10 18:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:08:28] Production.INFO: ==17161== Releasing lock... [2025-02-10 18:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:08:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-10 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:09:05 [end_date_ymd] => 2025-02-10 18:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:09:05' and `end` < '2025-02-10 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-10 18:09:19] Production.INFO: count ==4854 [2025-02-10 18:09:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:09:05 - End Time 2025-02-10 18:09:05 [2025-02-10 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446129', 'tblTempUsageDetail_20' ) start [2025-02-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446129', 'tblTempUsageDetail_20' ) end [2025-02-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446129', 'tblTempVendorCDR_20' ) start [2025-02-10 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446129', 'tblTempVendorCDR_20' ) end [2025-02-10 18:09:21] Production.INFO: ProcessCDR(1,14446129,1,1,2) [2025-02-10 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446129', 'tblTempUsageDetail_20' ) start [2025-02-10 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446129', 'tblTempUsageDetail_20' ) end [2025-02-10 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:09:27] Production.INFO: ==17239== Releasing lock... [2025-02-10 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:09:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:10:07 [end_date_ymd] => 2025-02-10 18:10:07 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:10:07' and `end` < '2025-02-10 18: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-10 18:10:20] Production.INFO: count ==4847 [2025-02-10 18:10:23] Production.ERROR: pbx CDR StartTime 2025-02-10 15:10:07 - End Time 2025-02-10 18:10:07 [2025-02-10 18:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446135', 'tblTempUsageDetail_20' ) start [2025-02-10 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446135', 'tblTempUsageDetail_20' ) end [2025-02-10 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446135', 'tblTempVendorCDR_20' ) start [2025-02-10 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446135', 'tblTempVendorCDR_20' ) end [2025-02-10 18:10:23] Production.INFO: ProcessCDR(1,14446135,1,1,2) [2025-02-10 18:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446135', 'tblTempUsageDetail_20' ) start [2025-02-10 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446135', 'tblTempUsageDetail_20' ) end [2025-02-10 18:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:10:28] Production.INFO: ==17323== Releasing lock... [2025-02-10 18:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:10:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-10 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:11:05 [end_date_ymd] => 2025-02-10 18:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:11:05' and `end` < '2025-02-10 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-10 18:11:19] Production.INFO: count ==4817 [2025-02-10 18:11:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:11:05 - End Time 2025-02-10 18:11:05 [2025-02-10 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446140', 'tblTempUsageDetail_20' ) start [2025-02-10 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446140', 'tblTempUsageDetail_20' ) end [2025-02-10 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446140', 'tblTempVendorCDR_20' ) start [2025-02-10 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446140', 'tblTempVendorCDR_20' ) end [2025-02-10 18:11:22] Production.INFO: ProcessCDR(1,14446140,1,1,2) [2025-02-10 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446140', 'tblTempUsageDetail_20' ) start [2025-02-10 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446140', 'tblTempUsageDetail_20' ) end [2025-02-10 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:11:27] Production.INFO: ==17396== Releasing lock... [2025-02-10 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:11:27] Production.INFO: 64 MB #Memory Used# [2025-02-10 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:12:05 [end_date_ymd] => 2025-02-10 18:12:05 [RateCDR] => 1 ) [2025-02-10 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:12:05' and `end` < '2025-02-10 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-10 18:12:20] Production.INFO: count ==4809 [2025-02-10 18:12:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:12:05 - End Time 2025-02-10 18:12:05 [2025-02-10 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446145', 'tblTempUsageDetail_20' ) start [2025-02-10 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446145', 'tblTempUsageDetail_20' ) end [2025-02-10 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446145', 'tblTempVendorCDR_20' ) start [2025-02-10 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446145', 'tblTempVendorCDR_20' ) end [2025-02-10 18:12:23] Production.INFO: ProcessCDR(1,14446145,1,1,2) [2025-02-10 18:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446145', 'tblTempUsageDetail_20' ) start [2025-02-10 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446145', 'tblTempUsageDetail_20' ) end [2025-02-10 18:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:12:28] Production.INFO: ==17472== Releasing lock... [2025-02-10 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:12:28] Production.INFO: 64 MB #Memory Used# [2025-02-10 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:13:05 [end_date_ymd] => 2025-02-10 18:13:05 [RateCDR] => 1 ) [2025-02-10 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:13:05' and `end` < '2025-02-10 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:13:24] Production.INFO: count ==4788 [2025-02-10 18:13:26] Production.ERROR: pbx CDR StartTime 2025-02-10 15:13:05 - End Time 2025-02-10 18:13:05 [2025-02-10 18:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446150', 'tblTempUsageDetail_20' ) start [2025-02-10 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446150', 'tblTempUsageDetail_20' ) end [2025-02-10 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446150', 'tblTempVendorCDR_20' ) start [2025-02-10 18:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446150', 'tblTempVendorCDR_20' ) end [2025-02-10 18:13:26] Production.INFO: ProcessCDR(1,14446150,1,1,2) [2025-02-10 18:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446150', 'tblTempUsageDetail_20' ) start [2025-02-10 18:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446150', 'tblTempUsageDetail_20' ) end [2025-02-10 18:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:13:32] Production.INFO: ==17545== Releasing lock... [2025-02-10 18:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:13:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:14:06 [end_date_ymd] => 2025-02-10 18:14:06 [RateCDR] => 1 ) [2025-02-10 18:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:14:06' and `end` < '2025-02-10 18:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:14:20] Production.INFO: count ==4765 [2025-02-10 18:14:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:14:06 - End Time 2025-02-10 18:14:06 [2025-02-10 18:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446155', 'tblTempUsageDetail_20' ) start [2025-02-10 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446155', 'tblTempUsageDetail_20' ) end [2025-02-10 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446155', 'tblTempVendorCDR_20' ) start [2025-02-10 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446155', 'tblTempVendorCDR_20' ) end [2025-02-10 18:14:22] Production.INFO: ProcessCDR(1,14446155,1,1,2) [2025-02-10 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446155', 'tblTempUsageDetail_20' ) start [2025-02-10 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446155', 'tblTempUsageDetail_20' ) end [2025-02-10 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:14:26] Production.INFO: ==17621== Releasing lock... [2025-02-10 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-10 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:15:06 [end_date_ymd] => 2025-02-10 18:15:06 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:15:06' and `end` < '2025-02-10 18: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-10 18:15:20] Production.INFO: count ==4748 [2025-02-10 18:15:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:15:06 - End Time 2025-02-10 18:15:06 [2025-02-10 18:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446160', 'tblTempUsageDetail_20' ) start [2025-02-10 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446160', 'tblTempUsageDetail_20' ) end [2025-02-10 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446160', 'tblTempVendorCDR_20' ) start [2025-02-10 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446160', 'tblTempVendorCDR_20' ) end [2025-02-10 18:15:22] Production.INFO: ProcessCDR(1,14446160,1,1,2) [2025-02-10 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446160', 'tblTempUsageDetail_20' ) start [2025-02-10 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446160', 'tblTempUsageDetail_20' ) end [2025-02-10 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:15:27] Production.INFO: ==17692== Releasing lock... [2025-02-10 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:15:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:16:05 [end_date_ymd] => 2025-02-10 18:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:16:05' and `end` < '2025-02-10 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-10 18:16:20] Production.INFO: count ==4735 [2025-02-10 18:16:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:16:05 - End Time 2025-02-10 18:16:05 [2025-02-10 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446165', 'tblTempUsageDetail_20' ) start [2025-02-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446165', 'tblTempUsageDetail_20' ) end [2025-02-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446165', 'tblTempVendorCDR_20' ) start [2025-02-10 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446165', 'tblTempVendorCDR_20' ) end [2025-02-10 18:16:22] Production.INFO: ProcessCDR(1,14446165,1,1,2) [2025-02-10 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446165', 'tblTempUsageDetail_20' ) start [2025-02-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446165', 'tblTempUsageDetail_20' ) end [2025-02-10 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:16:25] Production.INFO: ==17766== Releasing lock... [2025-02-10 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:16:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:17:05 [end_date_ymd] => 2025-02-10 18:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:17:05' and `end` < '2025-02-10 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-10 18:17:19] Production.INFO: count ==4735 [2025-02-10 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:17:05 - End Time 2025-02-10 18:17:05 [2025-02-10 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446170', 'tblTempUsageDetail_20' ) start [2025-02-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446170', 'tblTempUsageDetail_20' ) end [2025-02-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446170', 'tblTempVendorCDR_20' ) start [2025-02-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446170', 'tblTempVendorCDR_20' ) end [2025-02-10 18:17:21] Production.INFO: ProcessCDR(1,14446170,1,1,2) [2025-02-10 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446170', 'tblTempUsageDetail_20' ) start [2025-02-10 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446170', 'tblTempUsageDetail_20' ) end [2025-02-10 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:17:25] Production.INFO: ==17838== Releasing lock... [2025-02-10 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:17:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:18:05 [end_date_ymd] => 2025-02-10 18:18:05 [RateCDR] => 1 ) [2025-02-10 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:18:05' and `end` < '2025-02-10 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:18:19] Production.INFO: count ==4736 [2025-02-10 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:18:05 - End Time 2025-02-10 18:18:05 [2025-02-10 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446175', 'tblTempUsageDetail_20' ) start [2025-02-10 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446175', 'tblTempUsageDetail_20' ) end [2025-02-10 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446175', 'tblTempVendorCDR_20' ) start [2025-02-10 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446175', 'tblTempVendorCDR_20' ) end [2025-02-10 18:18:21] Production.INFO: ProcessCDR(1,14446175,1,1,2) [2025-02-10 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446175', 'tblTempUsageDetail_20' ) start [2025-02-10 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446175', 'tblTempUsageDetail_20' ) end [2025-02-10 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:18:25] Production.INFO: ==17919== Releasing lock... [2025-02-10 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:18:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:19:05 [end_date_ymd] => 2025-02-10 18:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:19:05' and `end` < '2025-02-10 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-10 18:19:19] Production.INFO: count ==4724 [2025-02-10 18:19:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:19:05 - End Time 2025-02-10 18:19:05 [2025-02-10 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446180', 'tblTempUsageDetail_20' ) start [2025-02-10 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446180', 'tblTempUsageDetail_20' ) end [2025-02-10 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446180', 'tblTempVendorCDR_20' ) start [2025-02-10 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446180', 'tblTempVendorCDR_20' ) end [2025-02-10 18:19:21] Production.INFO: ProcessCDR(1,14446180,1,1,2) [2025-02-10 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446180', 'tblTempUsageDetail_20' ) start [2025-02-10 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446180', 'tblTempUsageDetail_20' ) end [2025-02-10 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:19:26] Production.INFO: ==17993== Releasing lock... [2025-02-10 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:20:06 [end_date_ymd] => 2025-02-10 18:20:06 [RateCDR] => 1 ) [2025-02-10 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:20:06' and `end` < '2025-02-10 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:20:21] Production.INFO: count ==4715 [2025-02-10 18:20:23] Production.ERROR: pbx CDR StartTime 2025-02-10 15:20:06 - End Time 2025-02-10 18:20:06 [2025-02-10 18:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446186', 'tblTempUsageDetail_20' ) start [2025-02-10 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446186', 'tblTempUsageDetail_20' ) end [2025-02-10 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446186', 'tblTempVendorCDR_20' ) start [2025-02-10 18:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446186', 'tblTempVendorCDR_20' ) end [2025-02-10 18:20:23] Production.INFO: ProcessCDR(1,14446186,1,1,2) [2025-02-10 18:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446186', 'tblTempUsageDetail_20' ) start [2025-02-10 18:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446186', 'tblTempUsageDetail_20' ) end [2025-02-10 18:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:20:28] Production.INFO: ==18065== Releasing lock... [2025-02-10 18:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:20:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:21:05 [end_date_ymd] => 2025-02-10 18:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:21:05' and `end` < '2025-02-10 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-10 18:21:23] Production.INFO: count ==4707 [2025-02-10 18:21:25] Production.ERROR: pbx CDR StartTime 2025-02-10 15:21:05 - End Time 2025-02-10 18:21:05 [2025-02-10 18:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446191', 'tblTempUsageDetail_20' ) start [2025-02-10 18:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446191', 'tblTempUsageDetail_20' ) end [2025-02-10 18:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446191', 'tblTempVendorCDR_20' ) start [2025-02-10 18:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446191', 'tblTempVendorCDR_20' ) end [2025-02-10 18:21:25] Production.INFO: ProcessCDR(1,14446191,1,1,2) [2025-02-10 18:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446191', 'tblTempUsageDetail_20' ) start [2025-02-10 18:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446191', 'tblTempUsageDetail_20' ) end [2025-02-10 18:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:21:30] Production.INFO: ==18177== Releasing lock... [2025-02-10 18:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:21:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:22:05 [end_date_ymd] => 2025-02-10 18:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:22:05' and `end` < '2025-02-10 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-10 18:22:19] Production.INFO: count ==4708 [2025-02-10 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:22:05 - End Time 2025-02-10 18:22:05 [2025-02-10 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446196', 'tblTempUsageDetail_20' ) start [2025-02-10 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446196', 'tblTempUsageDetail_20' ) end [2025-02-10 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446196', 'tblTempVendorCDR_20' ) start [2025-02-10 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446196', 'tblTempVendorCDR_20' ) end [2025-02-10 18:22:21] Production.INFO: ProcessCDR(1,14446196,1,1,2) [2025-02-10 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446196', 'tblTempUsageDetail_20' ) start [2025-02-10 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446196', 'tblTempUsageDetail_20' ) end [2025-02-10 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:22:24] Production.INFO: ==18250== Releasing lock... [2025-02-10 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:22:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:23:05 [end_date_ymd] => 2025-02-10 18:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:23:05' and `end` < '2025-02-10 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-10 18:23:20] Production.INFO: count ==4706 [2025-02-10 18:23:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:23:05 - End Time 2025-02-10 18:23:05 [2025-02-10 18:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446201', 'tblTempUsageDetail_20' ) start [2025-02-10 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446201', 'tblTempUsageDetail_20' ) end [2025-02-10 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446201', 'tblTempVendorCDR_20' ) start [2025-02-10 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446201', 'tblTempVendorCDR_20' ) end [2025-02-10 18:23:22] Production.INFO: ProcessCDR(1,14446201,1,1,2) [2025-02-10 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446201', 'tblTempUsageDetail_20' ) start [2025-02-10 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446201', 'tblTempUsageDetail_20' ) end [2025-02-10 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:23:27] Production.INFO: ==18325== Releasing lock... [2025-02-10 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:23:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:24:06 [end_date_ymd] => 2025-02-10 18:24:06 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:24:06' and `end` < '2025-02-10 18: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-10 18:24:19] Production.INFO: count ==4749 [2025-02-10 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:24:06 - End Time 2025-02-10 18:24:06 [2025-02-10 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446206', 'tblTempUsageDetail_20' ) start [2025-02-10 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446206', 'tblTempUsageDetail_20' ) end [2025-02-10 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446206', 'tblTempVendorCDR_20' ) start [2025-02-10 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446206', 'tblTempVendorCDR_20' ) end [2025-02-10 18:24:21] Production.INFO: ProcessCDR(1,14446206,1,1,2) [2025-02-10 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446206', 'tblTempUsageDetail_20' ) start [2025-02-10 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446206', 'tblTempUsageDetail_20' ) end [2025-02-10 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:24:25] Production.INFO: ==18399== Releasing lock... [2025-02-10 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:24:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-10 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:25:06 [end_date_ymd] => 2025-02-10 18:25:06 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:25:06' and `end` < '2025-02-10 18: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-10 18:25:19] Production.INFO: count ==4727 [2025-02-10 18:25:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:25:06 - End Time 2025-02-10 18:25:06 [2025-02-10 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446211', 'tblTempUsageDetail_20' ) start [2025-02-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446211', 'tblTempUsageDetail_20' ) end [2025-02-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446211', 'tblTempVendorCDR_20' ) start [2025-02-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446211', 'tblTempVendorCDR_20' ) end [2025-02-10 18:25:21] Production.INFO: ProcessCDR(1,14446211,1,1,2) [2025-02-10 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446211', 'tblTempUsageDetail_20' ) start [2025-02-10 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446211', 'tblTempUsageDetail_20' ) end [2025-02-10 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:25:24] Production.INFO: ==18471== Releasing lock... [2025-02-10 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:25:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:26:05 [end_date_ymd] => 2025-02-10 18:26:05 [RateCDR] => 1 ) [2025-02-10 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:26:05' and `end` < '2025-02-10 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:26:19] Production.INFO: count ==4713 [2025-02-10 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:26:05 - End Time 2025-02-10 18:26:05 [2025-02-10 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446216', 'tblTempUsageDetail_20' ) start [2025-02-10 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446216', 'tblTempUsageDetail_20' ) end [2025-02-10 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446216', 'tblTempVendorCDR_20' ) start [2025-02-10 18:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446216', 'tblTempVendorCDR_20' ) end [2025-02-10 18:26:22] Production.INFO: ProcessCDR(1,14446216,1,1,2) [2025-02-10 18:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446216', 'tblTempUsageDetail_20' ) start [2025-02-10 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446216', 'tblTempUsageDetail_20' ) end [2025-02-10 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:26:26] Production.INFO: ==18544== Releasing lock... [2025-02-10 18:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:26:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-10 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:27:05 [end_date_ymd] => 2025-02-10 18:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:27:05' and `end` < '2025-02-10 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-10 18:27:19] Production.INFO: count ==4698 [2025-02-10 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:27:05 - End Time 2025-02-10 18:27:05 [2025-02-10 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446221', 'tblTempUsageDetail_20' ) start [2025-02-10 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446221', 'tblTempUsageDetail_20' ) end [2025-02-10 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446221', 'tblTempVendorCDR_20' ) start [2025-02-10 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446221', 'tblTempVendorCDR_20' ) end [2025-02-10 18:27:21] Production.INFO: ProcessCDR(1,14446221,1,1,2) [2025-02-10 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446221', 'tblTempUsageDetail_20' ) start [2025-02-10 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446221', 'tblTempUsageDetail_20' ) end [2025-02-10 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:27:24] Production.INFO: ==18616== Releasing lock... [2025-02-10 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:27:24] Production.INFO: 63 MB #Memory Used# [2025-02-10 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:28:05 [end_date_ymd] => 2025-02-10 18:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:28:05' and `end` < '2025-02-10 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-10 18:28:18] Production.INFO: count ==4676 [2025-02-10 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:28:05 - End Time 2025-02-10 18:28:05 [2025-02-10 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446226', 'tblTempUsageDetail_20' ) start [2025-02-10 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446226', 'tblTempUsageDetail_20' ) end [2025-02-10 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446226', 'tblTempVendorCDR_20' ) start [2025-02-10 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446226', 'tblTempVendorCDR_20' ) end [2025-02-10 18:28:20] Production.INFO: ProcessCDR(1,14446226,1,1,2) [2025-02-10 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446226', 'tblTempUsageDetail_20' ) start [2025-02-10 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446226', 'tblTempUsageDetail_20' ) end [2025-02-10 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:28:23] Production.INFO: ==18689== Releasing lock... [2025-02-10 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:28:23] Production.INFO: 63 MB #Memory Used# [2025-02-10 18:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:29:06 [end_date_ymd] => 2025-02-10 18:29:06 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:29:06' and `end` < '2025-02-10 18: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-10 18:29:20] Production.INFO: count ==4673 [2025-02-10 18:29:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:29:06 - End Time 2025-02-10 18:29:06 [2025-02-10 18:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446231', 'tblTempUsageDetail_20' ) start [2025-02-10 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446231', 'tblTempUsageDetail_20' ) end [2025-02-10 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446231', 'tblTempVendorCDR_20' ) start [2025-02-10 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446231', 'tblTempVendorCDR_20' ) end [2025-02-10 18:29:22] Production.INFO: ProcessCDR(1,14446231,1,1,2) [2025-02-10 18:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446231', 'tblTempUsageDetail_20' ) start [2025-02-10 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446231', 'tblTempUsageDetail_20' ) end [2025-02-10 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:29:25] Production.INFO: ==18766== Releasing lock... [2025-02-10 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:29:25] Production.INFO: 63 MB #Memory Used# [2025-02-10 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:30:06 [end_date_ymd] => 2025-02-10 18:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 15:30:06' and `end` < '2025-02-10 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-10 18:30:20] Production.INFO: count ==4664 [2025-02-10 18:30:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:30:06 - End Time 2025-02-10 18:30:06 [2025-02-10 18:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446237', 'tblTempUsageDetail_20' ) start [2025-02-10 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446237', 'tblTempUsageDetail_20' ) end [2025-02-10 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446237', 'tblTempVendorCDR_20' ) start [2025-02-10 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446237', 'tblTempVendorCDR_20' ) end [2025-02-10 18:30:22] Production.INFO: ProcessCDR(1,14446237,1,1,2) [2025-02-10 18:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446237', 'tblTempUsageDetail_20' ) start [2025-02-10 18:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446237', 'tblTempUsageDetail_20' ) end [2025-02-10 18:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:30:27] Production.INFO: ==18840== Releasing lock... [2025-02-10 18:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:30:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-10 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:31:05 [end_date_ymd] => 2025-02-10 18:31:05 [RateCDR] => 1 ) [2025-02-10 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:31:05' and `end` < '2025-02-10 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:31:20] Production.INFO: count ==4606 [2025-02-10 18:31:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:31:05 - End Time 2025-02-10 18:31:05 [2025-02-10 18:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446242', 'tblTempUsageDetail_20' ) start [2025-02-10 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446242', 'tblTempUsageDetail_20' ) end [2025-02-10 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446242', 'tblTempVendorCDR_20' ) start [2025-02-10 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446242', 'tblTempVendorCDR_20' ) end [2025-02-10 18:31:22] Production.INFO: ProcessCDR(1,14446242,1,1,2) [2025-02-10 18:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446242', 'tblTempUsageDetail_20' ) start [2025-02-10 18:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446242', 'tblTempUsageDetail_20' ) end [2025-02-10 18:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:31:26] Production.INFO: ==18916== Releasing lock... [2025-02-10 18:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:31:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-10 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:32:05 [end_date_ymd] => 2025-02-10 18:32:05 [RateCDR] => 1 ) [2025-02-10 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:32:05' and `end` < '2025-02-10 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:32:21] Production.INFO: count ==4576 [2025-02-10 18:32:23] Production.ERROR: pbx CDR StartTime 2025-02-10 15:32:05 - End Time 2025-02-10 18:32:05 [2025-02-10 18:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446247', 'tblTempUsageDetail_20' ) start [2025-02-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446247', 'tblTempUsageDetail_20' ) end [2025-02-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446247', 'tblTempVendorCDR_20' ) start [2025-02-10 18:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446247', 'tblTempVendorCDR_20' ) end [2025-02-10 18:32:23] Production.INFO: ProcessCDR(1,14446247,1,1,2) [2025-02-10 18:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446247', 'tblTempUsageDetail_20' ) start [2025-02-10 18:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446247', 'tblTempUsageDetail_20' ) end [2025-02-10 18:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:32:29] Production.INFO: ==18990== Releasing lock... [2025-02-10 18:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:32:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-10 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:33:05 [end_date_ymd] => 2025-02-10 18:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:33:05' and `end` < '2025-02-10 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-10 18:33:18] Production.INFO: count ==4564 [2025-02-10 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:33:05 - End Time 2025-02-10 18:33:05 [2025-02-10 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446252', 'tblTempUsageDetail_20' ) start [2025-02-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446252', 'tblTempUsageDetail_20' ) end [2025-02-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446252', 'tblTempVendorCDR_20' ) start [2025-02-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446252', 'tblTempVendorCDR_20' ) end [2025-02-10 18:33:21] Production.INFO: ProcessCDR(1,14446252,1,1,2) [2025-02-10 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446252', 'tblTempUsageDetail_20' ) start [2025-02-10 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446252', 'tblTempUsageDetail_20' ) end [2025-02-10 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:33:25] Production.INFO: ==19059== Releasing lock... [2025-02-10 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:33:25] Production.INFO: 62.25 MB #Memory Used# [2025-02-10 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:34:05 [end_date_ymd] => 2025-02-10 18:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:34:05' and `end` < '2025-02-10 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-10 18:34:19] Production.INFO: count ==4543 [2025-02-10 18:34:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:34:05 - End Time 2025-02-10 18:34:05 [2025-02-10 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446257', 'tblTempUsageDetail_20' ) start [2025-02-10 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446257', 'tblTempUsageDetail_20' ) end [2025-02-10 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446257', 'tblTempVendorCDR_20' ) start [2025-02-10 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446257', 'tblTempVendorCDR_20' ) end [2025-02-10 18:34:21] Production.INFO: ProcessCDR(1,14446257,1,1,2) [2025-02-10 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446257', 'tblTempUsageDetail_20' ) start [2025-02-10 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446257', 'tblTempUsageDetail_20' ) end [2025-02-10 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:34:24] Production.INFO: ==19138== Releasing lock... [2025-02-10 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:34:24] Production.INFO: 62 MB #Memory Used# [2025-02-10 18:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:35:06 [end_date_ymd] => 2025-02-10 18:35:06 [RateCDR] => 1 ) [2025-02-10 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:35:06' and `end` < '2025-02-10 18:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:35:19] Production.INFO: count ==4545 [2025-02-10 18:35:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:35:06 - End Time 2025-02-10 18:35:06 [2025-02-10 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446262', 'tblTempUsageDetail_20' ) start [2025-02-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446262', 'tblTempUsageDetail_20' ) end [2025-02-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446262', 'tblTempVendorCDR_20' ) start [2025-02-10 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446262', 'tblTempVendorCDR_20' ) end [2025-02-10 18:35:21] Production.INFO: ProcessCDR(1,14446262,1,1,2) [2025-02-10 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446262', 'tblTempUsageDetail_20' ) start [2025-02-10 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446262', 'tblTempUsageDetail_20' ) end [2025-02-10 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:35:26] Production.INFO: ==19212== Releasing lock... [2025-02-10 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:35:26] Production.INFO: 62 MB #Memory Used# [2025-02-10 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:36:04 [end_date_ymd] => 2025-02-10 18:36:04 [RateCDR] => 1 ) [2025-02-10 18: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-10 15:36:04' and `end` < '2025-02-10 18: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-10 18:36:18] Production.INFO: count ==4540 [2025-02-10 18:36:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:36:04 - End Time 2025-02-10 18:36:04 [2025-02-10 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446267', 'tblTempUsageDetail_20' ) start [2025-02-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446267', 'tblTempUsageDetail_20' ) end [2025-02-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446267', 'tblTempVendorCDR_20' ) start [2025-02-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446267', 'tblTempVendorCDR_20' ) end [2025-02-10 18:36:20] Production.INFO: ProcessCDR(1,14446267,1,1,2) [2025-02-10 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446267', 'tblTempUsageDetail_20' ) start [2025-02-10 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446267', 'tblTempUsageDetail_20' ) end [2025-02-10 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:36:23] Production.INFO: ==19287== Releasing lock... [2025-02-10 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:36:23] Production.INFO: 62 MB #Memory Used# [2025-02-10 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:37:05 [end_date_ymd] => 2025-02-10 18:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:37:05' and `end` < '2025-02-10 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-10 18:37:19] Production.INFO: count ==4534 [2025-02-10 18:37:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:37:05 - End Time 2025-02-10 18:37:05 [2025-02-10 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446272', 'tblTempUsageDetail_20' ) start [2025-02-10 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446272', 'tblTempUsageDetail_20' ) end [2025-02-10 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446272', 'tblTempVendorCDR_20' ) start [2025-02-10 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446272', 'tblTempVendorCDR_20' ) end [2025-02-10 18:37:21] Production.INFO: ProcessCDR(1,14446272,1,1,2) [2025-02-10 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446272', 'tblTempUsageDetail_20' ) start [2025-02-10 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446272', 'tblTempUsageDetail_20' ) end [2025-02-10 18:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:37:25] Production.INFO: ==19402== Releasing lock... [2025-02-10 18:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:37:25] Production.INFO: 62 MB #Memory Used# [2025-02-10 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:38:04 [end_date_ymd] => 2025-02-10 18:38:04 [RateCDR] => 1 ) [2025-02-10 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:38:04' and `end` < '2025-02-10 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:38:18] Production.INFO: count ==4523 [2025-02-10 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:38:04 - End Time 2025-02-10 18:38:04 [2025-02-10 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446277', 'tblTempUsageDetail_20' ) start [2025-02-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446277', 'tblTempUsageDetail_20' ) end [2025-02-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446277', 'tblTempVendorCDR_20' ) start [2025-02-10 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446277', 'tblTempVendorCDR_20' ) end [2025-02-10 18:38:20] Production.INFO: ProcessCDR(1,14446277,1,1,2) [2025-02-10 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446277', 'tblTempUsageDetail_20' ) start [2025-02-10 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446277', 'tblTempUsageDetail_20' ) end [2025-02-10 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:38:23] Production.INFO: ==19474== Releasing lock... [2025-02-10 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:38:23] Production.INFO: 61.75 MB #Memory Used# [2025-02-10 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:39:05 [end_date_ymd] => 2025-02-10 18:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:39:05' and `end` < '2025-02-10 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-10 18:39:18] Production.INFO: count ==4524 [2025-02-10 18:39:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:39:05 - End Time 2025-02-10 18:39:05 [2025-02-10 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446282', 'tblTempUsageDetail_20' ) start [2025-02-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446282', 'tblTempUsageDetail_20' ) end [2025-02-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446282', 'tblTempVendorCDR_20' ) start [2025-02-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446282', 'tblTempVendorCDR_20' ) end [2025-02-10 18:39:20] Production.INFO: ProcessCDR(1,14446282,1,1,2) [2025-02-10 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446282', 'tblTempUsageDetail_20' ) start [2025-02-10 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446282', 'tblTempUsageDetail_20' ) end [2025-02-10 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:39:25] Production.INFO: ==19547== Releasing lock... [2025-02-10 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:39:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-10 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:40:06 [end_date_ymd] => 2025-02-10 18:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 15:40:06' and `end` < '2025-02-10 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-10 18:40:20] Production.INFO: count ==4518 [2025-02-10 18:40:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:40:06 - End Time 2025-02-10 18:40:06 [2025-02-10 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446287', 'tblTempUsageDetail_20' ) start [2025-02-10 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446287', 'tblTempUsageDetail_20' ) end [2025-02-10 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446287', 'tblTempVendorCDR_20' ) start [2025-02-10 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446287', 'tblTempVendorCDR_20' ) end [2025-02-10 18:40:22] Production.INFO: ProcessCDR(1,14446287,1,1,2) [2025-02-10 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446287', 'tblTempUsageDetail_20' ) start [2025-02-10 18:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446287', 'tblTempUsageDetail_20' ) end [2025-02-10 18:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:40:27] Production.INFO: ==19619== Releasing lock... [2025-02-10 18:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:40:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-10 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:41:05 [end_date_ymd] => 2025-02-10 18:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:41:05' and `end` < '2025-02-10 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-10 18:41:19] Production.INFO: count ==4459 [2025-02-10 18:41:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:41:05 - End Time 2025-02-10 18:41:05 [2025-02-10 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446293', 'tblTempUsageDetail_20' ) start [2025-02-10 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446293', 'tblTempUsageDetail_20' ) end [2025-02-10 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446293', 'tblTempVendorCDR_20' ) start [2025-02-10 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446293', 'tblTempVendorCDR_20' ) end [2025-02-10 18:41:21] Production.INFO: ProcessCDR(1,14446293,1,1,2) [2025-02-10 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446293', 'tblTempUsageDetail_20' ) start [2025-02-10 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446293', 'tblTempUsageDetail_20' ) end [2025-02-10 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:41:24] Production.INFO: ==19694== Releasing lock... [2025-02-10 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:41:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-10 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:42:05 [end_date_ymd] => 2025-02-10 18:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:42:05' and `end` < '2025-02-10 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-10 18:42:19] Production.INFO: count ==4440 [2025-02-10 18:42:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:42:05 - End Time 2025-02-10 18:42:05 [2025-02-10 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446298', 'tblTempUsageDetail_20' ) start [2025-02-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446298', 'tblTempUsageDetail_20' ) end [2025-02-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446298', 'tblTempVendorCDR_20' ) start [2025-02-10 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446298', 'tblTempVendorCDR_20' ) end [2025-02-10 18:42:21] Production.INFO: ProcessCDR(1,14446298,1,1,2) [2025-02-10 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446298', 'tblTempUsageDetail_20' ) start [2025-02-10 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446298', 'tblTempUsageDetail_20' ) end [2025-02-10 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:42:26] Production.INFO: ==19765== Releasing lock... [2025-02-10 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:42:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-10 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:43:05 [end_date_ymd] => 2025-02-10 18:43:05 [RateCDR] => 1 ) [2025-02-10 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:43:05' and `end` < '2025-02-10 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:43:18] Production.INFO: count ==4429 [2025-02-10 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:43:05 - End Time 2025-02-10 18:43:05 [2025-02-10 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446303', 'tblTempUsageDetail_20' ) start [2025-02-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446303', 'tblTempUsageDetail_20' ) end [2025-02-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446303', 'tblTempVendorCDR_20' ) start [2025-02-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446303', 'tblTempVendorCDR_20' ) end [2025-02-10 18:43:20] Production.INFO: ProcessCDR(1,14446303,1,1,2) [2025-02-10 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446303', 'tblTempUsageDetail_20' ) start [2025-02-10 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446303', 'tblTempUsageDetail_20' ) end [2025-02-10 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:43:23] Production.INFO: ==19837== Releasing lock... [2025-02-10 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:43:23] Production.INFO: 61 MB #Memory Used# [2025-02-10 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:44:05 [end_date_ymd] => 2025-02-10 18:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:44:05' and `end` < '2025-02-10 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-10 18:44:19] Production.INFO: count ==4403 [2025-02-10 18:44:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:44:05 - End Time 2025-02-10 18:44:05 [2025-02-10 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446308', 'tblTempUsageDetail_20' ) start [2025-02-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446308', 'tblTempUsageDetail_20' ) end [2025-02-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446308', 'tblTempVendorCDR_20' ) start [2025-02-10 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446308', 'tblTempVendorCDR_20' ) end [2025-02-10 18:44:21] Production.INFO: ProcessCDR(1,14446308,1,1,2) [2025-02-10 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446308', 'tblTempUsageDetail_20' ) start [2025-02-10 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446308', 'tblTempUsageDetail_20' ) end [2025-02-10 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:44:24] Production.INFO: ==19911== Releasing lock... [2025-02-10 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:44:24] Production.INFO: 61 MB #Memory Used# [2025-02-10 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:45:05 [end_date_ymd] => 2025-02-10 18:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:45:05' and `end` < '2025-02-10 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-10 18:45:20] Production.INFO: count ==4397 [2025-02-10 18:45:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:45:05 - End Time 2025-02-10 18:45:05 [2025-02-10 18:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446313', 'tblTempUsageDetail_20' ) start [2025-02-10 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446313', 'tblTempUsageDetail_20' ) end [2025-02-10 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446313', 'tblTempVendorCDR_20' ) start [2025-02-10 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446313', 'tblTempVendorCDR_20' ) end [2025-02-10 18:45:22] Production.INFO: ProcessCDR(1,14446313,1,1,2) [2025-02-10 18:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446313', 'tblTempUsageDetail_20' ) start [2025-02-10 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446313', 'tblTempUsageDetail_20' ) end [2025-02-10 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:45:26] Production.INFO: ==19987== Releasing lock... [2025-02-10 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:45:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-10 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:46:05 [end_date_ymd] => 2025-02-10 18:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:46:05' and `end` < '2025-02-10 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-10 18:46:18] Production.INFO: count ==4383 [2025-02-10 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:46:05 - End Time 2025-02-10 18:46:05 [2025-02-10 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446318', 'tblTempUsageDetail_20' ) start [2025-02-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446318', 'tblTempUsageDetail_20' ) end [2025-02-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446318', 'tblTempVendorCDR_20' ) start [2025-02-10 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446318', 'tblTempVendorCDR_20' ) end [2025-02-10 18:46:20] Production.INFO: ProcessCDR(1,14446318,1,1,2) [2025-02-10 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446318', 'tblTempUsageDetail_20' ) start [2025-02-10 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446318', 'tblTempUsageDetail_20' ) end [2025-02-10 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:46:23] Production.INFO: ==20063== Releasing lock... [2025-02-10 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:46:23] Production.INFO: 60.75 MB #Memory Used# [2025-02-10 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:47:06 [end_date_ymd] => 2025-02-10 18:47:06 [RateCDR] => 1 ) [2025-02-10 18:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:47:06' and `end` < '2025-02-10 18:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:47:20] Production.INFO: count ==4365 [2025-02-10 18:47:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:47:06 - End Time 2025-02-10 18:47:06 [2025-02-10 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446323', 'tblTempUsageDetail_20' ) start [2025-02-10 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446323', 'tblTempUsageDetail_20' ) end [2025-02-10 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446323', 'tblTempVendorCDR_20' ) start [2025-02-10 18:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446323', 'tblTempVendorCDR_20' ) end [2025-02-10 18:47:22] Production.INFO: ProcessCDR(1,14446323,1,1,2) [2025-02-10 18:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446323', 'tblTempUsageDetail_20' ) start [2025-02-10 18:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446323', 'tblTempUsageDetail_20' ) end [2025-02-10 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:47:26] Production.INFO: ==20134== Releasing lock... [2025-02-10 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:47:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-10 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:48:05 [end_date_ymd] => 2025-02-10 18:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:48:05' and `end` < '2025-02-10 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-10 18:48:19] Production.INFO: count ==4342 [2025-02-10 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:48:05 - End Time 2025-02-10 18:48:05 [2025-02-10 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446328', 'tblTempUsageDetail_20' ) start [2025-02-10 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446328', 'tblTempUsageDetail_20' ) end [2025-02-10 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446328', 'tblTempVendorCDR_20' ) start [2025-02-10 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446328', 'tblTempVendorCDR_20' ) end [2025-02-10 18:48:21] Production.INFO: ProcessCDR(1,14446328,1,1,2) [2025-02-10 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446328', 'tblTempUsageDetail_20' ) start [2025-02-10 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446328', 'tblTempUsageDetail_20' ) end [2025-02-10 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:48:24] Production.INFO: ==20206== Releasing lock... [2025-02-10 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:48:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:49:06 [end_date_ymd] => 2025-02-10 18:49:06 [RateCDR] => 1 ) [2025-02-10 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-10 15:49:06' and `end` < '2025-02-10 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-10 18:49:19] Production.INFO: count ==4350 [2025-02-10 18:49:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:49:06 - End Time 2025-02-10 18:49:06 [2025-02-10 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446333', 'tblTempUsageDetail_20' ) start [2025-02-10 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446333', 'tblTempUsageDetail_20' ) end [2025-02-10 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446333', 'tblTempVendorCDR_20' ) start [2025-02-10 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446333', 'tblTempVendorCDR_20' ) end [2025-02-10 18:49:21] Production.INFO: ProcessCDR(1,14446333,1,1,2) [2025-02-10 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446333', 'tblTempUsageDetail_20' ) start [2025-02-10 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446333', 'tblTempUsageDetail_20' ) end [2025-02-10 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:49:26] Production.INFO: ==20308== Releasing lock... [2025-02-10 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:49:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:50:06 [end_date_ymd] => 2025-02-10 18:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 15:50:06' and `end` < '2025-02-10 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-10 18:50:19] Production.INFO: count ==4343 [2025-02-10 18:50:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:50:06 - End Time 2025-02-10 18:50:06 [2025-02-10 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446339', 'tblTempUsageDetail_20' ) start [2025-02-10 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446339', 'tblTempUsageDetail_20' ) end [2025-02-10 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446339', 'tblTempVendorCDR_20' ) start [2025-02-10 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446339', 'tblTempVendorCDR_20' ) end [2025-02-10 18:50:21] Production.INFO: ProcessCDR(1,14446339,1,1,2) [2025-02-10 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446339', 'tblTempUsageDetail_20' ) start [2025-02-10 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446339', 'tblTempUsageDetail_20' ) end [2025-02-10 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:50:25] Production.INFO: ==20384== Releasing lock... [2025-02-10 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:50:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-10 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:51:05 [end_date_ymd] => 2025-02-10 18:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:51:05' and `end` < '2025-02-10 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-10 18:51:21] Production.INFO: count ==4285 [2025-02-10 18:51:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:51:05 - End Time 2025-02-10 18:51:05 [2025-02-10 18:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446344', 'tblTempUsageDetail_20' ) start [2025-02-10 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446344', 'tblTempUsageDetail_20' ) end [2025-02-10 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446344', 'tblTempVendorCDR_20' ) start [2025-02-10 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446344', 'tblTempVendorCDR_20' ) end [2025-02-10 18:51:22] Production.INFO: ProcessCDR(1,14446344,1,1,2) [2025-02-10 18:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446344', 'tblTempUsageDetail_20' ) start [2025-02-10 18:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446344', 'tblTempUsageDetail_20' ) end [2025-02-10 18:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:51:27] Production.INFO: ==20491== Releasing lock... [2025-02-10 18:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:51:27] Production.INFO: 60 MB #Memory Used# [2025-02-10 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:52:05 [end_date_ymd] => 2025-02-10 18:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:52:05' and `end` < '2025-02-10 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-10 18:52:19] Production.INFO: count ==4289 [2025-02-10 18:52:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:52:05 - End Time 2025-02-10 18:52:05 [2025-02-10 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446349', 'tblTempUsageDetail_20' ) start [2025-02-10 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446349', 'tblTempUsageDetail_20' ) end [2025-02-10 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446349', 'tblTempVendorCDR_20' ) start [2025-02-10 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446349', 'tblTempVendorCDR_20' ) end [2025-02-10 18:52:21] Production.INFO: ProcessCDR(1,14446349,1,1,2) [2025-02-10 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446349', 'tblTempUsageDetail_20' ) start [2025-02-10 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446349', 'tblTempUsageDetail_20' ) end [2025-02-10 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:52:24] Production.INFO: ==20603== Releasing lock... [2025-02-10 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:52:24] Production.INFO: 60 MB #Memory Used# [2025-02-10 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:53:04 [end_date_ymd] => 2025-02-10 18:53:04 [RateCDR] => 1 ) [2025-02-10 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:53:04' and `end` < '2025-02-10 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:53:20] Production.INFO: count ==4245 [2025-02-10 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:53:04 - End Time 2025-02-10 18:53:04 [2025-02-10 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446354', 'tblTempUsageDetail_20' ) start [2025-02-10 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446354', 'tblTempUsageDetail_20' ) end [2025-02-10 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446354', 'tblTempVendorCDR_20' ) start [2025-02-10 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446354', 'tblTempVendorCDR_20' ) end [2025-02-10 18:53:21] Production.INFO: ProcessCDR(1,14446354,1,1,2) [2025-02-10 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446354', 'tblTempUsageDetail_20' ) start [2025-02-10 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446354', 'tblTempUsageDetail_20' ) end [2025-02-10 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:53:25] Production.INFO: ==20709== Releasing lock... [2025-02-10 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:53:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-10 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:54:05 [end_date_ymd] => 2025-02-10 18:54:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:54:05' and `end` < '2025-02-10 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-10 18:54:19] Production.INFO: count ==4234 [2025-02-10 18:54:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:54:05 - End Time 2025-02-10 18:54:05 [2025-02-10 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446359', 'tblTempUsageDetail_20' ) start [2025-02-10 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446359', 'tblTempUsageDetail_20' ) end [2025-02-10 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446359', 'tblTempVendorCDR_20' ) start [2025-02-10 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446359', 'tblTempVendorCDR_20' ) end [2025-02-10 18:54:21] Production.INFO: ProcessCDR(1,14446359,1,1,2) [2025-02-10 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446359', 'tblTempUsageDetail_20' ) start [2025-02-10 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446359', 'tblTempUsageDetail_20' ) end [2025-02-10 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:54:25] Production.INFO: ==20786== Releasing lock... [2025-02-10 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:54:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-10 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:55:05 [end_date_ymd] => 2025-02-10 18:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:55:05' and `end` < '2025-02-10 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-10 18:55:20] Production.INFO: count ==4179 [2025-02-10 18:55:22] Production.ERROR: pbx CDR StartTime 2025-02-10 15:55:05 - End Time 2025-02-10 18:55:05 [2025-02-10 18:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446364', 'tblTempUsageDetail_20' ) start [2025-02-10 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446364', 'tblTempUsageDetail_20' ) end [2025-02-10 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446364', 'tblTempVendorCDR_20' ) start [2025-02-10 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446364', 'tblTempVendorCDR_20' ) end [2025-02-10 18:55:22] Production.INFO: ProcessCDR(1,14446364,1,1,2) [2025-02-10 18:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446364', 'tblTempUsageDetail_20' ) start [2025-02-10 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446364', 'tblTempUsageDetail_20' ) end [2025-02-10 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:55:25] Production.INFO: ==20881== Releasing lock... [2025-02-10 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:55:25] Production.INFO: 59.25 MB #Memory Used# [2025-02-10 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:56:05 [end_date_ymd] => 2025-02-10 18:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:56:05' and `end` < '2025-02-10 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-10 18:56:19] Production.INFO: count ==4157 [2025-02-10 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:56:05 - End Time 2025-02-10 18:56:05 [2025-02-10 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446369', 'tblTempUsageDetail_20' ) start [2025-02-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446369', 'tblTempUsageDetail_20' ) end [2025-02-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446369', 'tblTempVendorCDR_20' ) start [2025-02-10 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446369', 'tblTempVendorCDR_20' ) end [2025-02-10 18:56:21] Production.INFO: ProcessCDR(1,14446369,1,1,2) [2025-02-10 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446369', 'tblTempUsageDetail_20' ) start [2025-02-10 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446369', 'tblTempUsageDetail_20' ) end [2025-02-10 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:56:25] Production.INFO: ==20973== Releasing lock... [2025-02-10 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:56:25] Production.INFO: 59 MB #Memory Used# [2025-02-10 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:57:05 [end_date_ymd] => 2025-02-10 18:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:57:05' and `end` < '2025-02-10 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-10 18:57:19] Production.INFO: count ==4142 [2025-02-10 18:57:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:57:05 - End Time 2025-02-10 18:57:05 [2025-02-10 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446374', 'tblTempUsageDetail_20' ) start [2025-02-10 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446374', 'tblTempUsageDetail_20' ) end [2025-02-10 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446374', 'tblTempVendorCDR_20' ) start [2025-02-10 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446374', 'tblTempVendorCDR_20' ) end [2025-02-10 18:57:21] Production.INFO: ProcessCDR(1,14446374,1,1,2) [2025-02-10 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446374', 'tblTempUsageDetail_20' ) start [2025-02-10 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446374', 'tblTempUsageDetail_20' ) end [2025-02-10 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:57:24] Production.INFO: ==21073== Releasing lock... [2025-02-10 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:57:24] Production.INFO: 59 MB #Memory Used# [2025-02-10 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:58:05 [end_date_ymd] => 2025-02-10 18:58:05 [RateCDR] => 1 ) [2025-02-10 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 15:58:05' and `end` < '2025-02-10 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 18:58:19] Production.INFO: count ==4130 [2025-02-10 18:58:20] Production.ERROR: pbx CDR StartTime 2025-02-10 15:58:05 - End Time 2025-02-10 18:58:05 [2025-02-10 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446379', 'tblTempUsageDetail_20' ) start [2025-02-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446379', 'tblTempUsageDetail_20' ) end [2025-02-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446379', 'tblTempVendorCDR_20' ) start [2025-02-10 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446379', 'tblTempVendorCDR_20' ) end [2025-02-10 18:58:21] Production.INFO: ProcessCDR(1,14446379,1,1,2) [2025-02-10 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446379', 'tblTempUsageDetail_20' ) start [2025-02-10 18:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446379', 'tblTempUsageDetail_20' ) end [2025-02-10 18:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:58:26] Production.INFO: ==21169== Releasing lock... [2025-02-10 18:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:58:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-10 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 15:59:05 [end_date_ymd] => 2025-02-10 18:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 15:59:05' and `end` < '2025-02-10 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-10 18:59:19] Production.INFO: count ==4114 [2025-02-10 18:59:21] Production.ERROR: pbx CDR StartTime 2025-02-10 15:59:05 - End Time 2025-02-10 18:59:05 [2025-02-10 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446384', 'tblTempUsageDetail_20' ) start [2025-02-10 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446384', 'tblTempUsageDetail_20' ) end [2025-02-10 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446384', 'tblTempVendorCDR_20' ) start [2025-02-10 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446384', 'tblTempVendorCDR_20' ) end [2025-02-10 18:59:21] Production.INFO: ProcessCDR(1,14446384,1,1,2) [2025-02-10 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446384', 'tblTempUsageDetail_20' ) start [2025-02-10 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446384', 'tblTempUsageDetail_20' ) end [2025-02-10 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 18:59:26] Production.INFO: ==21298== Releasing lock... [2025-02-10 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 18:59:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-10 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:00:06 [end_date_ymd] => 2025-02-10 19:00:06 [RateCDR] => 1 ) [2025-02-10 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:00:06' and `end` < '2025-02-10 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:00:20] Production.INFO: count ==4098 [2025-02-10 19:00:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:00:06 - End Time 2025-02-10 19:00:06 [2025-02-10 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446390', 'tblTempUsageDetail_20' ) start [2025-02-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446390', 'tblTempUsageDetail_20' ) end [2025-02-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446390', 'tblTempVendorCDR_20' ) start [2025-02-10 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446390', 'tblTempVendorCDR_20' ) end [2025-02-10 19:00:21] Production.INFO: ProcessCDR(1,14446390,1,1,2) [2025-02-10 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446390', 'tblTempUsageDetail_20' ) start [2025-02-10 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446390', 'tblTempUsageDetail_20' ) end [2025-02-10 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:00:25] Production.INFO: ==21428== Releasing lock... [2025-02-10 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:00:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-10 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:01:05 [end_date_ymd] => 2025-02-10 19:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:01:05' and `end` < '2025-02-10 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-10 19:01:19] Production.INFO: count ==4009 [2025-02-10 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:01:05 - End Time 2025-02-10 19:01:05 [2025-02-10 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446395', 'tblTempUsageDetail_20' ) start [2025-02-10 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446395', 'tblTempUsageDetail_20' ) end [2025-02-10 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446395', 'tblTempVendorCDR_20' ) start [2025-02-10 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446395', 'tblTempVendorCDR_20' ) end [2025-02-10 19:01:21] Production.INFO: ProcessCDR(1,14446395,1,1,2) [2025-02-10 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446395', 'tblTempUsageDetail_20' ) start [2025-02-10 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446395', 'tblTempUsageDetail_20' ) end [2025-02-10 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:01:24] Production.INFO: ==21622== Releasing lock... [2025-02-10 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:01:24] Production.INFO: 58 MB #Memory Used# [2025-02-10 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:02:06 [end_date_ymd] => 2025-02-10 19:02:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:02:06' and `end` < '2025-02-10 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-10 19:02:20] Production.INFO: count ==4004 [2025-02-10 19:02:22] Production.ERROR: pbx CDR StartTime 2025-02-10 16:02:06 - End Time 2025-02-10 19:02:06 [2025-02-10 19:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446400', 'tblTempUsageDetail_20' ) start [2025-02-10 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446400', 'tblTempUsageDetail_20' ) end [2025-02-10 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446400', 'tblTempVendorCDR_20' ) start [2025-02-10 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446400', 'tblTempVendorCDR_20' ) end [2025-02-10 19:02:22] Production.INFO: ProcessCDR(1,14446400,1,1,2) [2025-02-10 19:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446400', 'tblTempUsageDetail_20' ) start [2025-02-10 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446400', 'tblTempUsageDetail_20' ) end [2025-02-10 19:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:02:26] Production.INFO: ==21720== Releasing lock... [2025-02-10 19:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:02:26] Production.INFO: 58 MB #Memory Used# [2025-02-10 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:03:05 [end_date_ymd] => 2025-02-10 19:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:03:05' and `end` < '2025-02-10 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-10 19:03:19] Production.INFO: count ==4001 [2025-02-10 19:03:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:03:05 - End Time 2025-02-10 19:03:05 [2025-02-10 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446405', 'tblTempUsageDetail_20' ) start [2025-02-10 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446405', 'tblTempUsageDetail_20' ) end [2025-02-10 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446405', 'tblTempVendorCDR_20' ) start [2025-02-10 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446405', 'tblTempVendorCDR_20' ) end [2025-02-10 19:03:21] Production.INFO: ProcessCDR(1,14446405,1,1,2) [2025-02-10 19:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446405', 'tblTempUsageDetail_20' ) start [2025-02-10 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446405', 'tblTempUsageDetail_20' ) end [2025-02-10 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:03:25] Production.INFO: ==21799== Releasing lock... [2025-02-10 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:03:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-10 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:04:06 [end_date_ymd] => 2025-02-10 19:04:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:04:06' and `end` < '2025-02-10 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-10 19:04:19] Production.INFO: count ==3986 [2025-02-10 19:04:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:04:06 - End Time 2025-02-10 19:04:06 [2025-02-10 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446410', 'tblTempUsageDetail_20' ) start [2025-02-10 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446410', 'tblTempUsageDetail_20' ) end [2025-02-10 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446410', 'tblTempVendorCDR_20' ) start [2025-02-10 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446410', 'tblTempVendorCDR_20' ) end [2025-02-10 19:04:21] Production.INFO: ProcessCDR(1,14446410,1,1,2) [2025-02-10 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446410', 'tblTempUsageDetail_20' ) start [2025-02-10 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446410', 'tblTempUsageDetail_20' ) end [2025-02-10 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:04:26] Production.INFO: ==21902== Releasing lock... [2025-02-10 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:04:26] Production.INFO: 58 MB #Memory Used# [2025-02-10 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:05:05 [end_date_ymd] => 2025-02-10 19:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:05:05' and `end` < '2025-02-10 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-10 19:05:18] Production.INFO: count ==3980 [2025-02-10 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:05:05 - End Time 2025-02-10 19:05:05 [2025-02-10 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446415', 'tblTempUsageDetail_20' ) start [2025-02-10 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446415', 'tblTempUsageDetail_20' ) end [2025-02-10 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446415', 'tblTempVendorCDR_20' ) start [2025-02-10 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446415', 'tblTempVendorCDR_20' ) end [2025-02-10 19:05:20] Production.INFO: ProcessCDR(1,14446415,1,1,2) [2025-02-10 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446415', 'tblTempUsageDetail_20' ) start [2025-02-10 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446415', 'tblTempUsageDetail_20' ) end [2025-02-10 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:05:23] Production.INFO: ==22067== Releasing lock... [2025-02-10 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:05:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-10 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:06:06 [end_date_ymd] => 2025-02-10 19:06:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:06:06' and `end` < '2025-02-10 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-10 19:06:20] Production.INFO: count ==3960 [2025-02-10 19:06:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:06:06 - End Time 2025-02-10 19:06:06 [2025-02-10 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446420', 'tblTempUsageDetail_20' ) start [2025-02-10 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446420', 'tblTempUsageDetail_20' ) end [2025-02-10 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446420', 'tblTempVendorCDR_20' ) start [2025-02-10 19:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446420', 'tblTempVendorCDR_20' ) end [2025-02-10 19:06:22] Production.INFO: ProcessCDR(1,14446420,1,1,2) [2025-02-10 19:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446420', 'tblTempUsageDetail_20' ) start [2025-02-10 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446420', 'tblTempUsageDetail_20' ) end [2025-02-10 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:06:25] Production.INFO: ==22159== Releasing lock... [2025-02-10 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:06:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-10 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:07:05 [end_date_ymd] => 2025-02-10 19:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:07:05' and `end` < '2025-02-10 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-10 19:07:18] Production.INFO: count ==3952 [2025-02-10 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:07:05 - End Time 2025-02-10 19:07:05 [2025-02-10 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446425', 'tblTempUsageDetail_20' ) start [2025-02-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446425', 'tblTempUsageDetail_20' ) end [2025-02-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446425', 'tblTempVendorCDR_20' ) start [2025-02-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446425', 'tblTempVendorCDR_20' ) end [2025-02-10 19:07:20] Production.INFO: ProcessCDR(1,14446425,1,1,2) [2025-02-10 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446425', 'tblTempUsageDetail_20' ) start [2025-02-10 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446425', 'tblTempUsageDetail_20' ) end [2025-02-10 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:07:23] Production.INFO: ==22234== Releasing lock... [2025-02-10 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:07:23] Production.INFO: 57.75 MB #Memory Used# [2025-02-10 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:08:06 [end_date_ymd] => 2025-02-10 19:08:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:08:06' and `end` < '2025-02-10 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-10 19:08:19] Production.INFO: count ==3926 [2025-02-10 19:08:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:08:06 - End Time 2025-02-10 19:08:06 [2025-02-10 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446430', 'tblTempUsageDetail_20' ) start [2025-02-10 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446430', 'tblTempUsageDetail_20' ) end [2025-02-10 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446430', 'tblTempVendorCDR_20' ) start [2025-02-10 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446430', 'tblTempVendorCDR_20' ) end [2025-02-10 19:08:21] Production.INFO: ProcessCDR(1,14446430,1,1,2) [2025-02-10 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446430', 'tblTempUsageDetail_20' ) start [2025-02-10 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446430', 'tblTempUsageDetail_20' ) end [2025-02-10 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:08:26] Production.INFO: ==22428== Releasing lock... [2025-02-10 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:08:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-10 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:09:05 [end_date_ymd] => 2025-02-10 19:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:09:05' and `end` < '2025-02-10 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-10 19:09:27] Production.INFO: count ==3903 [2025-02-10 19:09:28] Production.ERROR: pbx CDR StartTime 2025-02-10 16:09:05 - End Time 2025-02-10 19:09:05 [2025-02-10 19:09:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:09:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446435', 'tblTempUsageDetail_20' ) start [2025-02-10 19:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446435', 'tblTempUsageDetail_20' ) end [2025-02-10 19:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446435', 'tblTempVendorCDR_20' ) start [2025-02-10 19:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446435', 'tblTempVendorCDR_20' ) end [2025-02-10 19:09:29] Production.INFO: ProcessCDR(1,14446435,1,1,2) [2025-02-10 19:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446435', 'tblTempUsageDetail_20' ) start [2025-02-10 19:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446435', 'tblTempUsageDetail_20' ) end [2025-02-10 19:09:33] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:09:33] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:09:33] Production.INFO: ==22507== Releasing lock... [2025-02-10 19:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:09:33] Production.INFO: 57 MB #Memory Used# [2025-02-10 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:10:06 [end_date_ymd] => 2025-02-10 19:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:10:06' and `end` < '2025-02-10 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-10 19:10:24] Production.INFO: count ==3888 [2025-02-10 19:10:25] Production.ERROR: pbx CDR StartTime 2025-02-10 16:10:06 - End Time 2025-02-10 19:10:06 [2025-02-10 19:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446441', 'tblTempUsageDetail_20' ) start [2025-02-10 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446441', 'tblTempUsageDetail_20' ) end [2025-02-10 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446441', 'tblTempVendorCDR_20' ) start [2025-02-10 19:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446441', 'tblTempVendorCDR_20' ) end [2025-02-10 19:10:25] Production.INFO: ProcessCDR(1,14446441,1,1,2) [2025-02-10 19:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446441', 'tblTempUsageDetail_20' ) start [2025-02-10 19:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446441', 'tblTempUsageDetail_20' ) end [2025-02-10 19:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:10:28] Production.INFO: ==22588== Releasing lock... [2025-02-10 19:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:10:28] Production.INFO: 57 MB #Memory Used# [2025-02-10 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:11:05 [end_date_ymd] => 2025-02-10 19:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:11:05' and `end` < '2025-02-10 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-10 19:11:19] Production.INFO: count ==3794 [2025-02-10 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:11:05 - End Time 2025-02-10 19:11:05 [2025-02-10 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446446', 'tblTempUsageDetail_20' ) start [2025-02-10 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446446', 'tblTempUsageDetail_20' ) end [2025-02-10 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446446', 'tblTempVendorCDR_20' ) start [2025-02-10 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446446', 'tblTempVendorCDR_20' ) end [2025-02-10 19:11:21] Production.INFO: ProcessCDR(1,14446446,1,1,2) [2025-02-10 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446446', 'tblTempUsageDetail_20' ) start [2025-02-10 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446446', 'tblTempUsageDetail_20' ) end [2025-02-10 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:11:25] Production.INFO: ==22662== Releasing lock... [2025-02-10 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:11:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-10 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:12:05 [end_date_ymd] => 2025-02-10 19:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:12:05' and `end` < '2025-02-10 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-10 19:12:19] Production.INFO: count ==3762 [2025-02-10 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:12:05 - End Time 2025-02-10 19:12:05 [2025-02-10 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446451', 'tblTempUsageDetail_20' ) start [2025-02-10 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446451', 'tblTempUsageDetail_20' ) end [2025-02-10 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446451', 'tblTempVendorCDR_20' ) start [2025-02-10 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446451', 'tblTempVendorCDR_20' ) end [2025-02-10 19:12:20] Production.INFO: ProcessCDR(1,14446451,1,1,2) [2025-02-10 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446451', 'tblTempUsageDetail_20' ) start [2025-02-10 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446451', 'tblTempUsageDetail_20' ) end [2025-02-10 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:12:23] Production.INFO: ==22823== Releasing lock... [2025-02-10 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:12:23] Production.INFO: 56 MB #Memory Used# [2025-02-10 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:13:05 [end_date_ymd] => 2025-02-10 19:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:13:05' and `end` < '2025-02-10 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-10 19:13:18] Production.INFO: count ==3746 [2025-02-10 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:13:05 - End Time 2025-02-10 19:13:05 [2025-02-10 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446456', 'tblTempUsageDetail_20' ) start [2025-02-10 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446456', 'tblTempUsageDetail_20' ) end [2025-02-10 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446456', 'tblTempVendorCDR_20' ) start [2025-02-10 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446456', 'tblTempVendorCDR_20' ) end [2025-02-10 19:13:20] Production.INFO: ProcessCDR(1,14446456,1,1,2) [2025-02-10 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446456', 'tblTempUsageDetail_20' ) start [2025-02-10 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446456', 'tblTempUsageDetail_20' ) end [2025-02-10 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:13:23] Production.INFO: ==22897== Releasing lock... [2025-02-10 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:13:23] Production.INFO: 56 MB #Memory Used# [2025-02-10 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:14:05 [end_date_ymd] => 2025-02-10 19:14:05 [RateCDR] => 1 ) [2025-02-10 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:14:05' and `end` < '2025-02-10 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:14:19] Production.INFO: count ==3733 [2025-02-10 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:14:05 - End Time 2025-02-10 19:14:05 [2025-02-10 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446461', 'tblTempUsageDetail_20' ) start [2025-02-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446461', 'tblTempUsageDetail_20' ) end [2025-02-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446461', 'tblTempVendorCDR_20' ) start [2025-02-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446461', 'tblTempVendorCDR_20' ) end [2025-02-10 19:14:20] Production.INFO: ProcessCDR(1,14446461,1,1,2) [2025-02-10 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446461', 'tblTempUsageDetail_20' ) start [2025-02-10 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446461', 'tblTempUsageDetail_20' ) end [2025-02-10 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:14:24] Production.INFO: ==22975== Releasing lock... [2025-02-10 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:14:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-10 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:15:05 [end_date_ymd] => 2025-02-10 19:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:15:05' and `end` < '2025-02-10 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-10 19:15:18] Production.INFO: count ==3724 [2025-02-10 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:15:05 - End Time 2025-02-10 19:15:05 [2025-02-10 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446466', 'tblTempUsageDetail_20' ) start [2025-02-10 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446466', 'tblTempUsageDetail_20' ) end [2025-02-10 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446466', 'tblTempVendorCDR_20' ) start [2025-02-10 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446466', 'tblTempVendorCDR_20' ) end [2025-02-10 19:15:20] Production.INFO: ProcessCDR(1,14446466,1,1,2) [2025-02-10 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446466', 'tblTempUsageDetail_20' ) start [2025-02-10 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446466', 'tblTempUsageDetail_20' ) end [2025-02-10 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:15:24] Production.INFO: ==23125== Releasing lock... [2025-02-10 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:15:24] Production.INFO: 56 MB #Memory Used# [2025-02-10 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:16:05 [end_date_ymd] => 2025-02-10 19:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:16:05' and `end` < '2025-02-10 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-10 19:16:18] Production.INFO: count ==3711 [2025-02-10 19:16:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:16:05 - End Time 2025-02-10 19:16:05 [2025-02-10 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446471', 'tblTempUsageDetail_20' ) start [2025-02-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446471', 'tblTempUsageDetail_20' ) end [2025-02-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446471', 'tblTempVendorCDR_20' ) start [2025-02-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446471', 'tblTempVendorCDR_20' ) end [2025-02-10 19:16:20] Production.INFO: ProcessCDR(1,14446471,1,1,2) [2025-02-10 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446471', 'tblTempUsageDetail_20' ) start [2025-02-10 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446471', 'tblTempUsageDetail_20' ) end [2025-02-10 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:16:25] Production.INFO: ==23203== Releasing lock... [2025-02-10 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:16:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-10 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:17:04 [end_date_ymd] => 2025-02-10 19:17:04 [RateCDR] => 1 ) [2025-02-10 19: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-10 16:17:04' and `end` < '2025-02-10 19: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-10 19:17:19] Production.INFO: count ==3679 [2025-02-10 19:17:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:17:04 - End Time 2025-02-10 19:17:04 [2025-02-10 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446476', 'tblTempUsageDetail_20' ) start [2025-02-10 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446476', 'tblTempUsageDetail_20' ) end [2025-02-10 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446476', 'tblTempVendorCDR_20' ) start [2025-02-10 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446476', 'tblTempVendorCDR_20' ) end [2025-02-10 19:17:21] Production.INFO: ProcessCDR(1,14446476,1,1,2) [2025-02-10 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446476', 'tblTempUsageDetail_20' ) start [2025-02-10 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446476', 'tblTempUsageDetail_20' ) end [2025-02-10 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:17:24] Production.INFO: ==23283== Releasing lock... [2025-02-10 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:17:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-10 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:18:05 [end_date_ymd] => 2025-02-10 19:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:18:05' and `end` < '2025-02-10 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-10 19:18:18] Production.INFO: count ==3658 [2025-02-10 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:18:05 - End Time 2025-02-10 19:18:05 [2025-02-10 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446481', 'tblTempUsageDetail_20' ) start [2025-02-10 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446481', 'tblTempUsageDetail_20' ) end [2025-02-10 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446481', 'tblTempVendorCDR_20' ) start [2025-02-10 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446481', 'tblTempVendorCDR_20' ) end [2025-02-10 19:18:20] Production.INFO: ProcessCDR(1,14446481,1,1,2) [2025-02-10 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446481', 'tblTempUsageDetail_20' ) start [2025-02-10 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446481', 'tblTempUsageDetail_20' ) end [2025-02-10 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:18:23] Production.INFO: ==23357== Releasing lock... [2025-02-10 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:18:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-10 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:19:06 [end_date_ymd] => 2025-02-10 19:19:06 [RateCDR] => 1 ) [2025-02-10 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:19:06' and `end` < '2025-02-10 19:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:19:19] Production.INFO: count ==3624 [2025-02-10 19:19:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:19:06 - End Time 2025-02-10 19:19:06 [2025-02-10 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446486', 'tblTempUsageDetail_20' ) start [2025-02-10 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446486', 'tblTempUsageDetail_20' ) end [2025-02-10 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446486', 'tblTempVendorCDR_20' ) start [2025-02-10 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446486', 'tblTempVendorCDR_20' ) end [2025-02-10 19:19:21] Production.INFO: ProcessCDR(1,14446486,1,1,2) [2025-02-10 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446486', 'tblTempUsageDetail_20' ) start [2025-02-10 19:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446486', 'tblTempUsageDetail_20' ) end [2025-02-10 19:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:19:26] Production.INFO: ==23435== Releasing lock... [2025-02-10 19:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:19:26] Production.INFO: 56 MB #Memory Used# [2025-02-10 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:20:05 [end_date_ymd] => 2025-02-10 19:20:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:20:05' and `end` < '2025-02-10 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-10 19:20:19] Production.INFO: count ==3590 [2025-02-10 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:20:05 - End Time 2025-02-10 19:20:05 [2025-02-10 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446491', 'tblTempUsageDetail_20' ) start [2025-02-10 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446491', 'tblTempUsageDetail_20' ) end [2025-02-10 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446491', 'tblTempVendorCDR_20' ) start [2025-02-10 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446491', 'tblTempVendorCDR_20' ) end [2025-02-10 19:20:20] Production.INFO: ProcessCDR(1,14446491,1,1,2) [2025-02-10 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446491', 'tblTempUsageDetail_20' ) start [2025-02-10 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446491', 'tblTempUsageDetail_20' ) end [2025-02-10 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:20:23] Production.INFO: ==23510== Releasing lock... [2025-02-10 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:20:23] Production.INFO: 55 MB #Memory Used# [2025-02-10 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:21:05 [end_date_ymd] => 2025-02-10 19:21:05 [RateCDR] => 1 ) [2025-02-10 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:21:05' and `end` < '2025-02-10 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:21:19] Production.INFO: count ==3459 [2025-02-10 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:21:05 - End Time 2025-02-10 19:21:05 [2025-02-10 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446497', 'tblTempUsageDetail_20' ) start [2025-02-10 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446497', 'tblTempUsageDetail_20' ) end [2025-02-10 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446497', 'tblTempVendorCDR_20' ) start [2025-02-10 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446497', 'tblTempVendorCDR_20' ) end [2025-02-10 19:21:20] Production.INFO: ProcessCDR(1,14446497,1,1,2) [2025-02-10 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446497', 'tblTempUsageDetail_20' ) start [2025-02-10 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446497', 'tblTempUsageDetail_20' ) end [2025-02-10 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:21:25] Production.INFO: ==23589== Releasing lock... [2025-02-10 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:21:25] Production.INFO: 54 MB #Memory Used# [2025-02-10 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:22:05 [end_date_ymd] => 2025-02-10 19:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:22:05' and `end` < '2025-02-10 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-10 19:22:19] Production.INFO: count ==3418 [2025-02-10 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:22:05 - End Time 2025-02-10 19:22:05 [2025-02-10 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446502', 'tblTempUsageDetail_20' ) start [2025-02-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446502', 'tblTempUsageDetail_20' ) end [2025-02-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446502', 'tblTempVendorCDR_20' ) start [2025-02-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446502', 'tblTempVendorCDR_20' ) end [2025-02-10 19:22:20] Production.INFO: ProcessCDR(1,14446502,1,1,2) [2025-02-10 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446502', 'tblTempUsageDetail_20' ) start [2025-02-10 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446502', 'tblTempUsageDetail_20' ) end [2025-02-10 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:22:24] Production.INFO: ==23665== Releasing lock... [2025-02-10 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:22:24] Production.INFO: 54.25 MB #Memory Used# [2025-02-10 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:23:06 [end_date_ymd] => 2025-02-10 19:23:06 [RateCDR] => 1 ) [2025-02-10 19:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:23:06' and `end` < '2025-02-10 19:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:23:19] Production.INFO: count ==3430 [2025-02-10 19:23:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:23:06 - End Time 2025-02-10 19:23:06 [2025-02-10 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446507', 'tblTempUsageDetail_20' ) start [2025-02-10 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446507', 'tblTempUsageDetail_20' ) end [2025-02-10 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446507', 'tblTempVendorCDR_20' ) start [2025-02-10 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446507', 'tblTempVendorCDR_20' ) end [2025-02-10 19:23:21] Production.INFO: ProcessCDR(1,14446507,1,1,2) [2025-02-10 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446507', 'tblTempUsageDetail_20' ) start [2025-02-10 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446507', 'tblTempUsageDetail_20' ) end [2025-02-10 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:23:24] Production.INFO: ==23777== Releasing lock... [2025-02-10 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:23:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-10 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:24:05 [end_date_ymd] => 2025-02-10 19:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:24:05' and `end` < '2025-02-10 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-10 19:24:19] Production.INFO: count ==3424 [2025-02-10 19:24:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:24:05 - End Time 2025-02-10 19:24:05 [2025-02-10 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446512', 'tblTempUsageDetail_20' ) start [2025-02-10 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446512', 'tblTempUsageDetail_20' ) end [2025-02-10 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446512', 'tblTempVendorCDR_20' ) start [2025-02-10 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446512', 'tblTempVendorCDR_20' ) end [2025-02-10 19:24:21] Production.INFO: ProcessCDR(1,14446512,1,1,2) [2025-02-10 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446512', 'tblTempUsageDetail_20' ) start [2025-02-10 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446512', 'tblTempUsageDetail_20' ) end [2025-02-10 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:24:24] Production.INFO: ==23852== Releasing lock... [2025-02-10 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:24:24] Production.INFO: 53.5 MB #Memory Used# [2025-02-10 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:25:05 [end_date_ymd] => 2025-02-10 19:25:05 [RateCDR] => 1 ) [2025-02-10 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:25:05' and `end` < '2025-02-10 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-10 19:25:18] Production.INFO: count ==3396 [2025-02-10 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:25:05 - End Time 2025-02-10 19:25:05 [2025-02-10 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446517', 'tblTempUsageDetail_20' ) start [2025-02-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446517', 'tblTempUsageDetail_20' ) end [2025-02-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446517', 'tblTempVendorCDR_20' ) start [2025-02-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446517', 'tblTempVendorCDR_20' ) end [2025-02-10 19:25:20] Production.INFO: ProcessCDR(1,14446517,1,1,2) [2025-02-10 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446517', 'tblTempUsageDetail_20' ) start [2025-02-10 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446517', 'tblTempUsageDetail_20' ) end [2025-02-10 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:25:25] Production.INFO: ==23931== Releasing lock... [2025-02-10 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:25:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-10 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:26:05 [end_date_ymd] => 2025-02-10 19:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:26:05' and `end` < '2025-02-10 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-10 19:26:18] Production.INFO: count ==3362 [2025-02-10 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:26:05 - End Time 2025-02-10 19:26:05 [2025-02-10 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446522', 'tblTempUsageDetail_20' ) start [2025-02-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446522', 'tblTempUsageDetail_20' ) end [2025-02-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446522', 'tblTempVendorCDR_20' ) start [2025-02-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446522', 'tblTempVendorCDR_20' ) end [2025-02-10 19:26:19] Production.INFO: ProcessCDR(1,14446522,1,1,2) [2025-02-10 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446522', 'tblTempUsageDetail_20' ) start [2025-02-10 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446522', 'tblTempUsageDetail_20' ) end [2025-02-10 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:26:23] Production.INFO: ==24010== Releasing lock... [2025-02-10 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:26:23] Production.INFO: 53 MB #Memory Used# [2025-02-10 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:27:05 [end_date_ymd] => 2025-02-10 19:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:27:05' and `end` < '2025-02-10 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-10 19:27:19] Production.INFO: count ==3319 [2025-02-10 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:27:05 - End Time 2025-02-10 19:27:05 [2025-02-10 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446527', 'tblTempUsageDetail_20' ) start [2025-02-10 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446527', 'tblTempUsageDetail_20' ) end [2025-02-10 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446527', 'tblTempVendorCDR_20' ) start [2025-02-10 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446527', 'tblTempVendorCDR_20' ) end [2025-02-10 19:27:20] Production.INFO: ProcessCDR(1,14446527,1,1,2) [2025-02-10 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446527', 'tblTempUsageDetail_20' ) start [2025-02-10 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446527', 'tblTempUsageDetail_20' ) end [2025-02-10 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:27:25] Production.INFO: ==24084== Releasing lock... [2025-02-10 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:27:25] Production.INFO: 54 MB #Memory Used# [2025-02-10 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:28:05 [end_date_ymd] => 2025-02-10 19:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:28:05' and `end` < '2025-02-10 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-10 19:28:18] Production.INFO: count ==3285 [2025-02-10 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:28:05 - End Time 2025-02-10 19:28:05 [2025-02-10 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446532', 'tblTempUsageDetail_20' ) start [2025-02-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446532', 'tblTempUsageDetail_20' ) end [2025-02-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446532', 'tblTempVendorCDR_20' ) start [2025-02-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446532', 'tblTempVendorCDR_20' ) end [2025-02-10 19:28:19] Production.INFO: ProcessCDR(1,14446532,1,1,2) [2025-02-10 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446532', 'tblTempUsageDetail_20' ) start [2025-02-10 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446532', 'tblTempUsageDetail_20' ) end [2025-02-10 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:28:23] Production.INFO: ==24159== Releasing lock... [2025-02-10 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:28:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-10 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:29:05 [end_date_ymd] => 2025-02-10 19:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:29:05' and `end` < '2025-02-10 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-10 19:29:19] Production.INFO: count ==3253 [2025-02-10 19:29:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:29:05 - End Time 2025-02-10 19:29:05 [2025-02-10 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446537', 'tblTempUsageDetail_20' ) start [2025-02-10 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446537', 'tblTempUsageDetail_20' ) end [2025-02-10 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446537', 'tblTempVendorCDR_20' ) start [2025-02-10 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446537', 'tblTempVendorCDR_20' ) end [2025-02-10 19:29:21] Production.INFO: ProcessCDR(1,14446537,1,1,2) [2025-02-10 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446537', 'tblTempUsageDetail_20' ) start [2025-02-10 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446537', 'tblTempUsageDetail_20' ) end [2025-02-10 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:29:24] Production.INFO: ==24235== Releasing lock... [2025-02-10 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:29:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-10 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:30:06 [end_date_ymd] => 2025-02-10 19:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:30:06' and `end` < '2025-02-10 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-10 19:30:19] Production.INFO: count ==3237 [2025-02-10 19:30:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:30:06 - End Time 2025-02-10 19:30:06 [2025-02-10 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446543', 'tblTempUsageDetail_20' ) start [2025-02-10 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446543', 'tblTempUsageDetail_20' ) end [2025-02-10 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446543', 'tblTempVendorCDR_20' ) start [2025-02-10 19:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446543', 'tblTempVendorCDR_20' ) end [2025-02-10 19:30:21] Production.INFO: ProcessCDR(1,14446543,1,1,2) [2025-02-10 19:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446543', 'tblTempUsageDetail_20' ) start [2025-02-10 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446543', 'tblTempUsageDetail_20' ) end [2025-02-10 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:30:24] Production.INFO: ==24311== Releasing lock... [2025-02-10 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:30:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-10 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:31:05 [end_date_ymd] => 2025-02-10 19:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:31:05' and `end` < '2025-02-10 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-10 19:31:19] Production.INFO: count ==3162 [2025-02-10 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:31:05 - End Time 2025-02-10 19:31:05 [2025-02-10 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446548', 'tblTempUsageDetail_20' ) start [2025-02-10 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446548', 'tblTempUsageDetail_20' ) end [2025-02-10 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446548', 'tblTempVendorCDR_20' ) start [2025-02-10 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446548', 'tblTempVendorCDR_20' ) end [2025-02-10 19:31:20] Production.INFO: ProcessCDR(1,14446548,1,1,2) [2025-02-10 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446548', 'tblTempUsageDetail_20' ) start [2025-02-10 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446548', 'tblTempUsageDetail_20' ) end [2025-02-10 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:31:25] Production.INFO: ==24389== Releasing lock... [2025-02-10 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:31:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-10 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:32:05 [end_date_ymd] => 2025-02-10 19:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:32:05' and `end` < '2025-02-10 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-10 19:32:19] Production.INFO: count ==3134 [2025-02-10 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:32:05 - End Time 2025-02-10 19:32:05 [2025-02-10 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446553', 'tblTempUsageDetail_20' ) start [2025-02-10 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446553', 'tblTempUsageDetail_20' ) end [2025-02-10 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446553', 'tblTempVendorCDR_20' ) start [2025-02-10 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446553', 'tblTempVendorCDR_20' ) end [2025-02-10 19:32:21] Production.INFO: ProcessCDR(1,14446553,1,1,2) [2025-02-10 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446553', 'tblTempUsageDetail_20' ) start [2025-02-10 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446553', 'tblTempUsageDetail_20' ) end [2025-02-10 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:32:25] Production.INFO: ==24466== Releasing lock... [2025-02-10 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:32:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-10 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:33:05 [end_date_ymd] => 2025-02-10 19:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:33:05' and `end` < '2025-02-10 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-10 19:33:19] Production.INFO: count ==3087 [2025-02-10 19:33:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:33:05 - End Time 2025-02-10 19:33:05 [2025-02-10 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446558', 'tblTempUsageDetail_20' ) start [2025-02-10 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446558', 'tblTempUsageDetail_20' ) end [2025-02-10 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446558', 'tblTempVendorCDR_20' ) start [2025-02-10 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446558', 'tblTempVendorCDR_20' ) end [2025-02-10 19:33:21] Production.INFO: ProcessCDR(1,14446558,1,1,2) [2025-02-10 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446558', 'tblTempUsageDetail_20' ) start [2025-02-10 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446558', 'tblTempUsageDetail_20' ) end [2025-02-10 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:33:25] Production.INFO: ==24545== Releasing lock... [2025-02-10 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:33:25] Production.INFO: 52 MB #Memory Used# [2025-02-10 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:34:05 [end_date_ymd] => 2025-02-10 19:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:34:05' and `end` < '2025-02-10 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-10 19:34:18] Production.INFO: count ==3060 [2025-02-10 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:34:05 - End Time 2025-02-10 19:34:05 [2025-02-10 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446563', 'tblTempUsageDetail_20' ) start [2025-02-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446563', 'tblTempUsageDetail_20' ) end [2025-02-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446563', 'tblTempVendorCDR_20' ) start [2025-02-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446563', 'tblTempVendorCDR_20' ) end [2025-02-10 19:34:19] Production.INFO: ProcessCDR(1,14446563,1,1,2) [2025-02-10 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446563', 'tblTempUsageDetail_20' ) start [2025-02-10 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446563', 'tblTempUsageDetail_20' ) end [2025-02-10 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:34:24] Production.INFO: ==24624== Releasing lock... [2025-02-10 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:34:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-10 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:35:05 [end_date_ymd] => 2025-02-10 19:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:35:05' and `end` < '2025-02-10 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-10 19:35:18] Production.INFO: count ==3016 [2025-02-10 19:35:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:35:05 - End Time 2025-02-10 19:35:05 [2025-02-10 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446568', 'tblTempUsageDetail_20' ) start [2025-02-10 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446568', 'tblTempUsageDetail_20' ) end [2025-02-10 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446568', 'tblTempVendorCDR_20' ) start [2025-02-10 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446568', 'tblTempVendorCDR_20' ) end [2025-02-10 19:35:20] Production.INFO: ProcessCDR(1,14446568,1,1,2) [2025-02-10 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446568', 'tblTempUsageDetail_20' ) start [2025-02-10 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446568', 'tblTempUsageDetail_20' ) end [2025-02-10 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:35:23] Production.INFO: ==24706== Releasing lock... [2025-02-10 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:35:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-10 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:36:05 [end_date_ymd] => 2025-02-10 19:36:05 [RateCDR] => 1 ) [2025-02-10 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:36:05' and `end` < '2025-02-10 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-10 19:36:19] Production.INFO: count ==2980 [2025-02-10 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:36:05 - End Time 2025-02-10 19:36:05 [2025-02-10 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446573', 'tblTempUsageDetail_20' ) start [2025-02-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446573', 'tblTempUsageDetail_20' ) end [2025-02-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446573', 'tblTempVendorCDR_20' ) start [2025-02-10 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446573', 'tblTempVendorCDR_20' ) end [2025-02-10 19:36:20] Production.INFO: ProcessCDR(1,14446573,1,1,2) [2025-02-10 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446573', 'tblTempUsageDetail_20' ) start [2025-02-10 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446573', 'tblTempUsageDetail_20' ) end [2025-02-10 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:36:23] Production.INFO: ==24784== Releasing lock... [2025-02-10 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:36:23] Production.INFO: 50.25 MB #Memory Used# [2025-02-10 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:37:05 [end_date_ymd] => 2025-02-10 19:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:37:05' and `end` < '2025-02-10 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-10 19:37:18] Production.INFO: count ==2977 [2025-02-10 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:37:05 - End Time 2025-02-10 19:37:05 [2025-02-10 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446578', 'tblTempUsageDetail_20' ) start [2025-02-10 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446578', 'tblTempUsageDetail_20' ) end [2025-02-10 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446578', 'tblTempVendorCDR_20' ) start [2025-02-10 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446578', 'tblTempVendorCDR_20' ) end [2025-02-10 19:37:19] Production.INFO: ProcessCDR(1,14446578,1,1,2) [2025-02-10 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446578', 'tblTempUsageDetail_20' ) start [2025-02-10 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446578', 'tblTempUsageDetail_20' ) end [2025-02-10 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:37:24] Production.INFO: ==24861== Releasing lock... [2025-02-10 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:37:24] Production.INFO: 50 MB #Memory Used# [2025-02-10 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:38:05 [end_date_ymd] => 2025-02-10 19:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:38:05' and `end` < '2025-02-10 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-10 19:38:18] Production.INFO: count ==2964 [2025-02-10 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:38:05 - End Time 2025-02-10 19:38:05 [2025-02-10 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446583', 'tblTempUsageDetail_20' ) start [2025-02-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446583', 'tblTempUsageDetail_20' ) end [2025-02-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446583', 'tblTempVendorCDR_20' ) start [2025-02-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446583', 'tblTempVendorCDR_20' ) end [2025-02-10 19:38:19] Production.INFO: ProcessCDR(1,14446583,1,1,2) [2025-02-10 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446583', 'tblTempUsageDetail_20' ) start [2025-02-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446583', 'tblTempUsageDetail_20' ) end [2025-02-10 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:38:22] Production.INFO: ==24938== Releasing lock... [2025-02-10 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:38:22] Production.INFO: 50 MB #Memory Used# [2025-02-10 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:39:05 [end_date_ymd] => 2025-02-10 19:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:39:05' and `end` < '2025-02-10 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-10 19:39:19] Production.INFO: count ==2942 [2025-02-10 19:39:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:39:05 - End Time 2025-02-10 19:39:05 [2025-02-10 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446588', 'tblTempUsageDetail_20' ) start [2025-02-10 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446588', 'tblTempUsageDetail_20' ) end [2025-02-10 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446588', 'tblTempVendorCDR_20' ) start [2025-02-10 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446588', 'tblTempVendorCDR_20' ) end [2025-02-10 19:39:20] Production.INFO: ProcessCDR(1,14446588,1,1,2) [2025-02-10 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446588', 'tblTempUsageDetail_20' ) start [2025-02-10 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446588', 'tblTempUsageDetail_20' ) end [2025-02-10 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:39:23] Production.INFO: ==25054== Releasing lock... [2025-02-10 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:39:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-10 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:40:06 [end_date_ymd] => 2025-02-10 19:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:40:06' and `end` < '2025-02-10 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-10 19:40:19] Production.INFO: count ==2894 [2025-02-10 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:40:06 - End Time 2025-02-10 19:40:06 [2025-02-10 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446593', 'tblTempUsageDetail_20' ) start [2025-02-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446593', 'tblTempUsageDetail_20' ) end [2025-02-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446593', 'tblTempVendorCDR_20' ) start [2025-02-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446593', 'tblTempVendorCDR_20' ) end [2025-02-10 19:40:20] Production.INFO: ProcessCDR(1,14446593,1,1,2) [2025-02-10 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446593', 'tblTempUsageDetail_20' ) start [2025-02-10 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446593', 'tblTempUsageDetail_20' ) end [2025-02-10 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:40:24] Production.INFO: ==25137== Releasing lock... [2025-02-10 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:40:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-10 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:41:05 [end_date_ymd] => 2025-02-10 19:41:05 [RateCDR] => 1 ) [2025-02-10 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:41:05' and `end` < '2025-02-10 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:41:19] Production.INFO: count ==2793 [2025-02-10 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:41:05 - End Time 2025-02-10 19:41:05 [2025-02-10 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446599', 'tblTempUsageDetail_20' ) start [2025-02-10 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446599', 'tblTempUsageDetail_20' ) end [2025-02-10 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446599', 'tblTempVendorCDR_20' ) start [2025-02-10 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446599', 'tblTempVendorCDR_20' ) end [2025-02-10 19:41:20] Production.INFO: ProcessCDR(1,14446599,1,1,2) [2025-02-10 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446599', 'tblTempUsageDetail_20' ) start [2025-02-10 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446599', 'tblTempUsageDetail_20' ) end [2025-02-10 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:41:23] Production.INFO: ==25218== Releasing lock... [2025-02-10 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:41:23] Production.INFO: 49 MB #Memory Used# [2025-02-10 19:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:42:06 [end_date_ymd] => 2025-02-10 19:42:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:42:06' and `end` < '2025-02-10 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-10 19:42:19] Production.INFO: count ==2765 [2025-02-10 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:42:06 - End Time 2025-02-10 19:42:06 [2025-02-10 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446604', 'tblTempUsageDetail_20' ) start [2025-02-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446604', 'tblTempUsageDetail_20' ) end [2025-02-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446604', 'tblTempVendorCDR_20' ) start [2025-02-10 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446604', 'tblTempVendorCDR_20' ) end [2025-02-10 19:42:20] Production.INFO: ProcessCDR(1,14446604,1,1,2) [2025-02-10 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446604', 'tblTempUsageDetail_20' ) start [2025-02-10 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446604', 'tblTempUsageDetail_20' ) end [2025-02-10 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:42:25] Production.INFO: ==25291== Releasing lock... [2025-02-10 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:42:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-10 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:43:05 [end_date_ymd] => 2025-02-10 19:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:43:05' and `end` < '2025-02-10 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-10 19:43:18] Production.INFO: count ==2736 [2025-02-10 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:43:05 - End Time 2025-02-10 19:43:05 [2025-02-10 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446609', 'tblTempUsageDetail_20' ) start [2025-02-10 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446609', 'tblTempUsageDetail_20' ) end [2025-02-10 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446609', 'tblTempVendorCDR_20' ) start [2025-02-10 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446609', 'tblTempVendorCDR_20' ) end [2025-02-10 19:43:19] Production.INFO: ProcessCDR(1,14446609,1,1,2) [2025-02-10 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446609', 'tblTempUsageDetail_20' ) start [2025-02-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446609', 'tblTempUsageDetail_20' ) end [2025-02-10 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:43:22] Production.INFO: ==25366== Releasing lock... [2025-02-10 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:43:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-10 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:44:05 [end_date_ymd] => 2025-02-10 19:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:44:05' and `end` < '2025-02-10 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-10 19:44:20] Production.INFO: count ==2698 [2025-02-10 19:44:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:44:05 - End Time 2025-02-10 19:44:05 [2025-02-10 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446614', 'tblTempUsageDetail_20' ) start [2025-02-10 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446614', 'tblTempUsageDetail_20' ) end [2025-02-10 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446614', 'tblTempVendorCDR_20' ) start [2025-02-10 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446614', 'tblTempVendorCDR_20' ) end [2025-02-10 19:44:21] Production.INFO: ProcessCDR(1,14446614,1,1,2) [2025-02-10 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446614', 'tblTempUsageDetail_20' ) start [2025-02-10 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446614', 'tblTempUsageDetail_20' ) end [2025-02-10 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:44:24] Production.INFO: ==25440== Releasing lock... [2025-02-10 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:44:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-10 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:45:05 [end_date_ymd] => 2025-02-10 19:45:05 [RateCDR] => 1 ) [2025-02-10 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:45:05' and `end` < '2025-02-10 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:45:18] Production.INFO: count ==2669 [2025-02-10 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:45:05 - End Time 2025-02-10 19:45:05 [2025-02-10 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446619', 'tblTempUsageDetail_20' ) start [2025-02-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446619', 'tblTempUsageDetail_20' ) end [2025-02-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446619', 'tblTempVendorCDR_20' ) start [2025-02-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446619', 'tblTempVendorCDR_20' ) end [2025-02-10 19:45:19] Production.INFO: ProcessCDR(1,14446619,1,1,2) [2025-02-10 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446619', 'tblTempUsageDetail_20' ) start [2025-02-10 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446619', 'tblTempUsageDetail_20' ) end [2025-02-10 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:45:22] Production.INFO: ==25517== Releasing lock... [2025-02-10 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:45:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-10 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:46:06 [end_date_ymd] => 2025-02-10 19:46:06 [RateCDR] => 1 ) [2025-02-10 19: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-10 16:46:06' and `end` < '2025-02-10 19: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-10 19:46:19] Production.INFO: count ==2619 [2025-02-10 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:46:06 - End Time 2025-02-10 19:46:06 [2025-02-10 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446624', 'tblTempUsageDetail_20' ) start [2025-02-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446624', 'tblTempUsageDetail_20' ) end [2025-02-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446624', 'tblTempVendorCDR_20' ) start [2025-02-10 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446624', 'tblTempVendorCDR_20' ) end [2025-02-10 19:46:20] Production.INFO: ProcessCDR(1,14446624,1,1,2) [2025-02-10 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446624', 'tblTempUsageDetail_20' ) start [2025-02-10 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446624', 'tblTempUsageDetail_20' ) end [2025-02-10 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:46:24] Production.INFO: ==25593== Releasing lock... [2025-02-10 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:46:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-10 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:47:05 [end_date_ymd] => 2025-02-10 19:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:47:05' and `end` < '2025-02-10 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-10 19:47:18] Production.INFO: count ==2589 [2025-02-10 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:47:05 - End Time 2025-02-10 19:47:05 [2025-02-10 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446629', 'tblTempUsageDetail_20' ) start [2025-02-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446629', 'tblTempUsageDetail_20' ) end [2025-02-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446629', 'tblTempVendorCDR_20' ) start [2025-02-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446629', 'tblTempVendorCDR_20' ) end [2025-02-10 19:47:19] Production.INFO: ProcessCDR(1,14446629,1,1,2) [2025-02-10 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446629', 'tblTempUsageDetail_20' ) start [2025-02-10 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446629', 'tblTempUsageDetail_20' ) end [2025-02-10 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:47:23] Production.INFO: ==25666== Releasing lock... [2025-02-10 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:47:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-10 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:48:06 [end_date_ymd] => 2025-02-10 19:48:06 [RateCDR] => 1 ) [2025-02-10 19: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-10 16:48:06' and `end` < '2025-02-10 19: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-10 19:48:19] Production.INFO: count ==2557 [2025-02-10 19:48:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:48:06 - End Time 2025-02-10 19:48:06 [2025-02-10 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446634', 'tblTempUsageDetail_20' ) start [2025-02-10 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446634', 'tblTempUsageDetail_20' ) end [2025-02-10 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446634', 'tblTempVendorCDR_20' ) start [2025-02-10 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446634', 'tblTempVendorCDR_20' ) end [2025-02-10 19:48:20] Production.INFO: ProcessCDR(1,14446634,1,1,2) [2025-02-10 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446634', 'tblTempUsageDetail_20' ) start [2025-02-10 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446634', 'tblTempUsageDetail_20' ) end [2025-02-10 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:48:23] Production.INFO: ==25743== Releasing lock... [2025-02-10 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:48:23] Production.INFO: 47.25 MB #Memory Used# [2025-02-10 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:49:06 [end_date_ymd] => 2025-02-10 19:49:06 [RateCDR] => 1 ) [2025-02-10 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:49:06' and `end` < '2025-02-10 19: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-10 19:49:19] Production.INFO: count ==2523 [2025-02-10 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:49:06 - End Time 2025-02-10 19:49:06 [2025-02-10 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446639', 'tblTempUsageDetail_20' ) start [2025-02-10 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446639', 'tblTempUsageDetail_20' ) end [2025-02-10 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446639', 'tblTempVendorCDR_20' ) start [2025-02-10 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446639', 'tblTempVendorCDR_20' ) end [2025-02-10 19:49:20] Production.INFO: ProcessCDR(1,14446639,1,1,2) [2025-02-10 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446639', 'tblTempUsageDetail_20' ) start [2025-02-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446639', 'tblTempUsageDetail_20' ) end [2025-02-10 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:49:24] Production.INFO: ==25820== Releasing lock... [2025-02-10 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:49:24] Production.INFO: 47 MB #Memory Used# [2025-02-10 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:50:06 [end_date_ymd] => 2025-02-10 19:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 16:50:06' and `end` < '2025-02-10 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-10 19:50:19] Production.INFO: count ==2475 [2025-02-10 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:50:06 - End Time 2025-02-10 19:50:06 [2025-02-10 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446645', 'tblTempUsageDetail_20' ) start [2025-02-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446645', 'tblTempUsageDetail_20' ) end [2025-02-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446645', 'tblTempVendorCDR_20' ) start [2025-02-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446645', 'tblTempVendorCDR_20' ) end [2025-02-10 19:50:20] Production.INFO: ProcessCDR(1,14446645,1,1,2) [2025-02-10 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446645', 'tblTempUsageDetail_20' ) start [2025-02-10 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446645', 'tblTempUsageDetail_20' ) end [2025-02-10 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:50:23] Production.INFO: ==25900== Releasing lock... [2025-02-10 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:50:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-10 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:51:05 [end_date_ymd] => 2025-02-10 19:51:05 [RateCDR] => 1 ) [2025-02-10 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:51:05' and `end` < '2025-02-10 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:51:19] Production.INFO: count ==2374 [2025-02-10 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:51:05 - End Time 2025-02-10 19:51:05 [2025-02-10 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446650', 'tblTempUsageDetail_20' ) start [2025-02-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446650', 'tblTempUsageDetail_20' ) end [2025-02-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446650', 'tblTempVendorCDR_20' ) start [2025-02-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446650', 'tblTempVendorCDR_20' ) end [2025-02-10 19:51:19] Production.INFO: ProcessCDR(1,14446650,1,1,2) [2025-02-10 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446650', 'tblTempUsageDetail_20' ) start [2025-02-10 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446650', 'tblTempUsageDetail_20' ) end [2025-02-10 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:51:23] Production.INFO: ==25974== Releasing lock... [2025-02-10 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:51:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-10 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:52:05 [end_date_ymd] => 2025-02-10 19:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:52:05' and `end` < '2025-02-10 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-10 19:52:19] Production.INFO: count ==2339 [2025-02-10 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:52:05 - End Time 2025-02-10 19:52:05 [2025-02-10 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446655', 'tblTempUsageDetail_20' ) start [2025-02-10 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446655', 'tblTempUsageDetail_20' ) end [2025-02-10 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446655', 'tblTempVendorCDR_20' ) start [2025-02-10 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446655', 'tblTempVendorCDR_20' ) end [2025-02-10 19:52:20] Production.INFO: ProcessCDR(1,14446655,1,1,2) [2025-02-10 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446655', 'tblTempUsageDetail_20' ) start [2025-02-10 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446655', 'tblTempUsageDetail_20' ) end [2025-02-10 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:52:24] Production.INFO: ==26046== Releasing lock... [2025-02-10 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:52:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-10 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:53:06 [end_date_ymd] => 2025-02-10 19:53:06 [RateCDR] => 1 ) [2025-02-10 19: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-10 16:53:06' and `end` < '2025-02-10 19: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-10 19:53:20] Production.INFO: count ==2304 [2025-02-10 19:53:21] Production.ERROR: pbx CDR StartTime 2025-02-10 16:53:06 - End Time 2025-02-10 19:53:06 [2025-02-10 19:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446660', 'tblTempUsageDetail_20' ) start [2025-02-10 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446660', 'tblTempUsageDetail_20' ) end [2025-02-10 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446660', 'tblTempVendorCDR_20' ) start [2025-02-10 19:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446660', 'tblTempVendorCDR_20' ) end [2025-02-10 19:53:21] Production.INFO: ProcessCDR(1,14446660,1,1,2) [2025-02-10 19:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446660', 'tblTempUsageDetail_20' ) start [2025-02-10 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446660', 'tblTempUsageDetail_20' ) end [2025-02-10 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:53:24] Production.INFO: ==26124== Releasing lock... [2025-02-10 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:53:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:54:04 [end_date_ymd] => 2025-02-10 19:54:04 [RateCDR] => 1 ) [2025-02-10 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:54:04' and `end` < '2025-02-10 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 19:54:18] Production.INFO: count ==2299 [2025-02-10 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:54:04 - End Time 2025-02-10 19:54:04 [2025-02-10 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446665', 'tblTempUsageDetail_20' ) start [2025-02-10 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446665', 'tblTempUsageDetail_20' ) end [2025-02-10 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446665', 'tblTempVendorCDR_20' ) start [2025-02-10 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446665', 'tblTempVendorCDR_20' ) end [2025-02-10 19:54:19] Production.INFO: ProcessCDR(1,14446665,1,1,2) [2025-02-10 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446665', 'tblTempUsageDetail_20' ) start [2025-02-10 19:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446665', 'tblTempUsageDetail_20' ) end [2025-02-10 19:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:54:24] Production.INFO: ==26234== Releasing lock... [2025-02-10 19:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:54:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:55:05 [end_date_ymd] => 2025-02-10 19:55:05 [RateCDR] => 1 ) [2025-02-10 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 16:55:05' and `end` < '2025-02-10 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-10 19:55:19] Production.INFO: count ==2293 [2025-02-10 19:55:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:55:05 - End Time 2025-02-10 19:55:05 [2025-02-10 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446670', 'tblTempUsageDetail_20' ) start [2025-02-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446670', 'tblTempUsageDetail_20' ) end [2025-02-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446670', 'tblTempVendorCDR_20' ) start [2025-02-10 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446670', 'tblTempVendorCDR_20' ) end [2025-02-10 19:55:20] Production.INFO: ProcessCDR(1,14446670,1,1,2) [2025-02-10 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446670', 'tblTempUsageDetail_20' ) start [2025-02-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446670', 'tblTempUsageDetail_20' ) end [2025-02-10 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:55:23] Production.INFO: ==26314== Releasing lock... [2025-02-10 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:55:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:56:05 [end_date_ymd] => 2025-02-10 19:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:56:05' and `end` < '2025-02-10 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-10 19:56:18] Production.INFO: count ==2282 [2025-02-10 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:56:05 - End Time 2025-02-10 19:56:05 [2025-02-10 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446675', 'tblTempUsageDetail_20' ) start [2025-02-10 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446675', 'tblTempUsageDetail_20' ) end [2025-02-10 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446675', 'tblTempVendorCDR_20' ) start [2025-02-10 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446675', 'tblTempVendorCDR_20' ) end [2025-02-10 19:56:19] Production.INFO: ProcessCDR(1,14446675,1,1,2) [2025-02-10 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446675', 'tblTempUsageDetail_20' ) start [2025-02-10 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446675', 'tblTempUsageDetail_20' ) end [2025-02-10 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:56:22] Production.INFO: ==26386== Releasing lock... [2025-02-10 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:56:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:57:05 [end_date_ymd] => 2025-02-10 19:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:57:05' and `end` < '2025-02-10 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-10 19:57:18] Production.INFO: count ==2260 [2025-02-10 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-10 16:57:05 - End Time 2025-02-10 19:57:05 [2025-02-10 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446680', 'tblTempUsageDetail_20' ) start [2025-02-10 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446680', 'tblTempUsageDetail_20' ) end [2025-02-10 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446680', 'tblTempVendorCDR_20' ) start [2025-02-10 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446680', 'tblTempVendorCDR_20' ) end [2025-02-10 19:57:19] Production.INFO: ProcessCDR(1,14446680,1,1,2) [2025-02-10 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446680', 'tblTempUsageDetail_20' ) start [2025-02-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446680', 'tblTempUsageDetail_20' ) end [2025-02-10 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:57:22] Production.INFO: ==26458== Releasing lock... [2025-02-10 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:57:22] Production.INFO: 45 MB #Memory Used# [2025-02-10 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:58:04 [end_date_ymd] => 2025-02-10 19:58:04 [RateCDR] => 1 ) [2025-02-10 19: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-10 16:58:04' and `end` < '2025-02-10 19: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-10 19:58:18] Production.INFO: count ==2253 [2025-02-10 19:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 16:58:04 - End Time 2025-02-10 19:58:04 [2025-02-10 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446685', 'tblTempUsageDetail_20' ) start [2025-02-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446685', 'tblTempUsageDetail_20' ) end [2025-02-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446685', 'tblTempVendorCDR_20' ) start [2025-02-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446685', 'tblTempVendorCDR_20' ) end [2025-02-10 19:58:18] Production.INFO: ProcessCDR(1,14446685,1,1,2) [2025-02-10 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446685', 'tblTempUsageDetail_20' ) start [2025-02-10 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446685', 'tblTempUsageDetail_20' ) end [2025-02-10 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:58:22] Production.INFO: ==26530== Releasing lock... [2025-02-10 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:58:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-10 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 16:59:05 [end_date_ymd] => 2025-02-10 19:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 16:59:05' and `end` < '2025-02-10 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-10 19:59:19] Production.INFO: count ==2242 [2025-02-10 19:59:20] Production.ERROR: pbx CDR StartTime 2025-02-10 16:59:05 - End Time 2025-02-10 19:59:05 [2025-02-10 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446690', 'tblTempUsageDetail_20' ) start [2025-02-10 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446690', 'tblTempUsageDetail_20' ) end [2025-02-10 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446690', 'tblTempVendorCDR_20' ) start [2025-02-10 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446690', 'tblTempVendorCDR_20' ) end [2025-02-10 19:59:20] Production.INFO: ProcessCDR(1,14446690,1,1,2) [2025-02-10 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446690', 'tblTempUsageDetail_20' ) start [2025-02-10 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446690', 'tblTempUsageDetail_20' ) end [2025-02-10 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 19:59:24] Production.INFO: ==26601== Releasing lock... [2025-02-10 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 19:59:24] Production.INFO: 45 MB #Memory Used# [2025-02-10 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:00:06 [end_date_ymd] => 2025-02-10 20:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 17:00:06' and `end` < '2025-02-10 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-10 20:00:20] Production.INFO: count ==2245 [2025-02-10 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:00:06 - End Time 2025-02-10 20:00:06 [2025-02-10 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446696', 'tblTempUsageDetail_20' ) start [2025-02-10 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446696', 'tblTempUsageDetail_20' ) end [2025-02-10 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446696', 'tblTempVendorCDR_20' ) start [2025-02-10 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446696', 'tblTempVendorCDR_20' ) end [2025-02-10 20:00:20] Production.INFO: ProcessCDR(1,14446696,1,1,2) [2025-02-10 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446696', 'tblTempUsageDetail_20' ) start [2025-02-10 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446696', 'tblTempUsageDetail_20' ) end [2025-02-10 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:00:26] Production.INFO: ==26675== Releasing lock... [2025-02-10 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:00:26] Production.INFO: 45 MB #Memory Used# [2025-02-10 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:01:05 [end_date_ymd] => 2025-02-10 20:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:01:05' and `end` < '2025-02-10 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-10 20:01:19] Production.INFO: count ==2211 [2025-02-10 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:01:05 - End Time 2025-02-10 20:01:05 [2025-02-10 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446701', 'tblTempUsageDetail_20' ) start [2025-02-10 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446701', 'tblTempUsageDetail_20' ) end [2025-02-10 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446701', 'tblTempVendorCDR_20' ) start [2025-02-10 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446701', 'tblTempVendorCDR_20' ) end [2025-02-10 20:01:20] Production.INFO: ProcessCDR(1,14446701,1,1,2) [2025-02-10 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446701', 'tblTempUsageDetail_20' ) start [2025-02-10 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446701', 'tblTempUsageDetail_20' ) end [2025-02-10 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:01:23] Production.INFO: ==26797== Releasing lock... [2025-02-10 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:01:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-10 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:02:04 [end_date_ymd] => 2025-02-10 20:02:04 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:02:04' and `end` < '2025-02-10 20: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-10 20:02:19] Production.INFO: count ==2203 [2025-02-10 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:02:04 - End Time 2025-02-10 20:02:04 [2025-02-10 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446706', 'tblTempUsageDetail_20' ) start [2025-02-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446706', 'tblTempUsageDetail_20' ) end [2025-02-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446706', 'tblTempVendorCDR_20' ) start [2025-02-10 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446706', 'tblTempVendorCDR_20' ) end [2025-02-10 20:02:20] Production.INFO: ProcessCDR(1,14446706,1,1,2) [2025-02-10 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446706', 'tblTempUsageDetail_20' ) start [2025-02-10 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446706', 'tblTempUsageDetail_20' ) end [2025-02-10 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:02:23] Production.INFO: ==26868== Releasing lock... [2025-02-10 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:02:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:03:05 [end_date_ymd] => 2025-02-10 20:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:03:05' and `end` < '2025-02-10 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-10 20:03:18] Production.INFO: count ==2191 [2025-02-10 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:03:05 - End Time 2025-02-10 20:03:05 [2025-02-10 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446711', 'tblTempUsageDetail_20' ) start [2025-02-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446711', 'tblTempUsageDetail_20' ) end [2025-02-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446711', 'tblTempVendorCDR_20' ) start [2025-02-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446711', 'tblTempVendorCDR_20' ) end [2025-02-10 20:03:19] Production.INFO: ProcessCDR(1,14446711,1,1,2) [2025-02-10 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446711', 'tblTempUsageDetail_20' ) start [2025-02-10 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446711', 'tblTempUsageDetail_20' ) end [2025-02-10 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:03:23] Production.INFO: ==26939== Releasing lock... [2025-02-10 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:03:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:04:05 [end_date_ymd] => 2025-02-10 20:04:05 [RateCDR] => 1 ) [2025-02-10 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:04:05' and `end` < '2025-02-10 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:04:19] Production.INFO: count ==2182 [2025-02-10 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:04:05 - End Time 2025-02-10 20:04:05 [2025-02-10 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446716', 'tblTempUsageDetail_20' ) start [2025-02-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446716', 'tblTempUsageDetail_20' ) end [2025-02-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446716', 'tblTempVendorCDR_20' ) start [2025-02-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446716', 'tblTempVendorCDR_20' ) end [2025-02-10 20:04:19] Production.INFO: ProcessCDR(1,14446716,1,1,2) [2025-02-10 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446716', 'tblTempUsageDetail_20' ) start [2025-02-10 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446716', 'tblTempUsageDetail_20' ) end [2025-02-10 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:04:25] Production.INFO: ==27010== Releasing lock... [2025-02-10 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:04:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:05:05 [end_date_ymd] => 2025-02-10 20:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:05:05' and `end` < '2025-02-10 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-10 20:05:19] Production.INFO: count ==2178 [2025-02-10 20:05:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:05:05 - End Time 2025-02-10 20:05:05 [2025-02-10 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446721', 'tblTempUsageDetail_20' ) start [2025-02-10 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446721', 'tblTempUsageDetail_20' ) end [2025-02-10 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446721', 'tblTempVendorCDR_20' ) start [2025-02-10 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446721', 'tblTempVendorCDR_20' ) end [2025-02-10 20:05:20] Production.INFO: ProcessCDR(1,14446721,1,1,2) [2025-02-10 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446721', 'tblTempUsageDetail_20' ) start [2025-02-10 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446721', 'tblTempUsageDetail_20' ) end [2025-02-10 20:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:05:25] Production.INFO: ==27081== Releasing lock... [2025-02-10 20:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:05:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:06:05 [end_date_ymd] => 2025-02-10 20:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:06:05' and `end` < '2025-02-10 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-10 20:06:19] Production.INFO: count ==2169 [2025-02-10 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:06:05 - End Time 2025-02-10 20:06:05 [2025-02-10 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446726', 'tblTempUsageDetail_20' ) start [2025-02-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446726', 'tblTempUsageDetail_20' ) end [2025-02-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446726', 'tblTempVendorCDR_20' ) start [2025-02-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446726', 'tblTempVendorCDR_20' ) end [2025-02-10 20:06:19] Production.INFO: ProcessCDR(1,14446726,1,1,2) [2025-02-10 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446726', 'tblTempUsageDetail_20' ) start [2025-02-10 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446726', 'tblTempUsageDetail_20' ) end [2025-02-10 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:06:23] Production.INFO: ==27152== Releasing lock... [2025-02-10 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:06:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-10 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:07:06 [end_date_ymd] => 2025-02-10 20:07:06 [RateCDR] => 1 ) [2025-02-10 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-10 17:07:06' and `end` < '2025-02-10 20: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-10 20:07:19] Production.INFO: count ==2154 [2025-02-10 20:07:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:07:06 - End Time 2025-02-10 20:07:06 [2025-02-10 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446731', 'tblTempUsageDetail_20' ) start [2025-02-10 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446731', 'tblTempUsageDetail_20' ) end [2025-02-10 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446731', 'tblTempVendorCDR_20' ) start [2025-02-10 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446731', 'tblTempVendorCDR_20' ) end [2025-02-10 20:07:20] Production.INFO: ProcessCDR(1,14446731,1,1,2) [2025-02-10 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446731', 'tblTempUsageDetail_20' ) start [2025-02-10 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446731', 'tblTempUsageDetail_20' ) end [2025-02-10 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:07:24] Production.INFO: ==27231== Releasing lock... [2025-02-10 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:07:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-10 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:08:05 [end_date_ymd] => 2025-02-10 20:08:05 [RateCDR] => 1 ) [2025-02-10 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:08:05' and `end` < '2025-02-10 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:08:18] Production.INFO: count ==2149 [2025-02-10 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:08:05 - End Time 2025-02-10 20:08:05 [2025-02-10 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446736', 'tblTempUsageDetail_20' ) start [2025-02-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446736', 'tblTempUsageDetail_20' ) end [2025-02-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446736', 'tblTempVendorCDR_20' ) start [2025-02-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446736', 'tblTempVendorCDR_20' ) end [2025-02-10 20:08:19] Production.INFO: ProcessCDR(1,14446736,1,1,2) [2025-02-10 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446736', 'tblTempUsageDetail_20' ) start [2025-02-10 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446736', 'tblTempUsageDetail_20' ) end [2025-02-10 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:08:24] Production.INFO: ==27302== Releasing lock... [2025-02-10 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:08:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-10 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:09:06 [end_date_ymd] => 2025-02-10 20:09:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:09:06' and `end` < '2025-02-10 20: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-10 20:09:19] Production.INFO: count ==2135 [2025-02-10 20:09:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:09:06 - End Time 2025-02-10 20:09:06 [2025-02-10 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446741', 'tblTempUsageDetail_20' ) start [2025-02-10 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446741', 'tblTempUsageDetail_20' ) end [2025-02-10 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446741', 'tblTempVendorCDR_20' ) start [2025-02-10 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446741', 'tblTempVendorCDR_20' ) end [2025-02-10 20:09:20] Production.INFO: ProcessCDR(1,14446741,1,1,2) [2025-02-10 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446741', 'tblTempUsageDetail_20' ) start [2025-02-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446741', 'tblTempUsageDetail_20' ) end [2025-02-10 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:09:23] Production.INFO: ==27372== Releasing lock... [2025-02-10 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:09:23] Production.INFO: 44 MB #Memory Used# [2025-02-10 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:10:05 [end_date_ymd] => 2025-02-10 20:10:05 [RateCDR] => 1 ) [2025-02-10 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:10:05' and `end` < '2025-02-10 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:10:19] Production.INFO: count ==2131 [2025-02-10 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:10:05 - End Time 2025-02-10 20:10:05 [2025-02-10 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446747', 'tblTempUsageDetail_20' ) start [2025-02-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446747', 'tblTempUsageDetail_20' ) end [2025-02-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446747', 'tblTempVendorCDR_20' ) start [2025-02-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446747', 'tblTempVendorCDR_20' ) end [2025-02-10 20:10:19] Production.INFO: ProcessCDR(1,14446747,1,1,2) [2025-02-10 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446747', 'tblTempUsageDetail_20' ) start [2025-02-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446747', 'tblTempUsageDetail_20' ) end [2025-02-10 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:10:23] Production.INFO: ==27484== Releasing lock... [2025-02-10 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:10:23] Production.INFO: 44 MB #Memory Used# [2025-02-10 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:11:06 [end_date_ymd] => 2025-02-10 20:11:06 [RateCDR] => 1 ) [2025-02-10 20:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:11:06' and `end` < '2025-02-10 20:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:11:19] Production.INFO: count ==2084 [2025-02-10 20:11:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:11:06 - End Time 2025-02-10 20:11:06 [2025-02-10 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446752', 'tblTempUsageDetail_20' ) start [2025-02-10 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446752', 'tblTempUsageDetail_20' ) end [2025-02-10 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446752', 'tblTempVendorCDR_20' ) start [2025-02-10 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446752', 'tblTempVendorCDR_20' ) end [2025-02-10 20:11:20] Production.INFO: ProcessCDR(1,14446752,1,1,2) [2025-02-10 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446752', 'tblTempUsageDetail_20' ) start [2025-02-10 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446752', 'tblTempUsageDetail_20' ) end [2025-02-10 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:11:25] Production.INFO: ==27558== Releasing lock... [2025-02-10 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:11:25] Production.INFO: 43.75 MB #Memory Used# [2025-02-10 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:12:05 [end_date_ymd] => 2025-02-10 20:12:05 [RateCDR] => 1 ) [2025-02-10 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:12:05' and `end` < '2025-02-10 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:12:18] Production.INFO: count ==2070 [2025-02-10 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:12:05 - End Time 2025-02-10 20:12:05 [2025-02-10 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446757', 'tblTempUsageDetail_20' ) start [2025-02-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446757', 'tblTempUsageDetail_20' ) end [2025-02-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446757', 'tblTempVendorCDR_20' ) start [2025-02-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446757', 'tblTempVendorCDR_20' ) end [2025-02-10 20:12:19] Production.INFO: ProcessCDR(1,14446757,1,1,2) [2025-02-10 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446757', 'tblTempUsageDetail_20' ) start [2025-02-10 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446757', 'tblTempUsageDetail_20' ) end [2025-02-10 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:12:24] Production.INFO: ==27633== Releasing lock... [2025-02-10 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:12:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-10 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:13:05 [end_date_ymd] => 2025-02-10 20:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:13:05' and `end` < '2025-02-10 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-10 20:13:18] Production.INFO: count ==2055 [2025-02-10 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:13:05 - End Time 2025-02-10 20:13:05 [2025-02-10 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446762', 'tblTempUsageDetail_20' ) start [2025-02-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446762', 'tblTempUsageDetail_20' ) end [2025-02-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446762', 'tblTempVendorCDR_20' ) start [2025-02-10 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446762', 'tblTempVendorCDR_20' ) end [2025-02-10 20:13:19] Production.INFO: ProcessCDR(1,14446762,1,1,2) [2025-02-10 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446762', 'tblTempUsageDetail_20' ) start [2025-02-10 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446762', 'tblTempUsageDetail_20' ) end [2025-02-10 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:13:23] Production.INFO: ==27703== Releasing lock... [2025-02-10 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:13:23] Production.INFO: 43.5 MB #Memory Used# [2025-02-10 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:14:05 [end_date_ymd] => 2025-02-10 20:14:05 [RateCDR] => 1 ) [2025-02-10 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:14:05' and `end` < '2025-02-10 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:14:18] Production.INFO: count ==2050 [2025-02-10 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:14:05 - End Time 2025-02-10 20:14:05 [2025-02-10 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446767', 'tblTempUsageDetail_20' ) start [2025-02-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446767', 'tblTempUsageDetail_20' ) end [2025-02-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446767', 'tblTempVendorCDR_20' ) start [2025-02-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446767', 'tblTempVendorCDR_20' ) end [2025-02-10 20:14:19] Production.INFO: ProcessCDR(1,14446767,1,1,2) [2025-02-10 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446767', 'tblTempUsageDetail_20' ) start [2025-02-10 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446767', 'tblTempUsageDetail_20' ) end [2025-02-10 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:14:22] Production.INFO: ==27778== Releasing lock... [2025-02-10 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:14:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-10 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:15:05 [end_date_ymd] => 2025-02-10 20:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:15:05' and `end` < '2025-02-10 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-10 20:15:19] Production.INFO: count ==2032 [2025-02-10 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:15:05 - End Time 2025-02-10 20:15:05 [2025-02-10 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446772', 'tblTempUsageDetail_20' ) start [2025-02-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446772', 'tblTempUsageDetail_20' ) end [2025-02-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446772', 'tblTempVendorCDR_20' ) start [2025-02-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446772', 'tblTempVendorCDR_20' ) end [2025-02-10 20:15:19] Production.INFO: ProcessCDR(1,14446772,1,1,2) [2025-02-10 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446772', 'tblTempUsageDetail_20' ) start [2025-02-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446772', 'tblTempUsageDetail_20' ) end [2025-02-10 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:15:23] Production.INFO: ==27852== Releasing lock... [2025-02-10 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:15:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-10 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:16:05 [end_date_ymd] => 2025-02-10 20:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:16:05' and `end` < '2025-02-10 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-10 20:16:19] Production.INFO: count ==2027 [2025-02-10 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:16:05 - End Time 2025-02-10 20:16:05 [2025-02-10 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446777', 'tblTempUsageDetail_20' ) start [2025-02-10 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446777', 'tblTempUsageDetail_20' ) end [2025-02-10 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446777', 'tblTempVendorCDR_20' ) start [2025-02-10 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446777', 'tblTempVendorCDR_20' ) end [2025-02-10 20:16:20] Production.INFO: ProcessCDR(1,14446777,1,1,2) [2025-02-10 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446777', 'tblTempUsageDetail_20' ) start [2025-02-10 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446777', 'tblTempUsageDetail_20' ) end [2025-02-10 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:16:23] Production.INFO: ==27922== Releasing lock... [2025-02-10 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:16:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-10 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:17:06 [end_date_ymd] => 2025-02-10 20:17:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:17:06' and `end` < '2025-02-10 20: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-10 20:17:19] Production.INFO: count ==2022 [2025-02-10 20:17:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:17:06 - End Time 2025-02-10 20:17:06 [2025-02-10 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446782', 'tblTempUsageDetail_20' ) start [2025-02-10 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446782', 'tblTempUsageDetail_20' ) end [2025-02-10 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446782', 'tblTempVendorCDR_20' ) start [2025-02-10 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446782', 'tblTempVendorCDR_20' ) end [2025-02-10 20:17:20] Production.INFO: ProcessCDR(1,14446782,1,1,2) [2025-02-10 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446782', 'tblTempUsageDetail_20' ) start [2025-02-10 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446782', 'tblTempUsageDetail_20' ) end [2025-02-10 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:17:24] Production.INFO: ==27991== Releasing lock... [2025-02-10 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:17:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-10 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:18:05 [end_date_ymd] => 2025-02-10 20:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:18:05' and `end` < '2025-02-10 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-10 20:18:18] Production.INFO: count ==2011 [2025-02-10 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:18:05 - End Time 2025-02-10 20:18:05 [2025-02-10 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446787', 'tblTempUsageDetail_20' ) start [2025-02-10 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446787', 'tblTempUsageDetail_20' ) end [2025-02-10 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446787', 'tblTempVendorCDR_20' ) start [2025-02-10 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446787', 'tblTempVendorCDR_20' ) end [2025-02-10 20:18:19] Production.INFO: ProcessCDR(1,14446787,1,1,2) [2025-02-10 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446787', 'tblTempUsageDetail_20' ) start [2025-02-10 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446787', 'tblTempUsageDetail_20' ) end [2025-02-10 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:18:24] Production.INFO: ==28074== Releasing lock... [2025-02-10 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:18:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-10 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:19:06 [end_date_ymd] => 2025-02-10 20:19:06 [RateCDR] => 1 ) [2025-02-10 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:19:06' and `end` < '2025-02-10 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:19:19] Production.INFO: count ==2001 [2025-02-10 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:19:06 - End Time 2025-02-10 20:19:06 [2025-02-10 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446792', 'tblTempUsageDetail_20' ) start [2025-02-10 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446792', 'tblTempUsageDetail_20' ) end [2025-02-10 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446792', 'tblTempVendorCDR_20' ) start [2025-02-10 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446792', 'tblTempVendorCDR_20' ) end [2025-02-10 20:19:20] Production.INFO: ProcessCDR(1,14446792,1,1,2) [2025-02-10 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446792', 'tblTempUsageDetail_20' ) start [2025-02-10 20:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446792', 'tblTempUsageDetail_20' ) end [2025-02-10 20:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:19:25] Production.INFO: ==28147== Releasing lock... [2025-02-10 20:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:19:25] Production.INFO: 43 MB #Memory Used# [2025-02-10 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:20:06 [end_date_ymd] => 2025-02-10 20:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 17:20:06' and `end` < '2025-02-10 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-10 20:20:19] Production.INFO: count ==1991 [2025-02-10 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:20:06 - End Time 2025-02-10 20:20:06 [2025-02-10 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446798', 'tblTempUsageDetail_20' ) start [2025-02-10 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446798', 'tblTempUsageDetail_20' ) end [2025-02-10 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446798', 'tblTempVendorCDR_20' ) start [2025-02-10 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446798', 'tblTempVendorCDR_20' ) end [2025-02-10 20:20:20] Production.INFO: ProcessCDR(1,14446798,1,1,2) [2025-02-10 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446798', 'tblTempUsageDetail_20' ) start [2025-02-10 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446798', 'tblTempUsageDetail_20' ) end [2025-02-10 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:20:23] Production.INFO: ==28223== Releasing lock... [2025-02-10 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:20:23] Production.INFO: 43 MB #Memory Used# [2025-02-10 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:21:06 [end_date_ymd] => 2025-02-10 20:21:06 [RateCDR] => 1 ) [2025-02-10 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:21:06' and `end` < '2025-02-10 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:21:19] Production.INFO: count ==1944 [2025-02-10 20:21:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:21:06 - End Time 2025-02-10 20:21:06 [2025-02-10 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446803', 'tblTempUsageDetail_20' ) start [2025-02-10 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446803', 'tblTempUsageDetail_20' ) end [2025-02-10 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446803', 'tblTempVendorCDR_20' ) start [2025-02-10 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446803', 'tblTempVendorCDR_20' ) end [2025-02-10 20:21:20] Production.INFO: ProcessCDR(1,14446803,1,1,2) [2025-02-10 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446803', 'tblTempUsageDetail_20' ) start [2025-02-10 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446803', 'tblTempUsageDetail_20' ) end [2025-02-10 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:21:24] Production.INFO: ==28297== Releasing lock... [2025-02-10 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:21:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-10 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:22:05 [end_date_ymd] => 2025-02-10 20:22:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:22:05' and `end` < '2025-02-10 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-10 20:22:18] Production.INFO: count ==1941 [2025-02-10 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:22:05 - End Time 2025-02-10 20:22:05 [2025-02-10 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446808', 'tblTempUsageDetail_20' ) start [2025-02-10 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446808', 'tblTempUsageDetail_20' ) end [2025-02-10 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446808', 'tblTempVendorCDR_20' ) start [2025-02-10 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446808', 'tblTempVendorCDR_20' ) end [2025-02-10 20:22:19] Production.INFO: ProcessCDR(1,14446808,1,1,2) [2025-02-10 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446808', 'tblTempUsageDetail_20' ) start [2025-02-10 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446808', 'tblTempUsageDetail_20' ) end [2025-02-10 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:22:23] Production.INFO: ==28367== Releasing lock... [2025-02-10 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:22:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-10 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:23:06 [end_date_ymd] => 2025-02-10 20:23:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:23:06' and `end` < '2025-02-10 20: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-10 20:23:19] Production.INFO: count ==1936 [2025-02-10 20:23:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:23:06 - End Time 2025-02-10 20:23:06 [2025-02-10 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446813', 'tblTempUsageDetail_20' ) start [2025-02-10 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446813', 'tblTempUsageDetail_20' ) end [2025-02-10 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446813', 'tblTempVendorCDR_20' ) start [2025-02-10 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446813', 'tblTempVendorCDR_20' ) end [2025-02-10 20:23:20] Production.INFO: ProcessCDR(1,14446813,1,1,2) [2025-02-10 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446813', 'tblTempUsageDetail_20' ) start [2025-02-10 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446813', 'tblTempUsageDetail_20' ) end [2025-02-10 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:23:23] Production.INFO: ==28440== Releasing lock... [2025-02-10 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:23:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-10 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:24:06 [end_date_ymd] => 2025-02-10 20:24:06 [RateCDR] => 1 ) [2025-02-10 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:24:06' and `end` < '2025-02-10 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:24:19] Production.INFO: count ==1921 [2025-02-10 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:24:06 - End Time 2025-02-10 20:24:06 [2025-02-10 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446818', 'tblTempUsageDetail_20' ) start [2025-02-10 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446818', 'tblTempUsageDetail_20' ) end [2025-02-10 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446818', 'tblTempVendorCDR_20' ) start [2025-02-10 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446818', 'tblTempVendorCDR_20' ) end [2025-02-10 20:24:20] Production.INFO: ProcessCDR(1,14446818,1,1,2) [2025-02-10 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446818', 'tblTempUsageDetail_20' ) start [2025-02-10 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446818', 'tblTempUsageDetail_20' ) end [2025-02-10 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:24:24] Production.INFO: ==28510== Releasing lock... [2025-02-10 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:24:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:25:05 [end_date_ymd] => 2025-02-10 20:25:05 [RateCDR] => 1 ) [2025-02-10 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:25:05' and `end` < '2025-02-10 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:25:18] Production.INFO: count ==1921 [2025-02-10 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:25:05 - End Time 2025-02-10 20:25:05 [2025-02-10 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446823', 'tblTempUsageDetail_20' ) start [2025-02-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446823', 'tblTempUsageDetail_20' ) end [2025-02-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446823', 'tblTempVendorCDR_20' ) start [2025-02-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446823', 'tblTempVendorCDR_20' ) end [2025-02-10 20:25:18] Production.INFO: ProcessCDR(1,14446823,1,1,2) [2025-02-10 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446823', 'tblTempUsageDetail_20' ) start [2025-02-10 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446823', 'tblTempUsageDetail_20' ) end [2025-02-10 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:25:24] Production.INFO: ==28618== Releasing lock... [2025-02-10 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:25:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:26:06 [end_date_ymd] => 2025-02-10 20:26:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:26:06' and `end` < '2025-02-10 20: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-10 20:26:19] Production.INFO: count ==1917 [2025-02-10 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:26:06 - End Time 2025-02-10 20:26:06 [2025-02-10 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446828', 'tblTempUsageDetail_20' ) start [2025-02-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446828', 'tblTempUsageDetail_20' ) end [2025-02-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446828', 'tblTempVendorCDR_20' ) start [2025-02-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446828', 'tblTempVendorCDR_20' ) end [2025-02-10 20:26:19] Production.INFO: ProcessCDR(1,14446828,1,1,2) [2025-02-10 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446828', 'tblTempUsageDetail_20' ) start [2025-02-10 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446828', 'tblTempUsageDetail_20' ) end [2025-02-10 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:26:23] Production.INFO: ==28690== Releasing lock... [2025-02-10 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:26:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-10 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:27:05 [end_date_ymd] => 2025-02-10 20:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:27:05' and `end` < '2025-02-10 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-10 20:27:18] Production.INFO: count ==1915 [2025-02-10 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:27:05 - End Time 2025-02-10 20:27:05 [2025-02-10 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446833', 'tblTempUsageDetail_20' ) start [2025-02-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446833', 'tblTempUsageDetail_20' ) end [2025-02-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446833', 'tblTempVendorCDR_20' ) start [2025-02-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446833', 'tblTempVendorCDR_20' ) end [2025-02-10 20:27:18] Production.INFO: ProcessCDR(1,14446833,1,1,2) [2025-02-10 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446833', 'tblTempUsageDetail_20' ) start [2025-02-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446833', 'tblTempUsageDetail_20' ) end [2025-02-10 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:27:22] Production.INFO: ==28761== Releasing lock... [2025-02-10 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:27:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-10 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:28:05 [end_date_ymd] => 2025-02-10 20:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:28:05' and `end` < '2025-02-10 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-10 20:28:19] Production.INFO: count ==1909 [2025-02-10 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:28:05 - End Time 2025-02-10 20:28:05 [2025-02-10 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446838', 'tblTempUsageDetail_20' ) start [2025-02-10 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446838', 'tblTempUsageDetail_20' ) end [2025-02-10 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446838', 'tblTempVendorCDR_20' ) start [2025-02-10 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446838', 'tblTempVendorCDR_20' ) end [2025-02-10 20:28:19] Production.INFO: ProcessCDR(1,14446838,1,1,2) [2025-02-10 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446838', 'tblTempUsageDetail_20' ) start [2025-02-10 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446838', 'tblTempUsageDetail_20' ) end [2025-02-10 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:28:23] Production.INFO: ==28832== Releasing lock... [2025-02-10 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:28:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:29:06 [end_date_ymd] => 2025-02-10 20:29:06 [RateCDR] => 1 ) [2025-02-10 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:29:06' and `end` < '2025-02-10 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:29:19] Production.INFO: count ==1908 [2025-02-10 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:29:06 - End Time 2025-02-10 20:29:06 [2025-02-10 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446843', 'tblTempUsageDetail_20' ) start [2025-02-10 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446843', 'tblTempUsageDetail_20' ) end [2025-02-10 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446843', 'tblTempVendorCDR_20' ) start [2025-02-10 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446843', 'tblTempVendorCDR_20' ) end [2025-02-10 20:29:20] Production.INFO: ProcessCDR(1,14446843,1,1,2) [2025-02-10 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446843', 'tblTempUsageDetail_20' ) start [2025-02-10 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446843', 'tblTempUsageDetail_20' ) end [2025-02-10 20:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:29:25] Production.INFO: ==28901== Releasing lock... [2025-02-10 20:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:29:25] Production.INFO: 42 MB #Memory Used# [2025-02-10 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:30:06 [end_date_ymd] => 2025-02-10 20:30:06 [RateCDR] => 1 ) [2025-02-10 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:30:06' and `end` < '2025-02-10 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:30:19] Production.INFO: count ==1899 [2025-02-10 20:30:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:30:06 - End Time 2025-02-10 20:30:06 [2025-02-10 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446849', 'tblTempUsageDetail_20' ) start [2025-02-10 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446849', 'tblTempUsageDetail_20' ) end [2025-02-10 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446849', 'tblTempVendorCDR_20' ) start [2025-02-10 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446849', 'tblTempVendorCDR_20' ) end [2025-02-10 20:30:20] Production.INFO: ProcessCDR(1,14446849,1,1,2) [2025-02-10 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446849', 'tblTempUsageDetail_20' ) start [2025-02-10 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446849', 'tblTempUsageDetail_20' ) end [2025-02-10 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:30:24] Production.INFO: ==28976== Releasing lock... [2025-02-10 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:30:24] Production.INFO: 42 MB #Memory Used# [2025-02-10 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:31:05 [end_date_ymd] => 2025-02-10 20:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:31:05' and `end` < '2025-02-10 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-10 20:31:18] Production.INFO: count ==1871 [2025-02-10 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:31:05 - End Time 2025-02-10 20:31:05 [2025-02-10 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446854', 'tblTempUsageDetail_20' ) start [2025-02-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446854', 'tblTempUsageDetail_20' ) end [2025-02-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446854', 'tblTempVendorCDR_20' ) start [2025-02-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446854', 'tblTempVendorCDR_20' ) end [2025-02-10 20:31:19] Production.INFO: ProcessCDR(1,14446854,1,1,2) [2025-02-10 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446854', 'tblTempUsageDetail_20' ) start [2025-02-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446854', 'tblTempUsageDetail_20' ) end [2025-02-10 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:31:24] Production.INFO: ==29050== Releasing lock... [2025-02-10 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:31:24] Production.INFO: 42 MB #Memory Used# [2025-02-10 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:32:05 [end_date_ymd] => 2025-02-10 20:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:32:05' and `end` < '2025-02-10 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-10 20:32:18] Production.INFO: count ==1866 [2025-02-10 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:32:05 - End Time 2025-02-10 20:32:05 [2025-02-10 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446859', 'tblTempUsageDetail_20' ) start [2025-02-10 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446859', 'tblTempUsageDetail_20' ) end [2025-02-10 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446859', 'tblTempVendorCDR_20' ) start [2025-02-10 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446859', 'tblTempVendorCDR_20' ) end [2025-02-10 20:32:19] Production.INFO: ProcessCDR(1,14446859,1,1,2) [2025-02-10 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446859', 'tblTempUsageDetail_20' ) start [2025-02-10 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446859', 'tblTempUsageDetail_20' ) end [2025-02-10 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:32:22] Production.INFO: ==29123== Releasing lock... [2025-02-10 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:32:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:33:05 [end_date_ymd] => 2025-02-10 20:33:05 [RateCDR] => 1 ) [2025-02-10 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:33:05' and `end` < '2025-02-10 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-10 20:33:18] Production.INFO: count ==1862 [2025-02-10 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:33:05 - End Time 2025-02-10 20:33:05 [2025-02-10 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446864', 'tblTempUsageDetail_20' ) start [2025-02-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446864', 'tblTempUsageDetail_20' ) end [2025-02-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446864', 'tblTempVendorCDR_20' ) start [2025-02-10 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446864', 'tblTempVendorCDR_20' ) end [2025-02-10 20:33:19] Production.INFO: ProcessCDR(1,14446864,1,1,2) [2025-02-10 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446864', 'tblTempUsageDetail_20' ) start [2025-02-10 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446864', 'tblTempUsageDetail_20' ) end [2025-02-10 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:33:23] Production.INFO: ==29202== Releasing lock... [2025-02-10 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:33:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-10 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:34:06 [end_date_ymd] => 2025-02-10 20:34:06 [RateCDR] => 1 ) [2025-02-10 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:34:06' and `end` < '2025-02-10 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:34:19] Production.INFO: count ==1848 [2025-02-10 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:34:06 - End Time 2025-02-10 20:34:06 [2025-02-10 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446869', 'tblTempUsageDetail_20' ) start [2025-02-10 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446869', 'tblTempUsageDetail_20' ) end [2025-02-10 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446869', 'tblTempVendorCDR_20' ) start [2025-02-10 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446869', 'tblTempVendorCDR_20' ) end [2025-02-10 20:34:19] Production.INFO: ProcessCDR(1,14446869,1,1,2) [2025-02-10 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446869', 'tblTempUsageDetail_20' ) start [2025-02-10 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446869', 'tblTempUsageDetail_20' ) end [2025-02-10 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:34:23] Production.INFO: ==29277== Releasing lock... [2025-02-10 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:34:23] Production.INFO: 42 MB #Memory Used# [2025-02-10 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:35:05 [end_date_ymd] => 2025-02-10 20:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:35:05' and `end` < '2025-02-10 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-10 20:35:18] Production.INFO: count ==1844 [2025-02-10 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:35:05 - End Time 2025-02-10 20:35:05 [2025-02-10 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446874', 'tblTempUsageDetail_20' ) start [2025-02-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446874', 'tblTempUsageDetail_20' ) end [2025-02-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446874', 'tblTempVendorCDR_20' ) start [2025-02-10 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446874', 'tblTempVendorCDR_20' ) end [2025-02-10 20:35:18] Production.INFO: ProcessCDR(1,14446874,1,1,2) [2025-02-10 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446874', 'tblTempUsageDetail_20' ) start [2025-02-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446874', 'tblTempUsageDetail_20' ) end [2025-02-10 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:35:22] Production.INFO: ==29347== Releasing lock... [2025-02-10 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:35:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:36:06 [end_date_ymd] => 2025-02-10 20:36:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:36:06' and `end` < '2025-02-10 20: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-10 20:36:19] Production.INFO: count ==1842 [2025-02-10 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:36:06 - End Time 2025-02-10 20:36:06 [2025-02-10 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446879', 'tblTempUsageDetail_20' ) start [2025-02-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446879', 'tblTempUsageDetail_20' ) end [2025-02-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446879', 'tblTempVendorCDR_20' ) start [2025-02-10 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446879', 'tblTempVendorCDR_20' ) end [2025-02-10 20:36:19] Production.INFO: ProcessCDR(1,14446879,1,1,2) [2025-02-10 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446879', 'tblTempUsageDetail_20' ) start [2025-02-10 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446879', 'tblTempUsageDetail_20' ) end [2025-02-10 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:36:23] Production.INFO: ==29420== Releasing lock... [2025-02-10 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:36:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:37:05 [end_date_ymd] => 2025-02-10 20:37:05 [RateCDR] => 1 ) [2025-02-10 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:37:05' and `end` < '2025-02-10 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:37:19] Production.INFO: count ==1842 [2025-02-10 20:37:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:37:05 - End Time 2025-02-10 20:37:05 [2025-02-10 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446884', 'tblTempUsageDetail_20' ) start [2025-02-10 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446884', 'tblTempUsageDetail_20' ) end [2025-02-10 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446884', 'tblTempVendorCDR_20' ) start [2025-02-10 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446884', 'tblTempVendorCDR_20' ) end [2025-02-10 20:37:20] Production.INFO: ProcessCDR(1,14446884,1,1,2) [2025-02-10 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446884', 'tblTempUsageDetail_20' ) start [2025-02-10 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446884', 'tblTempUsageDetail_20' ) end [2025-02-10 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:37:25] Production.INFO: ==29490== Releasing lock... [2025-02-10 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:37:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-10 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:38:05 [end_date_ymd] => 2025-02-10 20:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:38:05' and `end` < '2025-02-10 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-10 20:38:18] Production.INFO: count ==1836 [2025-02-10 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:38:05 - End Time 2025-02-10 20:38:05 [2025-02-10 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446889', 'tblTempUsageDetail_20' ) start [2025-02-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446889', 'tblTempUsageDetail_20' ) end [2025-02-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446889', 'tblTempVendorCDR_20' ) start [2025-02-10 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446889', 'tblTempVendorCDR_20' ) end [2025-02-10 20:38:19] Production.INFO: ProcessCDR(1,14446889,1,1,2) [2025-02-10 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446889', 'tblTempUsageDetail_20' ) start [2025-02-10 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446889', 'tblTempUsageDetail_20' ) end [2025-02-10 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:38:22] Production.INFO: ==29561== Releasing lock... [2025-02-10 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:38:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:39:05 [end_date_ymd] => 2025-02-10 20:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:39:05' and `end` < '2025-02-10 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-10 20:39:18] Production.INFO: count ==1826 [2025-02-10 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:39:05 - End Time 2025-02-10 20:39:05 [2025-02-10 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446894', 'tblTempUsageDetail_20' ) start [2025-02-10 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446894', 'tblTempUsageDetail_20' ) end [2025-02-10 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446894', 'tblTempVendorCDR_20' ) start [2025-02-10 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446894', 'tblTempVendorCDR_20' ) end [2025-02-10 20:39:19] Production.INFO: ProcessCDR(1,14446894,1,1,2) [2025-02-10 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446894', 'tblTempUsageDetail_20' ) start [2025-02-10 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446894', 'tblTempUsageDetail_20' ) end [2025-02-10 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:39:23] Production.INFO: ==29632== Releasing lock... [2025-02-10 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:39:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:40:05 [end_date_ymd] => 2025-02-10 20:40:05 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:40:05' and `end` < '2025-02-10 20: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-10 20:40:18] Production.INFO: count ==1798 [2025-02-10 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:40:05 - End Time 2025-02-10 20:40:05 [2025-02-10 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446900', 'tblTempUsageDetail_20' ) start [2025-02-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446900', 'tblTempUsageDetail_20' ) end [2025-02-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446900', 'tblTempVendorCDR_20' ) start [2025-02-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446900', 'tblTempVendorCDR_20' ) end [2025-02-10 20:40:19] Production.INFO: ProcessCDR(1,14446900,1,1,2) [2025-02-10 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446900', 'tblTempUsageDetail_20' ) start [2025-02-10 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446900', 'tblTempUsageDetail_20' ) end [2025-02-10 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:40:22] Production.INFO: ==29744== Releasing lock... [2025-02-10 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:40:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-10 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:41:05 [end_date_ymd] => 2025-02-10 20:41:05 [RateCDR] => 1 ) [2025-02-10 20:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:41:05' and `end` < '2025-02-10 20:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:41:19] Production.INFO: count ==1702 [2025-02-10 20:41:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:41:05 - End Time 2025-02-10 20:41:05 [2025-02-10 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446905', 'tblTempUsageDetail_20' ) start [2025-02-10 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446905', 'tblTempUsageDetail_20' ) end [2025-02-10 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446905', 'tblTempVendorCDR_20' ) start [2025-02-10 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446905', 'tblTempVendorCDR_20' ) end [2025-02-10 20:41:20] Production.INFO: ProcessCDR(1,14446905,1,1,2) [2025-02-10 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446905', 'tblTempUsageDetail_20' ) start [2025-02-10 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446905', 'tblTempUsageDetail_20' ) end [2025-02-10 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:41:23] Production.INFO: ==29819== Releasing lock... [2025-02-10 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:41:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:42:06 [end_date_ymd] => 2025-02-10 20:42:06 [RateCDR] => 1 ) [2025-02-10 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:42:06' and `end` < '2025-02-10 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:42:19] Production.INFO: count ==1614 [2025-02-10 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:42:06 - End Time 2025-02-10 20:42:06 [2025-02-10 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446910', 'tblTempUsageDetail_20' ) start [2025-02-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446910', 'tblTempUsageDetail_20' ) end [2025-02-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446910', 'tblTempVendorCDR_20' ) start [2025-02-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446910', 'tblTempVendorCDR_20' ) end [2025-02-10 20:42:19] Production.INFO: ProcessCDR(1,14446910,1,1,2) [2025-02-10 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446910', 'tblTempUsageDetail_20' ) start [2025-02-10 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446910', 'tblTempUsageDetail_20' ) end [2025-02-10 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:42:23] Production.INFO: ==29893== Releasing lock... [2025-02-10 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:43:06 [end_date_ymd] => 2025-02-10 20:43:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:43:06' and `end` < '2025-02-10 20: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-10 20:43:19] Production.INFO: count ==1560 [2025-02-10 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:43:06 - End Time 2025-02-10 20:43:06 [2025-02-10 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446915', 'tblTempUsageDetail_20' ) start [2025-02-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446915', 'tblTempUsageDetail_20' ) end [2025-02-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446915', 'tblTempVendorCDR_20' ) start [2025-02-10 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446915', 'tblTempVendorCDR_20' ) end [2025-02-10 20:43:19] Production.INFO: ProcessCDR(1,14446915,1,1,2) [2025-02-10 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446915', 'tblTempUsageDetail_20' ) start [2025-02-10 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446915', 'tblTempUsageDetail_20' ) end [2025-02-10 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:43:23] Production.INFO: ==29963== Releasing lock... [2025-02-10 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:43:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:44:06 [end_date_ymd] => 2025-02-10 20:44:06 [RateCDR] => 1 ) [2025-02-10 20:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:44:06' and `end` < '2025-02-10 20:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:44:21] Production.INFO: count ==1545 [2025-02-10 20:44:21] Production.ERROR: pbx CDR StartTime 2025-02-10 17:44:06 - End Time 2025-02-10 20:44:06 [2025-02-10 20:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446920', 'tblTempUsageDetail_20' ) start [2025-02-10 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446920', 'tblTempUsageDetail_20' ) end [2025-02-10 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446920', 'tblTempVendorCDR_20' ) start [2025-02-10 20:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446920', 'tblTempVendorCDR_20' ) end [2025-02-10 20:44:21] Production.INFO: ProcessCDR(1,14446920,1,1,2) [2025-02-10 20:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446920', 'tblTempUsageDetail_20' ) start [2025-02-10 20:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446920', 'tblTempUsageDetail_20' ) end [2025-02-10 20:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:44:25] Production.INFO: ==30032== Releasing lock... [2025-02-10 20:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:44:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:45:05 [end_date_ymd] => 2025-02-10 20:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:45:05' and `end` < '2025-02-10 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-10 20:45:18] Production.INFO: count ==1541 [2025-02-10 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:45:05 - End Time 2025-02-10 20:45:05 [2025-02-10 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446925', 'tblTempUsageDetail_20' ) start [2025-02-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446925', 'tblTempUsageDetail_20' ) end [2025-02-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446925', 'tblTempVendorCDR_20' ) start [2025-02-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446925', 'tblTempVendorCDR_20' ) end [2025-02-10 20:45:18] Production.INFO: ProcessCDR(1,14446925,1,1,2) [2025-02-10 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446925', 'tblTempUsageDetail_20' ) start [2025-02-10 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446925', 'tblTempUsageDetail_20' ) end [2025-02-10 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:45:22] Production.INFO: ==30103== Releasing lock... [2025-02-10 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:46:05 [end_date_ymd] => 2025-02-10 20:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:46:05' and `end` < '2025-02-10 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-10 20:46:19] Production.INFO: count ==1538 [2025-02-10 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:46:05 - End Time 2025-02-10 20:46:05 [2025-02-10 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446930', 'tblTempUsageDetail_20' ) start [2025-02-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446930', 'tblTempUsageDetail_20' ) end [2025-02-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446930', 'tblTempVendorCDR_20' ) start [2025-02-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446930', 'tblTempVendorCDR_20' ) end [2025-02-10 20:46:19] Production.INFO: ProcessCDR(1,14446930,1,1,2) [2025-02-10 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446930', 'tblTempUsageDetail_20' ) start [2025-02-10 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446930', 'tblTempUsageDetail_20' ) end [2025-02-10 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:46:23] Production.INFO: ==30174== Releasing lock... [2025-02-10 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:46:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:47:05 [end_date_ymd] => 2025-02-10 20:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:47:05' and `end` < '2025-02-10 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-10 20:47:18] Production.INFO: count ==1534 [2025-02-10 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:47:05 - End Time 2025-02-10 20:47:05 [2025-02-10 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446935', 'tblTempUsageDetail_20' ) start [2025-02-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446935', 'tblTempUsageDetail_20' ) end [2025-02-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446935', 'tblTempVendorCDR_20' ) start [2025-02-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446935', 'tblTempVendorCDR_20' ) end [2025-02-10 20:47:18] Production.INFO: ProcessCDR(1,14446935,1,1,2) [2025-02-10 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446935', 'tblTempUsageDetail_20' ) start [2025-02-10 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446935', 'tblTempUsageDetail_20' ) end [2025-02-10 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:47:22] Production.INFO: ==30246== Releasing lock... [2025-02-10 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:47:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:48:05 [end_date_ymd] => 2025-02-10 20:48:05 [RateCDR] => 1 ) [2025-02-10 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:48:05' and `end` < '2025-02-10 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:48:18] Production.INFO: count ==1533 [2025-02-10 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:48:05 - End Time 2025-02-10 20:48:05 [2025-02-10 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446940', 'tblTempUsageDetail_20' ) start [2025-02-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446940', 'tblTempUsageDetail_20' ) end [2025-02-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446940', 'tblTempVendorCDR_20' ) start [2025-02-10 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446940', 'tblTempVendorCDR_20' ) end [2025-02-10 20:48:19] Production.INFO: ProcessCDR(1,14446940,1,1,2) [2025-02-10 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446940', 'tblTempUsageDetail_20' ) start [2025-02-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446940', 'tblTempUsageDetail_20' ) end [2025-02-10 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:48:22] Production.INFO: ==30320== Releasing lock... [2025-02-10 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:48:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:49:05 [end_date_ymd] => 2025-02-10 20:49:05 [RateCDR] => 1 ) [2025-02-10 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:49:05' and `end` < '2025-02-10 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:49:18] Production.INFO: count ==1531 [2025-02-10 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:49:05 - End Time 2025-02-10 20:49:05 [2025-02-10 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446945', 'tblTempUsageDetail_20' ) start [2025-02-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446945', 'tblTempUsageDetail_20' ) end [2025-02-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446945', 'tblTempVendorCDR_20' ) start [2025-02-10 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446945', 'tblTempVendorCDR_20' ) end [2025-02-10 20:49:19] Production.INFO: ProcessCDR(1,14446945,1,1,2) [2025-02-10 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446945', 'tblTempUsageDetail_20' ) start [2025-02-10 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446945', 'tblTempUsageDetail_20' ) end [2025-02-10 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:49:22] Production.INFO: ==30391== Releasing lock... [2025-02-10 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:49:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:50:06 [end_date_ymd] => 2025-02-10 20:50:06 [RateCDR] => 1 ) [2025-02-10 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:50:06' and `end` < '2025-02-10 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:50:19] Production.INFO: count ==1528 [2025-02-10 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:50:06 - End Time 2025-02-10 20:50:06 [2025-02-10 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446951', 'tblTempUsageDetail_20' ) start [2025-02-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446951', 'tblTempUsageDetail_20' ) end [2025-02-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446951', 'tblTempVendorCDR_20' ) start [2025-02-10 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446951', 'tblTempVendorCDR_20' ) end [2025-02-10 20:50:20] Production.INFO: ProcessCDR(1,14446951,1,1,2) [2025-02-10 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446951', 'tblTempUsageDetail_20' ) start [2025-02-10 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446951', 'tblTempUsageDetail_20' ) end [2025-02-10 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:50:23] Production.INFO: ==30464== Releasing lock... [2025-02-10 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:50:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:51:05 [end_date_ymd] => 2025-02-10 20:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:51:05' and `end` < '2025-02-10 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-10 20:51:18] Production.INFO: count ==1495 [2025-02-10 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:51:05 - End Time 2025-02-10 20:51:05 [2025-02-10 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446956', 'tblTempUsageDetail_20' ) start [2025-02-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446956', 'tblTempUsageDetail_20' ) end [2025-02-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446956', 'tblTempVendorCDR_20' ) start [2025-02-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446956', 'tblTempVendorCDR_20' ) end [2025-02-10 20:51:19] Production.INFO: ProcessCDR(1,14446956,1,1,2) [2025-02-10 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446956', 'tblTempUsageDetail_20' ) start [2025-02-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446956', 'tblTempUsageDetail_20' ) end [2025-02-10 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:51:22] Production.INFO: ==30538== Releasing lock... [2025-02-10 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:51:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:52:06 [end_date_ymd] => 2025-02-10 20:52:06 [RateCDR] => 1 ) [2025-02-10 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-10 17:52:06' and `end` < '2025-02-10 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-10 20:52:19] Production.INFO: count ==1492 [2025-02-10 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:52:06 - End Time 2025-02-10 20:52:06 [2025-02-10 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446961', 'tblTempUsageDetail_20' ) start [2025-02-10 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446961', 'tblTempUsageDetail_20' ) end [2025-02-10 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446961', 'tblTempVendorCDR_20' ) start [2025-02-10 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446961', 'tblTempVendorCDR_20' ) end [2025-02-10 20:52:19] Production.INFO: ProcessCDR(1,14446961,1,1,2) [2025-02-10 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446961', 'tblTempUsageDetail_20' ) start [2025-02-10 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446961', 'tblTempUsageDetail_20' ) end [2025-02-10 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:52:23] Production.INFO: ==30609== Releasing lock... [2025-02-10 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:52:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:53:05 [end_date_ymd] => 2025-02-10 20:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:53:05' and `end` < '2025-02-10 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-10 20:53:18] Production.INFO: count ==1492 [2025-02-10 20:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:53:05 - End Time 2025-02-10 20:53:05 [2025-02-10 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446966', 'tblTempUsageDetail_20' ) start [2025-02-10 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446966', 'tblTempUsageDetail_20' ) end [2025-02-10 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446966', 'tblTempVendorCDR_20' ) start [2025-02-10 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446966', 'tblTempVendorCDR_20' ) end [2025-02-10 20:53:18] Production.INFO: ProcessCDR(1,14446966,1,1,2) [2025-02-10 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446966', 'tblTempUsageDetail_20' ) start [2025-02-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446966', 'tblTempUsageDetail_20' ) end [2025-02-10 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:53:22] Production.INFO: ==30688== Releasing lock... [2025-02-10 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:53:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:54:06 [end_date_ymd] => 2025-02-10 20:54:06 [RateCDR] => 1 ) [2025-02-10 20:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:54:06' and `end` < '2025-02-10 20:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:54:19] Production.INFO: count ==1491 [2025-02-10 20:54:20] Production.ERROR: pbx CDR StartTime 2025-02-10 17:54:06 - End Time 2025-02-10 20:54:06 [2025-02-10 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446971', 'tblTempUsageDetail_20' ) start [2025-02-10 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446971', 'tblTempUsageDetail_20' ) end [2025-02-10 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446971', 'tblTempVendorCDR_20' ) start [2025-02-10 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446971', 'tblTempVendorCDR_20' ) end [2025-02-10 20:54:20] Production.INFO: ProcessCDR(1,14446971,1,1,2) [2025-02-10 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446971', 'tblTempUsageDetail_20' ) start [2025-02-10 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446971', 'tblTempUsageDetail_20' ) end [2025-02-10 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:54:23] Production.INFO: ==30759== Releasing lock... [2025-02-10 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:54:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:55:06 [end_date_ymd] => 2025-02-10 20:55:06 [RateCDR] => 1 ) [2025-02-10 20: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-10 17:55:06' and `end` < '2025-02-10 20: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-10 20:55:19] Production.INFO: count ==1483 [2025-02-10 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:55:06 - End Time 2025-02-10 20:55:06 [2025-02-10 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446976', 'tblTempUsageDetail_20' ) start [2025-02-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446976', 'tblTempUsageDetail_20' ) end [2025-02-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446976', 'tblTempVendorCDR_20' ) start [2025-02-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446976', 'tblTempVendorCDR_20' ) end [2025-02-10 20:55:19] Production.INFO: ProcessCDR(1,14446976,1,1,2) [2025-02-10 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446976', 'tblTempUsageDetail_20' ) start [2025-02-10 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446976', 'tblTempUsageDetail_20' ) end [2025-02-10 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:55:23] Production.INFO: ==30828== Releasing lock... [2025-02-10 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:55:23] Production.INFO: 39 MB #Memory Used# [2025-02-10 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:56:06 [end_date_ymd] => 2025-02-10 20:56:06 [RateCDR] => 1 ) [2025-02-10 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-10 17:56:06' and `end` < '2025-02-10 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-10 20:56:19] Production.INFO: count ==1471 [2025-02-10 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:56:06 - End Time 2025-02-10 20:56:06 [2025-02-10 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446981', 'tblTempUsageDetail_20' ) start [2025-02-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446981', 'tblTempUsageDetail_20' ) end [2025-02-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446981', 'tblTempVendorCDR_20' ) start [2025-02-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446981', 'tblTempVendorCDR_20' ) end [2025-02-10 20:56:19] Production.INFO: ProcessCDR(1,14446981,1,1,2) [2025-02-10 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446981', 'tblTempUsageDetail_20' ) start [2025-02-10 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446981', 'tblTempUsageDetail_20' ) end [2025-02-10 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:56:23] Production.INFO: ==30940== Releasing lock... [2025-02-10 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:56:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:57:05 [end_date_ymd] => 2025-02-10 20:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:57:05' and `end` < '2025-02-10 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-10 20:57:18] Production.INFO: count ==1460 [2025-02-10 20:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:57:05 - End Time 2025-02-10 20:57:05 [2025-02-10 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446986', 'tblTempUsageDetail_20' ) start [2025-02-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446986', 'tblTempUsageDetail_20' ) end [2025-02-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446986', 'tblTempVendorCDR_20' ) start [2025-02-10 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446986', 'tblTempVendorCDR_20' ) end [2025-02-10 20:57:18] Production.INFO: ProcessCDR(1,14446986,1,1,2) [2025-02-10 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446986', 'tblTempUsageDetail_20' ) start [2025-02-10 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446986', 'tblTempUsageDetail_20' ) end [2025-02-10 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:57:22] Production.INFO: ==31011== Releasing lock... [2025-02-10 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:58:06 [end_date_ymd] => 2025-02-10 20:58:06 [RateCDR] => 1 ) [2025-02-10 20:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 17:58:06' and `end` < '2025-02-10 20:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 20:58:19] Production.INFO: count ==1455 [2025-02-10 20:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 17:58:06 - End Time 2025-02-10 20:58:06 [2025-02-10 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446991', 'tblTempUsageDetail_20' ) start [2025-02-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446991', 'tblTempUsageDetail_20' ) end [2025-02-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446991', 'tblTempVendorCDR_20' ) start [2025-02-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446991', 'tblTempVendorCDR_20' ) end [2025-02-10 20:58:19] Production.INFO: ProcessCDR(1,14446991,1,1,2) [2025-02-10 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446991', 'tblTempUsageDetail_20' ) start [2025-02-10 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446991', 'tblTempUsageDetail_20' ) end [2025-02-10 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:58:23] Production.INFO: ==31082== Releasing lock... [2025-02-10 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:58:23] Production.INFO: 39 MB #Memory Used# [2025-02-10 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 17:59:05 [end_date_ymd] => 2025-02-10 20:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 17:59:05' and `end` < '2025-02-10 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-10 20:59:18] Production.INFO: count ==1445 [2025-02-10 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 17:59:05 - End Time 2025-02-10 20:59:05 [2025-02-10 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446996', 'tblTempUsageDetail_20' ) start [2025-02-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14446996', 'tblTempUsageDetail_20' ) end [2025-02-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446996', 'tblTempVendorCDR_20' ) start [2025-02-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14446996', 'tblTempVendorCDR_20' ) end [2025-02-10 20:59:18] Production.INFO: ProcessCDR(1,14446996,1,1,2) [2025-02-10 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14446996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14446996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14446996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14446996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 20:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446996', 'tblTempUsageDetail_20' ) start [2025-02-10 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14446996', 'tblTempUsageDetail_20' ) end [2025-02-10 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 20:59:24] Production.INFO: ==31154== Releasing lock... [2025-02-10 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 20:59:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:00:06 [end_date_ymd] => 2025-02-10 21:00:06 [RateCDR] => 1 ) [2025-02-10 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-10 18:00:06' and `end` < '2025-02-10 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-10 21:00:19] Production.INFO: count ==1439 [2025-02-10 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:00:06 - End Time 2025-02-10 21:00:06 [2025-02-10 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447002', 'tblTempUsageDetail_20' ) start [2025-02-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447002', 'tblTempUsageDetail_20' ) end [2025-02-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447002', 'tblTempVendorCDR_20' ) start [2025-02-10 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447002', 'tblTempVendorCDR_20' ) end [2025-02-10 21:00:20] Production.INFO: ProcessCDR(1,14447002,1,1,2) [2025-02-10 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447002', 'tblTempUsageDetail_20' ) start [2025-02-10 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447002', 'tblTempUsageDetail_20' ) end [2025-02-10 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:00:23] Production.INFO: ==31232== Releasing lock... [2025-02-10 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:01:05 [end_date_ymd] => 2025-02-10 21:01:05 [RateCDR] => 1 ) [2025-02-10 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:01:05' and `end` < '2025-02-10 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:01:18] Production.INFO: count ==1431 [2025-02-10 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:01:05 - End Time 2025-02-10 21:01:05 [2025-02-10 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447007', 'tblTempUsageDetail_20' ) start [2025-02-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447007', 'tblTempUsageDetail_20' ) end [2025-02-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447007', 'tblTempVendorCDR_20' ) start [2025-02-10 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447007', 'tblTempVendorCDR_20' ) end [2025-02-10 21:01:19] Production.INFO: ProcessCDR(1,14447007,1,1,2) [2025-02-10 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447007', 'tblTempUsageDetail_20' ) start [2025-02-10 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447007', 'tblTempUsageDetail_20' ) end [2025-02-10 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:01:22] Production.INFO: ==31317== Releasing lock... [2025-02-10 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:02:06 [end_date_ymd] => 2025-02-10 21:02:06 [RateCDR] => 1 ) [2025-02-10 21: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-10 18:02:06' and `end` < '2025-02-10 21: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-10 21:02:19] Production.INFO: count ==1434 [2025-02-10 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:02:06 - End Time 2025-02-10 21:02:06 [2025-02-10 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447012', 'tblTempUsageDetail_20' ) start [2025-02-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447012', 'tblTempUsageDetail_20' ) end [2025-02-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447012', 'tblTempVendorCDR_20' ) start [2025-02-10 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447012', 'tblTempVendorCDR_20' ) end [2025-02-10 21:02:19] Production.INFO: ProcessCDR(1,14447012,1,1,2) [2025-02-10 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447012', 'tblTempUsageDetail_20' ) start [2025-02-10 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447012', 'tblTempUsageDetail_20' ) end [2025-02-10 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:02:23] Production.INFO: ==31390== Releasing lock... [2025-02-10 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:02:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:03:05 [end_date_ymd] => 2025-02-10 21:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:03:05' and `end` < '2025-02-10 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-10 21:03:18] Production.INFO: count ==1494 [2025-02-10 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:03:05 - End Time 2025-02-10 21:03:05 [2025-02-10 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447017', 'tblTempUsageDetail_20' ) start [2025-02-10 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447017', 'tblTempUsageDetail_20' ) end [2025-02-10 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447017', 'tblTempVendorCDR_20' ) start [2025-02-10 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447017', 'tblTempVendorCDR_20' ) end [2025-02-10 21:03:19] Production.INFO: ProcessCDR(1,14447017,1,1,2) [2025-02-10 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447017', 'tblTempUsageDetail_20' ) start [2025-02-10 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447017', 'tblTempUsageDetail_20' ) end [2025-02-10 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:03:22] Production.INFO: ==31461== Releasing lock... [2025-02-10 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:04:06 [end_date_ymd] => 2025-02-10 21:04:06 [RateCDR] => 1 ) [2025-02-10 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-10 18:04:06' and `end` < '2025-02-10 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-10 21:04:19] Production.INFO: count ==1491 [2025-02-10 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:04:06 - End Time 2025-02-10 21:04:06 [2025-02-10 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447022', 'tblTempUsageDetail_20' ) start [2025-02-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447022', 'tblTempUsageDetail_20' ) end [2025-02-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447022', 'tblTempVendorCDR_20' ) start [2025-02-10 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447022', 'tblTempVendorCDR_20' ) end [2025-02-10 21:04:19] Production.INFO: ProcessCDR(1,14447022,1,1,2) [2025-02-10 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447022', 'tblTempUsageDetail_20' ) start [2025-02-10 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447022', 'tblTempUsageDetail_20' ) end [2025-02-10 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:04:23] Production.INFO: ==31533== Releasing lock... [2025-02-10 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:04:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:05:05 [end_date_ymd] => 2025-02-10 21:05:05 [RateCDR] => 1 ) [2025-02-10 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:05:05' and `end` < '2025-02-10 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:05:18] Production.INFO: count ==1545 [2025-02-10 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:05:05 - End Time 2025-02-10 21:05:05 [2025-02-10 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447027', 'tblTempUsageDetail_20' ) start [2025-02-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447027', 'tblTempUsageDetail_20' ) end [2025-02-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447027', 'tblTempVendorCDR_20' ) start [2025-02-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447027', 'tblTempVendorCDR_20' ) end [2025-02-10 21:05:18] Production.INFO: ProcessCDR(1,14447027,1,1,2) [2025-02-10 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447027', 'tblTempUsageDetail_20' ) start [2025-02-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447027', 'tblTempUsageDetail_20' ) end [2025-02-10 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:05:21] Production.INFO: ==31607== Releasing lock... [2025-02-10 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:05:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:06:05 [end_date_ymd] => 2025-02-10 21:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:06:05' and `end` < '2025-02-10 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-10 21:06:20] Production.INFO: count ==1542 [2025-02-10 21:06:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:06:05 - End Time 2025-02-10 21:06:05 [2025-02-10 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447032', 'tblTempUsageDetail_20' ) start [2025-02-10 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447032', 'tblTempUsageDetail_20' ) end [2025-02-10 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447032', 'tblTempVendorCDR_20' ) start [2025-02-10 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447032', 'tblTempVendorCDR_20' ) end [2025-02-10 21:06:20] Production.INFO: ProcessCDR(1,14447032,1,1,2) [2025-02-10 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447032', 'tblTempUsageDetail_20' ) start [2025-02-10 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447032', 'tblTempUsageDetail_20' ) end [2025-02-10 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:06:23] Production.INFO: ==31677== Releasing lock... [2025-02-10 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:06:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:07:05 [end_date_ymd] => 2025-02-10 21:07:05 [RateCDR] => 1 ) [2025-02-10 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:07:05' and `end` < '2025-02-10 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:07:19] Production.INFO: count ==1535 [2025-02-10 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:07:05 - End Time 2025-02-10 21:07:05 [2025-02-10 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447037', 'tblTempUsageDetail_20' ) start [2025-02-10 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447037', 'tblTempUsageDetail_20' ) end [2025-02-10 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447037', 'tblTempVendorCDR_20' ) start [2025-02-10 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447037', 'tblTempVendorCDR_20' ) end [2025-02-10 21:07:19] Production.INFO: ProcessCDR(1,14447037,1,1,2) [2025-02-10 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447037', 'tblTempUsageDetail_20' ) start [2025-02-10 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447037', 'tblTempUsageDetail_20' ) end [2025-02-10 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:07:23] Production.INFO: ==31748== Releasing lock... [2025-02-10 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:07:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:08:05 [end_date_ymd] => 2025-02-10 21:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:08:05' and `end` < '2025-02-10 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-10 21:08:19] Production.INFO: count ==1528 [2025-02-10 21:08:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:08:05 - End Time 2025-02-10 21:08:05 [2025-02-10 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447042', 'tblTempUsageDetail_20' ) start [2025-02-10 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447042', 'tblTempUsageDetail_20' ) end [2025-02-10 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447042', 'tblTempVendorCDR_20' ) start [2025-02-10 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447042', 'tblTempVendorCDR_20' ) end [2025-02-10 21:08:20] Production.INFO: ProcessCDR(1,14447042,1,1,2) [2025-02-10 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447042', 'tblTempUsageDetail_20' ) start [2025-02-10 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447042', 'tblTempUsageDetail_20' ) end [2025-02-10 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:08:23] Production.INFO: ==31820== Releasing lock... [2025-02-10 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:08:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:09:05 [end_date_ymd] => 2025-02-10 21:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:09:05' and `end` < '2025-02-10 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-10 21:09:18] Production.INFO: count ==1523 [2025-02-10 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:09:05 - End Time 2025-02-10 21:09:05 [2025-02-10 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447047', 'tblTempUsageDetail_20' ) start [2025-02-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447047', 'tblTempUsageDetail_20' ) end [2025-02-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447047', 'tblTempVendorCDR_20' ) start [2025-02-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447047', 'tblTempVendorCDR_20' ) end [2025-02-10 21:09:18] Production.INFO: ProcessCDR(1,14447047,1,1,2) [2025-02-10 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447047', 'tblTempUsageDetail_20' ) start [2025-02-10 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447047', 'tblTempUsageDetail_20' ) end [2025-02-10 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:09:21] Production.INFO: ==31890== Releasing lock... [2025-02-10 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:09:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:10:06 [end_date_ymd] => 2025-02-10 21:10:06 [RateCDR] => 1 ) [2025-02-10 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:10:06' and `end` < '2025-02-10 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:10:19] Production.INFO: count ==1518 [2025-02-10 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:10:06 - End Time 2025-02-10 21:10:06 [2025-02-10 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447052', 'tblTempUsageDetail_20' ) start [2025-02-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447052', 'tblTempUsageDetail_20' ) end [2025-02-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447052', 'tblTempVendorCDR_20' ) start [2025-02-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447052', 'tblTempVendorCDR_20' ) end [2025-02-10 21:10:19] Production.INFO: ProcessCDR(1,14447052,1,1,2) [2025-02-10 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447052', 'tblTempUsageDetail_20' ) start [2025-02-10 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447052', 'tblTempUsageDetail_20' ) end [2025-02-10 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:10:23] Production.INFO: ==31963== Releasing lock... [2025-02-10 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:10:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:11:06 [end_date_ymd] => 2025-02-10 21:11:06 [RateCDR] => 1 ) [2025-02-10 21: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-10 18:11:06' and `end` < '2025-02-10 21: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-10 21:11:19] Production.INFO: count ==1485 [2025-02-10 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:11:06 - End Time 2025-02-10 21:11:06 [2025-02-10 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447058', 'tblTempUsageDetail_20' ) start [2025-02-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447058', 'tblTempUsageDetail_20' ) end [2025-02-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447058', 'tblTempVendorCDR_20' ) start [2025-02-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447058', 'tblTempVendorCDR_20' ) end [2025-02-10 21:11:19] Production.INFO: ProcessCDR(1,14447058,1,1,2) [2025-02-10 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447058', 'tblTempUsageDetail_20' ) start [2025-02-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447058', 'tblTempUsageDetail_20' ) end [2025-02-10 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:11:22] Production.INFO: ==32076== Releasing lock... [2025-02-10 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:11:22] Production.INFO: 39 MB #Memory Used# [2025-02-10 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:12:05 [end_date_ymd] => 2025-02-10 21:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:12:05' and `end` < '2025-02-10 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-10 21:12:18] Production.INFO: count ==1591 [2025-02-10 21:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:12:05 - End Time 2025-02-10 21:12:05 [2025-02-10 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447063', 'tblTempUsageDetail_20' ) start [2025-02-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447063', 'tblTempUsageDetail_20' ) end [2025-02-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447063', 'tblTempVendorCDR_20' ) start [2025-02-10 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447063', 'tblTempVendorCDR_20' ) end [2025-02-10 21:12:18] Production.INFO: ProcessCDR(1,14447063,1,1,2) [2025-02-10 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447063', 'tblTempUsageDetail_20' ) start [2025-02-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447063', 'tblTempUsageDetail_20' ) end [2025-02-10 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:12:22] Production.INFO: ==32153== Releasing lock... [2025-02-10 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:12:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:13:05 [end_date_ymd] => 2025-02-10 21:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:13:05' and `end` < '2025-02-10 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-10 21:13:18] Production.INFO: count ==1589 [2025-02-10 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:13:05 - End Time 2025-02-10 21:13:05 [2025-02-10 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447068', 'tblTempUsageDetail_20' ) start [2025-02-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447068', 'tblTempUsageDetail_20' ) end [2025-02-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447068', 'tblTempVendorCDR_20' ) start [2025-02-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447068', 'tblTempVendorCDR_20' ) end [2025-02-10 21:13:19] Production.INFO: ProcessCDR(1,14447068,1,1,2) [2025-02-10 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447068', 'tblTempUsageDetail_20' ) start [2025-02-10 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447068', 'tblTempUsageDetail_20' ) end [2025-02-10 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:13:23] Production.INFO: ==32229== Releasing lock... [2025-02-10 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:13:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:14:05 [end_date_ymd] => 2025-02-10 21:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:14:05' and `end` < '2025-02-10 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-10 21:14:19] Production.INFO: count ==1630 [2025-02-10 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:14:05 - End Time 2025-02-10 21:14:05 [2025-02-10 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447073', 'tblTempUsageDetail_20' ) start [2025-02-10 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447073', 'tblTempUsageDetail_20' ) end [2025-02-10 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447073', 'tblTempVendorCDR_20' ) start [2025-02-10 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447073', 'tblTempVendorCDR_20' ) end [2025-02-10 21:14:19] Production.INFO: ProcessCDR(1,14447073,1,1,2) [2025-02-10 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447073', 'tblTempUsageDetail_20' ) start [2025-02-10 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447073', 'tblTempUsageDetail_20' ) end [2025-02-10 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:14:24] Production.INFO: ==32309== Releasing lock... [2025-02-10 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:14:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:15:05 [end_date_ymd] => 2025-02-10 21:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:15:05' and `end` < '2025-02-10 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-10 21:15:18] Production.INFO: count ==1626 [2025-02-10 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:15:05 - End Time 2025-02-10 21:15:05 [2025-02-10 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447078', 'tblTempUsageDetail_20' ) start [2025-02-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447078', 'tblTempUsageDetail_20' ) end [2025-02-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447078', 'tblTempVendorCDR_20' ) start [2025-02-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447078', 'tblTempVendorCDR_20' ) end [2025-02-10 21:15:19] Production.INFO: ProcessCDR(1,14447078,1,1,2) [2025-02-10 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447078', 'tblTempUsageDetail_20' ) start [2025-02-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447078', 'tblTempUsageDetail_20' ) end [2025-02-10 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:15:22] Production.INFO: ==32386== Releasing lock... [2025-02-10 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:16:05 [end_date_ymd] => 2025-02-10 21:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:16:05' and `end` < '2025-02-10 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-10 21:16:18] Production.INFO: count ==1618 [2025-02-10 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:16:05 - End Time 2025-02-10 21:16:05 [2025-02-10 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447083', 'tblTempUsageDetail_20' ) start [2025-02-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447083', 'tblTempUsageDetail_20' ) end [2025-02-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447083', 'tblTempVendorCDR_20' ) start [2025-02-10 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447083', 'tblTempVendorCDR_20' ) end [2025-02-10 21:16:19] Production.INFO: ProcessCDR(1,14447083,1,1,2) [2025-02-10 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447083', 'tblTempUsageDetail_20' ) start [2025-02-10 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447083', 'tblTempUsageDetail_20' ) end [2025-02-10 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:16:22] Production.INFO: ==32456== Releasing lock... [2025-02-10 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:16:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:17:05 [end_date_ymd] => 2025-02-10 21:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:17:05' and `end` < '2025-02-10 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-10 21:17:19] Production.INFO: count ==1611 [2025-02-10 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:17:05 - End Time 2025-02-10 21:17:05 [2025-02-10 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447088', 'tblTempUsageDetail_20' ) start [2025-02-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447088', 'tblTempUsageDetail_20' ) end [2025-02-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447088', 'tblTempVendorCDR_20' ) start [2025-02-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447088', 'tblTempVendorCDR_20' ) end [2025-02-10 21:17:19] Production.INFO: ProcessCDR(1,14447088,1,1,2) [2025-02-10 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447088', 'tblTempUsageDetail_20' ) start [2025-02-10 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447088', 'tblTempUsageDetail_20' ) end [2025-02-10 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:17:24] Production.INFO: ==32529== Releasing lock... [2025-02-10 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:17:24] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:18:05 [end_date_ymd] => 2025-02-10 21:18:05 [RateCDR] => 1 ) [2025-02-10 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:18:05' and `end` < '2025-02-10 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:18:18] Production.INFO: count ==1610 [2025-02-10 21:18:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:18:05 - End Time 2025-02-10 21:18:05 [2025-02-10 21:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447093', 'tblTempUsageDetail_20' ) start [2025-02-10 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447093', 'tblTempUsageDetail_20' ) end [2025-02-10 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447093', 'tblTempVendorCDR_20' ) start [2025-02-10 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447093', 'tblTempVendorCDR_20' ) end [2025-02-10 21:18:19] Production.INFO: ProcessCDR(1,14447093,1,1,2) [2025-02-10 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447093', 'tblTempUsageDetail_20' ) start [2025-02-10 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447093', 'tblTempUsageDetail_20' ) end [2025-02-10 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:18:23] Production.INFO: ==32599== Releasing lock... [2025-02-10 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:18:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:19:05 [end_date_ymd] => 2025-02-10 21:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:19:05' and `end` < '2025-02-10 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-10 21:19:18] Production.INFO: count ==1605 [2025-02-10 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:19:05 - End Time 2025-02-10 21:19:05 [2025-02-10 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447098', 'tblTempUsageDetail_20' ) start [2025-02-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447098', 'tblTempUsageDetail_20' ) end [2025-02-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447098', 'tblTempVendorCDR_20' ) start [2025-02-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447098', 'tblTempVendorCDR_20' ) end [2025-02-10 21:19:19] Production.INFO: ProcessCDR(1,14447098,1,1,2) [2025-02-10 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447098', 'tblTempUsageDetail_20' ) start [2025-02-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447098', 'tblTempUsageDetail_20' ) end [2025-02-10 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:19:22] Production.INFO: ==32670== Releasing lock... [2025-02-10 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:19:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:20:06 [end_date_ymd] => 2025-02-10 21:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 18:20:06' and `end` < '2025-02-10 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-10 21:20:19] Production.INFO: count ==1628 [2025-02-10 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:20:06 - End Time 2025-02-10 21:20:06 [2025-02-10 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447104', 'tblTempUsageDetail_20' ) start [2025-02-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447104', 'tblTempUsageDetail_20' ) end [2025-02-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447104', 'tblTempVendorCDR_20' ) start [2025-02-10 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447104', 'tblTempVendorCDR_20' ) end [2025-02-10 21:20:19] Production.INFO: ProcessCDR(1,14447104,1,1,2) [2025-02-10 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447104', 'tblTempUsageDetail_20' ) start [2025-02-10 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447104', 'tblTempUsageDetail_20' ) end [2025-02-10 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:20:23] Production.INFO: ==32742== Releasing lock... [2025-02-10 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:20:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:21:05 [end_date_ymd] => 2025-02-10 21:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:21:05' and `end` < '2025-02-10 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-10 21:21:18] Production.INFO: count ==1774 [2025-02-10 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:21:05 - End Time 2025-02-10 21:21:05 [2025-02-10 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447109', 'tblTempUsageDetail_20' ) start [2025-02-10 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447109', 'tblTempUsageDetail_20' ) end [2025-02-10 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447109', 'tblTempVendorCDR_20' ) start [2025-02-10 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447109', 'tblTempVendorCDR_20' ) end [2025-02-10 21:21:19] Production.INFO: ProcessCDR(1,14447109,1,1,2) [2025-02-10 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447109', 'tblTempUsageDetail_20' ) start [2025-02-10 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447109', 'tblTempUsageDetail_20' ) end [2025-02-10 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:21:22] Production.INFO: ==368== Releasing lock... [2025-02-10 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:21:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:22:05 [end_date_ymd] => 2025-02-10 21:22:05 [RateCDR] => 1 ) [2025-02-10 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:22:05' and `end` < '2025-02-10 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:22:18] Production.INFO: count ==1740 [2025-02-10 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:22:05 - End Time 2025-02-10 21:22:05 [2025-02-10 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447114', 'tblTempUsageDetail_20' ) start [2025-02-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447114', 'tblTempUsageDetail_20' ) end [2025-02-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447114', 'tblTempVendorCDR_20' ) start [2025-02-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447114', 'tblTempVendorCDR_20' ) end [2025-02-10 21:22:18] Production.INFO: ProcessCDR(1,14447114,1,1,2) [2025-02-10 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447114', 'tblTempUsageDetail_20' ) start [2025-02-10 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447114', 'tblTempUsageDetail_20' ) end [2025-02-10 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:22:23] Production.INFO: ==440== Releasing lock... [2025-02-10 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:22:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:23:05 [end_date_ymd] => 2025-02-10 21:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:23:05' and `end` < '2025-02-10 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-10 21:23:18] Production.INFO: count ==1718 [2025-02-10 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:23:05 - End Time 2025-02-10 21:23:05 [2025-02-10 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447119', 'tblTempUsageDetail_20' ) start [2025-02-10 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447119', 'tblTempUsageDetail_20' ) end [2025-02-10 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447119', 'tblTempVendorCDR_20' ) start [2025-02-10 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447119', 'tblTempVendorCDR_20' ) end [2025-02-10 21:23:19] Production.INFO: ProcessCDR(1,14447119,1,1,2) [2025-02-10 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447119', 'tblTempUsageDetail_20' ) start [2025-02-10 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447119', 'tblTempUsageDetail_20' ) end [2025-02-10 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:23:22] Production.INFO: ==515== Releasing lock... [2025-02-10 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:24:04 [end_date_ymd] => 2025-02-10 21:24:04 [RateCDR] => 1 ) [2025-02-10 21:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:24:04' and `end` < '2025-02-10 21:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:24:18] Production.INFO: count ==1718 [2025-02-10 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:24:04 - End Time 2025-02-10 21:24:04 [2025-02-10 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447124', 'tblTempUsageDetail_20' ) start [2025-02-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447124', 'tblTempUsageDetail_20' ) end [2025-02-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447124', 'tblTempVendorCDR_20' ) start [2025-02-10 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447124', 'tblTempVendorCDR_20' ) end [2025-02-10 21:24:18] Production.INFO: ProcessCDR(1,14447124,1,1,2) [2025-02-10 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447124', 'tblTempUsageDetail_20' ) start [2025-02-10 21:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447124', 'tblTempUsageDetail_20' ) end [2025-02-10 21:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:24:21] Production.INFO: ==588== Releasing lock... [2025-02-10 21:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:24:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:25:05 [end_date_ymd] => 2025-02-10 21:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:25:05' and `end` < '2025-02-10 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-10 21:25:18] Production.INFO: count ==1719 [2025-02-10 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:25:05 - End Time 2025-02-10 21:25:05 [2025-02-10 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447129', 'tblTempUsageDetail_20' ) start [2025-02-10 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447129', 'tblTempUsageDetail_20' ) end [2025-02-10 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447129', 'tblTempVendorCDR_20' ) start [2025-02-10 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447129', 'tblTempVendorCDR_20' ) end [2025-02-10 21:25:19] Production.INFO: ProcessCDR(1,14447129,1,1,2) [2025-02-10 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447129', 'tblTempUsageDetail_20' ) start [2025-02-10 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447129', 'tblTempUsageDetail_20' ) end [2025-02-10 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:25:23] Production.INFO: ==676== Releasing lock... [2025-02-10 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:25:23] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:26:05 [end_date_ymd] => 2025-02-10 21:26:05 [RateCDR] => 1 ) [2025-02-10 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:26:05' and `end` < '2025-02-10 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:26:19] Production.INFO: count ==1719 [2025-02-10 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:26:05 - End Time 2025-02-10 21:26:05 [2025-02-10 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447134', 'tblTempUsageDetail_20' ) start [2025-02-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447134', 'tblTempUsageDetail_20' ) end [2025-02-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447134', 'tblTempVendorCDR_20' ) start [2025-02-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447134', 'tblTempVendorCDR_20' ) end [2025-02-10 21:26:19] Production.INFO: ProcessCDR(1,14447134,1,1,2) [2025-02-10 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447134', 'tblTempUsageDetail_20' ) start [2025-02-10 21:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447134', 'tblTempUsageDetail_20' ) end [2025-02-10 21:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:26:24] Production.INFO: ==764== Releasing lock... [2025-02-10 21:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:26:24] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:27:04 [end_date_ymd] => 2025-02-10 21:27:04 [RateCDR] => 1 ) [2025-02-10 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-10 18:27:04' and `end` < '2025-02-10 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-10 21:27:18] Production.INFO: count ==1724 [2025-02-10 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:27:04 - End Time 2025-02-10 21:27:04 [2025-02-10 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447139', 'tblTempUsageDetail_20' ) start [2025-02-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447139', 'tblTempUsageDetail_20' ) end [2025-02-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447139', 'tblTempVendorCDR_20' ) start [2025-02-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447139', 'tblTempVendorCDR_20' ) end [2025-02-10 21:27:18] Production.INFO: ProcessCDR(1,14447139,1,1,2) [2025-02-10 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447139', 'tblTempUsageDetail_20' ) start [2025-02-10 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447139', 'tblTempUsageDetail_20' ) end [2025-02-10 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:27:23] Production.INFO: ==878== Releasing lock... [2025-02-10 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:27:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:28:05 [end_date_ymd] => 2025-02-10 21:28:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:28:05' and `end` < '2025-02-10 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-10 21:28:19] Production.INFO: count ==1793 [2025-02-10 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:28:05 - End Time 2025-02-10 21:28:05 [2025-02-10 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447144', 'tblTempUsageDetail_20' ) start [2025-02-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447144', 'tblTempUsageDetail_20' ) end [2025-02-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447144', 'tblTempVendorCDR_20' ) start [2025-02-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447144', 'tblTempVendorCDR_20' ) end [2025-02-10 21:28:19] Production.INFO: ProcessCDR(1,14447144,1,1,2) [2025-02-10 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447144', 'tblTempUsageDetail_20' ) start [2025-02-10 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447144', 'tblTempUsageDetail_20' ) end [2025-02-10 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:28:24] Production.INFO: ==951== Releasing lock... [2025-02-10 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:28:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-10 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:29:05 [end_date_ymd] => 2025-02-10 21:29:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:29:05' and `end` < '2025-02-10 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-10 21:29:18] Production.INFO: count ==1781 [2025-02-10 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:29:05 - End Time 2025-02-10 21:29:05 [2025-02-10 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447149', 'tblTempUsageDetail_20' ) start [2025-02-10 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447149', 'tblTempUsageDetail_20' ) end [2025-02-10 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447149', 'tblTempVendorCDR_20' ) start [2025-02-10 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447149', 'tblTempVendorCDR_20' ) end [2025-02-10 21:29:19] Production.INFO: ProcessCDR(1,14447149,1,1,2) [2025-02-10 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447149', 'tblTempUsageDetail_20' ) start [2025-02-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447149', 'tblTempUsageDetail_20' ) end [2025-02-10 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:29:22] Production.INFO: ==1023== Releasing lock... [2025-02-10 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-10 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:30:06 [end_date_ymd] => 2025-02-10 21:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 18:30:06' and `end` < '2025-02-10 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-10 21:30:19] Production.INFO: count ==1777 [2025-02-10 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:30:06 - End Time 2025-02-10 21:30:06 [2025-02-10 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447154', 'tblTempUsageDetail_20' ) start [2025-02-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447154', 'tblTempUsageDetail_20' ) end [2025-02-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447154', 'tblTempVendorCDR_20' ) start [2025-02-10 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447154', 'tblTempVendorCDR_20' ) end [2025-02-10 21:30:19] Production.INFO: ProcessCDR(1,14447154,1,1,2) [2025-02-10 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447154', 'tblTempUsageDetail_20' ) start [2025-02-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447154', 'tblTempUsageDetail_20' ) end [2025-02-10 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:30:23] Production.INFO: ==1100== Releasing lock... [2025-02-10 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:30:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:31:04 [end_date_ymd] => 2025-02-10 21:31:04 [RateCDR] => 1 ) [2025-02-10 21: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-10 18:31:04' and `end` < '2025-02-10 21: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-10 21:31:17] Production.INFO: count ==1724 [2025-02-10 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:31:04 - End Time 2025-02-10 21:31:04 [2025-02-10 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447157', 'tblTempUsageDetail_20' ) start [2025-02-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447157', 'tblTempUsageDetail_20' ) end [2025-02-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447157', 'tblTempVendorCDR_20' ) start [2025-02-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447157', 'tblTempVendorCDR_20' ) end [2025-02-10 21:31:18] Production.INFO: ProcessCDR(1,14447157,1,1,2) [2025-02-10 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447157', 'tblTempUsageDetail_20' ) start [2025-02-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447157', 'tblTempUsageDetail_20' ) end [2025-02-10 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:31:21] Production.INFO: ==1184== Releasing lock... [2025-02-10 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:31:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:32:06 [end_date_ymd] => 2025-02-10 21:32:06 [RateCDR] => 1 ) [2025-02-10 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:32:06' and `end` < '2025-02-10 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:32:19] Production.INFO: count ==1723 [2025-02-10 21:32:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:32:06 - End Time 2025-02-10 21:32:06 [2025-02-10 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447165', 'tblTempUsageDetail_20' ) start [2025-02-10 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447165', 'tblTempUsageDetail_20' ) end [2025-02-10 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447165', 'tblTempVendorCDR_20' ) start [2025-02-10 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447165', 'tblTempVendorCDR_20' ) end [2025-02-10 21:32:20] Production.INFO: ProcessCDR(1,14447165,1,1,2) [2025-02-10 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447165', 'tblTempUsageDetail_20' ) start [2025-02-10 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447165', 'tblTempUsageDetail_20' ) end [2025-02-10 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:32:23] Production.INFO: ==1270== Releasing lock... [2025-02-10 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:32:23] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:33:05 [end_date_ymd] => 2025-02-10 21:33:05 [RateCDR] => 1 ) [2025-02-10 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:33:05' and `end` < '2025-02-10 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-10 21:33:18] Production.INFO: count ==1725 [2025-02-10 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:33:05 - End Time 2025-02-10 21:33:05 [2025-02-10 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447170', 'tblTempUsageDetail_20' ) start [2025-02-10 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447170', 'tblTempUsageDetail_20' ) end [2025-02-10 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447170', 'tblTempVendorCDR_20' ) start [2025-02-10 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447170', 'tblTempVendorCDR_20' ) end [2025-02-10 21:33:19] Production.INFO: ProcessCDR(1,14447170,1,1,2) [2025-02-10 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447170', 'tblTempUsageDetail_20' ) start [2025-02-10 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447170', 'tblTempUsageDetail_20' ) end [2025-02-10 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:33:22] Production.INFO: ==1341== Releasing lock... [2025-02-10 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:34:05 [end_date_ymd] => 2025-02-10 21:34:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:34:05' and `end` < '2025-02-10 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-10 21:34:18] Production.INFO: count ==1719 [2025-02-10 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:34:05 - End Time 2025-02-10 21:34:05 [2025-02-10 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447175', 'tblTempUsageDetail_20' ) start [2025-02-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447175', 'tblTempUsageDetail_20' ) end [2025-02-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447175', 'tblTempVendorCDR_20' ) start [2025-02-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447175', 'tblTempVendorCDR_20' ) end [2025-02-10 21:34:19] Production.INFO: ProcessCDR(1,14447175,1,1,2) [2025-02-10 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447175', 'tblTempUsageDetail_20' ) start [2025-02-10 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447175', 'tblTempUsageDetail_20' ) end [2025-02-10 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:34:22] Production.INFO: ==1416== Releasing lock... [2025-02-10 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:34:22] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:35:05 [end_date_ymd] => 2025-02-10 21:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:35:05' and `end` < '2025-02-10 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-10 21:35:18] Production.INFO: count ==1713 [2025-02-10 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:35:05 - End Time 2025-02-10 21:35:05 [2025-02-10 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447180', 'tblTempUsageDetail_20' ) start [2025-02-10 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447180', 'tblTempUsageDetail_20' ) end [2025-02-10 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447180', 'tblTempVendorCDR_20' ) start [2025-02-10 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447180', 'tblTempVendorCDR_20' ) end [2025-02-10 21:35:19] Production.INFO: ProcessCDR(1,14447180,1,1,2) [2025-02-10 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447180', 'tblTempUsageDetail_20' ) start [2025-02-10 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447180', 'tblTempUsageDetail_20' ) end [2025-02-10 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:35:22] Production.INFO: ==1488== Releasing lock... [2025-02-10 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:35:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-10 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:36:05 [end_date_ymd] => 2025-02-10 21:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:36:05' and `end` < '2025-02-10 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-10 21:36:18] Production.INFO: count ==1712 [2025-02-10 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:36:05 - End Time 2025-02-10 21:36:05 [2025-02-10 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447185', 'tblTempUsageDetail_20' ) start [2025-02-10 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447185', 'tblTempUsageDetail_20' ) end [2025-02-10 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447185', 'tblTempVendorCDR_20' ) start [2025-02-10 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447185', 'tblTempVendorCDR_20' ) end [2025-02-10 21:36:19] Production.INFO: ProcessCDR(1,14447185,1,1,2) [2025-02-10 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447185', 'tblTempUsageDetail_20' ) start [2025-02-10 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447185', 'tblTempUsageDetail_20' ) end [2025-02-10 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:36:22] Production.INFO: ==1598== Releasing lock... [2025-02-10 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:36:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:37:05 [end_date_ymd] => 2025-02-10 21:37:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:37:05' and `end` < '2025-02-10 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-10 21:37:19] Production.INFO: count ==1711 [2025-02-10 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:37:05 - End Time 2025-02-10 21:37:05 [2025-02-10 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447190', 'tblTempUsageDetail_20' ) start [2025-02-10 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447190', 'tblTempUsageDetail_20' ) end [2025-02-10 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447190', 'tblTempVendorCDR_20' ) start [2025-02-10 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447190', 'tblTempVendorCDR_20' ) end [2025-02-10 21:37:19] Production.INFO: ProcessCDR(1,14447190,1,1,2) [2025-02-10 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447190', 'tblTempUsageDetail_20' ) start [2025-02-10 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447190', 'tblTempUsageDetail_20' ) end [2025-02-10 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:37:23] Production.INFO: ==1673== Releasing lock... [2025-02-10 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:38:05 [end_date_ymd] => 2025-02-10 21:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:38:05' and `end` < '2025-02-10 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-10 21:38:18] Production.INFO: count ==1707 [2025-02-10 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:38:05 - End Time 2025-02-10 21:38:05 [2025-02-10 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447195', 'tblTempUsageDetail_20' ) start [2025-02-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447195', 'tblTempUsageDetail_20' ) end [2025-02-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447195', 'tblTempVendorCDR_20' ) start [2025-02-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447195', 'tblTempVendorCDR_20' ) end [2025-02-10 21:38:19] Production.INFO: ProcessCDR(1,14447195,1,1,2) [2025-02-10 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447195', 'tblTempUsageDetail_20' ) start [2025-02-10 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447195', 'tblTempUsageDetail_20' ) end [2025-02-10 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:38:22] Production.INFO: ==1746== Releasing lock... [2025-02-10 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:38:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:39:06 [end_date_ymd] => 2025-02-10 21:39:06 [RateCDR] => 1 ) [2025-02-10 21:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:39:06' and `end` < '2025-02-10 21:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:39:19] Production.INFO: count ==1704 [2025-02-10 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:39:06 - End Time 2025-02-10 21:39:06 [2025-02-10 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447200', 'tblTempUsageDetail_20' ) start [2025-02-10 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447200', 'tblTempUsageDetail_20' ) end [2025-02-10 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447200', 'tblTempVendorCDR_20' ) start [2025-02-10 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447200', 'tblTempVendorCDR_20' ) end [2025-02-10 21:39:19] Production.INFO: ProcessCDR(1,14447200,1,1,2) [2025-02-10 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447200', 'tblTempUsageDetail_20' ) start [2025-02-10 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447200', 'tblTempUsageDetail_20' ) end [2025-02-10 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:39:22] Production.INFO: ==1822== Releasing lock... [2025-02-10 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:39:22] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:40:05 [end_date_ymd] => 2025-02-10 21:40:05 [RateCDR] => 1 ) [2025-02-10 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:40:05' and `end` < '2025-02-10 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:40:18] Production.INFO: count ==1690 [2025-02-10 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:40:05 - End Time 2025-02-10 21:40:05 [2025-02-10 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447206', 'tblTempUsageDetail_20' ) start [2025-02-10 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447206', 'tblTempUsageDetail_20' ) end [2025-02-10 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447206', 'tblTempVendorCDR_20' ) start [2025-02-10 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447206', 'tblTempVendorCDR_20' ) end [2025-02-10 21:40:19] Production.INFO: ProcessCDR(1,14447206,1,1,2) [2025-02-10 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447206', 'tblTempUsageDetail_20' ) start [2025-02-10 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447206', 'tblTempUsageDetail_20' ) end [2025-02-10 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:40:22] Production.INFO: ==1901== Releasing lock... [2025-02-10 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:40:22] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:41:05 [end_date_ymd] => 2025-02-10 21:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:41:05' and `end` < '2025-02-10 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-10 21:41:19] Production.INFO: count ==1681 [2025-02-10 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:41:05 - End Time 2025-02-10 21:41:05 [2025-02-10 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447211', 'tblTempUsageDetail_20' ) start [2025-02-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447211', 'tblTempUsageDetail_20' ) end [2025-02-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447211', 'tblTempVendorCDR_20' ) start [2025-02-10 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447211', 'tblTempVendorCDR_20' ) end [2025-02-10 21:41:19] Production.INFO: ProcessCDR(1,14447211,1,1,2) [2025-02-10 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447211', 'tblTempUsageDetail_20' ) start [2025-02-10 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447211', 'tblTempUsageDetail_20' ) end [2025-02-10 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:41:23] Production.INFO: ==1978== Releasing lock... [2025-02-10 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:41:23] Production.INFO: 41 MB #Memory Used# [2025-02-10 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:42:05 [end_date_ymd] => 2025-02-10 21:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:42:05' and `end` < '2025-02-10 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-10 21:42:18] Production.INFO: count ==1679 [2025-02-10 21:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:42:05 - End Time 2025-02-10 21:42:05 [2025-02-10 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447216', 'tblTempUsageDetail_20' ) start [2025-02-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447216', 'tblTempUsageDetail_20' ) end [2025-02-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447216', 'tblTempVendorCDR_20' ) start [2025-02-10 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447216', 'tblTempVendorCDR_20' ) end [2025-02-10 21:42:18] Production.INFO: ProcessCDR(1,14447216,1,1,2) [2025-02-10 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447216', 'tblTempUsageDetail_20' ) start [2025-02-10 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447216', 'tblTempUsageDetail_20' ) end [2025-02-10 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:42:22] Production.INFO: ==2094== Releasing lock... [2025-02-10 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:42:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:43:05 [end_date_ymd] => 2025-02-10 21:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:43:05' and `end` < '2025-02-10 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-10 21:43:18] Production.INFO: count ==1683 [2025-02-10 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:43:05 - End Time 2025-02-10 21:43:05 [2025-02-10 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447221', 'tblTempUsageDetail_20' ) start [2025-02-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447221', 'tblTempUsageDetail_20' ) end [2025-02-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447221', 'tblTempVendorCDR_20' ) start [2025-02-10 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447221', 'tblTempVendorCDR_20' ) end [2025-02-10 21:43:19] Production.INFO: ProcessCDR(1,14447221,1,1,2) [2025-02-10 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447221', 'tblTempUsageDetail_20' ) start [2025-02-10 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447221', 'tblTempUsageDetail_20' ) end [2025-02-10 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:43:22] Production.INFO: ==2182== Releasing lock... [2025-02-10 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:43:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:44:06 [end_date_ymd] => 2025-02-10 21:44:06 [RateCDR] => 1 ) [2025-02-10 21:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:44:06' and `end` < '2025-02-10 21:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:44:20] Production.INFO: count ==1681 [2025-02-10 21:44:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:44:06 - End Time 2025-02-10 21:44:06 [2025-02-10 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447226', 'tblTempUsageDetail_20' ) start [2025-02-10 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447226', 'tblTempUsageDetail_20' ) end [2025-02-10 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447226', 'tblTempVendorCDR_20' ) start [2025-02-10 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447226', 'tblTempVendorCDR_20' ) end [2025-02-10 21:44:20] Production.INFO: ProcessCDR(1,14447226,1,1,2) [2025-02-10 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447226', 'tblTempUsageDetail_20' ) start [2025-02-10 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447226', 'tblTempUsageDetail_20' ) end [2025-02-10 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:44:23] Production.INFO: ==2277== Releasing lock... [2025-02-10 21:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:44:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:45:05 [end_date_ymd] => 2025-02-10 21:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:45:05' and `end` < '2025-02-10 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-10 21:45:18] Production.INFO: count ==1684 [2025-02-10 21:45:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:45:05 - End Time 2025-02-10 21:45:05 [2025-02-10 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447231', 'tblTempUsageDetail_20' ) start [2025-02-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447231', 'tblTempUsageDetail_20' ) end [2025-02-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447231', 'tblTempVendorCDR_20' ) start [2025-02-10 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447231', 'tblTempVendorCDR_20' ) end [2025-02-10 21:45:19] Production.INFO: ProcessCDR(1,14447231,1,1,2) [2025-02-10 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447231', 'tblTempUsageDetail_20' ) start [2025-02-10 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447231', 'tblTempUsageDetail_20' ) end [2025-02-10 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:45:22] Production.INFO: ==2373== Releasing lock... [2025-02-10 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:46:05 [end_date_ymd] => 2025-02-10 21:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:46:05' and `end` < '2025-02-10 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-10 21:46:19] Production.INFO: count ==1680 [2025-02-10 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:46:05 - End Time 2025-02-10 21:46:05 [2025-02-10 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447236', 'tblTempUsageDetail_20' ) start [2025-02-10 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447236', 'tblTempUsageDetail_20' ) end [2025-02-10 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447236', 'tblTempVendorCDR_20' ) start [2025-02-10 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447236', 'tblTempVendorCDR_20' ) end [2025-02-10 21:46:20] Production.INFO: ProcessCDR(1,14447236,1,1,2) [2025-02-10 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447236', 'tblTempUsageDetail_20' ) start [2025-02-10 21:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447236', 'tblTempUsageDetail_20' ) end [2025-02-10 21:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:46:24] Production.INFO: ==2466== Releasing lock... [2025-02-10 21:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:46:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:47:05 [end_date_ymd] => 2025-02-10 21:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:47:05' and `end` < '2025-02-10 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-10 21:47:19] Production.INFO: count ==1680 [2025-02-10 21:47:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:47:05 - End Time 2025-02-10 21:47:05 [2025-02-10 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447241', 'tblTempUsageDetail_20' ) start [2025-02-10 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447241', 'tblTempUsageDetail_20' ) end [2025-02-10 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447241', 'tblTempVendorCDR_20' ) start [2025-02-10 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447241', 'tblTempVendorCDR_20' ) end [2025-02-10 21:47:20] Production.INFO: ProcessCDR(1,14447241,1,1,2) [2025-02-10 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447241', 'tblTempUsageDetail_20' ) start [2025-02-10 21:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447241', 'tblTempUsageDetail_20' ) end [2025-02-10 21:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:47:25] Production.INFO: ==2565== Releasing lock... [2025-02-10 21:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:47:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-10 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:48:05 [end_date_ymd] => 2025-02-10 21:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:48:05' and `end` < '2025-02-10 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-10 21:48:19] Production.INFO: count ==1679 [2025-02-10 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:48:05 - End Time 2025-02-10 21:48:05 [2025-02-10 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447246', 'tblTempUsageDetail_20' ) start [2025-02-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447246', 'tblTempUsageDetail_20' ) end [2025-02-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447246', 'tblTempVendorCDR_20' ) start [2025-02-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447246', 'tblTempVendorCDR_20' ) end [2025-02-10 21:48:19] Production.INFO: ProcessCDR(1,14447246,1,1,2) [2025-02-10 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447246', 'tblTempUsageDetail_20' ) start [2025-02-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447246', 'tblTempUsageDetail_20' ) end [2025-02-10 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:48:22] Production.INFO: ==2638== Releasing lock... [2025-02-10 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:48:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:49:05 [end_date_ymd] => 2025-02-10 21:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:49:05' and `end` < '2025-02-10 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-10 21:49:18] Production.INFO: count ==1664 [2025-02-10 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:49:05 - End Time 2025-02-10 21:49:05 [2025-02-10 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447251', 'tblTempUsageDetail_20' ) start [2025-02-10 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447251', 'tblTempUsageDetail_20' ) end [2025-02-10 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447251', 'tblTempVendorCDR_20' ) start [2025-02-10 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447251', 'tblTempVendorCDR_20' ) end [2025-02-10 21:49:19] Production.INFO: ProcessCDR(1,14447251,1,1,2) [2025-02-10 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447251', 'tblTempUsageDetail_20' ) start [2025-02-10 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447251', 'tblTempUsageDetail_20' ) end [2025-02-10 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:49:23] Production.INFO: ==2709== Releasing lock... [2025-02-10 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:49:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:50:06 [end_date_ymd] => 2025-02-10 21:50:06 [RateCDR] => 1 ) [2025-02-10 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:50:06' and `end` < '2025-02-10 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:50:19] Production.INFO: count ==1647 [2025-02-10 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:50:06 - End Time 2025-02-10 21:50:06 [2025-02-10 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447257', 'tblTempUsageDetail_20' ) start [2025-02-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447257', 'tblTempUsageDetail_20' ) end [2025-02-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447257', 'tblTempVendorCDR_20' ) start [2025-02-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447257', 'tblTempVendorCDR_20' ) end [2025-02-10 21:50:19] Production.INFO: ProcessCDR(1,14447257,1,1,2) [2025-02-10 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447257', 'tblTempUsageDetail_20' ) start [2025-02-10 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447257', 'tblTempUsageDetail_20' ) end [2025-02-10 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:50:23] Production.INFO: ==2784== Releasing lock... [2025-02-10 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:50:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:51:05 [end_date_ymd] => 2025-02-10 21:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:51:05' and `end` < '2025-02-10 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-10 21:51:18] Production.INFO: count ==1630 [2025-02-10 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:51:05 - End Time 2025-02-10 21:51:05 [2025-02-10 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447262', 'tblTempUsageDetail_20' ) start [2025-02-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447262', 'tblTempUsageDetail_20' ) end [2025-02-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447262', 'tblTempVendorCDR_20' ) start [2025-02-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447262', 'tblTempVendorCDR_20' ) end [2025-02-10 21:51:18] Production.INFO: ProcessCDR(1,14447262,1,1,2) [2025-02-10 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447262', 'tblTempUsageDetail_20' ) start [2025-02-10 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447262', 'tblTempUsageDetail_20' ) end [2025-02-10 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:51:21] Production.INFO: ==2862== Releasing lock... [2025-02-10 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:51:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:52:05 [end_date_ymd] => 2025-02-10 21:52:05 [RateCDR] => 1 ) [2025-02-10 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:52:05' and `end` < '2025-02-10 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:52:19] Production.INFO: count ==1628 [2025-02-10 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:52:05 - End Time 2025-02-10 21:52:05 [2025-02-10 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447267', 'tblTempUsageDetail_20' ) start [2025-02-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447267', 'tblTempUsageDetail_20' ) end [2025-02-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447267', 'tblTempVendorCDR_20' ) start [2025-02-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447267', 'tblTempVendorCDR_20' ) end [2025-02-10 21:52:19] Production.INFO: ProcessCDR(1,14447267,1,1,2) [2025-02-10 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447267', 'tblTempUsageDetail_20' ) start [2025-02-10 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447267', 'tblTempUsageDetail_20' ) end [2025-02-10 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:52:23] Production.INFO: ==2937== Releasing lock... [2025-02-10 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:53:05 [end_date_ymd] => 2025-02-10 21:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:53:05' and `end` < '2025-02-10 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-10 21:53:19] Production.INFO: count ==1626 [2025-02-10 21:53:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:53:05 - End Time 2025-02-10 21:53:05 [2025-02-10 21:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447272', 'tblTempUsageDetail_20' ) start [2025-02-10 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447272', 'tblTempUsageDetail_20' ) end [2025-02-10 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447272', 'tblTempVendorCDR_20' ) start [2025-02-10 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447272', 'tblTempVendorCDR_20' ) end [2025-02-10 21:53:20] Production.INFO: ProcessCDR(1,14447272,1,1,2) [2025-02-10 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447272', 'tblTempUsageDetail_20' ) start [2025-02-10 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447272', 'tblTempUsageDetail_20' ) end [2025-02-10 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:53:24] Production.INFO: ==3009== Releasing lock... [2025-02-10 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:53:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:54:06 [end_date_ymd] => 2025-02-10 21:54:06 [RateCDR] => 1 ) [2025-02-10 21: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-10 18:54:06' and `end` < '2025-02-10 21: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-10 21:54:19] Production.INFO: count ==1628 [2025-02-10 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:54:06 - End Time 2025-02-10 21:54:06 [2025-02-10 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447277', 'tblTempUsageDetail_20' ) start [2025-02-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447277', 'tblTempUsageDetail_20' ) end [2025-02-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447277', 'tblTempVendorCDR_20' ) start [2025-02-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447277', 'tblTempVendorCDR_20' ) end [2025-02-10 21:54:19] Production.INFO: ProcessCDR(1,14447277,1,1,2) [2025-02-10 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447277', 'tblTempUsageDetail_20' ) start [2025-02-10 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447277', 'tblTempUsageDetail_20' ) end [2025-02-10 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:54:22] Production.INFO: ==3088== Releasing lock... [2025-02-10 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:54:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:55:05 [end_date_ymd] => 2025-02-10 21:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:55:05' and `end` < '2025-02-10 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-10 21:55:18] Production.INFO: count ==1625 [2025-02-10 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:55:05 - End Time 2025-02-10 21:55:05 [2025-02-10 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447282', 'tblTempUsageDetail_20' ) start [2025-02-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447282', 'tblTempUsageDetail_20' ) end [2025-02-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447282', 'tblTempVendorCDR_20' ) start [2025-02-10 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447282', 'tblTempVendorCDR_20' ) end [2025-02-10 21:55:19] Production.INFO: ProcessCDR(1,14447282,1,1,2) [2025-02-10 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447282', 'tblTempUsageDetail_20' ) start [2025-02-10 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447282', 'tblTempUsageDetail_20' ) end [2025-02-10 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:55:22] Production.INFO: ==3161== Releasing lock... [2025-02-10 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:55:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:56:05 [end_date_ymd] => 2025-02-10 21:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:56:05' and `end` < '2025-02-10 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-10 21:56:19] Production.INFO: count ==1623 [2025-02-10 21:56:20] Production.ERROR: pbx CDR StartTime 2025-02-10 18:56:05 - End Time 2025-02-10 21:56:05 [2025-02-10 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447287', 'tblTempUsageDetail_20' ) start [2025-02-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447287', 'tblTempUsageDetail_20' ) end [2025-02-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447287', 'tblTempVendorCDR_20' ) start [2025-02-10 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447287', 'tblTempVendorCDR_20' ) end [2025-02-10 21:56:20] Production.INFO: ProcessCDR(1,14447287,1,1,2) [2025-02-10 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447287', 'tblTempUsageDetail_20' ) start [2025-02-10 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447287', 'tblTempUsageDetail_20' ) end [2025-02-10 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:56:23] Production.INFO: ==3235== Releasing lock... [2025-02-10 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:56:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:57:05 [end_date_ymd] => 2025-02-10 21:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 18:57:05' and `end` < '2025-02-10 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-10 21:57:18] Production.INFO: count ==1624 [2025-02-10 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 18:57:05 - End Time 2025-02-10 21:57:05 [2025-02-10 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447292', 'tblTempUsageDetail_20' ) start [2025-02-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447292', 'tblTempUsageDetail_20' ) end [2025-02-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447292', 'tblTempVendorCDR_20' ) start [2025-02-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447292', 'tblTempVendorCDR_20' ) end [2025-02-10 21:57:18] Production.INFO: ProcessCDR(1,14447292,1,1,2) [2025-02-10 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447292', 'tblTempUsageDetail_20' ) start [2025-02-10 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447292', 'tblTempUsageDetail_20' ) end [2025-02-10 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:57:23] Production.INFO: ==3307== Releasing lock... [2025-02-10 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:57:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:58:06 [end_date_ymd] => 2025-02-10 21:58:06 [RateCDR] => 1 ) [2025-02-10 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:58:06' and `end` < '2025-02-10 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:58:19] Production.INFO: count ==1622 [2025-02-10 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:58:06 - End Time 2025-02-10 21:58:06 [2025-02-10 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447297', 'tblTempUsageDetail_20' ) start [2025-02-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447297', 'tblTempUsageDetail_20' ) end [2025-02-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447297', 'tblTempVendorCDR_20' ) start [2025-02-10 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447297', 'tblTempVendorCDR_20' ) end [2025-02-10 21:58:19] Production.INFO: ProcessCDR(1,14447297,1,1,2) [2025-02-10 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447297', 'tblTempUsageDetail_20' ) start [2025-02-10 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447297', 'tblTempUsageDetail_20' ) end [2025-02-10 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:58:22] Production.INFO: ==3416== Releasing lock... [2025-02-10 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:58:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-10 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 18:59:04 [end_date_ymd] => 2025-02-10 21:59:04 [RateCDR] => 1 ) [2025-02-10 21:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 18:59:04' and `end` < '2025-02-10 21:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 21:59:18] Production.INFO: count ==1621 [2025-02-10 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 18:59:04 - End Time 2025-02-10 21:59:04 [2025-02-10 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447302', 'tblTempUsageDetail_20' ) start [2025-02-10 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447302', 'tblTempUsageDetail_20' ) end [2025-02-10 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447302', 'tblTempVendorCDR_20' ) start [2025-02-10 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447302', 'tblTempVendorCDR_20' ) end [2025-02-10 21:59:19] Production.INFO: ProcessCDR(1,14447302,1,1,2) [2025-02-10 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447302', 'tblTempUsageDetail_20' ) start [2025-02-10 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447302', 'tblTempUsageDetail_20' ) end [2025-02-10 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 21:59:22] Production.INFO: ==3490== Releasing lock... [2025-02-10 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 21:59:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:00:07 [end_date_ymd] => 2025-02-10 22:00:07 [RateCDR] => 1 ) [2025-02-10 22: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-10 19:00:07' and `end` < '2025-02-10 22: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-10 22:00:20] Production.INFO: count ==1623 [2025-02-10 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:00:07 - End Time 2025-02-10 22:00:07 [2025-02-10 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447307', 'tblTempUsageDetail_20' ) start [2025-02-10 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447307', 'tblTempUsageDetail_20' ) end [2025-02-10 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447307', 'tblTempVendorCDR_20' ) start [2025-02-10 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447307', 'tblTempVendorCDR_20' ) end [2025-02-10 22:00:20] Production.INFO: ProcessCDR(1,14447307,1,1,2) [2025-02-10 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447307', 'tblTempUsageDetail_20' ) start [2025-02-10 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447307', 'tblTempUsageDetail_20' ) end [2025-02-10 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:00:24] Production.INFO: ==3568== Releasing lock... [2025-02-10 22:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:00:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:01:05 [end_date_ymd] => 2025-02-10 22:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:01:05' and `end` < '2025-02-10 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-10 22:01:18] Production.INFO: count ==1617 [2025-02-10 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:01:05 - End Time 2025-02-10 22:01:05 [2025-02-10 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447313', 'tblTempUsageDetail_20' ) start [2025-02-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447313', 'tblTempUsageDetail_20' ) end [2025-02-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447313', 'tblTempVendorCDR_20' ) start [2025-02-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447313', 'tblTempVendorCDR_20' ) end [2025-02-10 22:01:19] Production.INFO: ProcessCDR(1,14447313,1,1,2) [2025-02-10 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447313', 'tblTempUsageDetail_20' ) start [2025-02-10 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447313', 'tblTempUsageDetail_20' ) end [2025-02-10 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:01:22] Production.INFO: ==3652== Releasing lock... [2025-02-10 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:01:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:02:05 [end_date_ymd] => 2025-02-10 22:02:05 [RateCDR] => 1 ) [2025-02-10 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:02:05' and `end` < '2025-02-10 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:02:20] Production.INFO: count ==1617 [2025-02-10 22:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:02:05 - End Time 2025-02-10 22:02:05 [2025-02-10 22:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447318', 'tblTempUsageDetail_20' ) start [2025-02-10 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447318', 'tblTempUsageDetail_20' ) end [2025-02-10 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447318', 'tblTempVendorCDR_20' ) start [2025-02-10 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447318', 'tblTempVendorCDR_20' ) end [2025-02-10 22:02:21] Production.INFO: ProcessCDR(1,14447318,1,1,2) [2025-02-10 22:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447318', 'tblTempUsageDetail_20' ) start [2025-02-10 22:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447318', 'tblTempUsageDetail_20' ) end [2025-02-10 22:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:02:24] Production.INFO: ==3725== Releasing lock... [2025-02-10 22:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:02:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-10 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:03:05 [end_date_ymd] => 2025-02-10 22:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:03:05' and `end` < '2025-02-10 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-10 22:03:19] Production.INFO: count ==1601 [2025-02-10 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:03:05 - End Time 2025-02-10 22:03:05 [2025-02-10 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447323', 'tblTempUsageDetail_20' ) start [2025-02-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447323', 'tblTempUsageDetail_20' ) end [2025-02-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447323', 'tblTempVendorCDR_20' ) start [2025-02-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447323', 'tblTempVendorCDR_20' ) end [2025-02-10 22:03:19] Production.INFO: ProcessCDR(1,14447323,1,1,2) [2025-02-10 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447323', 'tblTempUsageDetail_20' ) start [2025-02-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447323', 'tblTempUsageDetail_20' ) end [2025-02-10 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:03:22] Production.INFO: ==3800== Releasing lock... [2025-02-10 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:03:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:04:05 [end_date_ymd] => 2025-02-10 22:04:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:04:05' and `end` < '2025-02-10 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-10 22:04:19] Production.INFO: count ==1585 [2025-02-10 22:04:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:04:05 - End Time 2025-02-10 22:04:05 [2025-02-10 22:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447328', 'tblTempUsageDetail_20' ) start [2025-02-10 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447328', 'tblTempUsageDetail_20' ) end [2025-02-10 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447328', 'tblTempVendorCDR_20' ) start [2025-02-10 22:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447328', 'tblTempVendorCDR_20' ) end [2025-02-10 22:04:20] Production.INFO: ProcessCDR(1,14447328,1,1,2) [2025-02-10 22:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447328', 'tblTempUsageDetail_20' ) start [2025-02-10 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447328', 'tblTempUsageDetail_20' ) end [2025-02-10 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:04:23] Production.INFO: ==3871== Releasing lock... [2025-02-10 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:04:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:05:05 [end_date_ymd] => 2025-02-10 22:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:05:05' and `end` < '2025-02-10 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-10 22:05:18] Production.INFO: count ==1576 [2025-02-10 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:05:05 - End Time 2025-02-10 22:05:05 [2025-02-10 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447333', 'tblTempUsageDetail_20' ) start [2025-02-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447333', 'tblTempUsageDetail_20' ) end [2025-02-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447333', 'tblTempVendorCDR_20' ) start [2025-02-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447333', 'tblTempVendorCDR_20' ) end [2025-02-10 22:05:18] Production.INFO: ProcessCDR(1,14447333,1,1,2) [2025-02-10 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447333', 'tblTempUsageDetail_20' ) start [2025-02-10 22:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447333', 'tblTempUsageDetail_20' ) end [2025-02-10 22:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:05:23] Production.INFO: ==3941== Releasing lock... [2025-02-10 22:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:05:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:06:05 [end_date_ymd] => 2025-02-10 22:06:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:06:05' and `end` < '2025-02-10 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-10 22:06:18] Production.INFO: count ==1576 [2025-02-10 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:06:05 - End Time 2025-02-10 22:06:05 [2025-02-10 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447338', 'tblTempUsageDetail_20' ) start [2025-02-10 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447338', 'tblTempUsageDetail_20' ) end [2025-02-10 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447338', 'tblTempVendorCDR_20' ) start [2025-02-10 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447338', 'tblTempVendorCDR_20' ) end [2025-02-10 22:06:19] Production.INFO: ProcessCDR(1,14447338,1,1,2) [2025-02-10 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447338', 'tblTempUsageDetail_20' ) start [2025-02-10 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447338', 'tblTempUsageDetail_20' ) end [2025-02-10 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:06:22] Production.INFO: ==4015== Releasing lock... [2025-02-10 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:06:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:07:05 [end_date_ymd] => 2025-02-10 22:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:07:05' and `end` < '2025-02-10 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-10 22:07:18] Production.INFO: count ==1575 [2025-02-10 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:07:05 - End Time 2025-02-10 22:07:05 [2025-02-10 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447343', 'tblTempUsageDetail_20' ) start [2025-02-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447343', 'tblTempUsageDetail_20' ) end [2025-02-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447343', 'tblTempVendorCDR_20' ) start [2025-02-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447343', 'tblTempVendorCDR_20' ) end [2025-02-10 22:07:18] Production.INFO: ProcessCDR(1,14447343,1,1,2) [2025-02-10 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447343', 'tblTempUsageDetail_20' ) start [2025-02-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447343', 'tblTempUsageDetail_20' ) end [2025-02-10 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:07:22] Production.INFO: ==4087== Releasing lock... [2025-02-10 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:07:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:08:05 [end_date_ymd] => 2025-02-10 22:08:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:08:05' and `end` < '2025-02-10 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-10 22:08:19] Production.INFO: count ==1577 [2025-02-10 22:08:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:08:05 - End Time 2025-02-10 22:08:05 [2025-02-10 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447348', 'tblTempUsageDetail_20' ) start [2025-02-10 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447348', 'tblTempUsageDetail_20' ) end [2025-02-10 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447348', 'tblTempVendorCDR_20' ) start [2025-02-10 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447348', 'tblTempVendorCDR_20' ) end [2025-02-10 22:08:20] Production.INFO: ProcessCDR(1,14447348,1,1,2) [2025-02-10 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447348', 'tblTempUsageDetail_20' ) start [2025-02-10 22:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447348', 'tblTempUsageDetail_20' ) end [2025-02-10 22:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:08:23] Production.INFO: ==4163== Releasing lock... [2025-02-10 22:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:08:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:09:05 [end_date_ymd] => 2025-02-10 22:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:09:05' and `end` < '2025-02-10 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-10 22:09:19] Production.INFO: count ==1571 [2025-02-10 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:09:05 - End Time 2025-02-10 22:09:05 [2025-02-10 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447353', 'tblTempUsageDetail_20' ) start [2025-02-10 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447353', 'tblTempUsageDetail_20' ) end [2025-02-10 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447353', 'tblTempVendorCDR_20' ) start [2025-02-10 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447353', 'tblTempVendorCDR_20' ) end [2025-02-10 22:09:19] Production.INFO: ProcessCDR(1,14447353,1,1,2) [2025-02-10 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447353', 'tblTempUsageDetail_20' ) start [2025-02-10 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447353', 'tblTempUsageDetail_20' ) end [2025-02-10 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:09:22] Production.INFO: ==4237== Releasing lock... [2025-02-10 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:09:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:10:06 [end_date_ymd] => 2025-02-10 22:10:06 [RateCDR] => 1 ) [2025-02-10 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-10 19:10:06' and `end` < '2025-02-10 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-10 22:10:19] Production.INFO: count ==1569 [2025-02-10 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:10:06 - End Time 2025-02-10 22:10:06 [2025-02-10 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447359', 'tblTempUsageDetail_20' ) start [2025-02-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447359', 'tblTempUsageDetail_20' ) end [2025-02-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447359', 'tblTempVendorCDR_20' ) start [2025-02-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447359', 'tblTempVendorCDR_20' ) end [2025-02-10 22:10:19] Production.INFO: ProcessCDR(1,14447359,1,1,2) [2025-02-10 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447359', 'tblTempUsageDetail_20' ) start [2025-02-10 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447359', 'tblTempUsageDetail_20' ) end [2025-02-10 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:10:23] Production.INFO: ==4315== Releasing lock... [2025-02-10 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:10:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:11:05 [end_date_ymd] => 2025-02-10 22:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:11:05' and `end` < '2025-02-10 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-10 22:11:19] Production.INFO: count ==1575 [2025-02-10 22:11:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:11:05 - End Time 2025-02-10 22:11:05 [2025-02-10 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447364', 'tblTempUsageDetail_20' ) start [2025-02-10 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447364', 'tblTempUsageDetail_20' ) end [2025-02-10 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447364', 'tblTempVendorCDR_20' ) start [2025-02-10 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447364', 'tblTempVendorCDR_20' ) end [2025-02-10 22:11:20] Production.INFO: ProcessCDR(1,14447364,1,1,2) [2025-02-10 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447364', 'tblTempUsageDetail_20' ) start [2025-02-10 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447364', 'tblTempUsageDetail_20' ) end [2025-02-10 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:11:23] Production.INFO: ==4390== Releasing lock... [2025-02-10 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:11:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:12:05 [end_date_ymd] => 2025-02-10 22:12:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:12:05' and `end` < '2025-02-10 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-10 22:12:18] Production.INFO: count ==1572 [2025-02-10 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:12:05 - End Time 2025-02-10 22:12:05 [2025-02-10 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447369', 'tblTempUsageDetail_20' ) start [2025-02-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447369', 'tblTempUsageDetail_20' ) end [2025-02-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447369', 'tblTempVendorCDR_20' ) start [2025-02-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447369', 'tblTempVendorCDR_20' ) end [2025-02-10 22:12:18] Production.INFO: ProcessCDR(1,14447369,1,1,2) [2025-02-10 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447369', 'tblTempUsageDetail_20' ) start [2025-02-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447369', 'tblTempUsageDetail_20' ) end [2025-02-10 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:12:21] Production.INFO: ==4464== Releasing lock... [2025-02-10 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:12:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:13:05 [end_date_ymd] => 2025-02-10 22:13:05 [RateCDR] => 1 ) [2025-02-10 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:13:05' and `end` < '2025-02-10 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:13:19] Production.INFO: count ==1565 [2025-02-10 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:13:05 - End Time 2025-02-10 22:13:05 [2025-02-10 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447374', 'tblTempUsageDetail_20' ) start [2025-02-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447374', 'tblTempUsageDetail_20' ) end [2025-02-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447374', 'tblTempVendorCDR_20' ) start [2025-02-10 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447374', 'tblTempVendorCDR_20' ) end [2025-02-10 22:13:19] Production.INFO: ProcessCDR(1,14447374,1,1,2) [2025-02-10 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447374', 'tblTempUsageDetail_20' ) start [2025-02-10 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447374', 'tblTempUsageDetail_20' ) end [2025-02-10 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:13:23] Production.INFO: ==4578== Releasing lock... [2025-02-10 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:13:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:14:05 [end_date_ymd] => 2025-02-10 22:14:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:14:05' and `end` < '2025-02-10 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-10 22:14:18] Production.INFO: count ==1562 [2025-02-10 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:14:05 - End Time 2025-02-10 22:14:05 [2025-02-10 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447379', 'tblTempUsageDetail_20' ) start [2025-02-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447379', 'tblTempUsageDetail_20' ) end [2025-02-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447379', 'tblTempVendorCDR_20' ) start [2025-02-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447379', 'tblTempVendorCDR_20' ) end [2025-02-10 22:14:19] Production.INFO: ProcessCDR(1,14447379,1,1,2) [2025-02-10 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447379', 'tblTempUsageDetail_20' ) start [2025-02-10 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447379', 'tblTempUsageDetail_20' ) end [2025-02-10 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:14:22] Production.INFO: ==4652== Releasing lock... [2025-02-10 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:14:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:15:05 [end_date_ymd] => 2025-02-10 22:15:05 [RateCDR] => 1 ) [2025-02-10 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:15:05' and `end` < '2025-02-10 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:15:18] Production.INFO: count ==1561 [2025-02-10 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:15:05 - End Time 2025-02-10 22:15:05 [2025-02-10 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447384', 'tblTempUsageDetail_20' ) start [2025-02-10 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447384', 'tblTempUsageDetail_20' ) end [2025-02-10 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447384', 'tblTempVendorCDR_20' ) start [2025-02-10 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447384', 'tblTempVendorCDR_20' ) end [2025-02-10 22:15:19] Production.INFO: ProcessCDR(1,14447384,1,1,2) [2025-02-10 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447384', 'tblTempUsageDetail_20' ) start [2025-02-10 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447384', 'tblTempUsageDetail_20' ) end [2025-02-10 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:15:22] Production.INFO: ==4728== Releasing lock... [2025-02-10 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:15:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:16:05 [end_date_ymd] => 2025-02-10 22:16:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:16:05' and `end` < '2025-02-10 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-10 22:16:18] Production.INFO: count ==1563 [2025-02-10 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:16:05 - End Time 2025-02-10 22:16:05 [2025-02-10 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447389', 'tblTempUsageDetail_20' ) start [2025-02-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447389', 'tblTempUsageDetail_20' ) end [2025-02-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447389', 'tblTempVendorCDR_20' ) start [2025-02-10 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447389', 'tblTempVendorCDR_20' ) end [2025-02-10 22:16:18] Production.INFO: ProcessCDR(1,14447389,1,1,2) [2025-02-10 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447389', 'tblTempUsageDetail_20' ) start [2025-02-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447389', 'tblTempUsageDetail_20' ) end [2025-02-10 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:16:22] Production.INFO: ==4797== Releasing lock... [2025-02-10 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:17:05 [end_date_ymd] => 2025-02-10 22:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:17:05' and `end` < '2025-02-10 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-10 22:17:19] Production.INFO: count ==1563 [2025-02-10 22:17:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:17:05 - End Time 2025-02-10 22:17:05 [2025-02-10 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447394', 'tblTempUsageDetail_20' ) start [2025-02-10 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447394', 'tblTempUsageDetail_20' ) end [2025-02-10 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447394', 'tblTempVendorCDR_20' ) start [2025-02-10 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447394', 'tblTempVendorCDR_20' ) end [2025-02-10 22:17:20] Production.INFO: ProcessCDR(1,14447394,1,1,2) [2025-02-10 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447394', 'tblTempUsageDetail_20' ) start [2025-02-10 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447394', 'tblTempUsageDetail_20' ) end [2025-02-10 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:17:23] Production.INFO: ==4871== Releasing lock... [2025-02-10 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:17:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:18:05 [end_date_ymd] => 2025-02-10 22:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:18:05' and `end` < '2025-02-10 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-10 22:18:18] Production.INFO: count ==1567 [2025-02-10 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:18:05 - End Time 2025-02-10 22:18:05 [2025-02-10 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447399', 'tblTempUsageDetail_20' ) start [2025-02-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447399', 'tblTempUsageDetail_20' ) end [2025-02-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447399', 'tblTempVendorCDR_20' ) start [2025-02-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447399', 'tblTempVendorCDR_20' ) end [2025-02-10 22:18:18] Production.INFO: ProcessCDR(1,14447399,1,1,2) [2025-02-10 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447399', 'tblTempUsageDetail_20' ) start [2025-02-10 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447399', 'tblTempUsageDetail_20' ) end [2025-02-10 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:18:22] Production.INFO: ==4947== Releasing lock... [2025-02-10 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:19:05 [end_date_ymd] => 2025-02-10 22:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:19:05' and `end` < '2025-02-10 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-10 22:19:18] Production.INFO: count ==1574 [2025-02-10 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:19:05 - End Time 2025-02-10 22:19:05 [2025-02-10 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447404', 'tblTempUsageDetail_20' ) start [2025-02-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447404', 'tblTempUsageDetail_20' ) end [2025-02-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447404', 'tblTempVendorCDR_20' ) start [2025-02-10 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447404', 'tblTempVendorCDR_20' ) end [2025-02-10 22:19:19] Production.INFO: ProcessCDR(1,14447404,1,1,2) [2025-02-10 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447404', 'tblTempUsageDetail_20' ) start [2025-02-10 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447404', 'tblTempUsageDetail_20' ) end [2025-02-10 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:19:22] Production.INFO: ==5026== Releasing lock... [2025-02-10 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:19:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:20:06 [end_date_ymd] => 2025-02-10 22:20:06 [RateCDR] => 1 ) [2025-02-10 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-10 19:20:06' and `end` < '2025-02-10 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-10 22:20:19] Production.INFO: count ==1574 [2025-02-10 22:20:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:20:06 - End Time 2025-02-10 22:20:06 [2025-02-10 22:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447410', 'tblTempUsageDetail_20' ) start [2025-02-10 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447410', 'tblTempUsageDetail_20' ) end [2025-02-10 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447410', 'tblTempVendorCDR_20' ) start [2025-02-10 22:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447410', 'tblTempVendorCDR_20' ) end [2025-02-10 22:20:20] Production.INFO: ProcessCDR(1,14447410,1,1,2) [2025-02-10 22:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447410', 'tblTempUsageDetail_20' ) start [2025-02-10 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447410', 'tblTempUsageDetail_20' ) end [2025-02-10 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:20:23] Production.INFO: ==5101== Releasing lock... [2025-02-10 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:21:05 [end_date_ymd] => 2025-02-10 22:21:05 [RateCDR] => 1 ) [2025-02-10 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:21:05' and `end` < '2025-02-10 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:21:18] Production.INFO: count ==1574 [2025-02-10 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:21:05 - End Time 2025-02-10 22:21:05 [2025-02-10 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447415', 'tblTempUsageDetail_20' ) start [2025-02-10 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447415', 'tblTempUsageDetail_20' ) end [2025-02-10 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447415', 'tblTempVendorCDR_20' ) start [2025-02-10 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447415', 'tblTempVendorCDR_20' ) end [2025-02-10 22:21:19] Production.INFO: ProcessCDR(1,14447415,1,1,2) [2025-02-10 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447415', 'tblTempUsageDetail_20' ) start [2025-02-10 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447415', 'tblTempUsageDetail_20' ) end [2025-02-10 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:21:22] Production.INFO: ==5179== Releasing lock... [2025-02-10 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:21:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:22:06 [end_date_ymd] => 2025-02-10 22:22:06 [RateCDR] => 1 ) [2025-02-10 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:22:06' and `end` < '2025-02-10 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:22:19] Production.INFO: count ==1572 [2025-02-10 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:22:06 - End Time 2025-02-10 22:22:06 [2025-02-10 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447420', 'tblTempUsageDetail_20' ) start [2025-02-10 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447420', 'tblTempUsageDetail_20' ) end [2025-02-10 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447420', 'tblTempVendorCDR_20' ) start [2025-02-10 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447420', 'tblTempVendorCDR_20' ) end [2025-02-10 22:22:19] Production.INFO: ProcessCDR(1,14447420,1,1,2) [2025-02-10 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447420', 'tblTempUsageDetail_20' ) start [2025-02-10 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447420', 'tblTempUsageDetail_20' ) end [2025-02-10 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:22:23] Production.INFO: ==5253== Releasing lock... [2025-02-10 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:22:23] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:23:05 [end_date_ymd] => 2025-02-10 22:23:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:23:05' and `end` < '2025-02-10 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-10 22:23:19] Production.INFO: count ==1555 [2025-02-10 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:23:05 - End Time 2025-02-10 22:23:05 [2025-02-10 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447425', 'tblTempUsageDetail_20' ) start [2025-02-10 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447425', 'tblTempUsageDetail_20' ) end [2025-02-10 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447425', 'tblTempVendorCDR_20' ) start [2025-02-10 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447425', 'tblTempVendorCDR_20' ) end [2025-02-10 22:23:19] Production.INFO: ProcessCDR(1,14447425,1,1,2) [2025-02-10 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447425', 'tblTempUsageDetail_20' ) start [2025-02-10 22:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447425', 'tblTempUsageDetail_20' ) end [2025-02-10 22:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:23:24] Production.INFO: ==5324== Releasing lock... [2025-02-10 22:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:23:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:24:05 [end_date_ymd] => 2025-02-10 22:24:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:24:05' and `end` < '2025-02-10 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-10 22:24:18] Production.INFO: count ==1543 [2025-02-10 22:24:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:24:05 - End Time 2025-02-10 22:24:05 [2025-02-10 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447430', 'tblTempUsageDetail_20' ) start [2025-02-10 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447430', 'tblTempUsageDetail_20' ) end [2025-02-10 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447430', 'tblTempVendorCDR_20' ) start [2025-02-10 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447430', 'tblTempVendorCDR_20' ) end [2025-02-10 22:24:19] Production.INFO: ProcessCDR(1,14447430,1,1,2) [2025-02-10 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447430', 'tblTempUsageDetail_20' ) start [2025-02-10 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447430', 'tblTempUsageDetail_20' ) end [2025-02-10 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:24:22] Production.INFO: ==5395== Releasing lock... [2025-02-10 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:24:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:25:05 [end_date_ymd] => 2025-02-10 22:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:25:05' and `end` < '2025-02-10 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-10 22:25:18] Production.INFO: count ==1538 [2025-02-10 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:25:05 - End Time 2025-02-10 22:25:05 [2025-02-10 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447435', 'tblTempUsageDetail_20' ) start [2025-02-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447435', 'tblTempUsageDetail_20' ) end [2025-02-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447435', 'tblTempVendorCDR_20' ) start [2025-02-10 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447435', 'tblTempVendorCDR_20' ) end [2025-02-10 22:25:19] Production.INFO: ProcessCDR(1,14447435,1,1,2) [2025-02-10 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447435', 'tblTempUsageDetail_20' ) start [2025-02-10 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447435', 'tblTempUsageDetail_20' ) end [2025-02-10 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:25:22] Production.INFO: ==5465== Releasing lock... [2025-02-10 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:25:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:26:05 [end_date_ymd] => 2025-02-10 22:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:26:05' and `end` < '2025-02-10 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-10 22:26:18] Production.INFO: count ==1532 [2025-02-10 22:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:26:05 - End Time 2025-02-10 22:26:05 [2025-02-10 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447440', 'tblTempUsageDetail_20' ) start [2025-02-10 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447440', 'tblTempUsageDetail_20' ) end [2025-02-10 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447440', 'tblTempVendorCDR_20' ) start [2025-02-10 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447440', 'tblTempVendorCDR_20' ) end [2025-02-10 22:26:19] Production.INFO: ProcessCDR(1,14447440,1,1,2) [2025-02-10 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447440', 'tblTempUsageDetail_20' ) start [2025-02-10 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447440', 'tblTempUsageDetail_20' ) end [2025-02-10 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:26:22] Production.INFO: ==5537== Releasing lock... [2025-02-10 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:26:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:27:05 [end_date_ymd] => 2025-02-10 22:27:05 [RateCDR] => 1 ) [2025-02-10 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:27:05' and `end` < '2025-02-10 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:27:18] Production.INFO: count ==1533 [2025-02-10 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:27:05 - End Time 2025-02-10 22:27:05 [2025-02-10 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447445', 'tblTempUsageDetail_20' ) start [2025-02-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447445', 'tblTempUsageDetail_20' ) end [2025-02-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447445', 'tblTempVendorCDR_20' ) start [2025-02-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447445', 'tblTempVendorCDR_20' ) end [2025-02-10 22:27:18] Production.INFO: ProcessCDR(1,14447445,1,1,2) [2025-02-10 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447445', 'tblTempUsageDetail_20' ) start [2025-02-10 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447445', 'tblTempUsageDetail_20' ) end [2025-02-10 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:27:22] Production.INFO: ==5610== Releasing lock... [2025-02-10 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:28:05 [end_date_ymd] => 2025-02-10 22:28:05 [RateCDR] => 1 ) [2025-02-10 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:28:05' and `end` < '2025-02-10 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:28:18] Production.INFO: count ==1537 [2025-02-10 22:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:28:05 - End Time 2025-02-10 22:28:05 [2025-02-10 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447450', 'tblTempUsageDetail_20' ) start [2025-02-10 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447450', 'tblTempUsageDetail_20' ) end [2025-02-10 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447450', 'tblTempVendorCDR_20' ) start [2025-02-10 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447450', 'tblTempVendorCDR_20' ) end [2025-02-10 22:28:19] Production.INFO: ProcessCDR(1,14447450,1,1,2) [2025-02-10 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447450', 'tblTempUsageDetail_20' ) start [2025-02-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447450', 'tblTempUsageDetail_20' ) end [2025-02-10 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:28:22] Production.INFO: ==5682== Releasing lock... [2025-02-10 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:29:05 [end_date_ymd] => 2025-02-10 22:29:05 [RateCDR] => 1 ) [2025-02-10 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:29:05' and `end` < '2025-02-10 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:29:18] Production.INFO: count ==1545 [2025-02-10 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:29:05 - End Time 2025-02-10 22:29:05 [2025-02-10 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447455', 'tblTempUsageDetail_20' ) start [2025-02-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447455', 'tblTempUsageDetail_20' ) end [2025-02-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447455', 'tblTempVendorCDR_20' ) start [2025-02-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447455', 'tblTempVendorCDR_20' ) end [2025-02-10 22:29:19] Production.INFO: ProcessCDR(1,14447455,1,1,2) [2025-02-10 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447455', 'tblTempUsageDetail_20' ) start [2025-02-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447455', 'tblTempUsageDetail_20' ) end [2025-02-10 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:29:22] Production.INFO: ==5790== Releasing lock... [2025-02-10 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:30:05 [end_date_ymd] => 2025-02-10 22:30:05 [RateCDR] => 1 ) [2025-02-10 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:30:05' and `end` < '2025-02-10 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:30:18] Production.INFO: count ==1544 [2025-02-10 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:30:05 - End Time 2025-02-10 22:30:05 [2025-02-10 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447461', 'tblTempUsageDetail_20' ) start [2025-02-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447461', 'tblTempUsageDetail_20' ) end [2025-02-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447461', 'tblTempVendorCDR_20' ) start [2025-02-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447461', 'tblTempVendorCDR_20' ) end [2025-02-10 22:30:19] Production.INFO: ProcessCDR(1,14447461,1,1,2) [2025-02-10 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447461', 'tblTempUsageDetail_20' ) start [2025-02-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447461', 'tblTempUsageDetail_20' ) end [2025-02-10 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:30:22] Production.INFO: ==5869== Releasing lock... [2025-02-10 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:30:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:31:05 [end_date_ymd] => 2025-02-10 22:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:31:05' and `end` < '2025-02-10 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-10 22:31:18] Production.INFO: count ==1527 [2025-02-10 22:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:31:05 - End Time 2025-02-10 22:31:05 [2025-02-10 22:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447466', 'tblTempUsageDetail_20' ) start [2025-02-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447466', 'tblTempUsageDetail_20' ) end [2025-02-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447466', 'tblTempVendorCDR_20' ) start [2025-02-10 22:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447466', 'tblTempVendorCDR_20' ) end [2025-02-10 22:31:19] Production.INFO: ProcessCDR(1,14447466,1,1,2) [2025-02-10 22:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447466', 'tblTempUsageDetail_20' ) start [2025-02-10 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447466', 'tblTempUsageDetail_20' ) end [2025-02-10 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:31:22] Production.INFO: ==5942== Releasing lock... [2025-02-10 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:32:05 [end_date_ymd] => 2025-02-10 22:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:32:05' and `end` < '2025-02-10 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-10 22:32:19] Production.INFO: count ==1525 [2025-02-10 22:32:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:32:05 - End Time 2025-02-10 22:32:05 [2025-02-10 22:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447471', 'tblTempUsageDetail_20' ) start [2025-02-10 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447471', 'tblTempUsageDetail_20' ) end [2025-02-10 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447471', 'tblTempVendorCDR_20' ) start [2025-02-10 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447471', 'tblTempVendorCDR_20' ) end [2025-02-10 22:32:20] Production.INFO: ProcessCDR(1,14447471,1,1,2) [2025-02-10 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447471', 'tblTempUsageDetail_20' ) start [2025-02-10 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447471', 'tblTempUsageDetail_20' ) end [2025-02-10 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:32:23] Production.INFO: ==6012== Releasing lock... [2025-02-10 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:32:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:33:04 [end_date_ymd] => 2025-02-10 22:33:04 [RateCDR] => 1 ) [2025-02-10 22:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:33:04' and `end` < '2025-02-10 22:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:33:18] Production.INFO: count ==1522 [2025-02-10 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:33:04 - End Time 2025-02-10 22:33:04 [2025-02-10 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447476', 'tblTempUsageDetail_20' ) start [2025-02-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447476', 'tblTempUsageDetail_20' ) end [2025-02-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447476', 'tblTempVendorCDR_20' ) start [2025-02-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447476', 'tblTempVendorCDR_20' ) end [2025-02-10 22:33:19] Production.INFO: ProcessCDR(1,14447476,1,1,2) [2025-02-10 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447476', 'tblTempUsageDetail_20' ) start [2025-02-10 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447476', 'tblTempUsageDetail_20' ) end [2025-02-10 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:33:22] Production.INFO: ==6082== Releasing lock... [2025-02-10 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:33:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:34:05 [end_date_ymd] => 2025-02-10 22:34:05 [RateCDR] => 1 ) [2025-02-10 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:34:05' and `end` < '2025-02-10 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:34:18] Production.INFO: count ==1525 [2025-02-10 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:34:05 - End Time 2025-02-10 22:34:05 [2025-02-10 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447481', 'tblTempUsageDetail_20' ) start [2025-02-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447481', 'tblTempUsageDetail_20' ) end [2025-02-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447481', 'tblTempVendorCDR_20' ) start [2025-02-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447481', 'tblTempVendorCDR_20' ) end [2025-02-10 22:34:18] Production.INFO: ProcessCDR(1,14447481,1,1,2) [2025-02-10 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447481', 'tblTempUsageDetail_20' ) start [2025-02-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447481', 'tblTempUsageDetail_20' ) end [2025-02-10 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:34:22] Production.INFO: ==6153== Releasing lock... [2025-02-10 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:34:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:35:05 [end_date_ymd] => 2025-02-10 22:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:35:05' and `end` < '2025-02-10 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-10 22:35:18] Production.INFO: count ==1521 [2025-02-10 22:35:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:35:05 - End Time 2025-02-10 22:35:05 [2025-02-10 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447486', 'tblTempUsageDetail_20' ) start [2025-02-10 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447486', 'tblTempUsageDetail_20' ) end [2025-02-10 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447486', 'tblTempVendorCDR_20' ) start [2025-02-10 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447486', 'tblTempVendorCDR_20' ) end [2025-02-10 22:35:19] Production.INFO: ProcessCDR(1,14447486,1,1,2) [2025-02-10 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447486', 'tblTempUsageDetail_20' ) start [2025-02-10 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447486', 'tblTempUsageDetail_20' ) end [2025-02-10 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:35:22] Production.INFO: ==6230== Releasing lock... [2025-02-10 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:35:22] Production.INFO: 40 MB #Memory Used# [2025-02-10 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:36:05 [end_date_ymd] => 2025-02-10 22:36:05 [RateCDR] => 1 ) [2025-02-10 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:36:05' and `end` < '2025-02-10 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:36:19] Production.INFO: count ==1522 [2025-02-10 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:36:05 - End Time 2025-02-10 22:36:05 [2025-02-10 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447491', 'tblTempUsageDetail_20' ) start [2025-02-10 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447491', 'tblTempUsageDetail_20' ) end [2025-02-10 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447491', 'tblTempVendorCDR_20' ) start [2025-02-10 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447491', 'tblTempVendorCDR_20' ) end [2025-02-10 22:36:20] Production.INFO: ProcessCDR(1,14447491,1,1,2) [2025-02-10 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447491', 'tblTempUsageDetail_20' ) start [2025-02-10 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447491', 'tblTempUsageDetail_20' ) end [2025-02-10 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:36:23] Production.INFO: ==6303== Releasing lock... [2025-02-10 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:36:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:37:04 [end_date_ymd] => 2025-02-10 22:37:04 [RateCDR] => 1 ) [2025-02-10 22: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-10 19:37:04' and `end` < '2025-02-10 22: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-10 22:37:18] Production.INFO: count ==1515 [2025-02-10 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:37:04 - End Time 2025-02-10 22:37:04 [2025-02-10 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447496', 'tblTempUsageDetail_20' ) start [2025-02-10 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447496', 'tblTempUsageDetail_20' ) end [2025-02-10 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447496', 'tblTempVendorCDR_20' ) start [2025-02-10 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447496', 'tblTempVendorCDR_20' ) end [2025-02-10 22:37:18] Production.INFO: ProcessCDR(1,14447496,1,1,2) [2025-02-10 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447496', 'tblTempUsageDetail_20' ) start [2025-02-10 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447496', 'tblTempUsageDetail_20' ) end [2025-02-10 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:37:21] Production.INFO: ==6374== Releasing lock... [2025-02-10 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:37:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:38:05 [end_date_ymd] => 2025-02-10 22:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:38:05' and `end` < '2025-02-10 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-10 22:38:19] Production.INFO: count ==1515 [2025-02-10 22:38:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:38:05 - End Time 2025-02-10 22:38:05 [2025-02-10 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447501', 'tblTempUsageDetail_20' ) start [2025-02-10 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447501', 'tblTempUsageDetail_20' ) end [2025-02-10 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447501', 'tblTempVendorCDR_20' ) start [2025-02-10 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447501', 'tblTempVendorCDR_20' ) end [2025-02-10 22:38:20] Production.INFO: ProcessCDR(1,14447501,1,1,2) [2025-02-10 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447501', 'tblTempUsageDetail_20' ) start [2025-02-10 22:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447501', 'tblTempUsageDetail_20' ) end [2025-02-10 22:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:38:25] Production.INFO: ==6447== Releasing lock... [2025-02-10 22:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:38:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-10 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:39:05 [end_date_ymd] => 2025-02-10 22:39:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:39:05' and `end` < '2025-02-10 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-10 22:39:18] Production.INFO: count ==1514 [2025-02-10 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:39:05 - End Time 2025-02-10 22:39:05 [2025-02-10 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447506', 'tblTempUsageDetail_20' ) start [2025-02-10 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447506', 'tblTempUsageDetail_20' ) end [2025-02-10 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447506', 'tblTempVendorCDR_20' ) start [2025-02-10 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447506', 'tblTempVendorCDR_20' ) end [2025-02-10 22:39:19] Production.INFO: ProcessCDR(1,14447506,1,1,2) [2025-02-10 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447506', 'tblTempUsageDetail_20' ) start [2025-02-10 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447506', 'tblTempUsageDetail_20' ) end [2025-02-10 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:39:22] Production.INFO: ==6519== Releasing lock... [2025-02-10 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:40:05 [end_date_ymd] => 2025-02-10 22:40:05 [RateCDR] => 1 ) [2025-02-10 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:40:05' and `end` < '2025-02-10 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:40:19] Production.INFO: count ==1508 [2025-02-10 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:40:05 - End Time 2025-02-10 22:40:05 [2025-02-10 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447511', 'tblTempUsageDetail_20' ) start [2025-02-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447511', 'tblTempUsageDetail_20' ) end [2025-02-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447511', 'tblTempVendorCDR_20' ) start [2025-02-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447511', 'tblTempVendorCDR_20' ) end [2025-02-10 22:40:19] Production.INFO: ProcessCDR(1,14447511,1,1,2) [2025-02-10 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447511', 'tblTempUsageDetail_20' ) start [2025-02-10 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447511', 'tblTempUsageDetail_20' ) end [2025-02-10 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:40:22] Production.INFO: ==6591== Releasing lock... [2025-02-10 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:40:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:41:05 [end_date_ymd] => 2025-02-10 22:41:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:41:05' and `end` < '2025-02-10 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-10 22:41:19] Production.INFO: count ==1482 [2025-02-10 22:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:41:05 - End Time 2025-02-10 22:41:05 [2025-02-10 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447517', 'tblTempUsageDetail_20' ) start [2025-02-10 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447517', 'tblTempUsageDetail_20' ) end [2025-02-10 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447517', 'tblTempVendorCDR_20' ) start [2025-02-10 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447517', 'tblTempVendorCDR_20' ) end [2025-02-10 22:41:19] Production.INFO: ProcessCDR(1,14447517,1,1,2) [2025-02-10 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447517', 'tblTempUsageDetail_20' ) start [2025-02-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447517', 'tblTempUsageDetail_20' ) end [2025-02-10 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:41:22] Production.INFO: ==6664== Releasing lock... [2025-02-10 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:41:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:42:05 [end_date_ymd] => 2025-02-10 22:42:05 [RateCDR] => 1 ) [2025-02-10 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:42:05' and `end` < '2025-02-10 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:42:18] Production.INFO: count ==1481 [2025-02-10 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:42:05 - End Time 2025-02-10 22:42:05 [2025-02-10 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447522', 'tblTempUsageDetail_20' ) start [2025-02-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447522', 'tblTempUsageDetail_20' ) end [2025-02-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447522', 'tblTempVendorCDR_20' ) start [2025-02-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447522', 'tblTempVendorCDR_20' ) end [2025-02-10 22:42:18] Production.INFO: ProcessCDR(1,14447522,1,1,2) [2025-02-10 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447522', 'tblTempUsageDetail_20' ) start [2025-02-10 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447522', 'tblTempUsageDetail_20' ) end [2025-02-10 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:42:22] Production.INFO: ==6734== Releasing lock... [2025-02-10 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:42:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:43:05 [end_date_ymd] => 2025-02-10 22:43:05 [RateCDR] => 1 ) [2025-02-10 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:43:05' and `end` < '2025-02-10 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:43:18] Production.INFO: count ==1481 [2025-02-10 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:43:05 - End Time 2025-02-10 22:43:05 [2025-02-10 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447527', 'tblTempUsageDetail_20' ) start [2025-02-10 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447527', 'tblTempUsageDetail_20' ) end [2025-02-10 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447527', 'tblTempVendorCDR_20' ) start [2025-02-10 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447527', 'tblTempVendorCDR_20' ) end [2025-02-10 22:43:19] Production.INFO: ProcessCDR(1,14447527,1,1,2) [2025-02-10 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447527', 'tblTempUsageDetail_20' ) start [2025-02-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447527', 'tblTempUsageDetail_20' ) end [2025-02-10 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:43:22] Production.INFO: ==6805== Releasing lock... [2025-02-10 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:43:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:44:04 [end_date_ymd] => 2025-02-10 22:44:04 [RateCDR] => 1 ) [2025-02-10 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:44:04' and `end` < '2025-02-10 22: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-10 22:44:19] Production.INFO: count ==1482 [2025-02-10 22:44:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:44:04 - End Time 2025-02-10 22:44:04 [2025-02-10 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447532', 'tblTempUsageDetail_20' ) start [2025-02-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447532', 'tblTempUsageDetail_20' ) end [2025-02-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447532', 'tblTempVendorCDR_20' ) start [2025-02-10 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447532', 'tblTempVendorCDR_20' ) end [2025-02-10 22:44:20] Production.INFO: ProcessCDR(1,14447532,1,1,2) [2025-02-10 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447532', 'tblTempUsageDetail_20' ) start [2025-02-10 22:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447532', 'tblTempUsageDetail_20' ) end [2025-02-10 22:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:44:24] Production.INFO: ==6916== Releasing lock... [2025-02-10 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:44:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:45:05 [end_date_ymd] => 2025-02-10 22:45:05 [RateCDR] => 1 ) [2025-02-10 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:45:05' and `end` < '2025-02-10 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:45:18] Production.INFO: count ==1482 [2025-02-10 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:45:05 - End Time 2025-02-10 22:45:05 [2025-02-10 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447537', 'tblTempUsageDetail_20' ) start [2025-02-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447537', 'tblTempUsageDetail_20' ) end [2025-02-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447537', 'tblTempVendorCDR_20' ) start [2025-02-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447537', 'tblTempVendorCDR_20' ) end [2025-02-10 22:45:18] Production.INFO: ProcessCDR(1,14447537,1,1,2) [2025-02-10 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447537', 'tblTempUsageDetail_20' ) start [2025-02-10 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447537', 'tblTempUsageDetail_20' ) end [2025-02-10 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:45:22] Production.INFO: ==6986== Releasing lock... [2025-02-10 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:45:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-10 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:46:06 [end_date_ymd] => 2025-02-10 22:46:06 [RateCDR] => 1 ) [2025-02-10 22:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:46:06' and `end` < '2025-02-10 22:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:46:19] Production.INFO: count ==1477 [2025-02-10 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:46:06 - End Time 2025-02-10 22:46:06 [2025-02-10 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447542', 'tblTempUsageDetail_20' ) start [2025-02-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447542', 'tblTempUsageDetail_20' ) end [2025-02-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447542', 'tblTempVendorCDR_20' ) start [2025-02-10 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447542', 'tblTempVendorCDR_20' ) end [2025-02-10 22:46:19] Production.INFO: ProcessCDR(1,14447542,1,1,2) [2025-02-10 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447542', 'tblTempUsageDetail_20' ) start [2025-02-10 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447542', 'tblTempUsageDetail_20' ) end [2025-02-10 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:46:23] Production.INFO: ==7057== Releasing lock... [2025-02-10 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:46:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-10 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:47:04 [end_date_ymd] => 2025-02-10 22:47:04 [RateCDR] => 1 ) [2025-02-10 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:47:04' and `end` < '2025-02-10 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:47:18] Production.INFO: count ==1471 [2025-02-10 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:47:04 - End Time 2025-02-10 22:47:04 [2025-02-10 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447547', 'tblTempUsageDetail_20' ) start [2025-02-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447547', 'tblTempUsageDetail_20' ) end [2025-02-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447547', 'tblTempVendorCDR_20' ) start [2025-02-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447547', 'tblTempVendorCDR_20' ) end [2025-02-10 22:47:18] Production.INFO: ProcessCDR(1,14447547,1,1,2) [2025-02-10 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447547', 'tblTempUsageDetail_20' ) start [2025-02-10 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447547', 'tblTempUsageDetail_20' ) end [2025-02-10 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:47:22] Production.INFO: ==7127== Releasing lock... [2025-02-10 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:47:22] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:48:05 [end_date_ymd] => 2025-02-10 22:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:48:05' and `end` < '2025-02-10 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-10 22:48:18] Production.INFO: count ==1478 [2025-02-10 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:48:05 - End Time 2025-02-10 22:48:05 [2025-02-10 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447552', 'tblTempUsageDetail_20' ) start [2025-02-10 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447552', 'tblTempUsageDetail_20' ) end [2025-02-10 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447552', 'tblTempVendorCDR_20' ) start [2025-02-10 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447552', 'tblTempVendorCDR_20' ) end [2025-02-10 22:48:19] Production.INFO: ProcessCDR(1,14447552,1,1,2) [2025-02-10 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447552', 'tblTempUsageDetail_20' ) start [2025-02-10 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447552', 'tblTempUsageDetail_20' ) end [2025-02-10 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:48:24] Production.INFO: ==7203== Releasing lock... [2025-02-10 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:48:24] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:49:05 [end_date_ymd] => 2025-02-10 22:49:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:49:05' and `end` < '2025-02-10 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-10 22:49:18] Production.INFO: count ==1477 [2025-02-10 22:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:49:05 - End Time 2025-02-10 22:49:05 [2025-02-10 22:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447557', 'tblTempUsageDetail_20' ) start [2025-02-10 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447557', 'tblTempUsageDetail_20' ) end [2025-02-10 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447557', 'tblTempVendorCDR_20' ) start [2025-02-10 22:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447557', 'tblTempVendorCDR_20' ) end [2025-02-10 22:49:19] Production.INFO: ProcessCDR(1,14447557,1,1,2) [2025-02-10 22:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447557', 'tblTempUsageDetail_20' ) start [2025-02-10 22:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447557', 'tblTempUsageDetail_20' ) end [2025-02-10 22:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:49:24] Production.INFO: ==7284== Releasing lock... [2025-02-10 22:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:49:24] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:50:06 [end_date_ymd] => 2025-02-10 22:50:06 [RateCDR] => 1 ) [2025-02-10 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-10 19:50:06' and `end` < '2025-02-10 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-10 22:50:19] Production.INFO: count ==1468 [2025-02-10 22:50:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:50:06 - End Time 2025-02-10 22:50:06 [2025-02-10 22:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447563', 'tblTempUsageDetail_20' ) start [2025-02-10 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447563', 'tblTempUsageDetail_20' ) end [2025-02-10 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447563', 'tblTempVendorCDR_20' ) start [2025-02-10 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447563', 'tblTempVendorCDR_20' ) end [2025-02-10 22:50:20] Production.INFO: ProcessCDR(1,14447563,1,1,2) [2025-02-10 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447563', 'tblTempUsageDetail_20' ) start [2025-02-10 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447563', 'tblTempUsageDetail_20' ) end [2025-02-10 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:50:23] Production.INFO: ==7362== Releasing lock... [2025-02-10 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:50:23] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:51:05 [end_date_ymd] => 2025-02-10 22:51:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:51:05' and `end` < '2025-02-10 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-10 22:51:18] Production.INFO: count ==1438 [2025-02-10 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:51:05 - End Time 2025-02-10 22:51:05 [2025-02-10 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447568', 'tblTempUsageDetail_20' ) start [2025-02-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447568', 'tblTempUsageDetail_20' ) end [2025-02-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447568', 'tblTempVendorCDR_20' ) start [2025-02-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447568', 'tblTempVendorCDR_20' ) end [2025-02-10 22:51:18] Production.INFO: ProcessCDR(1,14447568,1,1,2) [2025-02-10 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447568', 'tblTempUsageDetail_20' ) start [2025-02-10 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447568', 'tblTempUsageDetail_20' ) end [2025-02-10 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:51:21] Production.INFO: ==7434== Releasing lock... [2025-02-10 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:51:21] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:52:05 [end_date_ymd] => 2025-02-10 22:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:52:05' and `end` < '2025-02-10 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-10 22:52:19] Production.INFO: count ==1438 [2025-02-10 22:52:20] Production.ERROR: pbx CDR StartTime 2025-02-10 19:52:05 - End Time 2025-02-10 22:52:05 [2025-02-10 22:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447573', 'tblTempUsageDetail_20' ) start [2025-02-10 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447573', 'tblTempUsageDetail_20' ) end [2025-02-10 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447573', 'tblTempVendorCDR_20' ) start [2025-02-10 22:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447573', 'tblTempVendorCDR_20' ) end [2025-02-10 22:52:20] Production.INFO: ProcessCDR(1,14447573,1,1,2) [2025-02-10 22:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447573', 'tblTempUsageDetail_20' ) start [2025-02-10 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447573', 'tblTempUsageDetail_20' ) end [2025-02-10 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:52:23] Production.INFO: ==7512== Releasing lock... [2025-02-10 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:52:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:53:05 [end_date_ymd] => 2025-02-10 22:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:53:05' and `end` < '2025-02-10 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-10 22:53:18] Production.INFO: count ==1442 [2025-02-10 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:53:05 - End Time 2025-02-10 22:53:05 [2025-02-10 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447578', 'tblTempUsageDetail_20' ) start [2025-02-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447578', 'tblTempUsageDetail_20' ) end [2025-02-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447578', 'tblTempVendorCDR_20' ) start [2025-02-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447578', 'tblTempVendorCDR_20' ) end [2025-02-10 22:53:18] Production.INFO: ProcessCDR(1,14447578,1,1,2) [2025-02-10 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447578', 'tblTempUsageDetail_20' ) start [2025-02-10 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447578', 'tblTempUsageDetail_20' ) end [2025-02-10 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:53:21] Production.INFO: ==7582== Releasing lock... [2025-02-10 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:53:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:54:04 [end_date_ymd] => 2025-02-10 22:54:04 [RateCDR] => 1 ) [2025-02-10 22:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 19:54:04' and `end` < '2025-02-10 22:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 22:54:17] Production.INFO: count ==1439 [2025-02-10 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:54:04 - End Time 2025-02-10 22:54:04 [2025-02-10 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447583', 'tblTempUsageDetail_20' ) start [2025-02-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447583', 'tblTempUsageDetail_20' ) end [2025-02-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447583', 'tblTempVendorCDR_20' ) start [2025-02-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447583', 'tblTempVendorCDR_20' ) end [2025-02-10 22:54:18] Production.INFO: ProcessCDR(1,14447583,1,1,2) [2025-02-10 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447583', 'tblTempUsageDetail_20' ) start [2025-02-10 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447583', 'tblTempUsageDetail_20' ) end [2025-02-10 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:54:21] Production.INFO: ==7660== Releasing lock... [2025-02-10 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:54:21] Production.INFO: 39 MB #Memory Used# [2025-02-10 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:55:05 [end_date_ymd] => 2025-02-10 22:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:55:05' and `end` < '2025-02-10 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-10 22:55:18] Production.INFO: count ==1436 [2025-02-10 22:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:55:05 - End Time 2025-02-10 22:55:05 [2025-02-10 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447588', 'tblTempUsageDetail_20' ) start [2025-02-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447588', 'tblTempUsageDetail_20' ) end [2025-02-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447588', 'tblTempVendorCDR_20' ) start [2025-02-10 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447588', 'tblTempVendorCDR_20' ) end [2025-02-10 22:55:19] Production.INFO: ProcessCDR(1,14447588,1,1,2) [2025-02-10 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447588', 'tblTempUsageDetail_20' ) start [2025-02-10 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447588', 'tblTempUsageDetail_20' ) end [2025-02-10 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:55:22] Production.INFO: ==7736== Releasing lock... [2025-02-10 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:55:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:56:05 [end_date_ymd] => 2025-02-10 22:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:56:05' and `end` < '2025-02-10 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-10 22:56:18] Production.INFO: count ==1436 [2025-02-10 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:56:05 - End Time 2025-02-10 22:56:05 [2025-02-10 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447593', 'tblTempUsageDetail_20' ) start [2025-02-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447593', 'tblTempUsageDetail_20' ) end [2025-02-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447593', 'tblTempVendorCDR_20' ) start [2025-02-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447593', 'tblTempVendorCDR_20' ) end [2025-02-10 22:56:19] Production.INFO: ProcessCDR(1,14447593,1,1,2) [2025-02-10 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447593', 'tblTempUsageDetail_20' ) start [2025-02-10 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447593', 'tblTempUsageDetail_20' ) end [2025-02-10 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:56:22] Production.INFO: ==7812== Releasing lock... [2025-02-10 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:56:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:57:05 [end_date_ymd] => 2025-02-10 22:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:57:05' and `end` < '2025-02-10 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-10 22:57:18] Production.INFO: count ==1436 [2025-02-10 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:57:05 - End Time 2025-02-10 22:57:05 [2025-02-10 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447598', 'tblTempUsageDetail_20' ) start [2025-02-10 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447598', 'tblTempUsageDetail_20' ) end [2025-02-10 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447598', 'tblTempVendorCDR_20' ) start [2025-02-10 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447598', 'tblTempVendorCDR_20' ) end [2025-02-10 22:57:19] Production.INFO: ProcessCDR(1,14447598,1,1,2) [2025-02-10 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447598', 'tblTempUsageDetail_20' ) start [2025-02-10 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447598', 'tblTempUsageDetail_20' ) end [2025-02-10 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:57:22] Production.INFO: ==7882== Releasing lock... [2025-02-10 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:57:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:58:05 [end_date_ymd] => 2025-02-10 22:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:58:05' and `end` < '2025-02-10 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-10 22:58:18] Production.INFO: count ==1436 [2025-02-10 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 19:58:05 - End Time 2025-02-10 22:58:05 [2025-02-10 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447603', 'tblTempUsageDetail_20' ) start [2025-02-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447603', 'tblTempUsageDetail_20' ) end [2025-02-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447603', 'tblTempVendorCDR_20' ) start [2025-02-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447603', 'tblTempVendorCDR_20' ) end [2025-02-10 22:58:18] Production.INFO: ProcessCDR(1,14447603,1,1,2) [2025-02-10 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447603', 'tblTempUsageDetail_20' ) start [2025-02-10 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447603', 'tblTempUsageDetail_20' ) end [2025-02-10 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:58:23] Production.INFO: ==7953== Releasing lock... [2025-02-10 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:58:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 19:59:05 [end_date_ymd] => 2025-02-10 22:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 19:59:05' and `end` < '2025-02-10 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-10 22:59:18] Production.INFO: count ==1434 [2025-02-10 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 19:59:05 - End Time 2025-02-10 22:59:05 [2025-02-10 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447608', 'tblTempUsageDetail_20' ) start [2025-02-10 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447608', 'tblTempUsageDetail_20' ) end [2025-02-10 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447608', 'tblTempVendorCDR_20' ) start [2025-02-10 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447608', 'tblTempVendorCDR_20' ) end [2025-02-10 22:59:19] Production.INFO: ProcessCDR(1,14447608,1,1,2) [2025-02-10 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447608', 'tblTempUsageDetail_20' ) start [2025-02-10 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447608', 'tblTempUsageDetail_20' ) end [2025-02-10 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 22:59:22] Production.INFO: ==8025== Releasing lock... [2025-02-10 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 22:59:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:00:05 [end_date_ymd] => 2025-02-10 23:00:05 [RateCDR] => 1 ) [2025-02-10 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:00:05' and `end` < '2025-02-10 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:00:18] Production.INFO: count ==1432 [2025-02-10 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:00:05 - End Time 2025-02-10 23:00:05 [2025-02-10 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447614', 'tblTempUsageDetail_20' ) start [2025-02-10 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447614', 'tblTempUsageDetail_20' ) end [2025-02-10 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447614', 'tblTempVendorCDR_20' ) start [2025-02-10 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447614', 'tblTempVendorCDR_20' ) end [2025-02-10 23:00:19] Production.INFO: ProcessCDR(1,14447614,1,1,2) [2025-02-10 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447614', 'tblTempUsageDetail_20' ) start [2025-02-10 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447614', 'tblTempUsageDetail_20' ) end [2025-02-10 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:00:23] Production.INFO: ==8144== Releasing lock... [2025-02-10 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:00:23] Production.INFO: 39 MB #Memory Used# [2025-02-10 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:01:05 [end_date_ymd] => 2025-02-10 23:01:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:01:05' and `end` < '2025-02-10 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-10 23:01:18] Production.INFO: count ==1396 [2025-02-10 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:01:05 - End Time 2025-02-10 23:01:05 [2025-02-10 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447618', 'tblTempUsageDetail_20' ) start [2025-02-10 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447618', 'tblTempUsageDetail_20' ) end [2025-02-10 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447618', 'tblTempVendorCDR_20' ) start [2025-02-10 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447618', 'tblTempVendorCDR_20' ) end [2025-02-10 23:01:19] Production.INFO: ProcessCDR(1,14447618,1,1,2) [2025-02-10 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447618', 'tblTempUsageDetail_20' ) start [2025-02-10 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447618', 'tblTempUsageDetail_20' ) end [2025-02-10 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:01:22] Production.INFO: ==8269== Releasing lock... [2025-02-10 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:02:05 [end_date_ymd] => 2025-02-10 23:02:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:02:05' and `end` < '2025-02-10 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-10 23:02:19] Production.INFO: count ==1396 [2025-02-10 23:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 20:02:05 - End Time 2025-02-10 23:02:05 [2025-02-10 23:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447624', 'tblTempUsageDetail_20' ) start [2025-02-10 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447624', 'tblTempUsageDetail_20' ) end [2025-02-10 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447624', 'tblTempVendorCDR_20' ) start [2025-02-10 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447624', 'tblTempVendorCDR_20' ) end [2025-02-10 23:02:20] Production.INFO: ProcessCDR(1,14447624,1,1,2) [2025-02-10 23:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447624', 'tblTempUsageDetail_20' ) start [2025-02-10 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447624', 'tblTempUsageDetail_20' ) end [2025-02-10 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:02:23] Production.INFO: ==8387== Releasing lock... [2025-02-10 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:02:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:03:05 [end_date_ymd] => 2025-02-10 23:03:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:03:05' and `end` < '2025-02-10 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-10 23:03:18] Production.INFO: count ==1396 [2025-02-10 23:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:03:05 - End Time 2025-02-10 23:03:05 [2025-02-10 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447629', 'tblTempUsageDetail_20' ) start [2025-02-10 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447629', 'tblTempUsageDetail_20' ) end [2025-02-10 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447629', 'tblTempVendorCDR_20' ) start [2025-02-10 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447629', 'tblTempVendorCDR_20' ) end [2025-02-10 23:03:19] Production.INFO: ProcessCDR(1,14447629,1,1,2) [2025-02-10 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447629', 'tblTempUsageDetail_20' ) start [2025-02-10 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447629', 'tblTempUsageDetail_20' ) end [2025-02-10 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:03:22] Production.INFO: ==8462== Releasing lock... [2025-02-10 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:03:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:04:05 [end_date_ymd] => 2025-02-10 23:04:05 [RateCDR] => 1 ) [2025-02-10 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:04:05' and `end` < '2025-02-10 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:04:18] Production.INFO: count ==1392 [2025-02-10 23:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:04:05 - End Time 2025-02-10 23:04:05 [2025-02-10 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447634', 'tblTempUsageDetail_20' ) start [2025-02-10 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447634', 'tblTempUsageDetail_20' ) end [2025-02-10 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447634', 'tblTempVendorCDR_20' ) start [2025-02-10 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447634', 'tblTempVendorCDR_20' ) end [2025-02-10 23:04:19] Production.INFO: ProcessCDR(1,14447634,1,1,2) [2025-02-10 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447634', 'tblTempUsageDetail_20' ) start [2025-02-10 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447634', 'tblTempUsageDetail_20' ) end [2025-02-10 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:04:22] Production.INFO: ==8536== Releasing lock... [2025-02-10 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:04:22] Production.INFO: 39 MB #Memory Used# [2025-02-10 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:05:05 [end_date_ymd] => 2025-02-10 23:05:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:05:05' and `end` < '2025-02-10 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-10 23:05:19] Production.INFO: count ==1387 [2025-02-10 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:05:05 - End Time 2025-02-10 23:05:05 [2025-02-10 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447639', 'tblTempUsageDetail_20' ) start [2025-02-10 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447639', 'tblTempUsageDetail_20' ) end [2025-02-10 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447639', 'tblTempVendorCDR_20' ) start [2025-02-10 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447639', 'tblTempVendorCDR_20' ) end [2025-02-10 23:05:19] Production.INFO: ProcessCDR(1,14447639,1,1,2) [2025-02-10 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447639', 'tblTempUsageDetail_20' ) start [2025-02-10 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447639', 'tblTempUsageDetail_20' ) end [2025-02-10 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:05:23] Production.INFO: ==8687== Releasing lock... [2025-02-10 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:05:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:06:05 [end_date_ymd] => 2025-02-10 23:06:05 [RateCDR] => 1 ) [2025-02-10 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:06:05' and `end` < '2025-02-10 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:06:19] Production.INFO: count ==1381 [2025-02-10 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:06:05 - End Time 2025-02-10 23:06:05 [2025-02-10 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447644', 'tblTempUsageDetail_20' ) start [2025-02-10 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447644', 'tblTempUsageDetail_20' ) end [2025-02-10 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447644', 'tblTempVendorCDR_20' ) start [2025-02-10 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447644', 'tblTempVendorCDR_20' ) end [2025-02-10 23:06:19] Production.INFO: ProcessCDR(1,14447644,1,1,2) [2025-02-10 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447644', 'tblTempUsageDetail_20' ) start [2025-02-10 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447644', 'tblTempUsageDetail_20' ) end [2025-02-10 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:06:22] Production.INFO: ==8760== Releasing lock... [2025-02-10 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:06:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-10 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:07:05 [end_date_ymd] => 2025-02-10 23:07:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:07:05' and `end` < '2025-02-10 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-10 23:07:18] Production.INFO: count ==1377 [2025-02-10 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:07:05 - End Time 2025-02-10 23:07:05 [2025-02-10 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447649', 'tblTempUsageDetail_20' ) start [2025-02-10 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447649', 'tblTempUsageDetail_20' ) end [2025-02-10 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447649', 'tblTempVendorCDR_20' ) start [2025-02-10 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447649', 'tblTempVendorCDR_20' ) end [2025-02-10 23:07:19] Production.INFO: ProcessCDR(1,14447649,1,1,2) [2025-02-10 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447649', 'tblTempUsageDetail_20' ) start [2025-02-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447649', 'tblTempUsageDetail_20' ) end [2025-02-10 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:07:22] Production.INFO: ==8831== Releasing lock... [2025-02-10 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:07:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:08:05 [end_date_ymd] => 2025-02-10 23:08:05 [RateCDR] => 1 ) [2025-02-10 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:08:05' and `end` < '2025-02-10 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:08:18] Production.INFO: count ==1377 [2025-02-10 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:08:05 - End Time 2025-02-10 23:08:05 [2025-02-10 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447654', 'tblTempUsageDetail_20' ) start [2025-02-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447654', 'tblTempUsageDetail_20' ) end [2025-02-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447654', 'tblTempVendorCDR_20' ) start [2025-02-10 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447654', 'tblTempVendorCDR_20' ) end [2025-02-10 23:08:18] Production.INFO: ProcessCDR(1,14447654,1,1,2) [2025-02-10 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447654', 'tblTempUsageDetail_20' ) start [2025-02-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447654', 'tblTempUsageDetail_20' ) end [2025-02-10 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:08:21] Production.INFO: ==8988== Releasing lock... [2025-02-10 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:08:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:09:05 [end_date_ymd] => 2025-02-10 23:09:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:09:05' and `end` < '2025-02-10 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-10 23:09:18] Production.INFO: count ==1381 [2025-02-10 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:09:05 - End Time 2025-02-10 23:09:05 [2025-02-10 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447659', 'tblTempUsageDetail_20' ) start [2025-02-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447659', 'tblTempUsageDetail_20' ) end [2025-02-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447659', 'tblTempVendorCDR_20' ) start [2025-02-10 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447659', 'tblTempVendorCDR_20' ) end [2025-02-10 23:09:18] Production.INFO: ProcessCDR(1,14447659,1,1,2) [2025-02-10 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447659', 'tblTempUsageDetail_20' ) start [2025-02-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447659', 'tblTempUsageDetail_20' ) end [2025-02-10 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:09:22] Production.INFO: ==9064== Releasing lock... [2025-02-10 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:09:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:10:05 [end_date_ymd] => 2025-02-10 23:10:05 [RateCDR] => 1 ) [2025-02-10 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:10:05' and `end` < '2025-02-10 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:10:18] Production.INFO: count ==1379 [2025-02-10 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:10:05 - End Time 2025-02-10 23:10:05 [2025-02-10 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447665', 'tblTempUsageDetail_20' ) start [2025-02-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447665', 'tblTempUsageDetail_20' ) end [2025-02-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447665', 'tblTempVendorCDR_20' ) start [2025-02-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447665', 'tblTempVendorCDR_20' ) end [2025-02-10 23:10:19] Production.INFO: ProcessCDR(1,14447665,1,1,2) [2025-02-10 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447665', 'tblTempUsageDetail_20' ) start [2025-02-10 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447665', 'tblTempUsageDetail_20' ) end [2025-02-10 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:10:22] Production.INFO: ==9141== Releasing lock... [2025-02-10 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:11:05 [end_date_ymd] => 2025-02-10 23:11:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:11:05' and `end` < '2025-02-10 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-10 23:11:18] Production.INFO: count ==1348 [2025-02-10 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:11:05 - End Time 2025-02-10 23:11:05 [2025-02-10 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447670', 'tblTempUsageDetail_20' ) start [2025-02-10 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447670', 'tblTempUsageDetail_20' ) end [2025-02-10 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447670', 'tblTempVendorCDR_20' ) start [2025-02-10 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447670', 'tblTempVendorCDR_20' ) end [2025-02-10 23:11:19] Production.INFO: ProcessCDR(1,14447670,1,1,2) [2025-02-10 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447670', 'tblTempUsageDetail_20' ) start [2025-02-10 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447670', 'tblTempUsageDetail_20' ) end [2025-02-10 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:11:22] Production.INFO: ==9215== Releasing lock... [2025-02-10 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:11:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:12:05 [end_date_ymd] => 2025-02-10 23:12:05 [RateCDR] => 1 ) [2025-02-10 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:12:05' and `end` < '2025-02-10 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:12:18] Production.INFO: count ==1347 [2025-02-10 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:12:05 - End Time 2025-02-10 23:12:05 [2025-02-10 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447675', 'tblTempUsageDetail_20' ) start [2025-02-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447675', 'tblTempUsageDetail_20' ) end [2025-02-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447675', 'tblTempVendorCDR_20' ) start [2025-02-10 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447675', 'tblTempVendorCDR_20' ) end [2025-02-10 23:12:19] Production.INFO: ProcessCDR(1,14447675,1,1,2) [2025-02-10 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447675', 'tblTempUsageDetail_20' ) start [2025-02-10 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447675', 'tblTempUsageDetail_20' ) end [2025-02-10 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:12:22] Production.INFO: ==9367== Releasing lock... [2025-02-10 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:13:05 [end_date_ymd] => 2025-02-10 23:13:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:13:05' and `end` < '2025-02-10 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-10 23:13:18] Production.INFO: count ==1347 [2025-02-10 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:13:05 - End Time 2025-02-10 23:13:05 [2025-02-10 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447680', 'tblTempUsageDetail_20' ) start [2025-02-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447680', 'tblTempUsageDetail_20' ) end [2025-02-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447680', 'tblTempVendorCDR_20' ) start [2025-02-10 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447680', 'tblTempVendorCDR_20' ) end [2025-02-10 23:13:18] Production.INFO: ProcessCDR(1,14447680,1,1,2) [2025-02-10 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447680', 'tblTempUsageDetail_20' ) start [2025-02-10 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447680', 'tblTempUsageDetail_20' ) end [2025-02-10 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:13:21] Production.INFO: ==9441== Releasing lock... [2025-02-10 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:14:06 [end_date_ymd] => 2025-02-10 23:14:06 [RateCDR] => 1 ) [2025-02-10 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:14:06' and `end` < '2025-02-10 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:14:19] Production.INFO: count ==1345 [2025-02-10 23:14:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:14:06 - End Time 2025-02-10 23:14:06 [2025-02-10 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447685', 'tblTempUsageDetail_20' ) start [2025-02-10 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447685', 'tblTempUsageDetail_20' ) end [2025-02-10 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447685', 'tblTempVendorCDR_20' ) start [2025-02-10 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447685', 'tblTempVendorCDR_20' ) end [2025-02-10 23:14:19] Production.INFO: ProcessCDR(1,14447685,1,1,2) [2025-02-10 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447685', 'tblTempUsageDetail_20' ) start [2025-02-10 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447685', 'tblTempUsageDetail_20' ) end [2025-02-10 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:14:22] Production.INFO: ==9515== Releasing lock... [2025-02-10 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:14:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:15:05 [end_date_ymd] => 2025-02-10 23:15:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:15:05' and `end` < '2025-02-10 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-10 23:15:18] Production.INFO: count ==1344 [2025-02-10 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:15:05 - End Time 2025-02-10 23:15:05 [2025-02-10 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447690', 'tblTempUsageDetail_20' ) start [2025-02-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447690', 'tblTempUsageDetail_20' ) end [2025-02-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447690', 'tblTempVendorCDR_20' ) start [2025-02-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447690', 'tblTempVendorCDR_20' ) end [2025-02-10 23:15:18] Production.INFO: ProcessCDR(1,14447690,1,1,2) [2025-02-10 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447690', 'tblTempUsageDetail_20' ) start [2025-02-10 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447690', 'tblTempUsageDetail_20' ) end [2025-02-10 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:15:21] Production.INFO: ==9712== Releasing lock... [2025-02-10 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:15:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:16:05 [end_date_ymd] => 2025-02-10 23:16:05 [RateCDR] => 1 ) [2025-02-10 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:16:05' and `end` < '2025-02-10 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:16:18] Production.INFO: count ==1344 [2025-02-10 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:16:05 - End Time 2025-02-10 23:16:05 [2025-02-10 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447695', 'tblTempUsageDetail_20' ) start [2025-02-10 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447695', 'tblTempUsageDetail_20' ) end [2025-02-10 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447695', 'tblTempVendorCDR_20' ) start [2025-02-10 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447695', 'tblTempVendorCDR_20' ) end [2025-02-10 23:16:19] Production.INFO: ProcessCDR(1,14447695,1,1,2) [2025-02-10 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447695', 'tblTempUsageDetail_20' ) start [2025-02-10 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447695', 'tblTempUsageDetail_20' ) end [2025-02-10 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:16:22] Production.INFO: ==9792== Releasing lock... [2025-02-10 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:17:05 [end_date_ymd] => 2025-02-10 23:17:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:17:05' and `end` < '2025-02-10 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-10 23:17:19] Production.INFO: count ==1344 [2025-02-10 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:17:05 - End Time 2025-02-10 23:17:05 [2025-02-10 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447700', 'tblTempUsageDetail_20' ) start [2025-02-10 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447700', 'tblTempUsageDetail_20' ) end [2025-02-10 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447700', 'tblTempVendorCDR_20' ) start [2025-02-10 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447700', 'tblTempVendorCDR_20' ) end [2025-02-10 23:17:19] Production.INFO: ProcessCDR(1,14447700,1,1,2) [2025-02-10 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447700', 'tblTempUsageDetail_20' ) start [2025-02-10 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447700', 'tblTempUsageDetail_20' ) end [2025-02-10 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:17:22] Production.INFO: ==9866== Releasing lock... [2025-02-10 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:17:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:18:05 [end_date_ymd] => 2025-02-10 23:18:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:18:05' and `end` < '2025-02-10 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-10 23:18:18] Production.INFO: count ==1343 [2025-02-10 23:18:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:18:05 - End Time 2025-02-10 23:18:05 [2025-02-10 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447705', 'tblTempUsageDetail_20' ) start [2025-02-10 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447705', 'tblTempUsageDetail_20' ) end [2025-02-10 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447705', 'tblTempVendorCDR_20' ) start [2025-02-10 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447705', 'tblTempVendorCDR_20' ) end [2025-02-10 23:18:19] Production.INFO: ProcessCDR(1,14447705,1,1,2) [2025-02-10 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447705', 'tblTempUsageDetail_20' ) start [2025-02-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447705', 'tblTempUsageDetail_20' ) end [2025-02-10 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:18:22] Production.INFO: ==9940== Releasing lock... [2025-02-10 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:18:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:19:05 [end_date_ymd] => 2025-02-10 23:19:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:19:05' and `end` < '2025-02-10 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-10 23:19:18] Production.INFO: count ==1346 [2025-02-10 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:19:05 - End Time 2025-02-10 23:19:05 [2025-02-10 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447710', 'tblTempUsageDetail_20' ) start [2025-02-10 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447710', 'tblTempUsageDetail_20' ) end [2025-02-10 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447710', 'tblTempVendorCDR_20' ) start [2025-02-10 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447710', 'tblTempVendorCDR_20' ) end [2025-02-10 23:19:19] Production.INFO: ProcessCDR(1,14447710,1,1,2) [2025-02-10 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447710', 'tblTempUsageDetail_20' ) start [2025-02-10 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447710', 'tblTempUsageDetail_20' ) end [2025-02-10 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:19:22] Production.INFO: ==10012== Releasing lock... [2025-02-10 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:19:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:20:07 [end_date_ymd] => 2025-02-10 23:20:07 [RateCDR] => 1 ) [2025-02-10 23: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-10 20:20:07' and `end` < '2025-02-10 23: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-10 23:20:20] Production.INFO: count ==1352 [2025-02-10 23:20:20] Production.ERROR: pbx CDR StartTime 2025-02-10 20:20:07 - End Time 2025-02-10 23:20:07 [2025-02-10 23:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447716', 'tblTempUsageDetail_20' ) start [2025-02-10 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447716', 'tblTempUsageDetail_20' ) end [2025-02-10 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447716', 'tblTempVendorCDR_20' ) start [2025-02-10 23:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447716', 'tblTempVendorCDR_20' ) end [2025-02-10 23:20:20] Production.INFO: ProcessCDR(1,14447716,1,1,2) [2025-02-10 23:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447716', 'tblTempUsageDetail_20' ) start [2025-02-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447716', 'tblTempUsageDetail_20' ) end [2025-02-10 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:20:23] Production.INFO: ==10090== Releasing lock... [2025-02-10 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:20:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:21:05 [end_date_ymd] => 2025-02-10 23:21:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:21:05' and `end` < '2025-02-10 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-10 23:21:18] Production.INFO: count ==1356 [2025-02-10 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:21:05 - End Time 2025-02-10 23:21:05 [2025-02-10 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447721', 'tblTempUsageDetail_20' ) start [2025-02-10 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447721', 'tblTempUsageDetail_20' ) end [2025-02-10 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447721', 'tblTempVendorCDR_20' ) start [2025-02-10 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447721', 'tblTempVendorCDR_20' ) end [2025-02-10 23:21:19] Production.INFO: ProcessCDR(1,14447721,1,1,2) [2025-02-10 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447721', 'tblTempUsageDetail_20' ) start [2025-02-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447721', 'tblTempUsageDetail_20' ) end [2025-02-10 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:21:22] Production.INFO: ==10164== Releasing lock... [2025-02-10 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:21:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:22:05 [end_date_ymd] => 2025-02-10 23:22:05 [RateCDR] => 1 ) [2025-02-10 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:22:05' and `end` < '2025-02-10 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:22:18] Production.INFO: count ==1357 [2025-02-10 23:22:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:22:05 - End Time 2025-02-10 23:22:05 [2025-02-10 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447726', 'tblTempUsageDetail_20' ) start [2025-02-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447726', 'tblTempUsageDetail_20' ) end [2025-02-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447726', 'tblTempVendorCDR_20' ) start [2025-02-10 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447726', 'tblTempVendorCDR_20' ) end [2025-02-10 23:22:19] Production.INFO: ProcessCDR(1,14447726,1,1,2) [2025-02-10 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447726', 'tblTempUsageDetail_20' ) start [2025-02-10 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447726', 'tblTempUsageDetail_20' ) end [2025-02-10 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:22:24] Production.INFO: ==10238== Releasing lock... [2025-02-10 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:22:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:23:04 [end_date_ymd] => 2025-02-10 23:23:04 [RateCDR] => 1 ) [2025-02-10 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:23:04' and `end` < '2025-02-10 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:23:18] Production.INFO: count ==1353 [2025-02-10 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:23:04 - End Time 2025-02-10 23:23:04 [2025-02-10 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447731', 'tblTempUsageDetail_20' ) start [2025-02-10 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447731', 'tblTempUsageDetail_20' ) end [2025-02-10 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447731', 'tblTempVendorCDR_20' ) start [2025-02-10 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447731', 'tblTempVendorCDR_20' ) end [2025-02-10 23:23:19] Production.INFO: ProcessCDR(1,14447731,1,1,2) [2025-02-10 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447731', 'tblTempUsageDetail_20' ) start [2025-02-10 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447731', 'tblTempUsageDetail_20' ) end [2025-02-10 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:23:22] Production.INFO: ==10311== Releasing lock... [2025-02-10 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:24:05 [end_date_ymd] => 2025-02-10 23:24:05 [RateCDR] => 1 ) [2025-02-10 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:24:05' and `end` < '2025-02-10 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:24:18] Production.INFO: count ==1351 [2025-02-10 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:24:05 - End Time 2025-02-10 23:24:05 [2025-02-10 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447736', 'tblTempUsageDetail_20' ) start [2025-02-10 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447736', 'tblTempUsageDetail_20' ) end [2025-02-10 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447736', 'tblTempVendorCDR_20' ) start [2025-02-10 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447736', 'tblTempVendorCDR_20' ) end [2025-02-10 23:24:19] Production.INFO: ProcessCDR(1,14447736,1,1,2) [2025-02-10 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447736', 'tblTempUsageDetail_20' ) start [2025-02-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447736', 'tblTempUsageDetail_20' ) end [2025-02-10 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:24:22] Production.INFO: ==10387== Releasing lock... [2025-02-10 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:24:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:25:05 [end_date_ymd] => 2025-02-10 23:25:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:25:05' and `end` < '2025-02-10 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-10 23:25:18] Production.INFO: count ==1345 [2025-02-10 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:25:05 - End Time 2025-02-10 23:25:05 [2025-02-10 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447741', 'tblTempUsageDetail_20' ) start [2025-02-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447741', 'tblTempUsageDetail_20' ) end [2025-02-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447741', 'tblTempVendorCDR_20' ) start [2025-02-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447741', 'tblTempVendorCDR_20' ) end [2025-02-10 23:25:18] Production.INFO: ProcessCDR(1,14447741,1,1,2) [2025-02-10 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447741', 'tblTempUsageDetail_20' ) start [2025-02-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447741', 'tblTempUsageDetail_20' ) end [2025-02-10 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:25:21] Production.INFO: ==10464== Releasing lock... [2025-02-10 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:25:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:26:05 [end_date_ymd] => 2025-02-10 23:26:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:26:05' and `end` < '2025-02-10 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-10 23:26:19] Production.INFO: count ==1344 [2025-02-10 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:26:05 - End Time 2025-02-10 23:26:05 [2025-02-10 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447746', 'tblTempUsageDetail_20' ) start [2025-02-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447746', 'tblTempUsageDetail_20' ) end [2025-02-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447746', 'tblTempVendorCDR_20' ) start [2025-02-10 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447746', 'tblTempVendorCDR_20' ) end [2025-02-10 23:26:19] Production.INFO: ProcessCDR(1,14447746,1,1,2) [2025-02-10 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447746', 'tblTempUsageDetail_20' ) start [2025-02-10 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447746', 'tblTempUsageDetail_20' ) end [2025-02-10 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:26:22] Production.INFO: ==10539== Releasing lock... [2025-02-10 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:27:05 [end_date_ymd] => 2025-02-10 23:27:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:27:05' and `end` < '2025-02-10 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-10 23:27:18] Production.INFO: count ==1344 [2025-02-10 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:27:05 - End Time 2025-02-10 23:27:05 [2025-02-10 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447751', 'tblTempUsageDetail_20' ) start [2025-02-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447751', 'tblTempUsageDetail_20' ) end [2025-02-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447751', 'tblTempVendorCDR_20' ) start [2025-02-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447751', 'tblTempVendorCDR_20' ) end [2025-02-10 23:27:18] Production.INFO: ProcessCDR(1,14447751,1,1,2) [2025-02-10 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447751', 'tblTempUsageDetail_20' ) start [2025-02-10 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447751', 'tblTempUsageDetail_20' ) end [2025-02-10 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:27:21] Production.INFO: ==10613== Releasing lock... [2025-02-10 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:27:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:28:05 [end_date_ymd] => 2025-02-10 23:28:05 [RateCDR] => 1 ) [2025-02-10 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:28:05' and `end` < '2025-02-10 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:28:18] Production.INFO: count ==1344 [2025-02-10 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:28:05 - End Time 2025-02-10 23:28:05 [2025-02-10 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447756', 'tblTempUsageDetail_20' ) start [2025-02-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447756', 'tblTempUsageDetail_20' ) end [2025-02-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447756', 'tblTempVendorCDR_20' ) start [2025-02-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447756', 'tblTempVendorCDR_20' ) end [2025-02-10 23:28:18] Production.INFO: ProcessCDR(1,14447756,1,1,2) [2025-02-10 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447756', 'tblTempUsageDetail_20' ) start [2025-02-10 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447756', 'tblTempUsageDetail_20' ) end [2025-02-10 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:28:21] Production.INFO: ==10693== Releasing lock... [2025-02-10 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-10 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:29:06 [end_date_ymd] => 2025-02-10 23:29:06 [RateCDR] => 1 ) [2025-02-10 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:29:06' and `end` < '2025-02-10 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:29:19] Production.INFO: count ==1337 [2025-02-10 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:29:06 - End Time 2025-02-10 23:29:06 [2025-02-10 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447761', 'tblTempUsageDetail_20' ) start [2025-02-10 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447761', 'tblTempUsageDetail_20' ) end [2025-02-10 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447761', 'tblTempVendorCDR_20' ) start [2025-02-10 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447761', 'tblTempVendorCDR_20' ) end [2025-02-10 23:29:19] Production.INFO: ProcessCDR(1,14447761,1,1,2) [2025-02-10 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447761', 'tblTempUsageDetail_20' ) start [2025-02-10 23:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447761', 'tblTempUsageDetail_20' ) end [2025-02-10 23:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:29:24] Production.INFO: ==10770== Releasing lock... [2025-02-10 23:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:29:24] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:30:06 [end_date_ymd] => 2025-02-10 23:30:06 [RateCDR] => 1 ) [2025-02-10 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-10 20:30:06' and `end` < '2025-02-10 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-10 23:30:19] Production.INFO: count ==1336 [2025-02-10 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:30:06 - End Time 2025-02-10 23:30:06 [2025-02-10 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447767', 'tblTempUsageDetail_20' ) start [2025-02-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447767', 'tblTempUsageDetail_20' ) end [2025-02-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447767', 'tblTempVendorCDR_20' ) start [2025-02-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447767', 'tblTempVendorCDR_20' ) end [2025-02-10 23:30:19] Production.INFO: ProcessCDR(1,14447767,1,1,2) [2025-02-10 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447767', 'tblTempUsageDetail_20' ) start [2025-02-10 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447767', 'tblTempUsageDetail_20' ) end [2025-02-10 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:30:23] Production.INFO: ==10884== Releasing lock... [2025-02-10 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:30:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:31:05 [end_date_ymd] => 2025-02-10 23:31:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:31:05' and `end` < '2025-02-10 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-10 23:31:18] Production.INFO: count ==1316 [2025-02-10 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:31:05 - End Time 2025-02-10 23:31:05 [2025-02-10 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447772', 'tblTempUsageDetail_20' ) start [2025-02-10 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447772', 'tblTempUsageDetail_20' ) end [2025-02-10 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447772', 'tblTempVendorCDR_20' ) start [2025-02-10 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447772', 'tblTempVendorCDR_20' ) end [2025-02-10 23:31:19] Production.INFO: ProcessCDR(1,14447772,1,1,2) [2025-02-10 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447772', 'tblTempUsageDetail_20' ) start [2025-02-10 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447772', 'tblTempUsageDetail_20' ) end [2025-02-10 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:31:22] Production.INFO: ==10963== Releasing lock... [2025-02-10 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:31:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:32:05 [end_date_ymd] => 2025-02-10 23:32:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:32:05' and `end` < '2025-02-10 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-10 23:32:18] Production.INFO: count ==1317 [2025-02-10 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:32:05 - End Time 2025-02-10 23:32:05 [2025-02-10 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447777', 'tblTempUsageDetail_20' ) start [2025-02-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447777', 'tblTempUsageDetail_20' ) end [2025-02-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447777', 'tblTempVendorCDR_20' ) start [2025-02-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447777', 'tblTempVendorCDR_20' ) end [2025-02-10 23:32:19] Production.INFO: ProcessCDR(1,14447777,1,1,2) [2025-02-10 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447777', 'tblTempUsageDetail_20' ) start [2025-02-10 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447777', 'tblTempUsageDetail_20' ) end [2025-02-10 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:32:22] Production.INFO: ==11033== Releasing lock... [2025-02-10 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:32:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:33:05 [end_date_ymd] => 2025-02-10 23:33:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:33:05' and `end` < '2025-02-10 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-10 23:33:18] Production.INFO: count ==1327 [2025-02-10 23:33:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:33:05 - End Time 2025-02-10 23:33:05 [2025-02-10 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447782', 'tblTempUsageDetail_20' ) start [2025-02-10 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447782', 'tblTempUsageDetail_20' ) end [2025-02-10 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447782', 'tblTempVendorCDR_20' ) start [2025-02-10 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447782', 'tblTempVendorCDR_20' ) end [2025-02-10 23:33:19] Production.INFO: ProcessCDR(1,14447782,1,1,2) [2025-02-10 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447782', 'tblTempUsageDetail_20' ) start [2025-02-10 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447782', 'tblTempUsageDetail_20' ) end [2025-02-10 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:33:23] Production.INFO: ==11110== Releasing lock... [2025-02-10 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:33:23] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:34:04 [end_date_ymd] => 2025-02-10 23:34:04 [RateCDR] => 1 ) [2025-02-10 23:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:34:04' and `end` < '2025-02-10 23:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:34:17] Production.INFO: count ==1327 [2025-02-10 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:34:04 - End Time 2025-02-10 23:34:04 [2025-02-10 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447787', 'tblTempUsageDetail_20' ) start [2025-02-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447787', 'tblTempUsageDetail_20' ) end [2025-02-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447787', 'tblTempVendorCDR_20' ) start [2025-02-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447787', 'tblTempVendorCDR_20' ) end [2025-02-10 23:34:18] Production.INFO: ProcessCDR(1,14447787,1,1,2) [2025-02-10 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447787', 'tblTempUsageDetail_20' ) start [2025-02-10 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447787', 'tblTempUsageDetail_20' ) end [2025-02-10 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:34:21] Production.INFO: ==11186== Releasing lock... [2025-02-10 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:34:21] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:35:05 [end_date_ymd] => 2025-02-10 23:35:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:35:05' and `end` < '2025-02-10 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-10 23:35:18] Production.INFO: count ==1327 [2025-02-10 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:35:05 - End Time 2025-02-10 23:35:05 [2025-02-10 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447792', 'tblTempUsageDetail_20' ) start [2025-02-10 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447792', 'tblTempUsageDetail_20' ) end [2025-02-10 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447792', 'tblTempVendorCDR_20' ) start [2025-02-10 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447792', 'tblTempVendorCDR_20' ) end [2025-02-10 23:35:18] Production.INFO: ProcessCDR(1,14447792,1,1,2) [2025-02-10 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447792', 'tblTempUsageDetail_20' ) start [2025-02-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447792', 'tblTempUsageDetail_20' ) end [2025-02-10 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:35:22] Production.INFO: ==11259== Releasing lock... [2025-02-10 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:35:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:36:05 [end_date_ymd] => 2025-02-10 23:36:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:36:05' and `end` < '2025-02-10 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-10 23:36:18] Production.INFO: count ==1329 [2025-02-10 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:36:05 - End Time 2025-02-10 23:36:05 [2025-02-10 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447797', 'tblTempUsageDetail_20' ) start [2025-02-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447797', 'tblTempUsageDetail_20' ) end [2025-02-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447797', 'tblTempVendorCDR_20' ) start [2025-02-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447797', 'tblTempVendorCDR_20' ) end [2025-02-10 23:36:19] Production.INFO: ProcessCDR(1,14447797,1,1,2) [2025-02-10 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447797', 'tblTempUsageDetail_20' ) start [2025-02-10 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447797', 'tblTempUsageDetail_20' ) end [2025-02-10 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:36:23] Production.INFO: ==11333== Releasing lock... [2025-02-10 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:36:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:37:05 [end_date_ymd] => 2025-02-10 23:37:05 [RateCDR] => 1 ) [2025-02-10 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:37:05' and `end` < '2025-02-10 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:37:18] Production.INFO: count ==1328 [2025-02-10 23:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:37:05 - End Time 2025-02-10 23:37:05 [2025-02-10 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447802', 'tblTempUsageDetail_20' ) start [2025-02-10 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447802', 'tblTempUsageDetail_20' ) end [2025-02-10 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447802', 'tblTempVendorCDR_20' ) start [2025-02-10 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447802', 'tblTempVendorCDR_20' ) end [2025-02-10 23:37:19] Production.INFO: ProcessCDR(1,14447802,1,1,2) [2025-02-10 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447802', 'tblTempUsageDetail_20' ) start [2025-02-10 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447802', 'tblTempUsageDetail_20' ) end [2025-02-10 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:37:22] Production.INFO: ==11408== Releasing lock... [2025-02-10 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:37:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:38:05 [end_date_ymd] => 2025-02-10 23:38:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:38:05' and `end` < '2025-02-10 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-10 23:38:18] Production.INFO: count ==1330 [2025-02-10 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:38:05 - End Time 2025-02-10 23:38:05 [2025-02-10 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447807', 'tblTempUsageDetail_20' ) start [2025-02-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447807', 'tblTempUsageDetail_20' ) end [2025-02-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447807', 'tblTempVendorCDR_20' ) start [2025-02-10 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447807', 'tblTempVendorCDR_20' ) end [2025-02-10 23:38:19] Production.INFO: ProcessCDR(1,14447807,1,1,2) [2025-02-10 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447807', 'tblTempUsageDetail_20' ) start [2025-02-10 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447807', 'tblTempUsageDetail_20' ) end [2025-02-10 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:38:23] Production.INFO: ==11480== Releasing lock... [2025-02-10 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:38:23] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:39:05 [end_date_ymd] => 2025-02-10 23:39:05 [RateCDR] => 1 ) [2025-02-10 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:39:05' and `end` < '2025-02-10 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:39:18] Production.INFO: count ==1330 [2025-02-10 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:39:05 - End Time 2025-02-10 23:39:05 [2025-02-10 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447812', 'tblTempUsageDetail_20' ) start [2025-02-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447812', 'tblTempUsageDetail_20' ) end [2025-02-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447812', 'tblTempVendorCDR_20' ) start [2025-02-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447812', 'tblTempVendorCDR_20' ) end [2025-02-10 23:39:18] Production.INFO: ProcessCDR(1,14447812,1,1,2) [2025-02-10 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447812', 'tblTempUsageDetail_20' ) start [2025-02-10 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447812', 'tblTempUsageDetail_20' ) end [2025-02-10 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:39:21] Production.INFO: ==11552== Releasing lock... [2025-02-10 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:39:21] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:40:06 [end_date_ymd] => 2025-02-10 23:40:06 [RateCDR] => 1 ) [2025-02-10 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-10 20:40:06' and `end` < '2025-02-10 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-10 23:40:19] Production.INFO: count ==1332 [2025-02-10 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:40:06 - End Time 2025-02-10 23:40:06 [2025-02-10 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447817', 'tblTempUsageDetail_20' ) start [2025-02-10 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447817', 'tblTempUsageDetail_20' ) end [2025-02-10 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447817', 'tblTempVendorCDR_20' ) start [2025-02-10 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447817', 'tblTempVendorCDR_20' ) end [2025-02-10 23:40:19] Production.INFO: ProcessCDR(1,14447817,1,1,2) [2025-02-10 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447817', 'tblTempUsageDetail_20' ) start [2025-02-10 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447817', 'tblTempUsageDetail_20' ) end [2025-02-10 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:40:23] Production.INFO: ==11625== Releasing lock... [2025-02-10 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:40:23] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:41:04 [end_date_ymd] => 2025-02-10 23:41:04 [RateCDR] => 1 ) [2025-02-10 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:41:04' and `end` < '2025-02-10 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:41:19] Production.INFO: count ==1319 [2025-02-10 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:41:04 - End Time 2025-02-10 23:41:04 [2025-02-10 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447823', 'tblTempUsageDetail_20' ) start [2025-02-10 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447823', 'tblTempUsageDetail_20' ) end [2025-02-10 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447823', 'tblTempVendorCDR_20' ) start [2025-02-10 23:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447823', 'tblTempVendorCDR_20' ) end [2025-02-10 23:41:20] Production.INFO: ProcessCDR(1,14447823,1,1,2) [2025-02-10 23:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447823', 'tblTempUsageDetail_20' ) start [2025-02-10 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447823', 'tblTempUsageDetail_20' ) end [2025-02-10 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:41:23] Production.INFO: ==11700== Releasing lock... [2025-02-10 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:41:23] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:42:05 [end_date_ymd] => 2025-02-10 23:42:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:42:05' and `end` < '2025-02-10 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-10 23:42:18] Production.INFO: count ==1319 [2025-02-10 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:42:05 - End Time 2025-02-10 23:42:05 [2025-02-10 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447828', 'tblTempUsageDetail_20' ) start [2025-02-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447828', 'tblTempUsageDetail_20' ) end [2025-02-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447828', 'tblTempVendorCDR_20' ) start [2025-02-10 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447828', 'tblTempVendorCDR_20' ) end [2025-02-10 23:42:18] Production.INFO: ProcessCDR(1,14447828,1,1,2) [2025-02-10 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447828', 'tblTempUsageDetail_20' ) start [2025-02-10 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447828', 'tblTempUsageDetail_20' ) end [2025-02-10 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:42:21] Production.INFO: ==11773== Releasing lock... [2025-02-10 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:42:21] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:43:05 [end_date_ymd] => 2025-02-10 23:43:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:43:05' and `end` < '2025-02-10 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-10 23:43:18] Production.INFO: count ==1317 [2025-02-10 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:43:05 - End Time 2025-02-10 23:43:05 [2025-02-10 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447833', 'tblTempUsageDetail_20' ) start [2025-02-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447833', 'tblTempUsageDetail_20' ) end [2025-02-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447833', 'tblTempVendorCDR_20' ) start [2025-02-10 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447833', 'tblTempVendorCDR_20' ) end [2025-02-10 23:43:18] Production.INFO: ProcessCDR(1,14447833,1,1,2) [2025-02-10 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447833', 'tblTempUsageDetail_20' ) start [2025-02-10 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447833', 'tblTempUsageDetail_20' ) end [2025-02-10 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:43:22] Production.INFO: ==11852== Releasing lock... [2025-02-10 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:43:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:44:05 [end_date_ymd] => 2025-02-10 23:44:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:44:05' and `end` < '2025-02-10 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-10 23:44:22] Production.INFO: count ==1317 [2025-02-10 23:44:23] Production.ERROR: pbx CDR StartTime 2025-02-10 20:44:05 - End Time 2025-02-10 23:44:05 [2025-02-10 23:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447838', 'tblTempUsageDetail_20' ) start [2025-02-10 23:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447838', 'tblTempUsageDetail_20' ) end [2025-02-10 23:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447838', 'tblTempVendorCDR_20' ) start [2025-02-10 23:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447838', 'tblTempVendorCDR_20' ) end [2025-02-10 23:44:23] Production.INFO: ProcessCDR(1,14447838,1,1,2) [2025-02-10 23:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447838', 'tblTempUsageDetail_20' ) start [2025-02-10 23:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447838', 'tblTempUsageDetail_20' ) end [2025-02-10 23:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:44:26] Production.INFO: ==11924== Releasing lock... [2025-02-10 23:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:44:26] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:45:05 [end_date_ymd] => 2025-02-10 23:45:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:45:05' and `end` < '2025-02-10 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-10 23:45:18] Production.INFO: count ==1317 [2025-02-10 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:45:05 - End Time 2025-02-10 23:45:05 [2025-02-10 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447843', 'tblTempUsageDetail_20' ) start [2025-02-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447843', 'tblTempUsageDetail_20' ) end [2025-02-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447843', 'tblTempVendorCDR_20' ) start [2025-02-10 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447843', 'tblTempVendorCDR_20' ) end [2025-02-10 23:45:19] Production.INFO: ProcessCDR(1,14447843,1,1,2) [2025-02-10 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447843', 'tblTempUsageDetail_20' ) start [2025-02-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447843', 'tblTempUsageDetail_20' ) end [2025-02-10 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:45:22] Production.INFO: ==11998== Releasing lock... [2025-02-10 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:45:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:46:05 [end_date_ymd] => 2025-02-10 23:46:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:46:05' and `end` < '2025-02-10 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-10 23:46:19] Production.INFO: count ==1318 [2025-02-10 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:46:05 - End Time 2025-02-10 23:46:05 [2025-02-10 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447848', 'tblTempUsageDetail_20' ) start [2025-02-10 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447848', 'tblTempUsageDetail_20' ) end [2025-02-10 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447848', 'tblTempVendorCDR_20' ) start [2025-02-10 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447848', 'tblTempVendorCDR_20' ) end [2025-02-10 23:46:19] Production.INFO: ProcessCDR(1,14447848,1,1,2) [2025-02-10 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447848', 'tblTempUsageDetail_20' ) start [2025-02-10 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447848', 'tblTempUsageDetail_20' ) end [2025-02-10 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:46:24] Production.INFO: ==12106== Releasing lock... [2025-02-10 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:46:24] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:47:05 [end_date_ymd] => 2025-02-10 23:47:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:47:05' and `end` < '2025-02-10 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-10 23:47:20] Production.INFO: count ==1314 [2025-02-10 23:47:21] Production.ERROR: pbx CDR StartTime 2025-02-10 20:47:05 - End Time 2025-02-10 23:47:05 [2025-02-10 23:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447853', 'tblTempUsageDetail_20' ) start [2025-02-10 23:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447853', 'tblTempUsageDetail_20' ) end [2025-02-10 23:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447853', 'tblTempVendorCDR_20' ) start [2025-02-10 23:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447853', 'tblTempVendorCDR_20' ) end [2025-02-10 23:47:21] Production.INFO: ProcessCDR(1,14447853,1,1,2) [2025-02-10 23:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447853', 'tblTempUsageDetail_20' ) start [2025-02-10 23:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447853', 'tblTempUsageDetail_20' ) end [2025-02-10 23:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:47:24] Production.INFO: ==12182== Releasing lock... [2025-02-10 23:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:47:24] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:48:05 [end_date_ymd] => 2025-02-10 23:48:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:48:05' and `end` < '2025-02-10 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-10 23:48:18] Production.INFO: count ==1313 [2025-02-10 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:48:05 - End Time 2025-02-10 23:48:05 [2025-02-10 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447858', 'tblTempUsageDetail_20' ) start [2025-02-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447858', 'tblTempUsageDetail_20' ) end [2025-02-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447858', 'tblTempVendorCDR_20' ) start [2025-02-10 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447858', 'tblTempVendorCDR_20' ) end [2025-02-10 23:48:19] Production.INFO: ProcessCDR(1,14447858,1,1,2) [2025-02-10 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447858', 'tblTempUsageDetail_20' ) start [2025-02-10 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447858', 'tblTempUsageDetail_20' ) end [2025-02-10 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:48:22] Production.INFO: ==12256== Releasing lock... [2025-02-10 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:49:05 [end_date_ymd] => 2025-02-10 23:49:05 [RateCDR] => 1 ) [2025-02-10 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:49:05' and `end` < '2025-02-10 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:49:18] Production.INFO: count ==1313 [2025-02-10 23:49:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:49:05 - End Time 2025-02-10 23:49:05 [2025-02-10 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447863', 'tblTempUsageDetail_20' ) start [2025-02-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447863', 'tblTempUsageDetail_20' ) end [2025-02-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447863', 'tblTempVendorCDR_20' ) start [2025-02-10 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447863', 'tblTempVendorCDR_20' ) end [2025-02-10 23:49:19] Production.INFO: ProcessCDR(1,14447863,1,1,2) [2025-02-10 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447863', 'tblTempUsageDetail_20' ) start [2025-02-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447863', 'tblTempUsageDetail_20' ) end [2025-02-10 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:49:22] Production.INFO: ==12330== Releasing lock... [2025-02-10 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:49:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:50:06 [end_date_ymd] => 2025-02-10 23:50:06 [RateCDR] => 1 ) [2025-02-10 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:50:06' and `end` < '2025-02-10 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:50:18] Production.INFO: count ==1309 [2025-02-10 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:50:06 - End Time 2025-02-10 23:50:06 [2025-02-10 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447869', 'tblTempUsageDetail_20' ) start [2025-02-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447869', 'tblTempUsageDetail_20' ) end [2025-02-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447869', 'tblTempVendorCDR_20' ) start [2025-02-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447869', 'tblTempVendorCDR_20' ) end [2025-02-10 23:50:19] Production.INFO: ProcessCDR(1,14447869,1,1,2) [2025-02-10 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447869', 'tblTempUsageDetail_20' ) start [2025-02-10 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447869', 'tblTempUsageDetail_20' ) end [2025-02-10 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:50:22] Production.INFO: ==12405== Releasing lock... [2025-02-10 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:50:22] Production.INFO: 38 MB #Memory Used# [2025-02-10 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:51:05 [end_date_ymd] => 2025-02-10 23:51:05 [RateCDR] => 1 ) [2025-02-10 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:51:05' and `end` < '2025-02-10 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:51:18] Production.INFO: count ==1290 [2025-02-10 23:51:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:51:05 - End Time 2025-02-10 23:51:05 [2025-02-10 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447874', 'tblTempUsageDetail_20' ) start [2025-02-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447874', 'tblTempUsageDetail_20' ) end [2025-02-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447874', 'tblTempVendorCDR_20' ) start [2025-02-10 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447874', 'tblTempVendorCDR_20' ) end [2025-02-10 23:51:19] Production.INFO: ProcessCDR(1,14447874,1,1,2) [2025-02-10 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447874', 'tblTempUsageDetail_20' ) start [2025-02-10 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447874', 'tblTempUsageDetail_20' ) end [2025-02-10 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:51:22] Production.INFO: ==12477== Releasing lock... [2025-02-10 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:52:05 [end_date_ymd] => 2025-02-10 23:52:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:52:05' and `end` < '2025-02-10 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-10 23:52:19] Production.INFO: count ==1290 [2025-02-10 23:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:52:05 - End Time 2025-02-10 23:52:05 [2025-02-10 23:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447879', 'tblTempUsageDetail_20' ) start [2025-02-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447879', 'tblTempUsageDetail_20' ) end [2025-02-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447879', 'tblTempVendorCDR_20' ) start [2025-02-10 23:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447879', 'tblTempVendorCDR_20' ) end [2025-02-10 23:52:19] Production.INFO: ProcessCDR(1,14447879,1,1,2) [2025-02-10 23:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447879', 'tblTempUsageDetail_20' ) start [2025-02-10 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447879', 'tblTempUsageDetail_20' ) end [2025-02-10 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:52:23] Production.INFO: ==12551== Releasing lock... [2025-02-10 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:52:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-10 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:53:05 [end_date_ymd] => 2025-02-10 23:53:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:53:05' and `end` < '2025-02-10 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-10 23:53:18] Production.INFO: count ==1287 [2025-02-10 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:53:05 - End Time 2025-02-10 23:53:05 [2025-02-10 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447884', 'tblTempUsageDetail_20' ) start [2025-02-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447884', 'tblTempUsageDetail_20' ) end [2025-02-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447884', 'tblTempVendorCDR_20' ) start [2025-02-10 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447884', 'tblTempVendorCDR_20' ) end [2025-02-10 23:53:19] Production.INFO: ProcessCDR(1,14447884,1,1,2) [2025-02-10 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447884', 'tblTempUsageDetail_20' ) start [2025-02-10 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447884', 'tblTempUsageDetail_20' ) end [2025-02-10 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:53:22] Production.INFO: ==12628== Releasing lock... [2025-02-10 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:53:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:54:04 [end_date_ymd] => 2025-02-10 23:54:04 [RateCDR] => 1 ) [2025-02-10 23:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 20:54:04' and `end` < '2025-02-10 23:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-10 23:54:17] Production.INFO: count ==1290 [2025-02-10 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:54:04 - End Time 2025-02-10 23:54:04 [2025-02-10 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447889', 'tblTempUsageDetail_20' ) start [2025-02-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447889', 'tblTempUsageDetail_20' ) end [2025-02-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447889', 'tblTempVendorCDR_20' ) start [2025-02-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447889', 'tblTempVendorCDR_20' ) end [2025-02-10 23:54:18] Production.INFO: ProcessCDR(1,14447889,1,1,2) [2025-02-10 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447889', 'tblTempUsageDetail_20' ) start [2025-02-10 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447889', 'tblTempUsageDetail_20' ) end [2025-02-10 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:54:21] Production.INFO: ==12700== Releasing lock... [2025-02-10 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:55:05 [end_date_ymd] => 2025-02-10 23:55:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:55:05' and `end` < '2025-02-10 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-10 23:55:18] Production.INFO: count ==1290 [2025-02-10 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:55:05 - End Time 2025-02-10 23:55:05 [2025-02-10 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447894', 'tblTempUsageDetail_20' ) start [2025-02-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447894', 'tblTempUsageDetail_20' ) end [2025-02-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447894', 'tblTempVendorCDR_20' ) start [2025-02-10 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447894', 'tblTempVendorCDR_20' ) end [2025-02-10 23:55:18] Production.INFO: ProcessCDR(1,14447894,1,1,2) [2025-02-10 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447894', 'tblTempUsageDetail_20' ) start [2025-02-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447894', 'tblTempUsageDetail_20' ) end [2025-02-10 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:55:22] Production.INFO: ==12774== Releasing lock... [2025-02-10 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:55:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:56:05 [end_date_ymd] => 2025-02-10 23:56:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:56:05' and `end` < '2025-02-10 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-10 23:56:18] Production.INFO: count ==1292 [2025-02-10 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-10 20:56:05 - End Time 2025-02-10 23:56:05 [2025-02-10 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447899', 'tblTempUsageDetail_20' ) start [2025-02-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447899', 'tblTempUsageDetail_20' ) end [2025-02-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447899', 'tblTempVendorCDR_20' ) start [2025-02-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447899', 'tblTempVendorCDR_20' ) end [2025-02-10 23:56:19] Production.INFO: ProcessCDR(1,14447899,1,1,2) [2025-02-10 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447899', 'tblTempUsageDetail_20' ) start [2025-02-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447899', 'tblTempUsageDetail_20' ) end [2025-02-10 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:56:22] Production.INFO: ==12854== Releasing lock... [2025-02-10 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:56:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:57:05 [end_date_ymd] => 2025-02-10 23:57:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:57:05' and `end` < '2025-02-10 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-10 23:57:18] Production.INFO: count ==1289 [2025-02-10 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:57:05 - End Time 2025-02-10 23:57:05 [2025-02-10 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447904', 'tblTempUsageDetail_20' ) start [2025-02-10 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447904', 'tblTempUsageDetail_20' ) end [2025-02-10 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447904', 'tblTempVendorCDR_20' ) start [2025-02-10 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447904', 'tblTempVendorCDR_20' ) end [2025-02-10 23:57:19] Production.INFO: ProcessCDR(1,14447904,1,1,2) [2025-02-10 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447904', 'tblTempUsageDetail_20' ) start [2025-02-10 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447904', 'tblTempUsageDetail_20' ) end [2025-02-10 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:57:22] Production.INFO: ==12931== Releasing lock... [2025-02-10 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:57:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:58:05 [end_date_ymd] => 2025-02-10 23:58:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:58:05' and `end` < '2025-02-10 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-10 23:58:18] Production.INFO: count ==1288 [2025-02-10 23:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:58:05 - End Time 2025-02-10 23:58:05 [2025-02-10 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447909', 'tblTempUsageDetail_20' ) start [2025-02-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447909', 'tblTempUsageDetail_20' ) end [2025-02-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447909', 'tblTempVendorCDR_20' ) start [2025-02-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447909', 'tblTempVendorCDR_20' ) end [2025-02-10 23:58:19] Production.INFO: ProcessCDR(1,14447909,1,1,2) [2025-02-10 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447909', 'tblTempUsageDetail_20' ) start [2025-02-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447909', 'tblTempUsageDetail_20' ) end [2025-02-10 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:58:22] Production.INFO: ==13014== Releasing lock... [2025-02-10 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:58:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-10 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 20:59:05 [end_date_ymd] => 2025-02-10 23:59:05 [RateCDR] => 1 ) [2025-02-10 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-10 20:59:05' and `end` < '2025-02-10 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-10 23:59:19] Production.INFO: count ==1286 [2025-02-10 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 20:59:05 - End Time 2025-02-10 23:59:05 [2025-02-10 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-10 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447914', 'tblTempUsageDetail_20' ) start [2025-02-10 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447914', 'tblTempUsageDetail_20' ) end [2025-02-10 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447914', 'tblTempVendorCDR_20' ) start [2025-02-10 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447914', 'tblTempVendorCDR_20' ) end [2025-02-10 23:59:19] Production.INFO: ProcessCDR(1,14447914,1,1,2) [2025-02-10 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-10 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-10 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447914', 'tblTempUsageDetail_20' ) start [2025-02-10 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447914', 'tblTempUsageDetail_20' ) end [2025-02-10 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-10 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-10 23:59:23] Production.INFO: ==13096== Releasing lock... [2025-02-10 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-10 23:59:23] Production.INFO: 38 MB #Memory Used#