[2025-02-12 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:00:06 [end_date_ymd] => 2025-02-12 00:00:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:00:06' and `end` < '2025-02-12 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-12 00:00:19] Production.INFO: count ==881 [2025-02-12 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-11 21:00:06 - End Time 2025-02-12 00:00:06 [2025-02-12 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455257', 'tblTempUsageDetail_20' ) start [2025-02-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455257', 'tblTempUsageDetail_20' ) end [2025-02-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455257', 'tblTempVendorCDR_20' ) start [2025-02-12 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455257', 'tblTempVendorCDR_20' ) end [2025-02-12 00:00:20] Production.INFO: ProcessCDR(1,14455257,1,1,2) [2025-02-12 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455257', 'tblTempUsageDetail_20' ) start [2025-02-12 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455257', 'tblTempUsageDetail_20' ) end [2025-02-12 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:00:29] Production.INFO: ==5673== Releasing lock... [2025-02-12 00:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:00:29] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:01:06 [end_date_ymd] => 2025-02-12 00:01:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:01:06' and `end` < '2025-02-12 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-12 00:01:19] Production.INFO: count ==881 [2025-02-12 00:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:01:06 - End Time 2025-02-12 00:01:06 [2025-02-12 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455262', 'tblTempUsageDetail_20' ) start [2025-02-12 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455262', 'tblTempUsageDetail_20' ) end [2025-02-12 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455262', 'tblTempVendorCDR_20' ) start [2025-02-12 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455262', 'tblTempVendorCDR_20' ) end [2025-02-12 00:01:19] Production.INFO: ProcessCDR(1,14455262,1,1,2) [2025-02-12 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455262', 'tblTempUsageDetail_20' ) start [2025-02-12 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455262', 'tblTempUsageDetail_20' ) end [2025-02-12 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:01:22] Production.INFO: ==5772== Releasing lock... [2025-02-12 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:01:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:02:05 [end_date_ymd] => 2025-02-12 00:02:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:02:05' and `end` < '2025-02-12 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-12 00:02:37] Production.INFO: count ==353 [2025-02-12 00:02:37] Production.ERROR: pbx CDR StartTime 2025-02-11 21:02:05 - End Time 2025-02-12 00:02:05 [2025-02-12 00:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455267', 'tblTempUsageDetail_20' ) start [2025-02-12 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455267', 'tblTempUsageDetail_20' ) end [2025-02-12 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455267', 'tblTempVendorCDR_20' ) start [2025-02-12 00:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455267', 'tblTempVendorCDR_20' ) end [2025-02-12 00:02:37] Production.INFO: ProcessCDR(1,14455267,1,1,2) [2025-02-12 00:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455267', 'tblTempUsageDetail_20' ) start [2025-02-12 00:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455267', 'tblTempUsageDetail_20' ) end [2025-02-12 00:02:40] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:02:40] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:02:40] Production.INFO: ==5856== Releasing lock... [2025-02-12 00:02:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:02:40] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:03:05 [end_date_ymd] => 2025-02-12 00:03:05 [RateCDR] => 1 ) [2025-02-12 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:03:05' and `end` < '2025-02-12 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:03:31] Production.INFO: count ==353 [2025-02-12 00:03:31] Production.ERROR: pbx CDR StartTime 2025-02-11 21:03:05 - End Time 2025-02-12 00:03:05 [2025-02-12 00:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455272', 'tblTempUsageDetail_20' ) start [2025-02-12 00:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455272', 'tblTempUsageDetail_20' ) end [2025-02-12 00:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455272', 'tblTempVendorCDR_20' ) start [2025-02-12 00:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455272', 'tblTempVendorCDR_20' ) end [2025-02-12 00:03:31] Production.INFO: ProcessCDR(1,14455272,1,1,2) [2025-02-12 00:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455272', 'tblTempUsageDetail_20' ) start [2025-02-12 00:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455272', 'tblTempUsageDetail_20' ) end [2025-02-12 00:03:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:03:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:03:34] Production.INFO: ==5938== Releasing lock... [2025-02-12 00:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:03:34] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:04:05 [end_date_ymd] => 2025-02-12 00:04:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:04:05' and `end` < '2025-02-12 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-12 00:04:34] Production.INFO: count ==353 [2025-02-12 00:04:34] Production.ERROR: pbx CDR StartTime 2025-02-11 21:04:05 - End Time 2025-02-12 00:04:05 [2025-02-12 00:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455277', 'tblTempUsageDetail_20' ) start [2025-02-12 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455277', 'tblTempUsageDetail_20' ) end [2025-02-12 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455277', 'tblTempVendorCDR_20' ) start [2025-02-12 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455277', 'tblTempVendorCDR_20' ) end [2025-02-12 00:04:34] Production.INFO: ProcessCDR(1,14455277,1,1,2) [2025-02-12 00:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:04:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:04:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455277', 'tblTempUsageDetail_20' ) start [2025-02-12 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455277', 'tblTempUsageDetail_20' ) end [2025-02-12 00:04:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:04:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:04:37] Production.INFO: ==6024== Releasing lock... [2025-02-12 00:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:04:37] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:05:05 [end_date_ymd] => 2025-02-12 00:05:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:05:05' and `end` < '2025-02-12 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-12 00:05:29] Production.INFO: count ==353 [2025-02-12 00:05:30] Production.ERROR: pbx CDR StartTime 2025-02-11 21:05:05 - End Time 2025-02-12 00:05:05 [2025-02-12 00:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455282', 'tblTempUsageDetail_20' ) start [2025-02-12 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455282', 'tblTempUsageDetail_20' ) end [2025-02-12 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455282', 'tblTempVendorCDR_20' ) start [2025-02-12 00:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455282', 'tblTempVendorCDR_20' ) end [2025-02-12 00:05:30] Production.INFO: ProcessCDR(1,14455282,1,1,2) [2025-02-12 00:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455282', 'tblTempUsageDetail_20' ) start [2025-02-12 00:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455282', 'tblTempUsageDetail_20' ) end [2025-02-12 00:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:05:33] Production.INFO: ==6103== Releasing lock... [2025-02-12 00:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:05:33] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:06:05 [end_date_ymd] => 2025-02-12 00:06:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:06:05' and `end` < '2025-02-12 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-12 00:06:24] Production.INFO: count ==353 [2025-02-12 00:06:24] Production.ERROR: pbx CDR StartTime 2025-02-11 21:06:05 - End Time 2025-02-12 00:06:05 [2025-02-12 00:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455287', 'tblTempUsageDetail_20' ) start [2025-02-12 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455287', 'tblTempUsageDetail_20' ) end [2025-02-12 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455287', 'tblTempVendorCDR_20' ) start [2025-02-12 00:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455287', 'tblTempVendorCDR_20' ) end [2025-02-12 00:06:24] Production.INFO: ProcessCDR(1,14455287,1,1,2) [2025-02-12 00:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455287', 'tblTempUsageDetail_20' ) start [2025-02-12 00:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455287', 'tblTempUsageDetail_20' ) end [2025-02-12 00:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:06:28] Production.INFO: ==6186== Releasing lock... [2025-02-12 00:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:06:28] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:07:05 [end_date_ymd] => 2025-02-12 00:07:05 [RateCDR] => 1 ) [2025-02-12 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:07:05' and `end` < '2025-02-12 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:07:21] Production.INFO: count ==353 [2025-02-12 00:07:21] Production.ERROR: pbx CDR StartTime 2025-02-11 21:07:05 - End Time 2025-02-12 00:07:05 [2025-02-12 00:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455292', 'tblTempUsageDetail_20' ) start [2025-02-12 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455292', 'tblTempUsageDetail_20' ) end [2025-02-12 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455292', 'tblTempVendorCDR_20' ) start [2025-02-12 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455292', 'tblTempVendorCDR_20' ) end [2025-02-12 00:07:21] Production.INFO: ProcessCDR(1,14455292,1,1,2) [2025-02-12 00:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455292', 'tblTempUsageDetail_20' ) start [2025-02-12 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455292', 'tblTempUsageDetail_20' ) end [2025-02-12 00:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:07:24] Production.INFO: ==6263== Releasing lock... [2025-02-12 00:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:07:24] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:08:06 [end_date_ymd] => 2025-02-12 00:08:06 [RateCDR] => 1 ) [2025-02-12 00: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-11 21:08:06' and `end` < '2025-02-12 00: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-12 00:08:19] Production.INFO: count ==354 [2025-02-12 00:08:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:08:06 - End Time 2025-02-12 00:08:06 [2025-02-12 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455297', 'tblTempUsageDetail_20' ) start [2025-02-12 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455297', 'tblTempUsageDetail_20' ) end [2025-02-12 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455297', 'tblTempVendorCDR_20' ) start [2025-02-12 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455297', 'tblTempVendorCDR_20' ) end [2025-02-12 00:08:19] Production.INFO: ProcessCDR(1,14455297,1,1,2) [2025-02-12 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455297', 'tblTempUsageDetail_20' ) start [2025-02-12 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455297', 'tblTempUsageDetail_20' ) end [2025-02-12 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:08:23] Production.INFO: ==6343== Releasing lock... [2025-02-12 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:08:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:09:05 [end_date_ymd] => 2025-02-12 00:09:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:09:05' and `end` < '2025-02-12 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-12 00:09:26] Production.INFO: count ==353 [2025-02-12 00:09:26] Production.ERROR: pbx CDR StartTime 2025-02-11 21:09:05 - End Time 2025-02-12 00:09:05 [2025-02-12 00:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455302', 'tblTempUsageDetail_20' ) start [2025-02-12 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455302', 'tblTempUsageDetail_20' ) end [2025-02-12 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455302', 'tblTempVendorCDR_20' ) start [2025-02-12 00:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455302', 'tblTempVendorCDR_20' ) end [2025-02-12 00:09:26] Production.INFO: ProcessCDR(1,14455302,1,1,2) [2025-02-12 00:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455302', 'tblTempUsageDetail_20' ) start [2025-02-12 00:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455302', 'tblTempUsageDetail_20' ) end [2025-02-12 00:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:09:29] Production.INFO: ==6424== Releasing lock... [2025-02-12 00:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:09:29] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:10:06 [end_date_ymd] => 2025-02-12 00:10:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:10:06' and `end` < '2025-02-12 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-12 00:10:19] Production.INFO: count ==356 [2025-02-12 00:10:20] Production.ERROR: pbx CDR StartTime 2025-02-11 21:10:06 - End Time 2025-02-12 00:10:06 [2025-02-12 00:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455308', 'tblTempUsageDetail_20' ) start [2025-02-12 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455308', 'tblTempUsageDetail_20' ) end [2025-02-12 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455308', 'tblTempVendorCDR_20' ) start [2025-02-12 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455308', 'tblTempVendorCDR_20' ) end [2025-02-12 00:10:20] Production.INFO: ProcessCDR(1,14455308,1,1,2) [2025-02-12 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455308', 'tblTempUsageDetail_20' ) start [2025-02-12 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455308', 'tblTempUsageDetail_20' ) end [2025-02-12 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:10:23] Production.INFO: ==6507== Releasing lock... [2025-02-12 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:10:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:11:05 [end_date_ymd] => 2025-02-12 00:11:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:11:05' and `end` < '2025-02-12 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-12 00:11:33] Production.INFO: count ==356 [2025-02-12 00:11:33] Production.ERROR: pbx CDR StartTime 2025-02-11 21:11:05 - End Time 2025-02-12 00:11:05 [2025-02-12 00:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455313', 'tblTempUsageDetail_20' ) start [2025-02-12 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455313', 'tblTempUsageDetail_20' ) end [2025-02-12 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455313', 'tblTempVendorCDR_20' ) start [2025-02-12 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455313', 'tblTempVendorCDR_20' ) end [2025-02-12 00:11:33] Production.INFO: ProcessCDR(1,14455313,1,1,2) [2025-02-12 00:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:11:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:11:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:11:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455313', 'tblTempUsageDetail_20' ) start [2025-02-12 00:11:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455313', 'tblTempUsageDetail_20' ) end [2025-02-12 00:11:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:11:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:11:37] Production.INFO: ==6583== Releasing lock... [2025-02-12 00:11:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:11:37] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:12:06 [end_date_ymd] => 2025-02-12 00:12:06 [RateCDR] => 1 ) [2025-02-12 00:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:12:06' and `end` < '2025-02-12 00:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:12:31] Production.INFO: count ==356 [2025-02-12 00:12:31] Production.ERROR: pbx CDR StartTime 2025-02-11 21:12:06 - End Time 2025-02-12 00:12:06 [2025-02-12 00:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455318', 'tblTempUsageDetail_20' ) start [2025-02-12 00:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455318', 'tblTempUsageDetail_20' ) end [2025-02-12 00:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455318', 'tblTempVendorCDR_20' ) start [2025-02-12 00:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455318', 'tblTempVendorCDR_20' ) end [2025-02-12 00:12:31] Production.INFO: ProcessCDR(1,14455318,1,1,2) [2025-02-12 00:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455318', 'tblTempUsageDetail_20' ) start [2025-02-12 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455318', 'tblTempUsageDetail_20' ) end [2025-02-12 00:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:12:34] Production.INFO: ==6659== Releasing lock... [2025-02-12 00:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:12:34] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:13:05 [end_date_ymd] => 2025-02-12 00:13:05 [RateCDR] => 1 ) [2025-02-12 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:13:05' and `end` < '2025-02-12 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:13:24] Production.INFO: count ==355 [2025-02-12 00:13:24] Production.ERROR: pbx CDR StartTime 2025-02-11 21:13:05 - End Time 2025-02-12 00:13:05 [2025-02-12 00:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455323', 'tblTempUsageDetail_20' ) start [2025-02-12 00:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455323', 'tblTempUsageDetail_20' ) end [2025-02-12 00:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455323', 'tblTempVendorCDR_20' ) start [2025-02-12 00:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455323', 'tblTempVendorCDR_20' ) end [2025-02-12 00:13:24] Production.INFO: ProcessCDR(1,14455323,1,1,2) [2025-02-12 00:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455323', 'tblTempUsageDetail_20' ) start [2025-02-12 00:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455323', 'tblTempUsageDetail_20' ) end [2025-02-12 00:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:13:27] Production.INFO: ==6740== Releasing lock... [2025-02-12 00:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:13:27] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:14:05 [end_date_ymd] => 2025-02-12 00:14:05 [RateCDR] => 1 ) [2025-02-12 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:14:05' and `end` < '2025-02-12 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:14:21] Production.INFO: count ==355 [2025-02-12 00:14:21] Production.ERROR: pbx CDR StartTime 2025-02-11 21:14:05 - End Time 2025-02-12 00:14:05 [2025-02-12 00:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455328', 'tblTempUsageDetail_20' ) start [2025-02-12 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455328', 'tblTempUsageDetail_20' ) end [2025-02-12 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455328', 'tblTempVendorCDR_20' ) start [2025-02-12 00:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455328', 'tblTempVendorCDR_20' ) end [2025-02-12 00:14:21] Production.INFO: ProcessCDR(1,14455328,1,1,2) [2025-02-12 00:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455328', 'tblTempUsageDetail_20' ) start [2025-02-12 00:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455328', 'tblTempUsageDetail_20' ) end [2025-02-12 00:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:14:26] Production.INFO: ==6817== Releasing lock... [2025-02-12 00:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:14:26] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:15:05 [end_date_ymd] => 2025-02-12 00:15:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:15:05' and `end` < '2025-02-12 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-12 00:15:18] Production.INFO: count ==355 [2025-02-12 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:15:05 - End Time 2025-02-12 00:15:05 [2025-02-12 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455333', 'tblTempUsageDetail_20' ) start [2025-02-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455333', 'tblTempUsageDetail_20' ) end [2025-02-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455333', 'tblTempVendorCDR_20' ) start [2025-02-12 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455333', 'tblTempVendorCDR_20' ) end [2025-02-12 00:15:18] Production.INFO: ProcessCDR(1,14455333,1,1,2) [2025-02-12 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455333', 'tblTempUsageDetail_20' ) start [2025-02-12 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455333', 'tblTempUsageDetail_20' ) end [2025-02-12 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:15:22] Production.INFO: ==6934== Releasing lock... [2025-02-12 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:16:05 [end_date_ymd] => 2025-02-12 00:16:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:16:05' and `end` < '2025-02-12 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-12 00:16:18] Production.INFO: count ==358 [2025-02-12 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:16:05 - End Time 2025-02-12 00:16:05 [2025-02-12 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455338', 'tblTempUsageDetail_20' ) start [2025-02-12 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455338', 'tblTempUsageDetail_20' ) end [2025-02-12 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455338', 'tblTempVendorCDR_20' ) start [2025-02-12 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455338', 'tblTempVendorCDR_20' ) end [2025-02-12 00:16:18] Production.INFO: ProcessCDR(1,14455338,1,1,2) [2025-02-12 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455338', 'tblTempUsageDetail_20' ) start [2025-02-12 00:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455338', 'tblTempUsageDetail_20' ) end [2025-02-12 00:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:16:23] Production.INFO: ==7010== Releasing lock... [2025-02-12 00:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:17:05 [end_date_ymd] => 2025-02-12 00:17:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:17:05' and `end` < '2025-02-12 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-12 00:17:20] Production.INFO: count ==359 [2025-02-12 00:17:20] Production.ERROR: pbx CDR StartTime 2025-02-11 21:17:05 - End Time 2025-02-12 00:17:05 [2025-02-12 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455343', 'tblTempUsageDetail_20' ) start [2025-02-12 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455343', 'tblTempUsageDetail_20' ) end [2025-02-12 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455343', 'tblTempVendorCDR_20' ) start [2025-02-12 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455343', 'tblTempVendorCDR_20' ) end [2025-02-12 00:17:20] Production.INFO: ProcessCDR(1,14455343,1,1,2) [2025-02-12 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455343', 'tblTempUsageDetail_20' ) start [2025-02-12 00:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455343', 'tblTempUsageDetail_20' ) end [2025-02-12 00:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:17:25] Production.INFO: ==7094== Releasing lock... [2025-02-12 00:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:17:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:18:05 [end_date_ymd] => 2025-02-12 00:18:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:18:05' and `end` < '2025-02-12 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-12 00:18:18] Production.INFO: count ==360 [2025-02-12 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:18:05 - End Time 2025-02-12 00:18:05 [2025-02-12 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455348', 'tblTempUsageDetail_20' ) start [2025-02-12 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455348', 'tblTempUsageDetail_20' ) end [2025-02-12 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455348', 'tblTempVendorCDR_20' ) start [2025-02-12 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455348', 'tblTempVendorCDR_20' ) end [2025-02-12 00:18:18] Production.INFO: ProcessCDR(1,14455348,1,1,2) [2025-02-12 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455348', 'tblTempUsageDetail_20' ) start [2025-02-12 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455348', 'tblTempUsageDetail_20' ) end [2025-02-12 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:18:23] Production.INFO: ==7182== Releasing lock... [2025-02-12 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:18:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:19:05 [end_date_ymd] => 2025-02-12 00:19:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:19:05' and `end` < '2025-02-12 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-12 00:19:18] Production.INFO: count ==364 [2025-02-12 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:19:05 - End Time 2025-02-12 00:19:05 [2025-02-12 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455353', 'tblTempUsageDetail_20' ) start [2025-02-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455353', 'tblTempUsageDetail_20' ) end [2025-02-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455353', 'tblTempVendorCDR_20' ) start [2025-02-12 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455353', 'tblTempVendorCDR_20' ) end [2025-02-12 00:19:18] Production.INFO: ProcessCDR(1,14455353,1,1,2) [2025-02-12 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455353', 'tblTempUsageDetail_20' ) start [2025-02-12 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455353', 'tblTempUsageDetail_20' ) end [2025-02-12 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:19:22] Production.INFO: ==7260== Releasing lock... [2025-02-12 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:20:06 [end_date_ymd] => 2025-02-12 00:20:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:20:06' and `end` < '2025-02-12 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-12 00:20:19] Production.INFO: count ==372 [2025-02-12 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:20:06 - End Time 2025-02-12 00:20:06 [2025-02-12 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455359', 'tblTempUsageDetail_20' ) start [2025-02-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455359', 'tblTempUsageDetail_20' ) end [2025-02-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455359', 'tblTempVendorCDR_20' ) start [2025-02-12 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455359', 'tblTempVendorCDR_20' ) end [2025-02-12 00:20:19] Production.INFO: ProcessCDR(1,14455359,1,1,2) [2025-02-12 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455359', 'tblTempUsageDetail_20' ) start [2025-02-12 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455359', 'tblTempUsageDetail_20' ) end [2025-02-12 00:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:20:23] Production.INFO: ==7353== Releasing lock... [2025-02-12 00:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:21:06 [end_date_ymd] => 2025-02-12 00:21:06 [RateCDR] => 1 ) [2025-02-12 00: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-11 21:21:06' and `end` < '2025-02-12 00: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-12 00:21:19] Production.INFO: count ==395 [2025-02-12 00:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:21:06 - End Time 2025-02-12 00:21:06 [2025-02-12 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455364', 'tblTempUsageDetail_20' ) start [2025-02-12 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455364', 'tblTempUsageDetail_20' ) end [2025-02-12 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455364', 'tblTempVendorCDR_20' ) start [2025-02-12 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455364', 'tblTempVendorCDR_20' ) end [2025-02-12 00:21:19] Production.INFO: ProcessCDR(1,14455364,1,1,2) [2025-02-12 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455364', 'tblTempUsageDetail_20' ) start [2025-02-12 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455364', 'tblTempUsageDetail_20' ) end [2025-02-12 00:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:21:23] Production.INFO: ==7430== Releasing lock... [2025-02-12 00:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:21:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:22:05 [end_date_ymd] => 2025-02-12 00:22:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:22:05' and `end` < '2025-02-12 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-12 00:22:18] Production.INFO: count ==396 [2025-02-12 00:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:22:05 - End Time 2025-02-12 00:22:05 [2025-02-12 00:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455369', 'tblTempUsageDetail_20' ) start [2025-02-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455369', 'tblTempUsageDetail_20' ) end [2025-02-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455369', 'tblTempVendorCDR_20' ) start [2025-02-12 00:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455369', 'tblTempVendorCDR_20' ) end [2025-02-12 00:22:19] Production.INFO: ProcessCDR(1,14455369,1,1,2) [2025-02-12 00:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455369', 'tblTempUsageDetail_20' ) start [2025-02-12 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455369', 'tblTempUsageDetail_20' ) end [2025-02-12 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:22:23] Production.INFO: ==7502== Releasing lock... [2025-02-12 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:22:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:23:06 [end_date_ymd] => 2025-02-12 00:23:06 [RateCDR] => 1 ) [2025-02-12 00:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:23:06' and `end` < '2025-02-12 00:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:23:19] Production.INFO: count ==397 [2025-02-12 00:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:23:06 - End Time 2025-02-12 00:23:06 [2025-02-12 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455374', 'tblTempUsageDetail_20' ) start [2025-02-12 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455374', 'tblTempUsageDetail_20' ) end [2025-02-12 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455374', 'tblTempVendorCDR_20' ) start [2025-02-12 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455374', 'tblTempVendorCDR_20' ) end [2025-02-12 00:23:19] Production.INFO: ProcessCDR(1,14455374,1,1,2) [2025-02-12 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455374', 'tblTempUsageDetail_20' ) start [2025-02-12 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455374', 'tblTempUsageDetail_20' ) end [2025-02-12 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:23:23] Production.INFO: ==7575== Releasing lock... [2025-02-12 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:23:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:24:05 [end_date_ymd] => 2025-02-12 00:24:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:24:05' and `end` < '2025-02-12 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-12 00:24:19] Production.INFO: count ==395 [2025-02-12 00:24:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:24:05 - End Time 2025-02-12 00:24:05 [2025-02-12 00:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455379', 'tblTempUsageDetail_20' ) start [2025-02-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455379', 'tblTempUsageDetail_20' ) end [2025-02-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455379', 'tblTempVendorCDR_20' ) start [2025-02-12 00:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455379', 'tblTempVendorCDR_20' ) end [2025-02-12 00:24:19] Production.INFO: ProcessCDR(1,14455379,1,1,2) [2025-02-12 00:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455379', 'tblTempUsageDetail_20' ) start [2025-02-12 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455379', 'tblTempUsageDetail_20' ) end [2025-02-12 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:24:22] Production.INFO: ==7647== Releasing lock... [2025-02-12 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:24:22] Production.INFO: 32 MB #Memory Used# [2025-02-12 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:25:05 [end_date_ymd] => 2025-02-12 00:25:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:25:05' and `end` < '2025-02-12 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-12 00:25:18] Production.INFO: count ==395 [2025-02-12 00:25:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:25:05 - End Time 2025-02-12 00:25:05 [2025-02-12 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455384', 'tblTempUsageDetail_20' ) start [2025-02-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455384', 'tblTempUsageDetail_20' ) end [2025-02-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455384', 'tblTempVendorCDR_20' ) start [2025-02-12 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455384', 'tblTempVendorCDR_20' ) end [2025-02-12 00:25:19] Production.INFO: ProcessCDR(1,14455384,1,1,2) [2025-02-12 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455384', 'tblTempUsageDetail_20' ) start [2025-02-12 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455384', 'tblTempUsageDetail_20' ) end [2025-02-12 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:25:22] Production.INFO: ==7720== Releasing lock... [2025-02-12 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:26:05 [end_date_ymd] => 2025-02-12 00:26:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:26:05' and `end` < '2025-02-12 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-12 00:26:19] Production.INFO: count ==396 [2025-02-12 00:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:26:05 - End Time 2025-02-12 00:26:05 [2025-02-12 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455389', 'tblTempUsageDetail_20' ) start [2025-02-12 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455389', 'tblTempUsageDetail_20' ) end [2025-02-12 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455389', 'tblTempVendorCDR_20' ) start [2025-02-12 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455389', 'tblTempVendorCDR_20' ) end [2025-02-12 00:26:19] Production.INFO: ProcessCDR(1,14455389,1,1,2) [2025-02-12 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455389', 'tblTempUsageDetail_20' ) start [2025-02-12 00:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455389', 'tblTempUsageDetail_20' ) end [2025-02-12 00:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:26:24] Production.INFO: ==7795== Releasing lock... [2025-02-12 00:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:26:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:27:05 [end_date_ymd] => 2025-02-12 00:27:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:27:05' and `end` < '2025-02-12 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-12 00:27:18] Production.INFO: count ==396 [2025-02-12 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:27:05 - End Time 2025-02-12 00:27:05 [2025-02-12 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455394', 'tblTempUsageDetail_20' ) start [2025-02-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455394', 'tblTempUsageDetail_20' ) end [2025-02-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455394', 'tblTempVendorCDR_20' ) start [2025-02-12 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455394', 'tblTempVendorCDR_20' ) end [2025-02-12 00:27:18] Production.INFO: ProcessCDR(1,14455394,1,1,2) [2025-02-12 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455394', 'tblTempUsageDetail_20' ) start [2025-02-12 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455394', 'tblTempUsageDetail_20' ) end [2025-02-12 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:27:21] Production.INFO: ==7869== Releasing lock... [2025-02-12 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:28:05 [end_date_ymd] => 2025-02-12 00:28:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:28:05' and `end` < '2025-02-12 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-12 00:28:18] Production.INFO: count ==396 [2025-02-12 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:28:05 - End Time 2025-02-12 00:28:05 [2025-02-12 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455399', 'tblTempUsageDetail_20' ) start [2025-02-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455399', 'tblTempUsageDetail_20' ) end [2025-02-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455399', 'tblTempVendorCDR_20' ) start [2025-02-12 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455399', 'tblTempVendorCDR_20' ) end [2025-02-12 00:28:18] Production.INFO: ProcessCDR(1,14455399,1,1,2) [2025-02-12 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455399', 'tblTempUsageDetail_20' ) start [2025-02-12 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455399', 'tblTempUsageDetail_20' ) end [2025-02-12 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:28:21] Production.INFO: ==7942== Releasing lock... [2025-02-12 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:29:05 [end_date_ymd] => 2025-02-12 00:29:05 [RateCDR] => 1 ) [2025-02-12 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:29:05' and `end` < '2025-02-12 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:29:19] Production.INFO: count ==396 [2025-02-12 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:29:05 - End Time 2025-02-12 00:29:05 [2025-02-12 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455404', 'tblTempUsageDetail_20' ) start [2025-02-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455404', 'tblTempUsageDetail_20' ) end [2025-02-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455404', 'tblTempVendorCDR_20' ) start [2025-02-12 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455404', 'tblTempVendorCDR_20' ) end [2025-02-12 00:29:19] Production.INFO: ProcessCDR(1,14455404,1,1,2) [2025-02-12 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455404', 'tblTempUsageDetail_20' ) start [2025-02-12 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455404', 'tblTempUsageDetail_20' ) end [2025-02-12 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:29:22] Production.INFO: ==8017== Releasing lock... [2025-02-12 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:29:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:30:06 [end_date_ymd] => 2025-02-12 00:30:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:30:06' and `end` < '2025-02-12 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-12 00:30:19] Production.INFO: count ==401 [2025-02-12 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:30:06 - End Time 2025-02-12 00:30:06 [2025-02-12 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455410', 'tblTempUsageDetail_20' ) start [2025-02-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455410', 'tblTempUsageDetail_20' ) end [2025-02-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455410', 'tblTempVendorCDR_20' ) start [2025-02-12 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455410', 'tblTempVendorCDR_20' ) end [2025-02-12 00:30:19] Production.INFO: ProcessCDR(1,14455410,1,1,2) [2025-02-12 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455410', 'tblTempUsageDetail_20' ) start [2025-02-12 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455410', 'tblTempUsageDetail_20' ) end [2025-02-12 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:30:22] Production.INFO: ==8131== Releasing lock... [2025-02-12 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:30:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:31:05 [end_date_ymd] => 2025-02-12 00:31:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:31:05' and `end` < '2025-02-12 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-12 00:31:18] Production.INFO: count ==415 [2025-02-12 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:31:05 - End Time 2025-02-12 00:31:05 [2025-02-12 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455415', 'tblTempUsageDetail_20' ) start [2025-02-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455415', 'tblTempUsageDetail_20' ) end [2025-02-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455415', 'tblTempVendorCDR_20' ) start [2025-02-12 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455415', 'tblTempVendorCDR_20' ) end [2025-02-12 00:31:18] Production.INFO: ProcessCDR(1,14455415,1,1,2) [2025-02-12 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455415', 'tblTempUsageDetail_20' ) start [2025-02-12 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455415', 'tblTempUsageDetail_20' ) end [2025-02-12 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:31:21] Production.INFO: ==8244== Releasing lock... [2025-02-12 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:31:21] Production.INFO: 32 MB #Memory Used# [2025-02-12 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:32:06 [end_date_ymd] => 2025-02-12 00:32:06 [RateCDR] => 1 ) [2025-02-12 00: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-11 21:32:06' and `end` < '2025-02-12 00: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-12 00:32:19] Production.INFO: count ==415 [2025-02-12 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:32:06 - End Time 2025-02-12 00:32:06 [2025-02-12 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455420', 'tblTempUsageDetail_20' ) start [2025-02-12 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455420', 'tblTempUsageDetail_20' ) end [2025-02-12 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455420', 'tblTempVendorCDR_20' ) start [2025-02-12 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455420', 'tblTempVendorCDR_20' ) end [2025-02-12 00:32:19] Production.INFO: ProcessCDR(1,14455420,1,1,2) [2025-02-12 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455420', 'tblTempUsageDetail_20' ) start [2025-02-12 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455420', 'tblTempUsageDetail_20' ) end [2025-02-12 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:32:22] Production.INFO: ==8361== Releasing lock... [2025-02-12 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:32:22] Production.INFO: 32 MB #Memory Used# [2025-02-12 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:33:05 [end_date_ymd] => 2025-02-12 00:33:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:33:05' and `end` < '2025-02-12 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-12 00:33:18] Production.INFO: count ==410 [2025-02-12 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:33:05 - End Time 2025-02-12 00:33:05 [2025-02-12 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455425', 'tblTempUsageDetail_20' ) start [2025-02-12 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455425', 'tblTempUsageDetail_20' ) end [2025-02-12 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455425', 'tblTempVendorCDR_20' ) start [2025-02-12 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455425', 'tblTempVendorCDR_20' ) end [2025-02-12 00:33:18] Production.INFO: ProcessCDR(1,14455425,1,1,2) [2025-02-12 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455425', 'tblTempUsageDetail_20' ) start [2025-02-12 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455425', 'tblTempUsageDetail_20' ) end [2025-02-12 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:33:22] Production.INFO: ==8475== Releasing lock... [2025-02-12 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-12 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:34:05 [end_date_ymd] => 2025-02-12 00:34:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:34:05' and `end` < '2025-02-12 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-12 00:34:19] Production.INFO: count ==409 [2025-02-12 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:34:05 - End Time 2025-02-12 00:34:05 [2025-02-12 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455430', 'tblTempUsageDetail_20' ) start [2025-02-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455430', 'tblTempUsageDetail_20' ) end [2025-02-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455430', 'tblTempVendorCDR_20' ) start [2025-02-12 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455430', 'tblTempVendorCDR_20' ) end [2025-02-12 00:34:19] Production.INFO: ProcessCDR(1,14455430,1,1,2) [2025-02-12 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455430', 'tblTempUsageDetail_20' ) start [2025-02-12 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455430', 'tblTempUsageDetail_20' ) end [2025-02-12 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:34:22] Production.INFO: ==8594== Releasing lock... [2025-02-12 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:34:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:35:05 [end_date_ymd] => 2025-02-12 00:35:05 [RateCDR] => 1 ) [2025-02-12 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:35:05' and `end` < '2025-02-12 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:35:18] Production.INFO: count ==409 [2025-02-12 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:35:05 - End Time 2025-02-12 00:35:05 [2025-02-12 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455435', 'tblTempUsageDetail_20' ) start [2025-02-12 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455435', 'tblTempUsageDetail_20' ) end [2025-02-12 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455435', 'tblTempVendorCDR_20' ) start [2025-02-12 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455435', 'tblTempVendorCDR_20' ) end [2025-02-12 00:35:18] Production.INFO: ProcessCDR(1,14455435,1,1,2) [2025-02-12 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455435', 'tblTempUsageDetail_20' ) start [2025-02-12 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455435', 'tblTempUsageDetail_20' ) end [2025-02-12 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:35:21] Production.INFO: ==8703== Releasing lock... [2025-02-12 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:35:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:36:05 [end_date_ymd] => 2025-02-12 00:36:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:36:05' and `end` < '2025-02-12 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-12 00:36:18] Production.INFO: count ==405 [2025-02-12 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:36:05 - End Time 2025-02-12 00:36:05 [2025-02-12 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455440', 'tblTempUsageDetail_20' ) start [2025-02-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455440', 'tblTempUsageDetail_20' ) end [2025-02-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455440', 'tblTempVendorCDR_20' ) start [2025-02-12 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455440', 'tblTempVendorCDR_20' ) end [2025-02-12 00:36:18] Production.INFO: ProcessCDR(1,14455440,1,1,2) [2025-02-12 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455440', 'tblTempUsageDetail_20' ) start [2025-02-12 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455440', 'tblTempUsageDetail_20' ) end [2025-02-12 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:36:21] Production.INFO: ==8776== Releasing lock... [2025-02-12 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:36:21] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:37:05 [end_date_ymd] => 2025-02-12 00:37:05 [RateCDR] => 1 ) [2025-02-12 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:37:05' and `end` < '2025-02-12 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:37:19] Production.INFO: count ==405 [2025-02-12 00:37:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:37:05 - End Time 2025-02-12 00:37:05 [2025-02-12 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455445', 'tblTempUsageDetail_20' ) start [2025-02-12 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455445', 'tblTempUsageDetail_20' ) end [2025-02-12 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455445', 'tblTempVendorCDR_20' ) start [2025-02-12 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455445', 'tblTempVendorCDR_20' ) end [2025-02-12 00:37:19] Production.INFO: ProcessCDR(1,14455445,1,1,2) [2025-02-12 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455445', 'tblTempUsageDetail_20' ) start [2025-02-12 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455445', 'tblTempUsageDetail_20' ) end [2025-02-12 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:37:22] Production.INFO: ==8849== Releasing lock... [2025-02-12 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:37:22] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:38:05 [end_date_ymd] => 2025-02-12 00:38:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:38:05' and `end` < '2025-02-12 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-12 00:38:19] Production.INFO: count ==404 [2025-02-12 00:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:38:05 - End Time 2025-02-12 00:38:05 [2025-02-12 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455450', 'tblTempUsageDetail_20' ) start [2025-02-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455450', 'tblTempUsageDetail_20' ) end [2025-02-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455450', 'tblTempVendorCDR_20' ) start [2025-02-12 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455450', 'tblTempVendorCDR_20' ) end [2025-02-12 00:38:19] Production.INFO: ProcessCDR(1,14455450,1,1,2) [2025-02-12 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455450', 'tblTempUsageDetail_20' ) start [2025-02-12 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455450', 'tblTempUsageDetail_20' ) end [2025-02-12 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:38:23] Production.INFO: ==8929== Releasing lock... [2025-02-12 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:38:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:39:05 [end_date_ymd] => 2025-02-12 00:39:05 [RateCDR] => 1 ) [2025-02-12 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:39:05' and `end` < '2025-02-12 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:39:18] Production.INFO: count ==405 [2025-02-12 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:39:05 - End Time 2025-02-12 00:39:05 [2025-02-12 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455455', 'tblTempUsageDetail_20' ) start [2025-02-12 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455455', 'tblTempUsageDetail_20' ) end [2025-02-12 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455455', 'tblTempVendorCDR_20' ) start [2025-02-12 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455455', 'tblTempVendorCDR_20' ) end [2025-02-12 00:39:18] Production.INFO: ProcessCDR(1,14455455,1,1,2) [2025-02-12 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455455', 'tblTempUsageDetail_20' ) start [2025-02-12 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455455', 'tblTempUsageDetail_20' ) end [2025-02-12 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:39:21] Production.INFO: ==8998== Releasing lock... [2025-02-12 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:40:06 [end_date_ymd] => 2025-02-12 00:40:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:40:06' and `end` < '2025-02-12 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-12 00:40:19] Production.INFO: count ==417 [2025-02-12 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:40:06 - End Time 2025-02-12 00:40:06 [2025-02-12 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455461', 'tblTempUsageDetail_20' ) start [2025-02-12 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455461', 'tblTempUsageDetail_20' ) end [2025-02-12 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455461', 'tblTempVendorCDR_20' ) start [2025-02-12 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455461', 'tblTempVendorCDR_20' ) end [2025-02-12 00:40:19] Production.INFO: ProcessCDR(1,14455461,1,1,2) [2025-02-12 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455461', 'tblTempUsageDetail_20' ) start [2025-02-12 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455461', 'tblTempUsageDetail_20' ) end [2025-02-12 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:40:23] Production.INFO: ==9078== Releasing lock... [2025-02-12 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:40:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:41:05 [end_date_ymd] => 2025-02-12 00:41:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:41:05' and `end` < '2025-02-12 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-12 00:41:18] Production.INFO: count ==442 [2025-02-12 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:41:05 - End Time 2025-02-12 00:41:05 [2025-02-12 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455466', 'tblTempUsageDetail_20' ) start [2025-02-12 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455466', 'tblTempUsageDetail_20' ) end [2025-02-12 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455466', 'tblTempVendorCDR_20' ) start [2025-02-12 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455466', 'tblTempVendorCDR_20' ) end [2025-02-12 00:41:19] Production.INFO: ProcessCDR(1,14455466,1,1,2) [2025-02-12 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455466', 'tblTempUsageDetail_20' ) start [2025-02-12 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455466', 'tblTempUsageDetail_20' ) end [2025-02-12 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:41:22] Production.INFO: ==9157== Releasing lock... [2025-02-12 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:42:05 [end_date_ymd] => 2025-02-12 00:42:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:42:05' and `end` < '2025-02-12 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-12 00:42:18] Production.INFO: count ==442 [2025-02-12 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:42:05 - End Time 2025-02-12 00:42:05 [2025-02-12 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455471', 'tblTempUsageDetail_20' ) start [2025-02-12 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455471', 'tblTempUsageDetail_20' ) end [2025-02-12 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455471', 'tblTempVendorCDR_20' ) start [2025-02-12 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455471', 'tblTempVendorCDR_20' ) end [2025-02-12 00:42:18] Production.INFO: ProcessCDR(1,14455471,1,1,2) [2025-02-12 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455471', 'tblTempUsageDetail_20' ) start [2025-02-12 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455471', 'tblTempUsageDetail_20' ) end [2025-02-12 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:42:21] Production.INFO: ==9230== Releasing lock... [2025-02-12 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:43:05 [end_date_ymd] => 2025-02-12 00:43:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:43:05' and `end` < '2025-02-12 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-12 00:43:19] Production.INFO: count ==442 [2025-02-12 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:43:05 - End Time 2025-02-12 00:43:05 [2025-02-12 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455476', 'tblTempUsageDetail_20' ) start [2025-02-12 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455476', 'tblTempUsageDetail_20' ) end [2025-02-12 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455476', 'tblTempVendorCDR_20' ) start [2025-02-12 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455476', 'tblTempVendorCDR_20' ) end [2025-02-12 00:43:19] Production.INFO: ProcessCDR(1,14455476,1,1,2) [2025-02-12 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455476', 'tblTempUsageDetail_20' ) start [2025-02-12 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455476', 'tblTempUsageDetail_20' ) end [2025-02-12 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:43:23] Production.INFO: ==9305== Releasing lock... [2025-02-12 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:43:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:44:05 [end_date_ymd] => 2025-02-12 00:44:05 [RateCDR] => 1 ) [2025-02-12 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:44:05' and `end` < '2025-02-12 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:44:19] Production.INFO: count ==442 [2025-02-12 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:44:05 - End Time 2025-02-12 00:44:05 [2025-02-12 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455481', 'tblTempUsageDetail_20' ) start [2025-02-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455481', 'tblTempUsageDetail_20' ) end [2025-02-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455481', 'tblTempVendorCDR_20' ) start [2025-02-12 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455481', 'tblTempVendorCDR_20' ) end [2025-02-12 00:44:19] Production.INFO: ProcessCDR(1,14455481,1,1,2) [2025-02-12 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455481', 'tblTempUsageDetail_20' ) start [2025-02-12 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455481', 'tblTempUsageDetail_20' ) end [2025-02-12 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:44:22] Production.INFO: ==9375== Releasing lock... [2025-02-12 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:45:05 [end_date_ymd] => 2025-02-12 00:45:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:45:05' and `end` < '2025-02-12 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-12 00:45:18] Production.INFO: count ==440 [2025-02-12 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:45:05 - End Time 2025-02-12 00:45:05 [2025-02-12 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455486', 'tblTempUsageDetail_20' ) start [2025-02-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455486', 'tblTempUsageDetail_20' ) end [2025-02-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455486', 'tblTempVendorCDR_20' ) start [2025-02-12 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455486', 'tblTempVendorCDR_20' ) end [2025-02-12 00:45:18] Production.INFO: ProcessCDR(1,14455486,1,1,2) [2025-02-12 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455486', 'tblTempUsageDetail_20' ) start [2025-02-12 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455486', 'tblTempUsageDetail_20' ) end [2025-02-12 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:45:22] Production.INFO: ==9494== Releasing lock... [2025-02-12 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:46:05 [end_date_ymd] => 2025-02-12 00:46:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:46:05' and `end` < '2025-02-12 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-12 00:46:18] Production.INFO: count ==429 [2025-02-12 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:46:05 - End Time 2025-02-12 00:46:05 [2025-02-12 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455491', 'tblTempUsageDetail_20' ) start [2025-02-12 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455491', 'tblTempUsageDetail_20' ) end [2025-02-12 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455491', 'tblTempVendorCDR_20' ) start [2025-02-12 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455491', 'tblTempVendorCDR_20' ) end [2025-02-12 00:46:18] Production.INFO: ProcessCDR(1,14455491,1,1,2) [2025-02-12 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455491', 'tblTempUsageDetail_20' ) start [2025-02-12 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455491', 'tblTempUsageDetail_20' ) end [2025-02-12 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:46:21] Production.INFO: ==9570== Releasing lock... [2025-02-12 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:47:05 [end_date_ymd] => 2025-02-12 00:47:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:47:05' and `end` < '2025-02-12 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-12 00:47:18] Production.INFO: count ==419 [2025-02-12 00:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:47:05 - End Time 2025-02-12 00:47:05 [2025-02-12 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455496', 'tblTempUsageDetail_20' ) start [2025-02-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455496', 'tblTempUsageDetail_20' ) end [2025-02-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455496', 'tblTempVendorCDR_20' ) start [2025-02-12 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455496', 'tblTempVendorCDR_20' ) end [2025-02-12 00:47:18] Production.INFO: ProcessCDR(1,14455496,1,1,2) [2025-02-12 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455496', 'tblTempUsageDetail_20' ) start [2025-02-12 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455496', 'tblTempUsageDetail_20' ) end [2025-02-12 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:47:21] Production.INFO: ==9642== Releasing lock... [2025-02-12 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:48:04 [end_date_ymd] => 2025-02-12 00:48:04 [RateCDR] => 1 ) [2025-02-12 00: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-11 21:48:04' and `end` < '2025-02-12 00: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-12 00:48:17] Production.INFO: count ==357 [2025-02-12 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-11 21:48:04 - End Time 2025-02-12 00:48:04 [2025-02-12 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455501', 'tblTempUsageDetail_20' ) start [2025-02-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455501', 'tblTempUsageDetail_20' ) end [2025-02-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455501', 'tblTempVendorCDR_20' ) start [2025-02-12 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455501', 'tblTempVendorCDR_20' ) end [2025-02-12 00:48:17] Production.INFO: ProcessCDR(1,14455501,1,1,2) [2025-02-12 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455501', 'tblTempUsageDetail_20' ) start [2025-02-12 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455501', 'tblTempUsageDetail_20' ) end [2025-02-12 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:48:21] Production.INFO: ==9716== Releasing lock... [2025-02-12 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:48:21] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:49:05 [end_date_ymd] => 2025-02-12 00:49:05 [RateCDR] => 1 ) [2025-02-12 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:49:05' and `end` < '2025-02-12 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:49:20] Production.INFO: count ==349 [2025-02-12 00:49:20] Production.ERROR: pbx CDR StartTime 2025-02-11 21:49:05 - End Time 2025-02-12 00:49:05 [2025-02-12 00:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455506', 'tblTempUsageDetail_20' ) start [2025-02-12 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455506', 'tblTempUsageDetail_20' ) end [2025-02-12 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455506', 'tblTempVendorCDR_20' ) start [2025-02-12 00:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455506', 'tblTempVendorCDR_20' ) end [2025-02-12 00:49:20] Production.INFO: ProcessCDR(1,14455506,1,1,2) [2025-02-12 00:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455506', 'tblTempUsageDetail_20' ) start [2025-02-12 00:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455506', 'tblTempUsageDetail_20' ) end [2025-02-12 00:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:49:23] Production.INFO: ==9789== Releasing lock... [2025-02-12 00:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:49:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:50:06 [end_date_ymd] => 2025-02-12 00:50:06 [RateCDR] => 1 ) [2025-02-12 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-11 21:50:06' and `end` < '2025-02-12 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-12 00:50:19] Production.INFO: count ==350 [2025-02-12 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:50:06 - End Time 2025-02-12 00:50:06 [2025-02-12 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455512', 'tblTempUsageDetail_20' ) start [2025-02-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455512', 'tblTempUsageDetail_20' ) end [2025-02-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455512', 'tblTempVendorCDR_20' ) start [2025-02-12 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455512', 'tblTempVendorCDR_20' ) end [2025-02-12 00:50:19] Production.INFO: ProcessCDR(1,14455512,1,1,2) [2025-02-12 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455512', 'tblTempUsageDetail_20' ) start [2025-02-12 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455512', 'tblTempUsageDetail_20' ) end [2025-02-12 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:50:23] Production.INFO: ==9865== Releasing lock... [2025-02-12 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:50:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:51:05 [end_date_ymd] => 2025-02-12 00:51:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:51:05' and `end` < '2025-02-12 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-12 00:51:18] Production.INFO: count ==365 [2025-02-12 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:51:05 - End Time 2025-02-12 00:51:05 [2025-02-12 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455517', 'tblTempUsageDetail_20' ) start [2025-02-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455517', 'tblTempUsageDetail_20' ) end [2025-02-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455517', 'tblTempVendorCDR_20' ) start [2025-02-12 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455517', 'tblTempVendorCDR_20' ) end [2025-02-12 00:51:18] Production.INFO: ProcessCDR(1,14455517,1,1,2) [2025-02-12 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455517', 'tblTempUsageDetail_20' ) start [2025-02-12 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455517', 'tblTempUsageDetail_20' ) end [2025-02-12 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:51:23] Production.INFO: ==9936== Releasing lock... [2025-02-12 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:51:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:52:05 [end_date_ymd] => 2025-02-12 00:52:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:52:05' and `end` < '2025-02-12 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-12 00:52:18] Production.INFO: count ==357 [2025-02-12 00:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:52:05 - End Time 2025-02-12 00:52:05 [2025-02-12 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455522', 'tblTempUsageDetail_20' ) start [2025-02-12 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455522', 'tblTempUsageDetail_20' ) end [2025-02-12 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455522', 'tblTempVendorCDR_20' ) start [2025-02-12 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455522', 'tblTempVendorCDR_20' ) end [2025-02-12 00:52:18] Production.INFO: ProcessCDR(1,14455522,1,1,2) [2025-02-12 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455522', 'tblTempUsageDetail_20' ) start [2025-02-12 00:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455522', 'tblTempUsageDetail_20' ) end [2025-02-12 00:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:52:23] Production.INFO: ==10006== Releasing lock... [2025-02-12 00:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:52:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:53:05 [end_date_ymd] => 2025-02-12 00:53:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:53:05' and `end` < '2025-02-12 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-12 00:53:19] Production.INFO: count ==348 [2025-02-12 00:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:53:05 - End Time 2025-02-12 00:53:05 [2025-02-12 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455527', 'tblTempUsageDetail_20' ) start [2025-02-12 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455527', 'tblTempUsageDetail_20' ) end [2025-02-12 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455527', 'tblTempVendorCDR_20' ) start [2025-02-12 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455527', 'tblTempVendorCDR_20' ) end [2025-02-12 00:53:19] Production.INFO: ProcessCDR(1,14455527,1,1,2) [2025-02-12 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455527', 'tblTempUsageDetail_20' ) start [2025-02-12 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455527', 'tblTempUsageDetail_20' ) end [2025-02-12 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:53:22] Production.INFO: ==10078== Releasing lock... [2025-02-12 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:53:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:54:06 [end_date_ymd] => 2025-02-12 00:54:06 [RateCDR] => 1 ) [2025-02-12 00: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-11 21:54:06' and `end` < '2025-02-12 00: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-12 00:54:20] Production.INFO: count ==338 [2025-02-12 00:54:20] Production.ERROR: pbx CDR StartTime 2025-02-11 21:54:06 - End Time 2025-02-12 00:54:06 [2025-02-12 00:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455532', 'tblTempUsageDetail_20' ) start [2025-02-12 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455532', 'tblTempUsageDetail_20' ) end [2025-02-12 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455532', 'tblTempVendorCDR_20' ) start [2025-02-12 00:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455532', 'tblTempVendorCDR_20' ) end [2025-02-12 00:54:20] Production.INFO: ProcessCDR(1,14455532,1,1,2) [2025-02-12 00:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455532', 'tblTempUsageDetail_20' ) start [2025-02-12 00:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455532', 'tblTempUsageDetail_20' ) end [2025-02-12 00:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:54:23] Production.INFO: ==10151== Releasing lock... [2025-02-12 00:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:54:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:55:05 [end_date_ymd] => 2025-02-12 00:55:05 [RateCDR] => 1 ) [2025-02-12 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:55:05' and `end` < '2025-02-12 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:55:18] Production.INFO: count ==329 [2025-02-12 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:55:05 - End Time 2025-02-12 00:55:05 [2025-02-12 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455537', 'tblTempUsageDetail_20' ) start [2025-02-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455537', 'tblTempUsageDetail_20' ) end [2025-02-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455537', 'tblTempVendorCDR_20' ) start [2025-02-12 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455537', 'tblTempVendorCDR_20' ) end [2025-02-12 00:55:18] Production.INFO: ProcessCDR(1,14455537,1,1,2) [2025-02-12 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455537', 'tblTempUsageDetail_20' ) start [2025-02-12 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455537', 'tblTempUsageDetail_20' ) end [2025-02-12 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:55:21] Production.INFO: ==10222== Releasing lock... [2025-02-12 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:56:05 [end_date_ymd] => 2025-02-12 00:56:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:56:05' and `end` < '2025-02-12 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-12 00:56:19] Production.INFO: count ==320 [2025-02-12 00:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:56:05 - End Time 2025-02-12 00:56:05 [2025-02-12 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455542', 'tblTempUsageDetail_20' ) start [2025-02-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455542', 'tblTempUsageDetail_20' ) end [2025-02-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455542', 'tblTempVendorCDR_20' ) start [2025-02-12 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455542', 'tblTempVendorCDR_20' ) end [2025-02-12 00:56:19] Production.INFO: ProcessCDR(1,14455542,1,1,2) [2025-02-12 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455542', 'tblTempUsageDetail_20' ) start [2025-02-12 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455542', 'tblTempUsageDetail_20' ) end [2025-02-12 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:56:23] Production.INFO: ==10298== Releasing lock... [2025-02-12 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:56:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:57:04 [end_date_ymd] => 2025-02-12 00:57:04 [RateCDR] => 1 ) [2025-02-12 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-11 21:57:04' and `end` < '2025-02-12 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-12 00:57:18] Production.INFO: count ==310 [2025-02-12 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:57:04 - End Time 2025-02-12 00:57:04 [2025-02-12 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455547', 'tblTempUsageDetail_20' ) start [2025-02-12 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455547', 'tblTempUsageDetail_20' ) end [2025-02-12 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455547', 'tblTempVendorCDR_20' ) start [2025-02-12 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455547', 'tblTempVendorCDR_20' ) end [2025-02-12 00:57:18] Production.INFO: ProcessCDR(1,14455547,1,1,2) [2025-02-12 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455547', 'tblTempUsageDetail_20' ) start [2025-02-12 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455547', 'tblTempUsageDetail_20' ) end [2025-02-12 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:57:21] Production.INFO: ==10376== Releasing lock... [2025-02-12 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:58:05 [end_date_ymd] => 2025-02-12 00:58:05 [RateCDR] => 1 ) [2025-02-12 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-11 21:58:05' and `end` < '2025-02-12 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-12 00:58:19] Production.INFO: count ==301 [2025-02-12 00:58:19] Production.ERROR: pbx CDR StartTime 2025-02-11 21:58:05 - End Time 2025-02-12 00:58:05 [2025-02-12 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455552', 'tblTempUsageDetail_20' ) start [2025-02-12 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455552', 'tblTempUsageDetail_20' ) end [2025-02-12 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455552', 'tblTempVendorCDR_20' ) start [2025-02-12 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455552', 'tblTempVendorCDR_20' ) end [2025-02-12 00:58:19] Production.INFO: ProcessCDR(1,14455552,1,1,2) [2025-02-12 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455552', 'tblTempUsageDetail_20' ) start [2025-02-12 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455552', 'tblTempUsageDetail_20' ) end [2025-02-12 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:58:22] Production.INFO: ==10451== Releasing lock... [2025-02-12 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-12 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 21:59:05 [end_date_ymd] => 2025-02-12 00:59:05 [RateCDR] => 1 ) [2025-02-12 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 21:59:05' and `end` < '2025-02-12 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 00:59:18] Production.INFO: count ==292 [2025-02-12 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 21:59:05 - End Time 2025-02-12 00:59:05 [2025-02-12 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455557', 'tblTempUsageDetail_20' ) start [2025-02-12 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455557', 'tblTempUsageDetail_20' ) end [2025-02-12 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455557', 'tblTempVendorCDR_20' ) start [2025-02-12 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455557', 'tblTempVendorCDR_20' ) end [2025-02-12 00:59:18] Production.INFO: ProcessCDR(1,14455557,1,1,2) [2025-02-12 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455557', 'tblTempUsageDetail_20' ) start [2025-02-12 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455557', 'tblTempUsageDetail_20' ) end [2025-02-12 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 00:59:21] Production.INFO: ==10526== Releasing lock... [2025-02-12 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:00:06 [end_date_ymd] => 2025-02-12 01:00:06 [RateCDR] => 1 ) [2025-02-12 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:00:06' and `end` < '2025-02-12 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:00:19] Production.INFO: count ==291 [2025-02-12 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:00:06 - End Time 2025-02-12 01:00:06 [2025-02-12 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455562', 'tblTempUsageDetail_20' ) start [2025-02-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455562', 'tblTempUsageDetail_20' ) end [2025-02-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455562', 'tblTempVendorCDR_20' ) start [2025-02-12 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455562', 'tblTempVendorCDR_20' ) end [2025-02-12 01:00:19] Production.INFO: ProcessCDR(1,14455562,1,1,2) [2025-02-12 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455562', 'tblTempUsageDetail_20' ) start [2025-02-12 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455562', 'tblTempUsageDetail_20' ) end [2025-02-12 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:00:22] Production.INFO: ==10602== Releasing lock... [2025-02-12 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:01:05 [end_date_ymd] => 2025-02-12 01:01:05 [RateCDR] => 1 ) [2025-02-12 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:01:05' and `end` < '2025-02-12 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:01:19] Production.INFO: count ==286 [2025-02-12 01:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:01:05 - End Time 2025-02-12 01:01:05 [2025-02-12 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455568', 'tblTempUsageDetail_20' ) start [2025-02-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455568', 'tblTempUsageDetail_20' ) end [2025-02-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455568', 'tblTempVendorCDR_20' ) start [2025-02-12 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455568', 'tblTempVendorCDR_20' ) end [2025-02-12 01:01:19] Production.INFO: ProcessCDR(1,14455568,1,1,2) [2025-02-12 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455568', 'tblTempUsageDetail_20' ) start [2025-02-12 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455568', 'tblTempUsageDetail_20' ) end [2025-02-12 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:01:22] Production.INFO: ==10694== Releasing lock... [2025-02-12 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:02:05 [end_date_ymd] => 2025-02-12 01:02:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:02:05' and `end` < '2025-02-12 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-12 01:02:19] Production.INFO: count ==285 [2025-02-12 01:02:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:02:05 - End Time 2025-02-12 01:02:05 [2025-02-12 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455573', 'tblTempUsageDetail_20' ) start [2025-02-12 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455573', 'tblTempUsageDetail_20' ) end [2025-02-12 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455573', 'tblTempVendorCDR_20' ) start [2025-02-12 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455573', 'tblTempVendorCDR_20' ) end [2025-02-12 01:02:19] Production.INFO: ProcessCDR(1,14455573,1,1,2) [2025-02-12 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455573', 'tblTempUsageDetail_20' ) start [2025-02-12 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455573', 'tblTempUsageDetail_20' ) end [2025-02-12 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:02:22] Production.INFO: ==10767== Releasing lock... [2025-02-12 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:03:05 [end_date_ymd] => 2025-02-12 01:03:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:03:05' and `end` < '2025-02-12 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-12 01:03:18] Production.INFO: count ==284 [2025-02-12 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:03:05 - End Time 2025-02-12 01:03:05 [2025-02-12 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455578', 'tblTempUsageDetail_20' ) start [2025-02-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455578', 'tblTempUsageDetail_20' ) end [2025-02-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455578', 'tblTempVendorCDR_20' ) start [2025-02-12 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455578', 'tblTempVendorCDR_20' ) end [2025-02-12 01:03:18] Production.INFO: ProcessCDR(1,14455578,1,1,2) [2025-02-12 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455578', 'tblTempUsageDetail_20' ) start [2025-02-12 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455578', 'tblTempUsageDetail_20' ) end [2025-02-12 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:03:21] Production.INFO: ==10842== Releasing lock... [2025-02-12 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:03:21] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:04:05 [end_date_ymd] => 2025-02-12 01:04:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:04:05' and `end` < '2025-02-12 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-12 01:04:18] Production.INFO: count ==280 [2025-02-12 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:04:05 - End Time 2025-02-12 01:04:05 [2025-02-12 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455583', 'tblTempUsageDetail_20' ) start [2025-02-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455583', 'tblTempUsageDetail_20' ) end [2025-02-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455583', 'tblTempVendorCDR_20' ) start [2025-02-12 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455583', 'tblTempVendorCDR_20' ) end [2025-02-12 01:04:18] Production.INFO: ProcessCDR(1,14455583,1,1,2) [2025-02-12 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455583', 'tblTempUsageDetail_20' ) start [2025-02-12 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455583', 'tblTempUsageDetail_20' ) end [2025-02-12 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:04:21] Production.INFO: ==10918== Releasing lock... [2025-02-12 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:05:05 [end_date_ymd] => 2025-02-12 01:05:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:05:05' and `end` < '2025-02-12 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-12 01:05:18] Production.INFO: count ==280 [2025-02-12 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:05:05 - End Time 2025-02-12 01:05:05 [2025-02-12 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455588', 'tblTempUsageDetail_20' ) start [2025-02-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455588', 'tblTempUsageDetail_20' ) end [2025-02-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455588', 'tblTempVendorCDR_20' ) start [2025-02-12 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455588', 'tblTempVendorCDR_20' ) end [2025-02-12 01:05:18] Production.INFO: ProcessCDR(1,14455588,1,1,2) [2025-02-12 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455588', 'tblTempUsageDetail_20' ) start [2025-02-12 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455588', 'tblTempUsageDetail_20' ) end [2025-02-12 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:05:21] Production.INFO: ==10988== Releasing lock... [2025-02-12 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:06:05 [end_date_ymd] => 2025-02-12 01:06:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:06:05' and `end` < '2025-02-12 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-12 01:06:18] Production.INFO: count ==280 [2025-02-12 01:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:06:05 - End Time 2025-02-12 01:06:05 [2025-02-12 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455593', 'tblTempUsageDetail_20' ) start [2025-02-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455593', 'tblTempUsageDetail_20' ) end [2025-02-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455593', 'tblTempVendorCDR_20' ) start [2025-02-12 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455593', 'tblTempVendorCDR_20' ) end [2025-02-12 01:06:18] Production.INFO: ProcessCDR(1,14455593,1,1,2) [2025-02-12 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455593', 'tblTempUsageDetail_20' ) start [2025-02-12 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455593', 'tblTempUsageDetail_20' ) end [2025-02-12 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:06:21] Production.INFO: ==11062== Releasing lock... [2025-02-12 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:07:05 [end_date_ymd] => 2025-02-12 01:07:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:07:05' and `end` < '2025-02-12 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-12 01:07:18] Production.INFO: count ==280 [2025-02-12 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:07:05 - End Time 2025-02-12 01:07:05 [2025-02-12 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455598', 'tblTempUsageDetail_20' ) start [2025-02-12 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455598', 'tblTempUsageDetail_20' ) end [2025-02-12 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455598', 'tblTempVendorCDR_20' ) start [2025-02-12 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455598', 'tblTempVendorCDR_20' ) end [2025-02-12 01:07:18] Production.INFO: ProcessCDR(1,14455598,1,1,2) [2025-02-12 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455598', 'tblTempUsageDetail_20' ) start [2025-02-12 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455598', 'tblTempUsageDetail_20' ) end [2025-02-12 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:07:21] Production.INFO: ==11139== Releasing lock... [2025-02-12 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:08:05 [end_date_ymd] => 2025-02-12 01:08:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:08:05' and `end` < '2025-02-12 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-12 01:08:18] Production.INFO: count ==280 [2025-02-12 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:08:05 - End Time 2025-02-12 01:08:05 [2025-02-12 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455603', 'tblTempUsageDetail_20' ) start [2025-02-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455603', 'tblTempUsageDetail_20' ) end [2025-02-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455603', 'tblTempVendorCDR_20' ) start [2025-02-12 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455603', 'tblTempVendorCDR_20' ) end [2025-02-12 01:08:18] Production.INFO: ProcessCDR(1,14455603,1,1,2) [2025-02-12 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455603', 'tblTempUsageDetail_20' ) start [2025-02-12 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455603', 'tblTempUsageDetail_20' ) end [2025-02-12 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:08:21] Production.INFO: ==11250== Releasing lock... [2025-02-12 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:09:05 [end_date_ymd] => 2025-02-12 01:09:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:09:05' and `end` < '2025-02-12 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-12 01:09:18] Production.INFO: count ==280 [2025-02-12 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:09:05 - End Time 2025-02-12 01:09:05 [2025-02-12 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455608', 'tblTempUsageDetail_20' ) start [2025-02-12 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455608', 'tblTempUsageDetail_20' ) end [2025-02-12 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455608', 'tblTempVendorCDR_20' ) start [2025-02-12 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455608', 'tblTempVendorCDR_20' ) end [2025-02-12 01:09:18] Production.INFO: ProcessCDR(1,14455608,1,1,2) [2025-02-12 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455608', 'tblTempUsageDetail_20' ) start [2025-02-12 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455608', 'tblTempUsageDetail_20' ) end [2025-02-12 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:09:21] Production.INFO: ==11324== Releasing lock... [2025-02-12 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:10:06 [end_date_ymd] => 2025-02-12 01:10:06 [RateCDR] => 1 ) [2025-02-12 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:10:06' and `end` < '2025-02-12 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:10:18] Production.INFO: count ==284 [2025-02-12 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:10:06 - End Time 2025-02-12 01:10:06 [2025-02-12 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455614', 'tblTempUsageDetail_20' ) start [2025-02-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455614', 'tblTempUsageDetail_20' ) end [2025-02-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455614', 'tblTempVendorCDR_20' ) start [2025-02-12 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455614', 'tblTempVendorCDR_20' ) end [2025-02-12 01:10:19] Production.INFO: ProcessCDR(1,14455614,1,1,2) [2025-02-12 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455614', 'tblTempUsageDetail_20' ) start [2025-02-12 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455614', 'tblTempUsageDetail_20' ) end [2025-02-12 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:10:22] Production.INFO: ==11398== Releasing lock... [2025-02-12 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:11:05 [end_date_ymd] => 2025-02-12 01:11:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:11:05' and `end` < '2025-02-12 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-12 01:11:18] Production.INFO: count ==284 [2025-02-12 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:11:05 - End Time 2025-02-12 01:11:05 [2025-02-12 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455619', 'tblTempUsageDetail_20' ) start [2025-02-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455619', 'tblTempUsageDetail_20' ) end [2025-02-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455619', 'tblTempVendorCDR_20' ) start [2025-02-12 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455619', 'tblTempVendorCDR_20' ) end [2025-02-12 01:11:18] Production.INFO: ProcessCDR(1,14455619,1,1,2) [2025-02-12 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455619', 'tblTempUsageDetail_20' ) start [2025-02-12 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455619', 'tblTempUsageDetail_20' ) end [2025-02-12 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:11:21] Production.INFO: ==11473== Releasing lock... [2025-02-12 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:12:04 [end_date_ymd] => 2025-02-12 01:12:04 [RateCDR] => 1 ) [2025-02-12 01:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:12:04' and `end` < '2025-02-12 01:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:12:17] Production.INFO: count ==284 [2025-02-12 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-11 22:12:04 - End Time 2025-02-12 01:12:04 [2025-02-12 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455624', 'tblTempUsageDetail_20' ) start [2025-02-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455624', 'tblTempUsageDetail_20' ) end [2025-02-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455624', 'tblTempVendorCDR_20' ) start [2025-02-12 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455624', 'tblTempVendorCDR_20' ) end [2025-02-12 01:12:17] Production.INFO: ProcessCDR(1,14455624,1,1,2) [2025-02-12 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455624', 'tblTempUsageDetail_20' ) start [2025-02-12 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455624', 'tblTempUsageDetail_20' ) end [2025-02-12 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:12:20] Production.INFO: ==11543== Releasing lock... [2025-02-12 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:12:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:13:05 [end_date_ymd] => 2025-02-12 01:13:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:13:05' and `end` < '2025-02-12 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-12 01:13:18] Production.INFO: count ==284 [2025-02-12 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:13:05 - End Time 2025-02-12 01:13:05 [2025-02-12 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455629', 'tblTempUsageDetail_20' ) start [2025-02-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455629', 'tblTempUsageDetail_20' ) end [2025-02-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455629', 'tblTempVendorCDR_20' ) start [2025-02-12 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455629', 'tblTempVendorCDR_20' ) end [2025-02-12 01:13:18] Production.INFO: ProcessCDR(1,14455629,1,1,2) [2025-02-12 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455629', 'tblTempUsageDetail_20' ) start [2025-02-12 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455629', 'tblTempUsageDetail_20' ) end [2025-02-12 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:13:21] Production.INFO: ==11617== Releasing lock... [2025-02-12 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:14:05 [end_date_ymd] => 2025-02-12 01:14:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:14:05' and `end` < '2025-02-12 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-12 01:14:18] Production.INFO: count ==284 [2025-02-12 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:14:05 - End Time 2025-02-12 01:14:05 [2025-02-12 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455634', 'tblTempUsageDetail_20' ) start [2025-02-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455634', 'tblTempUsageDetail_20' ) end [2025-02-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455634', 'tblTempVendorCDR_20' ) start [2025-02-12 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455634', 'tblTempVendorCDR_20' ) end [2025-02-12 01:14:18] Production.INFO: ProcessCDR(1,14455634,1,1,2) [2025-02-12 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455634', 'tblTempUsageDetail_20' ) start [2025-02-12 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455634', 'tblTempUsageDetail_20' ) end [2025-02-12 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:14:21] Production.INFO: ==11687== Releasing lock... [2025-02-12 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:15:05 [end_date_ymd] => 2025-02-12 01:15:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:15:05' and `end` < '2025-02-12 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-12 01:15:18] Production.INFO: count ==283 [2025-02-12 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:15:05 - End Time 2025-02-12 01:15:05 [2025-02-12 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455639', 'tblTempUsageDetail_20' ) start [2025-02-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455639', 'tblTempUsageDetail_20' ) end [2025-02-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455639', 'tblTempVendorCDR_20' ) start [2025-02-12 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455639', 'tblTempVendorCDR_20' ) end [2025-02-12 01:15:18] Production.INFO: ProcessCDR(1,14455639,1,1,2) [2025-02-12 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455639', 'tblTempUsageDetail_20' ) start [2025-02-12 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455639', 'tblTempUsageDetail_20' ) end [2025-02-12 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:15:21] Production.INFO: ==11761== Releasing lock... [2025-02-12 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:16:06 [end_date_ymd] => 2025-02-12 01:16:06 [RateCDR] => 1 ) [2025-02-12 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-11 22:16:06' and `end` < '2025-02-12 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-12 01:16:19] Production.INFO: count ==283 [2025-02-12 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:16:06 - End Time 2025-02-12 01:16:06 [2025-02-12 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455644', 'tblTempUsageDetail_20' ) start [2025-02-12 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455644', 'tblTempUsageDetail_20' ) end [2025-02-12 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455644', 'tblTempVendorCDR_20' ) start [2025-02-12 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455644', 'tblTempVendorCDR_20' ) end [2025-02-12 01:16:19] Production.INFO: ProcessCDR(1,14455644,1,1,2) [2025-02-12 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455644', 'tblTempUsageDetail_20' ) start [2025-02-12 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455644', 'tblTempUsageDetail_20' ) end [2025-02-12 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:16:22] Production.INFO: ==11832== Releasing lock... [2025-02-12 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:16:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:17:05 [end_date_ymd] => 2025-02-12 01:17:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:17:05' and `end` < '2025-02-12 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-12 01:17:19] Production.INFO: count ==283 [2025-02-12 01:17:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:17:05 - End Time 2025-02-12 01:17:05 [2025-02-12 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455649', 'tblTempUsageDetail_20' ) start [2025-02-12 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455649', 'tblTempUsageDetail_20' ) end [2025-02-12 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455649', 'tblTempVendorCDR_20' ) start [2025-02-12 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455649', 'tblTempVendorCDR_20' ) end [2025-02-12 01:17:19] Production.INFO: ProcessCDR(1,14455649,1,1,2) [2025-02-12 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455649', 'tblTempUsageDetail_20' ) start [2025-02-12 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455649', 'tblTempUsageDetail_20' ) end [2025-02-12 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:17:22] Production.INFO: ==11911== Releasing lock... [2025-02-12 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:18:06 [end_date_ymd] => 2025-02-12 01:18:06 [RateCDR] => 1 ) [2025-02-12 01: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-11 22:18:06' and `end` < '2025-02-12 01: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-12 01:18:19] Production.INFO: count ==281 [2025-02-12 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:18:06 - End Time 2025-02-12 01:18:06 [2025-02-12 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455654', 'tblTempUsageDetail_20' ) start [2025-02-12 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455654', 'tblTempUsageDetail_20' ) end [2025-02-12 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455654', 'tblTempVendorCDR_20' ) start [2025-02-12 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455654', 'tblTempVendorCDR_20' ) end [2025-02-12 01:18:19] Production.INFO: ProcessCDR(1,14455654,1,1,2) [2025-02-12 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455654', 'tblTempUsageDetail_20' ) start [2025-02-12 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455654', 'tblTempUsageDetail_20' ) end [2025-02-12 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:18:22] Production.INFO: ==11997== Releasing lock... [2025-02-12 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:19:05 [end_date_ymd] => 2025-02-12 01:19:05 [RateCDR] => 1 ) [2025-02-12 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:19:05' and `end` < '2025-02-12 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:19:19] Production.INFO: count ==281 [2025-02-12 01:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:19:05 - End Time 2025-02-12 01:19:05 [2025-02-12 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455659', 'tblTempUsageDetail_20' ) start [2025-02-12 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455659', 'tblTempUsageDetail_20' ) end [2025-02-12 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455659', 'tblTempVendorCDR_20' ) start [2025-02-12 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455659', 'tblTempVendorCDR_20' ) end [2025-02-12 01:19:19] Production.INFO: ProcessCDR(1,14455659,1,1,2) [2025-02-12 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455659', 'tblTempUsageDetail_20' ) start [2025-02-12 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455659', 'tblTempUsageDetail_20' ) end [2025-02-12 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:19:22] Production.INFO: ==12069== Releasing lock... [2025-02-12 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:19:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:20:05 [end_date_ymd] => 2025-02-12 01:20:05 [RateCDR] => 1 ) [2025-02-12 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:20:05' and `end` < '2025-02-12 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:20:18] Production.INFO: count ==287 [2025-02-12 01:20:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:20:05 - End Time 2025-02-12 01:20:05 [2025-02-12 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455665', 'tblTempUsageDetail_20' ) start [2025-02-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455665', 'tblTempUsageDetail_20' ) end [2025-02-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455665', 'tblTempVendorCDR_20' ) start [2025-02-12 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455665', 'tblTempVendorCDR_20' ) end [2025-02-12 01:20:18] Production.INFO: ProcessCDR(1,14455665,1,1,2) [2025-02-12 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455665', 'tblTempUsageDetail_20' ) start [2025-02-12 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455665', 'tblTempUsageDetail_20' ) end [2025-02-12 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:20:21] Production.INFO: ==12143== Releasing lock... [2025-02-12 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-12 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:21:05 [end_date_ymd] => 2025-02-12 01:21:05 [RateCDR] => 1 ) [2025-02-12 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:21:05' and `end` < '2025-02-12 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:21:18] Production.INFO: count ==287 [2025-02-12 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:21:05 - End Time 2025-02-12 01:21:05 [2025-02-12 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455670', 'tblTempUsageDetail_20' ) start [2025-02-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455670', 'tblTempUsageDetail_20' ) end [2025-02-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455670', 'tblTempVendorCDR_20' ) start [2025-02-12 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455670', 'tblTempVendorCDR_20' ) end [2025-02-12 01:21:18] Production.INFO: ProcessCDR(1,14455670,1,1,2) [2025-02-12 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455670', 'tblTempUsageDetail_20' ) start [2025-02-12 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455670', 'tblTempUsageDetail_20' ) end [2025-02-12 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:21:22] Production.INFO: ==12224== Releasing lock... [2025-02-12 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:22:04 [end_date_ymd] => 2025-02-12 01:22:04 [RateCDR] => 1 ) [2025-02-12 01: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-11 22:22:04' and `end` < '2025-02-12 01: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-12 01:22:17] Production.INFO: count ==287 [2025-02-12 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-11 22:22:04 - End Time 2025-02-12 01:22:04 [2025-02-12 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455675', 'tblTempUsageDetail_20' ) start [2025-02-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455675', 'tblTempUsageDetail_20' ) end [2025-02-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455675', 'tblTempVendorCDR_20' ) start [2025-02-12 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455675', 'tblTempVendorCDR_20' ) end [2025-02-12 01:22:17] Production.INFO: ProcessCDR(1,14455675,1,1,2) [2025-02-12 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455675', 'tblTempUsageDetail_20' ) start [2025-02-12 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455675', 'tblTempUsageDetail_20' ) end [2025-02-12 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:22:21] Production.INFO: ==12295== Releasing lock... [2025-02-12 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:23:05 [end_date_ymd] => 2025-02-12 01:23:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:23:05' and `end` < '2025-02-12 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-12 01:23:18] Production.INFO: count ==287 [2025-02-12 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:23:05 - End Time 2025-02-12 01:23:05 [2025-02-12 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455680', 'tblTempUsageDetail_20' ) start [2025-02-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455680', 'tblTempUsageDetail_20' ) end [2025-02-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455680', 'tblTempVendorCDR_20' ) start [2025-02-12 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455680', 'tblTempVendorCDR_20' ) end [2025-02-12 01:23:18] Production.INFO: ProcessCDR(1,14455680,1,1,2) [2025-02-12 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455680', 'tblTempUsageDetail_20' ) start [2025-02-12 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455680', 'tblTempUsageDetail_20' ) end [2025-02-12 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:23:21] Production.INFO: ==12408== Releasing lock... [2025-02-12 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:24:04 [end_date_ymd] => 2025-02-12 01:24:04 [RateCDR] => 1 ) [2025-02-12 01: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-11 22:24:04' and `end` < '2025-02-12 01: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-12 01:24:17] Production.INFO: count ==287 [2025-02-12 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-11 22:24:04 - End Time 2025-02-12 01:24:04 [2025-02-12 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455685', 'tblTempUsageDetail_20' ) start [2025-02-12 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455685', 'tblTempUsageDetail_20' ) end [2025-02-12 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455685', 'tblTempVendorCDR_20' ) start [2025-02-12 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455685', 'tblTempVendorCDR_20' ) end [2025-02-12 01:24:17] Production.INFO: ProcessCDR(1,14455685,1,1,2) [2025-02-12 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455685', 'tblTempUsageDetail_20' ) start [2025-02-12 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455685', 'tblTempUsageDetail_20' ) end [2025-02-12 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:24:20] Production.INFO: ==12480== Releasing lock... [2025-02-12 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:25:05 [end_date_ymd] => 2025-02-12 01:25:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:25:05' and `end` < '2025-02-12 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-12 01:25:18] Production.INFO: count ==287 [2025-02-12 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:25:05 - End Time 2025-02-12 01:25:05 [2025-02-12 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455690', 'tblTempUsageDetail_20' ) start [2025-02-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455690', 'tblTempUsageDetail_20' ) end [2025-02-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455690', 'tblTempVendorCDR_20' ) start [2025-02-12 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455690', 'tblTempVendorCDR_20' ) end [2025-02-12 01:25:18] Production.INFO: ProcessCDR(1,14455690,1,1,2) [2025-02-12 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455690', 'tblTempUsageDetail_20' ) start [2025-02-12 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455690', 'tblTempUsageDetail_20' ) end [2025-02-12 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:25:21] Production.INFO: ==12550== Releasing lock... [2025-02-12 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:26:05 [end_date_ymd] => 2025-02-12 01:26:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:26:05' and `end` < '2025-02-12 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-12 01:26:18] Production.INFO: count ==287 [2025-02-12 01:26:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:26:05 - End Time 2025-02-12 01:26:05 [2025-02-12 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455695', 'tblTempUsageDetail_20' ) start [2025-02-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455695', 'tblTempUsageDetail_20' ) end [2025-02-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455695', 'tblTempVendorCDR_20' ) start [2025-02-12 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455695', 'tblTempVendorCDR_20' ) end [2025-02-12 01:26:18] Production.INFO: ProcessCDR(1,14455695,1,1,2) [2025-02-12 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455695', 'tblTempUsageDetail_20' ) start [2025-02-12 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455695', 'tblTempUsageDetail_20' ) end [2025-02-12 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:26:21] Production.INFO: ==12624== Releasing lock... [2025-02-12 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:27:05 [end_date_ymd] => 2025-02-12 01:27:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:27:05' and `end` < '2025-02-12 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-12 01:27:19] Production.INFO: count ==287 [2025-02-12 01:27:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:27:05 - End Time 2025-02-12 01:27:05 [2025-02-12 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455700', 'tblTempUsageDetail_20' ) start [2025-02-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455700', 'tblTempUsageDetail_20' ) end [2025-02-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455700', 'tblTempVendorCDR_20' ) start [2025-02-12 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455700', 'tblTempVendorCDR_20' ) end [2025-02-12 01:27:19] Production.INFO: ProcessCDR(1,14455700,1,1,2) [2025-02-12 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455700', 'tblTempUsageDetail_20' ) start [2025-02-12 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455700', 'tblTempUsageDetail_20' ) end [2025-02-12 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:27:22] Production.INFO: ==12696== Releasing lock... [2025-02-12 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:28:05 [end_date_ymd] => 2025-02-12 01:28:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:28:05' and `end` < '2025-02-12 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-12 01:28:18] Production.INFO: count ==287 [2025-02-12 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:28:05 - End Time 2025-02-12 01:28:05 [2025-02-12 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455705', 'tblTempUsageDetail_20' ) start [2025-02-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455705', 'tblTempUsageDetail_20' ) end [2025-02-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455705', 'tblTempVendorCDR_20' ) start [2025-02-12 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455705', 'tblTempVendorCDR_20' ) end [2025-02-12 01:28:18] Production.INFO: ProcessCDR(1,14455705,1,1,2) [2025-02-12 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455705', 'tblTempUsageDetail_20' ) start [2025-02-12 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455705', 'tblTempUsageDetail_20' ) end [2025-02-12 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:28:21] Production.INFO: ==12769== Releasing lock... [2025-02-12 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:29:05 [end_date_ymd] => 2025-02-12 01:29:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:29:05' and `end` < '2025-02-12 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-12 01:29:19] Production.INFO: count ==287 [2025-02-12 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:29:05 - End Time 2025-02-12 01:29:05 [2025-02-12 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455710', 'tblTempUsageDetail_20' ) start [2025-02-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455710', 'tblTempUsageDetail_20' ) end [2025-02-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455710', 'tblTempVendorCDR_20' ) start [2025-02-12 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455710', 'tblTempVendorCDR_20' ) end [2025-02-12 01:29:19] Production.INFO: ProcessCDR(1,14455710,1,1,2) [2025-02-12 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455710', 'tblTempUsageDetail_20' ) start [2025-02-12 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455710', 'tblTempUsageDetail_20' ) end [2025-02-12 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:29:22] Production.INFO: ==12841== Releasing lock... [2025-02-12 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:30:06 [end_date_ymd] => 2025-02-12 01:30:06 [RateCDR] => 1 ) [2025-02-12 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-11 22:30:06' and `end` < '2025-02-12 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-12 01:30:19] Production.INFO: count ==291 [2025-02-12 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:30:06 - End Time 2025-02-12 01:30:06 [2025-02-12 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455716', 'tblTempUsageDetail_20' ) start [2025-02-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455716', 'tblTempUsageDetail_20' ) end [2025-02-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455716', 'tblTempVendorCDR_20' ) start [2025-02-12 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455716', 'tblTempVendorCDR_20' ) end [2025-02-12 01:30:19] Production.INFO: ProcessCDR(1,14455716,1,1,2) [2025-02-12 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455716', 'tblTempUsageDetail_20' ) start [2025-02-12 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455716', 'tblTempUsageDetail_20' ) end [2025-02-12 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:30:22] Production.INFO: ==12914== Releasing lock... [2025-02-12 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:31:05 [end_date_ymd] => 2025-02-12 01:31:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:31:05' and `end` < '2025-02-12 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-12 01:31:18] Production.INFO: count ==291 [2025-02-12 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:31:05 - End Time 2025-02-12 01:31:05 [2025-02-12 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455721', 'tblTempUsageDetail_20' ) start [2025-02-12 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455721', 'tblTempUsageDetail_20' ) end [2025-02-12 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455721', 'tblTempVendorCDR_20' ) start [2025-02-12 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455721', 'tblTempVendorCDR_20' ) end [2025-02-12 01:31:18] Production.INFO: ProcessCDR(1,14455721,1,1,2) [2025-02-12 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455721', 'tblTempUsageDetail_20' ) start [2025-02-12 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455721', 'tblTempUsageDetail_20' ) end [2025-02-12 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:31:21] Production.INFO: ==12989== Releasing lock... [2025-02-12 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:32:05 [end_date_ymd] => 2025-02-12 01:32:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:32:05' and `end` < '2025-02-12 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-12 01:32:18] Production.INFO: count ==291 [2025-02-12 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:32:05 - End Time 2025-02-12 01:32:05 [2025-02-12 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455726', 'tblTempUsageDetail_20' ) start [2025-02-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455726', 'tblTempUsageDetail_20' ) end [2025-02-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455726', 'tblTempVendorCDR_20' ) start [2025-02-12 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455726', 'tblTempVendorCDR_20' ) end [2025-02-12 01:32:18] Production.INFO: ProcessCDR(1,14455726,1,1,2) [2025-02-12 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455726', 'tblTempUsageDetail_20' ) start [2025-02-12 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455726', 'tblTempUsageDetail_20' ) end [2025-02-12 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:32:21] Production.INFO: ==13085== Releasing lock... [2025-02-12 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:33:05 [end_date_ymd] => 2025-02-12 01:33:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:33:05' and `end` < '2025-02-12 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-12 01:33:17] Production.INFO: count ==291 [2025-02-12 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-11 22:33:05 - End Time 2025-02-12 01:33:05 [2025-02-12 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455731', 'tblTempUsageDetail_20' ) start [2025-02-12 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455731', 'tblTempUsageDetail_20' ) end [2025-02-12 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455731', 'tblTempVendorCDR_20' ) start [2025-02-12 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455731', 'tblTempVendorCDR_20' ) end [2025-02-12 01:33:17] Production.INFO: ProcessCDR(1,14455731,1,1,2) [2025-02-12 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455731', 'tblTempUsageDetail_20' ) start [2025-02-12 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455731', 'tblTempUsageDetail_20' ) end [2025-02-12 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:33:21] Production.INFO: ==13155== Releasing lock... [2025-02-12 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:34:05 [end_date_ymd] => 2025-02-12 01:34:05 [RateCDR] => 1 ) [2025-02-12 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:34:05' and `end` < '2025-02-12 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:34:18] Production.INFO: count ==291 [2025-02-12 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:34:05 - End Time 2025-02-12 01:34:05 [2025-02-12 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455736', 'tblTempUsageDetail_20' ) start [2025-02-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455736', 'tblTempUsageDetail_20' ) end [2025-02-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455736', 'tblTempVendorCDR_20' ) start [2025-02-12 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455736', 'tblTempVendorCDR_20' ) end [2025-02-12 01:34:18] Production.INFO: ProcessCDR(1,14455736,1,1,2) [2025-02-12 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455736', 'tblTempUsageDetail_20' ) start [2025-02-12 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455736', 'tblTempUsageDetail_20' ) end [2025-02-12 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:34:22] Production.INFO: ==13233== Releasing lock... [2025-02-12 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:35:05 [end_date_ymd] => 2025-02-12 01:35:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:35:05' and `end` < '2025-02-12 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-12 01:35:18] Production.INFO: count ==287 [2025-02-12 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:35:05 - End Time 2025-02-12 01:35:05 [2025-02-12 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455741', 'tblTempUsageDetail_20' ) start [2025-02-12 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455741', 'tblTempUsageDetail_20' ) end [2025-02-12 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455741', 'tblTempVendorCDR_20' ) start [2025-02-12 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455741', 'tblTempVendorCDR_20' ) end [2025-02-12 01:35:18] Production.INFO: ProcessCDR(1,14455741,1,1,2) [2025-02-12 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455741', 'tblTempUsageDetail_20' ) start [2025-02-12 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455741', 'tblTempUsageDetail_20' ) end [2025-02-12 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:35:21] Production.INFO: ==13305== Releasing lock... [2025-02-12 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:36:05 [end_date_ymd] => 2025-02-12 01:36:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:36:05' and `end` < '2025-02-12 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-12 01:36:18] Production.INFO: count ==287 [2025-02-12 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:36:05 - End Time 2025-02-12 01:36:05 [2025-02-12 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455746', 'tblTempUsageDetail_20' ) start [2025-02-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455746', 'tblTempUsageDetail_20' ) end [2025-02-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455746', 'tblTempVendorCDR_20' ) start [2025-02-12 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455746', 'tblTempVendorCDR_20' ) end [2025-02-12 01:36:18] Production.INFO: ProcessCDR(1,14455746,1,1,2) [2025-02-12 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455746', 'tblTempUsageDetail_20' ) start [2025-02-12 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455746', 'tblTempUsageDetail_20' ) end [2025-02-12 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:36:22] Production.INFO: ==13381== Releasing lock... [2025-02-12 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:37:06 [end_date_ymd] => 2025-02-12 01:37:06 [RateCDR] => 1 ) [2025-02-12 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:37:06' and `end` < '2025-02-12 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:37:19] Production.INFO: count ==287 [2025-02-12 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:37:06 - End Time 2025-02-12 01:37:06 [2025-02-12 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455751', 'tblTempUsageDetail_20' ) start [2025-02-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455751', 'tblTempUsageDetail_20' ) end [2025-02-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455751', 'tblTempVendorCDR_20' ) start [2025-02-12 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455751', 'tblTempVendorCDR_20' ) end [2025-02-12 01:37:19] Production.INFO: ProcessCDR(1,14455751,1,1,2) [2025-02-12 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455751', 'tblTempUsageDetail_20' ) start [2025-02-12 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455751', 'tblTempUsageDetail_20' ) end [2025-02-12 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:37:23] Production.INFO: ==13453== Releasing lock... [2025-02-12 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:37:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:38:06 [end_date_ymd] => 2025-02-12 01:38:06 [RateCDR] => 1 ) [2025-02-12 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-11 22:38:06' and `end` < '2025-02-12 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-12 01:38:19] Production.INFO: count ==287 [2025-02-12 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:38:06 - End Time 2025-02-12 01:38:06 [2025-02-12 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455756', 'tblTempUsageDetail_20' ) start [2025-02-12 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455756', 'tblTempUsageDetail_20' ) end [2025-02-12 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455756', 'tblTempVendorCDR_20' ) start [2025-02-12 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455756', 'tblTempVendorCDR_20' ) end [2025-02-12 01:38:19] Production.INFO: ProcessCDR(1,14455756,1,1,2) [2025-02-12 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455756', 'tblTempUsageDetail_20' ) start [2025-02-12 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455756', 'tblTempUsageDetail_20' ) end [2025-02-12 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:38:23] Production.INFO: ==13525== Releasing lock... [2025-02-12 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:38:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:39:05 [end_date_ymd] => 2025-02-12 01:39:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:39:05' and `end` < '2025-02-12 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-12 01:39:18] Production.INFO: count ==285 [2025-02-12 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:39:05 - End Time 2025-02-12 01:39:05 [2025-02-12 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455761', 'tblTempUsageDetail_20' ) start [2025-02-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455761', 'tblTempUsageDetail_20' ) end [2025-02-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455761', 'tblTempVendorCDR_20' ) start [2025-02-12 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455761', 'tblTempVendorCDR_20' ) end [2025-02-12 01:39:18] Production.INFO: ProcessCDR(1,14455761,1,1,2) [2025-02-12 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455761', 'tblTempUsageDetail_20' ) start [2025-02-12 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455761', 'tblTempUsageDetail_20' ) end [2025-02-12 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:39:21] Production.INFO: ==13641== Releasing lock... [2025-02-12 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:40:06 [end_date_ymd] => 2025-02-12 01:40:06 [RateCDR] => 1 ) [2025-02-12 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-11 22:40:06' and `end` < '2025-02-12 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-12 01:40:19] Production.INFO: count ==288 [2025-02-12 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:40:06 - End Time 2025-02-12 01:40:06 [2025-02-12 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455766', 'tblTempUsageDetail_20' ) start [2025-02-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455766', 'tblTempUsageDetail_20' ) end [2025-02-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455766', 'tblTempVendorCDR_20' ) start [2025-02-12 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455766', 'tblTempVendorCDR_20' ) end [2025-02-12 01:40:19] Production.INFO: ProcessCDR(1,14455766,1,1,2) [2025-02-12 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455766', 'tblTempUsageDetail_20' ) start [2025-02-12 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455766', 'tblTempUsageDetail_20' ) end [2025-02-12 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:40:23] Production.INFO: ==13714== Releasing lock... [2025-02-12 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:41:05 [end_date_ymd] => 2025-02-12 01:41:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:41:05' and `end` < '2025-02-12 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-12 01:41:18] Production.INFO: count ==288 [2025-02-12 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:41:05 - End Time 2025-02-12 01:41:05 [2025-02-12 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455772', 'tblTempUsageDetail_20' ) start [2025-02-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455772', 'tblTempUsageDetail_20' ) end [2025-02-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455772', 'tblTempVendorCDR_20' ) start [2025-02-12 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455772', 'tblTempVendorCDR_20' ) end [2025-02-12 01:41:18] Production.INFO: ProcessCDR(1,14455772,1,1,2) [2025-02-12 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455772', 'tblTempUsageDetail_20' ) start [2025-02-12 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455772', 'tblTempUsageDetail_20' ) end [2025-02-12 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:41:22] Production.INFO: ==13787== Releasing lock... [2025-02-12 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:42:06 [end_date_ymd] => 2025-02-12 01:42:06 [RateCDR] => 1 ) [2025-02-12 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:42:06' and `end` < '2025-02-12 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:42:19] Production.INFO: count ==285 [2025-02-12 01:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:42:06 - End Time 2025-02-12 01:42:06 [2025-02-12 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455777', 'tblTempUsageDetail_20' ) start [2025-02-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455777', 'tblTempUsageDetail_20' ) end [2025-02-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455777', 'tblTempVendorCDR_20' ) start [2025-02-12 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455777', 'tblTempVendorCDR_20' ) end [2025-02-12 01:42:19] Production.INFO: ProcessCDR(1,14455777,1,1,2) [2025-02-12 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455777', 'tblTempUsageDetail_20' ) start [2025-02-12 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455777', 'tblTempUsageDetail_20' ) end [2025-02-12 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:42:22] Production.INFO: ==13858== Releasing lock... [2025-02-12 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:42:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:43:05 [end_date_ymd] => 2025-02-12 01:43:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:43:05' and `end` < '2025-02-12 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-12 01:43:18] Production.INFO: count ==282 [2025-02-12 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:43:05 - End Time 2025-02-12 01:43:05 [2025-02-12 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455782', 'tblTempUsageDetail_20' ) start [2025-02-12 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455782', 'tblTempUsageDetail_20' ) end [2025-02-12 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455782', 'tblTempVendorCDR_20' ) start [2025-02-12 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455782', 'tblTempVendorCDR_20' ) end [2025-02-12 01:43:18] Production.INFO: ProcessCDR(1,14455782,1,1,2) [2025-02-12 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455782', 'tblTempUsageDetail_20' ) start [2025-02-12 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455782', 'tblTempUsageDetail_20' ) end [2025-02-12 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:43:22] Production.INFO: ==13931== Releasing lock... [2025-02-12 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:44:05 [end_date_ymd] => 2025-02-12 01:44:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:44:05' and `end` < '2025-02-12 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-12 01:44:19] Production.INFO: count ==276 [2025-02-12 01:44:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:44:05 - End Time 2025-02-12 01:44:05 [2025-02-12 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455787', 'tblTempUsageDetail_20' ) start [2025-02-12 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455787', 'tblTempUsageDetail_20' ) end [2025-02-12 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455787', 'tblTempVendorCDR_20' ) start [2025-02-12 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455787', 'tblTempVendorCDR_20' ) end [2025-02-12 01:44:19] Production.INFO: ProcessCDR(1,14455787,1,1,2) [2025-02-12 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455787', 'tblTempUsageDetail_20' ) start [2025-02-12 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455787', 'tblTempUsageDetail_20' ) end [2025-02-12 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:44:22] Production.INFO: ==14003== Releasing lock... [2025-02-12 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:44:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:45:05 [end_date_ymd] => 2025-02-12 01:45:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:45:05' and `end` < '2025-02-12 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-12 01:45:18] Production.INFO: count ==272 [2025-02-12 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:45:05 - End Time 2025-02-12 01:45:05 [2025-02-12 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455792', 'tblTempUsageDetail_20' ) start [2025-02-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455792', 'tblTempUsageDetail_20' ) end [2025-02-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455792', 'tblTempVendorCDR_20' ) start [2025-02-12 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455792', 'tblTempVendorCDR_20' ) end [2025-02-12 01:45:18] Production.INFO: ProcessCDR(1,14455792,1,1,2) [2025-02-12 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455792', 'tblTempUsageDetail_20' ) start [2025-02-12 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455792', 'tblTempUsageDetail_20' ) end [2025-02-12 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:45:22] Production.INFO: ==14083== Releasing lock... [2025-02-12 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:45:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:46:06 [end_date_ymd] => 2025-02-12 01:46:06 [RateCDR] => 1 ) [2025-02-12 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:46:06' and `end` < '2025-02-12 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:46:19] Production.INFO: count ==272 [2025-02-12 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:46:06 - End Time 2025-02-12 01:46:06 [2025-02-12 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455797', 'tblTempUsageDetail_20' ) start [2025-02-12 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455797', 'tblTempUsageDetail_20' ) end [2025-02-12 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455797', 'tblTempVendorCDR_20' ) start [2025-02-12 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455797', 'tblTempVendorCDR_20' ) end [2025-02-12 01:46:19] Production.INFO: ProcessCDR(1,14455797,1,1,2) [2025-02-12 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455797', 'tblTempUsageDetail_20' ) start [2025-02-12 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455797', 'tblTempUsageDetail_20' ) end [2025-02-12 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:46:22] Production.INFO: ==14174== Releasing lock... [2025-02-12 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:46:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:47:05 [end_date_ymd] => 2025-02-12 01:47:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:47:05' and `end` < '2025-02-12 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-12 01:47:18] Production.INFO: count ==268 [2025-02-12 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:47:05 - End Time 2025-02-12 01:47:05 [2025-02-12 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455802', 'tblTempUsageDetail_20' ) start [2025-02-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455802', 'tblTempUsageDetail_20' ) end [2025-02-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455802', 'tblTempVendorCDR_20' ) start [2025-02-12 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455802', 'tblTempVendorCDR_20' ) end [2025-02-12 01:47:18] Production.INFO: ProcessCDR(1,14455802,1,1,2) [2025-02-12 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455802', 'tblTempUsageDetail_20' ) start [2025-02-12 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455802', 'tblTempUsageDetail_20' ) end [2025-02-12 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:47:22] Production.INFO: ==14247== Releasing lock... [2025-02-12 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:47:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:48:06 [end_date_ymd] => 2025-02-12 01:48:06 [RateCDR] => 1 ) [2025-02-12 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:48:06' and `end` < '2025-02-12 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:48:19] Production.INFO: count ==268 [2025-02-12 01:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:48:06 - End Time 2025-02-12 01:48:06 [2025-02-12 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455807', 'tblTempUsageDetail_20' ) start [2025-02-12 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455807', 'tblTempUsageDetail_20' ) end [2025-02-12 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455807', 'tblTempVendorCDR_20' ) start [2025-02-12 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455807', 'tblTempVendorCDR_20' ) end [2025-02-12 01:48:19] Production.INFO: ProcessCDR(1,14455807,1,1,2) [2025-02-12 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455807', 'tblTempUsageDetail_20' ) start [2025-02-12 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455807', 'tblTempUsageDetail_20' ) end [2025-02-12 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:48:23] Production.INFO: ==14324== Releasing lock... [2025-02-12 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:48:23] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:49:05 [end_date_ymd] => 2025-02-12 01:49:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:49:05' and `end` < '2025-02-12 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-12 01:49:18] Production.INFO: count ==268 [2025-02-12 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:49:05 - End Time 2025-02-12 01:49:05 [2025-02-12 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455812', 'tblTempUsageDetail_20' ) start [2025-02-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455812', 'tblTempUsageDetail_20' ) end [2025-02-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455812', 'tblTempVendorCDR_20' ) start [2025-02-12 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455812', 'tblTempVendorCDR_20' ) end [2025-02-12 01:49:18] Production.INFO: ProcessCDR(1,14455812,1,1,2) [2025-02-12 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455812', 'tblTempUsageDetail_20' ) start [2025-02-12 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455812', 'tblTempUsageDetail_20' ) end [2025-02-12 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:49:22] Production.INFO: ==14393== Releasing lock... [2025-02-12 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:49:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:50:06 [end_date_ymd] => 2025-02-12 01:50:06 [RateCDR] => 1 ) [2025-02-12 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-11 22:50:06' and `end` < '2025-02-12 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-12 01:50:20] Production.INFO: count ==270 [2025-02-12 01:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 22:50:06 - End Time 2025-02-12 01:50:06 [2025-02-12 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455817', 'tblTempUsageDetail_20' ) start [2025-02-12 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455817', 'tblTempUsageDetail_20' ) end [2025-02-12 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455817', 'tblTempVendorCDR_20' ) start [2025-02-12 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455817', 'tblTempVendorCDR_20' ) end [2025-02-12 01:50:20] Production.INFO: ProcessCDR(1,14455817,1,1,2) [2025-02-12 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455817', 'tblTempUsageDetail_20' ) start [2025-02-12 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455817', 'tblTempUsageDetail_20' ) end [2025-02-12 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:50:23] Production.INFO: ==14467== Releasing lock... [2025-02-12 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:50:23] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:51:05 [end_date_ymd] => 2025-02-12 01:51:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:51:05' and `end` < '2025-02-12 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-12 01:51:18] Production.INFO: count ==270 [2025-02-12 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:51:05 - End Time 2025-02-12 01:51:05 [2025-02-12 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455823', 'tblTempUsageDetail_20' ) start [2025-02-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455823', 'tblTempUsageDetail_20' ) end [2025-02-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455823', 'tblTempVendorCDR_20' ) start [2025-02-12 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455823', 'tblTempVendorCDR_20' ) end [2025-02-12 01:51:18] Production.INFO: ProcessCDR(1,14455823,1,1,2) [2025-02-12 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455823', 'tblTempUsageDetail_20' ) start [2025-02-12 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455823', 'tblTempUsageDetail_20' ) end [2025-02-12 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:51:22] Production.INFO: ==14539== Releasing lock... [2025-02-12 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:51:22] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:52:06 [end_date_ymd] => 2025-02-12 01:52:06 [RateCDR] => 1 ) [2025-02-12 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:52:06' and `end` < '2025-02-12 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:52:19] Production.INFO: count ==270 [2025-02-12 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:52:06 - End Time 2025-02-12 01:52:06 [2025-02-12 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455828', 'tblTempUsageDetail_20' ) start [2025-02-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455828', 'tblTempUsageDetail_20' ) end [2025-02-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455828', 'tblTempVendorCDR_20' ) start [2025-02-12 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455828', 'tblTempVendorCDR_20' ) end [2025-02-12 01:52:19] Production.INFO: ProcessCDR(1,14455828,1,1,2) [2025-02-12 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455828', 'tblTempUsageDetail_20' ) start [2025-02-12 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455828', 'tblTempUsageDetail_20' ) end [2025-02-12 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:52:23] Production.INFO: ==14612== Releasing lock... [2025-02-12 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:52:23] Production.INFO: 30 MB #Memory Used# [2025-02-12 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:53:05 [end_date_ymd] => 2025-02-12 01:53:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:53:05' and `end` < '2025-02-12 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-12 01:53:19] Production.INFO: count ==266 [2025-02-12 01:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:53:05 - End Time 2025-02-12 01:53:05 [2025-02-12 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455833', 'tblTempUsageDetail_20' ) start [2025-02-12 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455833', 'tblTempUsageDetail_20' ) end [2025-02-12 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455833', 'tblTempVendorCDR_20' ) start [2025-02-12 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455833', 'tblTempVendorCDR_20' ) end [2025-02-12 01:53:19] Production.INFO: ProcessCDR(1,14455833,1,1,2) [2025-02-12 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455833', 'tblTempUsageDetail_20' ) start [2025-02-12 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455833', 'tblTempUsageDetail_20' ) end [2025-02-12 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:53:22] Production.INFO: ==14687== Releasing lock... [2025-02-12 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:54:06 [end_date_ymd] => 2025-02-12 01:54:06 [RateCDR] => 1 ) [2025-02-12 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:54:06' and `end` < '2025-02-12 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:54:19] Production.INFO: count ==265 [2025-02-12 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:54:06 - End Time 2025-02-12 01:54:06 [2025-02-12 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455838', 'tblTempUsageDetail_20' ) start [2025-02-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455838', 'tblTempUsageDetail_20' ) end [2025-02-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455838', 'tblTempVendorCDR_20' ) start [2025-02-12 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455838', 'tblTempVendorCDR_20' ) end [2025-02-12 01:54:19] Production.INFO: ProcessCDR(1,14455838,1,1,2) [2025-02-12 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455838', 'tblTempUsageDetail_20' ) start [2025-02-12 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455838', 'tblTempUsageDetail_20' ) end [2025-02-12 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:54:22] Production.INFO: ==14797== Releasing lock... [2025-02-12 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:54:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:55:05 [end_date_ymd] => 2025-02-12 01:55:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:55:05' and `end` < '2025-02-12 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-12 01:55:18] Production.INFO: count ==265 [2025-02-12 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:55:05 - End Time 2025-02-12 01:55:05 [2025-02-12 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455843', 'tblTempUsageDetail_20' ) start [2025-02-12 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455843', 'tblTempUsageDetail_20' ) end [2025-02-12 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455843', 'tblTempVendorCDR_20' ) start [2025-02-12 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455843', 'tblTempVendorCDR_20' ) end [2025-02-12 01:55:18] Production.INFO: ProcessCDR(1,14455843,1,1,2) [2025-02-12 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455843', 'tblTempUsageDetail_20' ) start [2025-02-12 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455843', 'tblTempUsageDetail_20' ) end [2025-02-12 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:55:22] Production.INFO: ==14870== Releasing lock... [2025-02-12 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:55:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:56:06 [end_date_ymd] => 2025-02-12 01:56:06 [RateCDR] => 1 ) [2025-02-12 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:56:06' and `end` < '2025-02-12 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:56:20] Production.INFO: count ==265 [2025-02-12 01:56:20] Production.ERROR: pbx CDR StartTime 2025-02-11 22:56:06 - End Time 2025-02-12 01:56:06 [2025-02-12 01:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455848', 'tblTempUsageDetail_20' ) start [2025-02-12 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455848', 'tblTempUsageDetail_20' ) end [2025-02-12 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455848', 'tblTempVendorCDR_20' ) start [2025-02-12 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455848', 'tblTempVendorCDR_20' ) end [2025-02-12 01:56:20] Production.INFO: ProcessCDR(1,14455848,1,1,2) [2025-02-12 01:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455848', 'tblTempUsageDetail_20' ) start [2025-02-12 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455848', 'tblTempUsageDetail_20' ) end [2025-02-12 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:56:23] Production.INFO: ==14946== Releasing lock... [2025-02-12 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:56:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:57:05 [end_date_ymd] => 2025-02-12 01:57:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:57:05' and `end` < '2025-02-12 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-12 01:57:18] Production.INFO: count ==262 [2025-02-12 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:57:05 - End Time 2025-02-12 01:57:05 [2025-02-12 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455853', 'tblTempUsageDetail_20' ) start [2025-02-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455853', 'tblTempUsageDetail_20' ) end [2025-02-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455853', 'tblTempVendorCDR_20' ) start [2025-02-12 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455853', 'tblTempVendorCDR_20' ) end [2025-02-12 01:57:18] Production.INFO: ProcessCDR(1,14455853,1,1,2) [2025-02-12 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455853', 'tblTempUsageDetail_20' ) start [2025-02-12 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455853', 'tblTempUsageDetail_20' ) end [2025-02-12 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:57:22] Production.INFO: ==15018== Releasing lock... [2025-02-12 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:57:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:58:05 [end_date_ymd] => 2025-02-12 01:58:05 [RateCDR] => 1 ) [2025-02-12 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-11 22:58:05' and `end` < '2025-02-12 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-12 01:58:18] Production.INFO: count ==260 [2025-02-12 01:58:18] Production.ERROR: pbx CDR StartTime 2025-02-11 22:58:05 - End Time 2025-02-12 01:58:05 [2025-02-12 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455858', 'tblTempUsageDetail_20' ) start [2025-02-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455858', 'tblTempUsageDetail_20' ) end [2025-02-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455858', 'tblTempVendorCDR_20' ) start [2025-02-12 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455858', 'tblTempVendorCDR_20' ) end [2025-02-12 01:58:18] Production.INFO: ProcessCDR(1,14455858,1,1,2) [2025-02-12 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455858', 'tblTempUsageDetail_20' ) start [2025-02-12 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455858', 'tblTempUsageDetail_20' ) end [2025-02-12 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:58:22] Production.INFO: ==15089== Releasing lock... [2025-02-12 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 22:59:06 [end_date_ymd] => 2025-02-12 01:59:06 [RateCDR] => 1 ) [2025-02-12 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 22:59:06' and `end` < '2025-02-12 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 01:59:19] Production.INFO: count ==258 [2025-02-12 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-11 22:59:06 - End Time 2025-02-12 01:59:06 [2025-02-12 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455863', 'tblTempUsageDetail_20' ) start [2025-02-12 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455863', 'tblTempUsageDetail_20' ) end [2025-02-12 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455863', 'tblTempVendorCDR_20' ) start [2025-02-12 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455863', 'tblTempVendorCDR_20' ) end [2025-02-12 01:59:19] Production.INFO: ProcessCDR(1,14455863,1,1,2) [2025-02-12 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455863', 'tblTempUsageDetail_20' ) start [2025-02-12 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455863', 'tblTempUsageDetail_20' ) end [2025-02-12 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 01:59:22] Production.INFO: ==15166== Releasing lock... [2025-02-12 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 01:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:00:07 [end_date_ymd] => 2025-02-12 02:00:07 [RateCDR] => 1 ) [2025-02-12 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:00:07' and `end` < '2025-02-12 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:00:20] Production.INFO: count ==265 [2025-02-12 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-11 23:00:07 - End Time 2025-02-12 02:00:07 [2025-02-12 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455868', 'tblTempUsageDetail_20' ) start [2025-02-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455868', 'tblTempUsageDetail_20' ) end [2025-02-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455868', 'tblTempVendorCDR_20' ) start [2025-02-12 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455868', 'tblTempVendorCDR_20' ) end [2025-02-12 02:00:20] Production.INFO: ProcessCDR(1,14455868,1,1,2) [2025-02-12 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455868', 'tblTempUsageDetail_20' ) start [2025-02-12 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455868', 'tblTempUsageDetail_20' ) end [2025-02-12 02:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:00:24] Production.INFO: ==15267== Releasing lock... [2025-02-12 02:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:01:05 [end_date_ymd] => 2025-02-12 02:01:05 [RateCDR] => 1 ) [2025-02-12 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:01:05' and `end` < '2025-02-12 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-12 02:01:19] Production.INFO: count ==261 [2025-02-12 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:01:05 - End Time 2025-02-12 02:01:05 [2025-02-12 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455874', 'tblTempUsageDetail_20' ) start [2025-02-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455874', 'tblTempUsageDetail_20' ) end [2025-02-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455874', 'tblTempVendorCDR_20' ) start [2025-02-12 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455874', 'tblTempVendorCDR_20' ) end [2025-02-12 02:01:19] Production.INFO: ProcessCDR(1,14455874,1,1,2) [2025-02-12 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455874', 'tblTempUsageDetail_20' ) start [2025-02-12 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455874', 'tblTempUsageDetail_20' ) end [2025-02-12 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:01:23] Production.INFO: ==15443== Releasing lock... [2025-02-12 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:01:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:02:05 [end_date_ymd] => 2025-02-12 02:02:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:02:05' and `end` < '2025-02-12 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-12 02:02:18] Production.INFO: count ==257 [2025-02-12 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:02:05 - End Time 2025-02-12 02:02:05 [2025-02-12 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455879', 'tblTempUsageDetail_20' ) start [2025-02-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455879', 'tblTempUsageDetail_20' ) end [2025-02-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455879', 'tblTempVendorCDR_20' ) start [2025-02-12 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455879', 'tblTempVendorCDR_20' ) end [2025-02-12 02:02:18] Production.INFO: ProcessCDR(1,14455879,1,1,2) [2025-02-12 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455879', 'tblTempUsageDetail_20' ) start [2025-02-12 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455879', 'tblTempUsageDetail_20' ) end [2025-02-12 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:02:22] Production.INFO: ==15513== Releasing lock... [2025-02-12 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:03:06 [end_date_ymd] => 2025-02-12 02:03:06 [RateCDR] => 1 ) [2025-02-12 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:03:06' and `end` < '2025-02-12 02:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:03:19] Production.INFO: count ==254 [2025-02-12 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:03:06 - End Time 2025-02-12 02:03:06 [2025-02-12 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455884', 'tblTempUsageDetail_20' ) start [2025-02-12 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455884', 'tblTempUsageDetail_20' ) end [2025-02-12 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455884', 'tblTempVendorCDR_20' ) start [2025-02-12 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455884', 'tblTempVendorCDR_20' ) end [2025-02-12 02:03:19] Production.INFO: ProcessCDR(1,14455884,1,1,2) [2025-02-12 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455884', 'tblTempUsageDetail_20' ) start [2025-02-12 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455884', 'tblTempUsageDetail_20' ) end [2025-02-12 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:03:22] Production.INFO: ==15583== Releasing lock... [2025-02-12 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:04:05 [end_date_ymd] => 2025-02-12 02:04:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:04:05' and `end` < '2025-02-12 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-12 02:04:18] Production.INFO: count ==252 [2025-02-12 02:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:04:05 - End Time 2025-02-12 02:04:05 [2025-02-12 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455889', 'tblTempUsageDetail_20' ) start [2025-02-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455889', 'tblTempUsageDetail_20' ) end [2025-02-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455889', 'tblTempVendorCDR_20' ) start [2025-02-12 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455889', 'tblTempVendorCDR_20' ) end [2025-02-12 02:04:18] Production.INFO: ProcessCDR(1,14455889,1,1,2) [2025-02-12 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455889', 'tblTempUsageDetail_20' ) start [2025-02-12 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455889', 'tblTempUsageDetail_20' ) end [2025-02-12 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:04:21] Production.INFO: ==15654== Releasing lock... [2025-02-12 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:05:05 [end_date_ymd] => 2025-02-12 02:05:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:05:05' and `end` < '2025-02-12 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-12 02:05:18] Production.INFO: count ==252 [2025-02-12 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:05:05 - End Time 2025-02-12 02:05:05 [2025-02-12 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455894', 'tblTempUsageDetail_20' ) start [2025-02-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455894', 'tblTempUsageDetail_20' ) end [2025-02-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455894', 'tblTempVendorCDR_20' ) start [2025-02-12 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455894', 'tblTempVendorCDR_20' ) end [2025-02-12 02:05:18] Production.INFO: ProcessCDR(1,14455894,1,1,2) [2025-02-12 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455894', 'tblTempUsageDetail_20' ) start [2025-02-12 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455894', 'tblTempUsageDetail_20' ) end [2025-02-12 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:05:22] Production.INFO: ==15727== Releasing lock... [2025-02-12 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:06:05 [end_date_ymd] => 2025-02-12 02:06:05 [RateCDR] => 1 ) [2025-02-12 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:06:05' and `end` < '2025-02-12 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:06:19] Production.INFO: count ==252 [2025-02-12 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:06:05 - End Time 2025-02-12 02:06:05 [2025-02-12 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455899', 'tblTempUsageDetail_20' ) start [2025-02-12 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455899', 'tblTempUsageDetail_20' ) end [2025-02-12 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455899', 'tblTempVendorCDR_20' ) start [2025-02-12 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455899', 'tblTempVendorCDR_20' ) end [2025-02-12 02:06:19] Production.INFO: ProcessCDR(1,14455899,1,1,2) [2025-02-12 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455899', 'tblTempUsageDetail_20' ) start [2025-02-12 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455899', 'tblTempUsageDetail_20' ) end [2025-02-12 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:06:22] Production.INFO: ==15800== Releasing lock... [2025-02-12 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:07:05 [end_date_ymd] => 2025-02-12 02:07:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:07:05' and `end` < '2025-02-12 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-12 02:07:18] Production.INFO: count ==252 [2025-02-12 02:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:07:05 - End Time 2025-02-12 02:07:05 [2025-02-12 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455904', 'tblTempUsageDetail_20' ) start [2025-02-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455904', 'tblTempUsageDetail_20' ) end [2025-02-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455904', 'tblTempVendorCDR_20' ) start [2025-02-12 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455904', 'tblTempVendorCDR_20' ) end [2025-02-12 02:07:18] Production.INFO: ProcessCDR(1,14455904,1,1,2) [2025-02-12 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455904', 'tblTempUsageDetail_20' ) start [2025-02-12 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455904', 'tblTempUsageDetail_20' ) end [2025-02-12 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:07:22] Production.INFO: ==15875== Releasing lock... [2025-02-12 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:08:05 [end_date_ymd] => 2025-02-12 02:08:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:08:05' and `end` < '2025-02-12 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-12 02:08:18] Production.INFO: count ==252 [2025-02-12 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:08:05 - End Time 2025-02-12 02:08:05 [2025-02-12 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455909', 'tblTempUsageDetail_20' ) start [2025-02-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455909', 'tblTempUsageDetail_20' ) end [2025-02-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455909', 'tblTempVendorCDR_20' ) start [2025-02-12 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455909', 'tblTempVendorCDR_20' ) end [2025-02-12 02:08:18] Production.INFO: ProcessCDR(1,14455909,1,1,2) [2025-02-12 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455909', 'tblTempUsageDetail_20' ) start [2025-02-12 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455909', 'tblTempUsageDetail_20' ) end [2025-02-12 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:08:21] Production.INFO: ==15946== Releasing lock... [2025-02-12 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:09:05 [end_date_ymd] => 2025-02-12 02:09:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:09:05' and `end` < '2025-02-12 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-12 02:09:19] Production.INFO: count ==252 [2025-02-12 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:09:05 - End Time 2025-02-12 02:09:05 [2025-02-12 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455914', 'tblTempUsageDetail_20' ) start [2025-02-12 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455914', 'tblTempUsageDetail_20' ) end [2025-02-12 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455914', 'tblTempVendorCDR_20' ) start [2025-02-12 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455914', 'tblTempVendorCDR_20' ) end [2025-02-12 02:09:19] Production.INFO: ProcessCDR(1,14455914,1,1,2) [2025-02-12 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455914', 'tblTempUsageDetail_20' ) start [2025-02-12 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455914', 'tblTempUsageDetail_20' ) end [2025-02-12 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:09:22] Production.INFO: ==16018== Releasing lock... [2025-02-12 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:10:06 [end_date_ymd] => 2025-02-12 02:10:06 [RateCDR] => 1 ) [2025-02-12 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-11 23:10:06' and `end` < '2025-02-12 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-12 02:10:19] Production.INFO: count ==257 [2025-02-12 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:10:06 - End Time 2025-02-12 02:10:06 [2025-02-12 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455920', 'tblTempUsageDetail_20' ) start [2025-02-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455920', 'tblTempUsageDetail_20' ) end [2025-02-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455920', 'tblTempVendorCDR_20' ) start [2025-02-12 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455920', 'tblTempVendorCDR_20' ) end [2025-02-12 02:10:19] Production.INFO: ProcessCDR(1,14455920,1,1,2) [2025-02-12 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455920', 'tblTempUsageDetail_20' ) start [2025-02-12 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455920', 'tblTempUsageDetail_20' ) end [2025-02-12 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:10:23] Production.INFO: ==16130== Releasing lock... [2025-02-12 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:11:05 [end_date_ymd] => 2025-02-12 02:11:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:11:05' and `end` < '2025-02-12 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-12 02:11:19] Production.INFO: count ==255 [2025-02-12 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:11:05 - End Time 2025-02-12 02:11:05 [2025-02-12 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455925', 'tblTempUsageDetail_20' ) start [2025-02-12 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455925', 'tblTempUsageDetail_20' ) end [2025-02-12 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455925', 'tblTempVendorCDR_20' ) start [2025-02-12 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455925', 'tblTempVendorCDR_20' ) end [2025-02-12 02:11:19] Production.INFO: ProcessCDR(1,14455925,1,1,2) [2025-02-12 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455925', 'tblTempUsageDetail_20' ) start [2025-02-12 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455925', 'tblTempUsageDetail_20' ) end [2025-02-12 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:11:22] Production.INFO: ==16204== Releasing lock... [2025-02-12 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:12:06 [end_date_ymd] => 2025-02-12 02:12:06 [RateCDR] => 1 ) [2025-02-12 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-11 23:12:06' and `end` < '2025-02-12 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-12 02:12:19] Production.INFO: count ==255 [2025-02-12 02:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:12:06 - End Time 2025-02-12 02:12:06 [2025-02-12 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455930', 'tblTempUsageDetail_20' ) start [2025-02-12 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455930', 'tblTempUsageDetail_20' ) end [2025-02-12 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455930', 'tblTempVendorCDR_20' ) start [2025-02-12 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455930', 'tblTempVendorCDR_20' ) end [2025-02-12 02:12:19] Production.INFO: ProcessCDR(1,14455930,1,1,2) [2025-02-12 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455930', 'tblTempUsageDetail_20' ) start [2025-02-12 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455930', 'tblTempUsageDetail_20' ) end [2025-02-12 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:12:22] Production.INFO: ==16283== Releasing lock... [2025-02-12 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:13:05 [end_date_ymd] => 2025-02-12 02:13:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:13:05' and `end` < '2025-02-12 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-12 02:13:18] Production.INFO: count ==255 [2025-02-12 02:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:13:05 - End Time 2025-02-12 02:13:05 [2025-02-12 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455935', 'tblTempUsageDetail_20' ) start [2025-02-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455935', 'tblTempUsageDetail_20' ) end [2025-02-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455935', 'tblTempVendorCDR_20' ) start [2025-02-12 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455935', 'tblTempVendorCDR_20' ) end [2025-02-12 02:13:18] Production.INFO: ProcessCDR(1,14455935,1,1,2) [2025-02-12 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455935', 'tblTempUsageDetail_20' ) start [2025-02-12 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455935', 'tblTempUsageDetail_20' ) end [2025-02-12 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:13:22] Production.INFO: ==16355== Releasing lock... [2025-02-12 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:14:05 [end_date_ymd] => 2025-02-12 02:14:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:14:05' and `end` < '2025-02-12 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-12 02:14:18] Production.INFO: count ==255 [2025-02-12 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:14:05 - End Time 2025-02-12 02:14:05 [2025-02-12 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455940', 'tblTempUsageDetail_20' ) start [2025-02-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455940', 'tblTempUsageDetail_20' ) end [2025-02-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455940', 'tblTempVendorCDR_20' ) start [2025-02-12 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455940', 'tblTempVendorCDR_20' ) end [2025-02-12 02:14:18] Production.INFO: ProcessCDR(1,14455940,1,1,2) [2025-02-12 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455940', 'tblTempUsageDetail_20' ) start [2025-02-12 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455940', 'tblTempUsageDetail_20' ) end [2025-02-12 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:14:22] Production.INFO: ==16428== Releasing lock... [2025-02-12 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:15:05 [end_date_ymd] => 2025-02-12 02:15:05 [RateCDR] => 1 ) [2025-02-12 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:15:05' and `end` < '2025-02-12 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:15:18] Production.INFO: count ==255 [2025-02-12 02:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:15:05 - End Time 2025-02-12 02:15:05 [2025-02-12 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455945', 'tblTempUsageDetail_20' ) start [2025-02-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455945', 'tblTempUsageDetail_20' ) end [2025-02-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455945', 'tblTempVendorCDR_20' ) start [2025-02-12 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455945', 'tblTempVendorCDR_20' ) end [2025-02-12 02:15:18] Production.INFO: ProcessCDR(1,14455945,1,1,2) [2025-02-12 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455945', 'tblTempUsageDetail_20' ) start [2025-02-12 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455945', 'tblTempUsageDetail_20' ) end [2025-02-12 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:15:21] Production.INFO: ==16513== Releasing lock... [2025-02-12 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:16:06 [end_date_ymd] => 2025-02-12 02:16:06 [RateCDR] => 1 ) [2025-02-12 02:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:16:06' and `end` < '2025-02-12 02:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:16:19] Production.INFO: count ==249 [2025-02-12 02:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:16:06 - End Time 2025-02-12 02:16:06 [2025-02-12 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455950', 'tblTempUsageDetail_20' ) start [2025-02-12 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455950', 'tblTempUsageDetail_20' ) end [2025-02-12 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455950', 'tblTempVendorCDR_20' ) start [2025-02-12 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455950', 'tblTempVendorCDR_20' ) end [2025-02-12 02:16:19] Production.INFO: ProcessCDR(1,14455950,1,1,2) [2025-02-12 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455950', 'tblTempUsageDetail_20' ) start [2025-02-12 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455950', 'tblTempUsageDetail_20' ) end [2025-02-12 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:16:22] Production.INFO: ==16583== Releasing lock... [2025-02-12 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:17:05 [end_date_ymd] => 2025-02-12 02:17:05 [RateCDR] => 1 ) [2025-02-12 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:17:05' and `end` < '2025-02-12 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:17:19] Production.INFO: count ==248 [2025-02-12 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:17:05 - End Time 2025-02-12 02:17:05 [2025-02-12 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455955', 'tblTempUsageDetail_20' ) start [2025-02-12 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455955', 'tblTempUsageDetail_20' ) end [2025-02-12 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455955', 'tblTempVendorCDR_20' ) start [2025-02-12 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455955', 'tblTempVendorCDR_20' ) end [2025-02-12 02:17:19] Production.INFO: ProcessCDR(1,14455955,1,1,2) [2025-02-12 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455955', 'tblTempUsageDetail_20' ) start [2025-02-12 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455955', 'tblTempUsageDetail_20' ) end [2025-02-12 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:17:22] Production.INFO: ==16667== Releasing lock... [2025-02-12 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:18:04 [end_date_ymd] => 2025-02-12 02:18:04 [RateCDR] => 1 ) [2025-02-12 02:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:18:04' and `end` < '2025-02-12 02:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:18:18] Production.INFO: count ==248 [2025-02-12 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:18:04 - End Time 2025-02-12 02:18:04 [2025-02-12 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455960', 'tblTempUsageDetail_20' ) start [2025-02-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455960', 'tblTempUsageDetail_20' ) end [2025-02-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455960', 'tblTempVendorCDR_20' ) start [2025-02-12 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455960', 'tblTempVendorCDR_20' ) end [2025-02-12 02:18:18] Production.INFO: ProcessCDR(1,14455960,1,1,2) [2025-02-12 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455960', 'tblTempUsageDetail_20' ) start [2025-02-12 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455960', 'tblTempUsageDetail_20' ) end [2025-02-12 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:18:21] Production.INFO: ==16743== Releasing lock... [2025-02-12 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:19:05 [end_date_ymd] => 2025-02-12 02:19:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:19:05' and `end` < '2025-02-12 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-12 02:19:19] Production.INFO: count ==248 [2025-02-12 02:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:19:05 - End Time 2025-02-12 02:19:05 [2025-02-12 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455965', 'tblTempUsageDetail_20' ) start [2025-02-12 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455965', 'tblTempUsageDetail_20' ) end [2025-02-12 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455965', 'tblTempVendorCDR_20' ) start [2025-02-12 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455965', 'tblTempVendorCDR_20' ) end [2025-02-12 02:19:19] Production.INFO: ProcessCDR(1,14455965,1,1,2) [2025-02-12 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455965', 'tblTempUsageDetail_20' ) start [2025-02-12 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455965', 'tblTempUsageDetail_20' ) end [2025-02-12 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:19:22] Production.INFO: ==16818== Releasing lock... [2025-02-12 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:19:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:20:06 [end_date_ymd] => 2025-02-12 02:20:06 [RateCDR] => 1 ) [2025-02-12 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-11 23:20:06' and `end` < '2025-02-12 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-12 02:20:19] Production.INFO: count ==252 [2025-02-12 02:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:20:06 - End Time 2025-02-12 02:20:06 [2025-02-12 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455971', 'tblTempUsageDetail_20' ) start [2025-02-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455971', 'tblTempUsageDetail_20' ) end [2025-02-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455971', 'tblTempVendorCDR_20' ) start [2025-02-12 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455971', 'tblTempVendorCDR_20' ) end [2025-02-12 02:20:19] Production.INFO: ProcessCDR(1,14455971,1,1,2) [2025-02-12 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455971', 'tblTempUsageDetail_20' ) start [2025-02-12 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455971', 'tblTempUsageDetail_20' ) end [2025-02-12 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:20:23] Production.INFO: ==16892== Releasing lock... [2025-02-12 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:21:05 [end_date_ymd] => 2025-02-12 02:21:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:21:05' and `end` < '2025-02-12 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-12 02:21:18] Production.INFO: count ==252 [2025-02-12 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:21:05 - End Time 2025-02-12 02:21:05 [2025-02-12 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455976', 'tblTempUsageDetail_20' ) start [2025-02-12 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455976', 'tblTempUsageDetail_20' ) end [2025-02-12 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455976', 'tblTempVendorCDR_20' ) start [2025-02-12 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455976', 'tblTempVendorCDR_20' ) end [2025-02-12 02:21:18] Production.INFO: ProcessCDR(1,14455976,1,1,2) [2025-02-12 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455976', 'tblTempUsageDetail_20' ) start [2025-02-12 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455976', 'tblTempUsageDetail_20' ) end [2025-02-12 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:21:21] Production.INFO: ==16967== Releasing lock... [2025-02-12 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:22:06 [end_date_ymd] => 2025-02-12 02:22:06 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:22:06' and `end` < '2025-02-12 02: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-12 02:22:19] Production.INFO: count ==252 [2025-02-12 02:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:22:06 - End Time 2025-02-12 02:22:06 [2025-02-12 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455981', 'tblTempUsageDetail_20' ) start [2025-02-12 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455981', 'tblTempUsageDetail_20' ) end [2025-02-12 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455981', 'tblTempVendorCDR_20' ) start [2025-02-12 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455981', 'tblTempVendorCDR_20' ) end [2025-02-12 02:22:19] Production.INFO: ProcessCDR(1,14455981,1,1,2) [2025-02-12 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455981', 'tblTempUsageDetail_20' ) start [2025-02-12 02:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455981', 'tblTempUsageDetail_20' ) end [2025-02-12 02:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:22:23] Production.INFO: ==17038== Releasing lock... [2025-02-12 02:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:22:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:23:05 [end_date_ymd] => 2025-02-12 02:23:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:23:05' and `end` < '2025-02-12 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-12 02:23:19] Production.INFO: count ==252 [2025-02-12 02:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:23:05 - End Time 2025-02-12 02:23:05 [2025-02-12 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455986', 'tblTempUsageDetail_20' ) start [2025-02-12 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455986', 'tblTempUsageDetail_20' ) end [2025-02-12 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455986', 'tblTempVendorCDR_20' ) start [2025-02-12 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455986', 'tblTempVendorCDR_20' ) end [2025-02-12 02:23:19] Production.INFO: ProcessCDR(1,14455986,1,1,2) [2025-02-12 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455986', 'tblTempUsageDetail_20' ) start [2025-02-12 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455986', 'tblTempUsageDetail_20' ) end [2025-02-12 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:23:22] Production.INFO: ==17109== Releasing lock... [2025-02-12 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:24:05 [end_date_ymd] => 2025-02-12 02:24:05 [RateCDR] => 1 ) [2025-02-12 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:24:05' and `end` < '2025-02-12 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:24:18] Production.INFO: count ==253 [2025-02-12 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:24:05 - End Time 2025-02-12 02:24:05 [2025-02-12 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455991', 'tblTempUsageDetail_20' ) start [2025-02-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455991', 'tblTempUsageDetail_20' ) end [2025-02-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455991', 'tblTempVendorCDR_20' ) start [2025-02-12 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455991', 'tblTempVendorCDR_20' ) end [2025-02-12 02:24:18] Production.INFO: ProcessCDR(1,14455991,1,1,2) [2025-02-12 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455991', 'tblTempUsageDetail_20' ) start [2025-02-12 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455991', 'tblTempUsageDetail_20' ) end [2025-02-12 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:24:21] Production.INFO: ==17180== Releasing lock... [2025-02-12 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:25:05 [end_date_ymd] => 2025-02-12 02:25:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:25:05' and `end` < '2025-02-12 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-12 02:25:18] Production.INFO: count ==253 [2025-02-12 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:25:05 - End Time 2025-02-12 02:25:05 [2025-02-12 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455996', 'tblTempUsageDetail_20' ) start [2025-02-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455996', 'tblTempUsageDetail_20' ) end [2025-02-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455996', 'tblTempVendorCDR_20' ) start [2025-02-12 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455996', 'tblTempVendorCDR_20' ) end [2025-02-12 02:25:18] Production.INFO: ProcessCDR(1,14455996,1,1,2) [2025-02-12 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455996', 'tblTempUsageDetail_20' ) start [2025-02-12 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455996', 'tblTempUsageDetail_20' ) end [2025-02-12 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:25:21] Production.INFO: ==17290== Releasing lock... [2025-02-12 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:26:05 [end_date_ymd] => 2025-02-12 02:26:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:26:05' and `end` < '2025-02-12 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-12 02:26:19] Production.INFO: count ==253 [2025-02-12 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:26:05 - End Time 2025-02-12 02:26:05 [2025-02-12 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456001', 'tblTempUsageDetail_20' ) start [2025-02-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456001', 'tblTempUsageDetail_20' ) end [2025-02-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456001', 'tblTempVendorCDR_20' ) start [2025-02-12 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456001', 'tblTempVendorCDR_20' ) end [2025-02-12 02:26:19] Production.INFO: ProcessCDR(1,14456001,1,1,2) [2025-02-12 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456001', 'tblTempUsageDetail_20' ) start [2025-02-12 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456001', 'tblTempUsageDetail_20' ) end [2025-02-12 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:26:22] Production.INFO: ==17366== Releasing lock... [2025-02-12 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:27:04 [end_date_ymd] => 2025-02-12 02:27:04 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:27:04' and `end` < '2025-02-12 02: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-12 02:27:17] Production.INFO: count ==253 [2025-02-12 02:27:17] Production.ERROR: pbx CDR StartTime 2025-02-11 23:27:04 - End Time 2025-02-12 02:27:04 [2025-02-12 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456006', 'tblTempUsageDetail_20' ) start [2025-02-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456006', 'tblTempUsageDetail_20' ) end [2025-02-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456006', 'tblTempVendorCDR_20' ) start [2025-02-12 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456006', 'tblTempVendorCDR_20' ) end [2025-02-12 02:27:17] Production.INFO: ProcessCDR(1,14456006,1,1,2) [2025-02-12 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456006', 'tblTempUsageDetail_20' ) start [2025-02-12 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456006', 'tblTempUsageDetail_20' ) end [2025-02-12 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:27:21] Production.INFO: ==17436== Releasing lock... [2025-02-12 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:28:05 [end_date_ymd] => 2025-02-12 02:28:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:28:05' and `end` < '2025-02-12 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-12 02:28:18] Production.INFO: count ==249 [2025-02-12 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:28:05 - End Time 2025-02-12 02:28:05 [2025-02-12 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456011', 'tblTempUsageDetail_20' ) start [2025-02-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456011', 'tblTempUsageDetail_20' ) end [2025-02-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456011', 'tblTempVendorCDR_20' ) start [2025-02-12 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456011', 'tblTempVendorCDR_20' ) end [2025-02-12 02:28:18] Production.INFO: ProcessCDR(1,14456011,1,1,2) [2025-02-12 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456011', 'tblTempUsageDetail_20' ) start [2025-02-12 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456011', 'tblTempUsageDetail_20' ) end [2025-02-12 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:28:21] Production.INFO: ==17513== Releasing lock... [2025-02-12 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:29:04 [end_date_ymd] => 2025-02-12 02:29:04 [RateCDR] => 1 ) [2025-02-12 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-11 23:29:04' and `end` < '2025-02-12 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-12 02:29:18] Production.INFO: count ==246 [2025-02-12 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:29:04 - End Time 2025-02-12 02:29:04 [2025-02-12 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456016', 'tblTempUsageDetail_20' ) start [2025-02-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456016', 'tblTempUsageDetail_20' ) end [2025-02-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456016', 'tblTempVendorCDR_20' ) start [2025-02-12 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456016', 'tblTempVendorCDR_20' ) end [2025-02-12 02:29:18] Production.INFO: ProcessCDR(1,14456016,1,1,2) [2025-02-12 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456016', 'tblTempUsageDetail_20' ) start [2025-02-12 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456016', 'tblTempUsageDetail_20' ) end [2025-02-12 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:29:21] Production.INFO: ==17597== Releasing lock... [2025-02-12 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:30:05 [end_date_ymd] => 2025-02-12 02:30:05 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:30:05' and `end` < '2025-02-12 02: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-12 02:30:18] Production.INFO: count ==252 [2025-02-12 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:30:05 - End Time 2025-02-12 02:30:05 [2025-02-12 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456021', 'tblTempUsageDetail_20' ) start [2025-02-12 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456021', 'tblTempUsageDetail_20' ) end [2025-02-12 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456021', 'tblTempVendorCDR_20' ) start [2025-02-12 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456021', 'tblTempVendorCDR_20' ) end [2025-02-12 02:30:18] Production.INFO: ProcessCDR(1,14456021,1,1,2) [2025-02-12 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456021', 'tblTempUsageDetail_20' ) start [2025-02-12 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456021', 'tblTempUsageDetail_20' ) end [2025-02-12 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:30:21] Production.INFO: ==17674== Releasing lock... [2025-02-12 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:31:05 [end_date_ymd] => 2025-02-12 02:31:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:31:05' and `end` < '2025-02-12 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-12 02:31:18] Production.INFO: count ==253 [2025-02-12 02:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:31:05 - End Time 2025-02-12 02:31:05 [2025-02-12 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456027', 'tblTempUsageDetail_20' ) start [2025-02-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456027', 'tblTempUsageDetail_20' ) end [2025-02-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456027', 'tblTempVendorCDR_20' ) start [2025-02-12 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456027', 'tblTempVendorCDR_20' ) end [2025-02-12 02:31:18] Production.INFO: ProcessCDR(1,14456027,1,1,2) [2025-02-12 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456027', 'tblTempUsageDetail_20' ) start [2025-02-12 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456027', 'tblTempUsageDetail_20' ) end [2025-02-12 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:31:21] Production.INFO: ==17754== Releasing lock... [2025-02-12 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:32:05 [end_date_ymd] => 2025-02-12 02:32:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:32:05' and `end` < '2025-02-12 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-12 02:32:18] Production.INFO: count ==253 [2025-02-12 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:32:05 - End Time 2025-02-12 02:32:05 [2025-02-12 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456032', 'tblTempUsageDetail_20' ) start [2025-02-12 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456032', 'tblTempUsageDetail_20' ) end [2025-02-12 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456032', 'tblTempVendorCDR_20' ) start [2025-02-12 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456032', 'tblTempVendorCDR_20' ) end [2025-02-12 02:32:18] Production.INFO: ProcessCDR(1,14456032,1,1,2) [2025-02-12 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456032', 'tblTempUsageDetail_20' ) start [2025-02-12 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456032', 'tblTempUsageDetail_20' ) end [2025-02-12 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:32:21] Production.INFO: ==17835== Releasing lock... [2025-02-12 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:33:06 [end_date_ymd] => 2025-02-12 02:33:06 [RateCDR] => 1 ) [2025-02-12 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:33:06' and `end` < '2025-02-12 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:33:19] Production.INFO: count ==253 [2025-02-12 02:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:33:06 - End Time 2025-02-12 02:33:06 [2025-02-12 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456037', 'tblTempUsageDetail_20' ) start [2025-02-12 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456037', 'tblTempUsageDetail_20' ) end [2025-02-12 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456037', 'tblTempVendorCDR_20' ) start [2025-02-12 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456037', 'tblTempVendorCDR_20' ) end [2025-02-12 02:33:19] Production.INFO: ProcessCDR(1,14456037,1,1,2) [2025-02-12 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456037', 'tblTempUsageDetail_20' ) start [2025-02-12 02:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456037', 'tblTempUsageDetail_20' ) end [2025-02-12 02:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:33:23] Production.INFO: ==17909== Releasing lock... [2025-02-12 02:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:33:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:34:06 [end_date_ymd] => 2025-02-12 02:34:06 [RateCDR] => 1 ) [2025-02-12 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:34:06' and `end` < '2025-02-12 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:34:18] Production.INFO: count ==252 [2025-02-12 02:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:34:06 - End Time 2025-02-12 02:34:06 [2025-02-12 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456042', 'tblTempUsageDetail_20' ) start [2025-02-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456042', 'tblTempUsageDetail_20' ) end [2025-02-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456042', 'tblTempVendorCDR_20' ) start [2025-02-12 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456042', 'tblTempVendorCDR_20' ) end [2025-02-12 02:34:18] Production.INFO: ProcessCDR(1,14456042,1,1,2) [2025-02-12 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456042', 'tblTempUsageDetail_20' ) start [2025-02-12 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456042', 'tblTempUsageDetail_20' ) end [2025-02-12 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:34:22] Production.INFO: ==17987== Releasing lock... [2025-02-12 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:35:06 [end_date_ymd] => 2025-02-12 02:35:06 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:35:06' and `end` < '2025-02-12 02: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-12 02:35:19] Production.INFO: count ==252 [2025-02-12 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:35:06 - End Time 2025-02-12 02:35:06 [2025-02-12 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456047', 'tblTempUsageDetail_20' ) start [2025-02-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456047', 'tblTempUsageDetail_20' ) end [2025-02-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456047', 'tblTempVendorCDR_20' ) start [2025-02-12 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456047', 'tblTempVendorCDR_20' ) end [2025-02-12 02:35:19] Production.INFO: ProcessCDR(1,14456047,1,1,2) [2025-02-12 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456047', 'tblTempUsageDetail_20' ) start [2025-02-12 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456047', 'tblTempUsageDetail_20' ) end [2025-02-12 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:35:22] Production.INFO: ==18060== Releasing lock... [2025-02-12 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:36:05 [end_date_ymd] => 2025-02-12 02:36:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:36:05' and `end` < '2025-02-12 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-12 02:36:18] Production.INFO: count ==252 [2025-02-12 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:36:05 - End Time 2025-02-12 02:36:05 [2025-02-12 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456052', 'tblTempUsageDetail_20' ) start [2025-02-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456052', 'tblTempUsageDetail_20' ) end [2025-02-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456052', 'tblTempVendorCDR_20' ) start [2025-02-12 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456052', 'tblTempVendorCDR_20' ) end [2025-02-12 02:36:18] Production.INFO: ProcessCDR(1,14456052,1,1,2) [2025-02-12 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456052', 'tblTempUsageDetail_20' ) start [2025-02-12 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456052', 'tblTempUsageDetail_20' ) end [2025-02-12 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:36:21] Production.INFO: ==18163== Releasing lock... [2025-02-12 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:37:06 [end_date_ymd] => 2025-02-12 02:37:06 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:37:06' and `end` < '2025-02-12 02: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-12 02:37:19] Production.INFO: count ==252 [2025-02-12 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:37:06 - End Time 2025-02-12 02:37:06 [2025-02-12 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456057', 'tblTempUsageDetail_20' ) start [2025-02-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456057', 'tblTempUsageDetail_20' ) end [2025-02-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456057', 'tblTempVendorCDR_20' ) start [2025-02-12 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456057', 'tblTempVendorCDR_20' ) end [2025-02-12 02:37:19] Production.INFO: ProcessCDR(1,14456057,1,1,2) [2025-02-12 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456057', 'tblTempUsageDetail_20' ) start [2025-02-12 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456057', 'tblTempUsageDetail_20' ) end [2025-02-12 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:37:22] Production.INFO: ==18272== Releasing lock... [2025-02-12 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:38:05 [end_date_ymd] => 2025-02-12 02:38:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:38:05' and `end` < '2025-02-12 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-12 02:38:20] Production.INFO: count ==252 [2025-02-12 02:38:20] Production.ERROR: pbx CDR StartTime 2025-02-11 23:38:05 - End Time 2025-02-12 02:38:05 [2025-02-12 02:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456062', 'tblTempUsageDetail_20' ) start [2025-02-12 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456062', 'tblTempUsageDetail_20' ) end [2025-02-12 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456062', 'tblTempVendorCDR_20' ) start [2025-02-12 02:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456062', 'tblTempVendorCDR_20' ) end [2025-02-12 02:38:20] Production.INFO: ProcessCDR(1,14456062,1,1,2) [2025-02-12 02:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456062', 'tblTempUsageDetail_20' ) start [2025-02-12 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456062', 'tblTempUsageDetail_20' ) end [2025-02-12 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:38:23] Production.INFO: ==18360== Releasing lock... [2025-02-12 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:39:05 [end_date_ymd] => 2025-02-12 02:39:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:39:05' and `end` < '2025-02-12 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-12 02:39:18] Production.INFO: count ==252 [2025-02-12 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:39:05 - End Time 2025-02-12 02:39:05 [2025-02-12 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456067', 'tblTempUsageDetail_20' ) start [2025-02-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456067', 'tblTempUsageDetail_20' ) end [2025-02-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456067', 'tblTempVendorCDR_20' ) start [2025-02-12 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456067', 'tblTempVendorCDR_20' ) end [2025-02-12 02:39:18] Production.INFO: ProcessCDR(1,14456067,1,1,2) [2025-02-12 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456067', 'tblTempUsageDetail_20' ) start [2025-02-12 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456067', 'tblTempUsageDetail_20' ) end [2025-02-12 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:39:21] Production.INFO: ==18432== Releasing lock... [2025-02-12 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:40:06 [end_date_ymd] => 2025-02-12 02:40:06 [RateCDR] => 1 ) [2025-02-12 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-11 23:40:06' and `end` < '2025-02-12 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-12 02:40:19] Production.INFO: count ==259 [2025-02-12 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:40:06 - End Time 2025-02-12 02:40:06 [2025-02-12 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456073', 'tblTempUsageDetail_20' ) start [2025-02-12 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456073', 'tblTempUsageDetail_20' ) end [2025-02-12 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456073', 'tblTempVendorCDR_20' ) start [2025-02-12 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456073', 'tblTempVendorCDR_20' ) end [2025-02-12 02:40:19] Production.INFO: ProcessCDR(1,14456073,1,1,2) [2025-02-12 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456073', 'tblTempUsageDetail_20' ) start [2025-02-12 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456073', 'tblTempUsageDetail_20' ) end [2025-02-12 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:40:24] Production.INFO: ==18544== Releasing lock... [2025-02-12 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:40:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:41:06 [end_date_ymd] => 2025-02-12 02:41:06 [RateCDR] => 1 ) [2025-02-12 02:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:41:06' and `end` < '2025-02-12 02:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:41:20] Production.INFO: count ==260 [2025-02-12 02:41:20] Production.ERROR: pbx CDR StartTime 2025-02-11 23:41:06 - End Time 2025-02-12 02:41:06 [2025-02-12 02:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456078', 'tblTempUsageDetail_20' ) start [2025-02-12 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456078', 'tblTempUsageDetail_20' ) end [2025-02-12 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456078', 'tblTempVendorCDR_20' ) start [2025-02-12 02:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456078', 'tblTempVendorCDR_20' ) end [2025-02-12 02:41:20] Production.INFO: ProcessCDR(1,14456078,1,1,2) [2025-02-12 02:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456078', 'tblTempUsageDetail_20' ) start [2025-02-12 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456078', 'tblTempUsageDetail_20' ) end [2025-02-12 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:41:23] Production.INFO: ==18619== Releasing lock... [2025-02-12 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:41:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:42:05 [end_date_ymd] => 2025-02-12 02:42:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:42:05' and `end` < '2025-02-12 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-12 02:42:18] Production.INFO: count ==260 [2025-02-12 02:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:42:05 - End Time 2025-02-12 02:42:05 [2025-02-12 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456083', 'tblTempUsageDetail_20' ) start [2025-02-12 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456083', 'tblTempUsageDetail_20' ) end [2025-02-12 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456083', 'tblTempVendorCDR_20' ) start [2025-02-12 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456083', 'tblTempVendorCDR_20' ) end [2025-02-12 02:42:18] Production.INFO: ProcessCDR(1,14456083,1,1,2) [2025-02-12 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456083', 'tblTempUsageDetail_20' ) start [2025-02-12 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456083', 'tblTempUsageDetail_20' ) end [2025-02-12 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:42:21] Production.INFO: ==18702== Releasing lock... [2025-02-12 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:43:05 [end_date_ymd] => 2025-02-12 02:43:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:43:05' and `end` < '2025-02-12 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-12 02:43:18] Production.INFO: count ==260 [2025-02-12 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:43:05 - End Time 2025-02-12 02:43:05 [2025-02-12 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456088', 'tblTempUsageDetail_20' ) start [2025-02-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456088', 'tblTempUsageDetail_20' ) end [2025-02-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456088', 'tblTempVendorCDR_20' ) start [2025-02-12 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456088', 'tblTempVendorCDR_20' ) end [2025-02-12 02:43:18] Production.INFO: ProcessCDR(1,14456088,1,1,2) [2025-02-12 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456088', 'tblTempUsageDetail_20' ) start [2025-02-12 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456088', 'tblTempUsageDetail_20' ) end [2025-02-12 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:43:21] Production.INFO: ==18782== Releasing lock... [2025-02-12 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:44:05 [end_date_ymd] => 2025-02-12 02:44:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:44:05' and `end` < '2025-02-12 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-12 02:44:18] Production.INFO: count ==259 [2025-02-12 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:44:05 - End Time 2025-02-12 02:44:05 [2025-02-12 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456093', 'tblTempUsageDetail_20' ) start [2025-02-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456093', 'tblTempUsageDetail_20' ) end [2025-02-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456093', 'tblTempVendorCDR_20' ) start [2025-02-12 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456093', 'tblTempVendorCDR_20' ) end [2025-02-12 02:44:18] Production.INFO: ProcessCDR(1,14456093,1,1,2) [2025-02-12 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456093', 'tblTempUsageDetail_20' ) start [2025-02-12 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456093', 'tblTempUsageDetail_20' ) end [2025-02-12 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:44:21] Production.INFO: ==18853== Releasing lock... [2025-02-12 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:45:05 [end_date_ymd] => 2025-02-12 02:45:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:45:05' and `end` < '2025-02-12 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-12 02:45:18] Production.INFO: count ==259 [2025-02-12 02:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:45:05 - End Time 2025-02-12 02:45:05 [2025-02-12 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456098', 'tblTempUsageDetail_20' ) start [2025-02-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456098', 'tblTempUsageDetail_20' ) end [2025-02-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456098', 'tblTempVendorCDR_20' ) start [2025-02-12 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456098', 'tblTempVendorCDR_20' ) end [2025-02-12 02:45:18] Production.INFO: ProcessCDR(1,14456098,1,1,2) [2025-02-12 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456098', 'tblTempUsageDetail_20' ) start [2025-02-12 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456098', 'tblTempUsageDetail_20' ) end [2025-02-12 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:45:22] Production.INFO: ==18926== Releasing lock... [2025-02-12 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:45:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:46:05 [end_date_ymd] => 2025-02-12 02:46:05 [RateCDR] => 1 ) [2025-02-12 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:46:05' and `end` < '2025-02-12 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:46:18] Production.INFO: count ==259 [2025-02-12 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:46:05 - End Time 2025-02-12 02:46:05 [2025-02-12 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456103', 'tblTempUsageDetail_20' ) start [2025-02-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456103', 'tblTempUsageDetail_20' ) end [2025-02-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456103', 'tblTempVendorCDR_20' ) start [2025-02-12 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456103', 'tblTempVendorCDR_20' ) end [2025-02-12 02:46:18] Production.INFO: ProcessCDR(1,14456103,1,1,2) [2025-02-12 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456103', 'tblTempUsageDetail_20' ) start [2025-02-12 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456103', 'tblTempUsageDetail_20' ) end [2025-02-12 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:46:21] Production.INFO: ==19007== Releasing lock... [2025-02-12 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:47:05 [end_date_ymd] => 2025-02-12 02:47:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:47:05' and `end` < '2025-02-12 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-12 02:47:18] Production.INFO: count ==259 [2025-02-12 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:47:05 - End Time 2025-02-12 02:47:05 [2025-02-12 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456108', 'tblTempUsageDetail_20' ) start [2025-02-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456108', 'tblTempUsageDetail_20' ) end [2025-02-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456108', 'tblTempVendorCDR_20' ) start [2025-02-12 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456108', 'tblTempVendorCDR_20' ) end [2025-02-12 02:47:18] Production.INFO: ProcessCDR(1,14456108,1,1,2) [2025-02-12 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456108', 'tblTempUsageDetail_20' ) start [2025-02-12 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456108', 'tblTempUsageDetail_20' ) end [2025-02-12 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:47:22] Production.INFO: ==19079== Releasing lock... [2025-02-12 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:47:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:48:04 [end_date_ymd] => 2025-02-12 02:48:04 [RateCDR] => 1 ) [2025-02-12 02:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:48:04' and `end` < '2025-02-12 02:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:48:17] Production.INFO: count ==257 [2025-02-12 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-11 23:48:04 - End Time 2025-02-12 02:48:04 [2025-02-12 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456113', 'tblTempUsageDetail_20' ) start [2025-02-12 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456113', 'tblTempUsageDetail_20' ) end [2025-02-12 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456113', 'tblTempVendorCDR_20' ) start [2025-02-12 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456113', 'tblTempVendorCDR_20' ) end [2025-02-12 02:48:17] Production.INFO: ProcessCDR(1,14456113,1,1,2) [2025-02-12 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456113', 'tblTempUsageDetail_20' ) start [2025-02-12 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456113', 'tblTempUsageDetail_20' ) end [2025-02-12 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:48:21] Production.INFO: ==19154== Releasing lock... [2025-02-12 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:49:05 [end_date_ymd] => 2025-02-12 02:49:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:49:05' and `end` < '2025-02-12 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-12 02:49:18] Production.INFO: count ==257 [2025-02-12 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:49:05 - End Time 2025-02-12 02:49:05 [2025-02-12 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456118', 'tblTempUsageDetail_20' ) start [2025-02-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456118', 'tblTempUsageDetail_20' ) end [2025-02-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456118', 'tblTempVendorCDR_20' ) start [2025-02-12 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456118', 'tblTempVendorCDR_20' ) end [2025-02-12 02:49:18] Production.INFO: ProcessCDR(1,14456118,1,1,2) [2025-02-12 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456118', 'tblTempUsageDetail_20' ) start [2025-02-12 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456118', 'tblTempUsageDetail_20' ) end [2025-02-12 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:49:21] Production.INFO: ==19229== Releasing lock... [2025-02-12 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:50:05 [end_date_ymd] => 2025-02-12 02:50:05 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:50:05' and `end` < '2025-02-12 02: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-12 02:50:19] Production.INFO: count ==261 [2025-02-12 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:50:05 - End Time 2025-02-12 02:50:05 [2025-02-12 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456123', 'tblTempUsageDetail_20' ) start [2025-02-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456123', 'tblTempUsageDetail_20' ) end [2025-02-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456123', 'tblTempVendorCDR_20' ) start [2025-02-12 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456123', 'tblTempVendorCDR_20' ) end [2025-02-12 02:50:19] Production.INFO: ProcessCDR(1,14456123,1,1,2) [2025-02-12 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456123', 'tblTempUsageDetail_20' ) start [2025-02-12 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456123', 'tblTempUsageDetail_20' ) end [2025-02-12 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:50:22] Production.INFO: ==19304== Releasing lock... [2025-02-12 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:51:05 [end_date_ymd] => 2025-02-12 02:51:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:51:05' and `end` < '2025-02-12 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-12 02:51:18] Production.INFO: count ==261 [2025-02-12 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:51:05 - End Time 2025-02-12 02:51:05 [2025-02-12 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456129', 'tblTempUsageDetail_20' ) start [2025-02-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456129', 'tblTempUsageDetail_20' ) end [2025-02-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456129', 'tblTempVendorCDR_20' ) start [2025-02-12 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456129', 'tblTempVendorCDR_20' ) end [2025-02-12 02:51:18] Production.INFO: ProcessCDR(1,14456129,1,1,2) [2025-02-12 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456129', 'tblTempUsageDetail_20' ) start [2025-02-12 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456129', 'tblTempUsageDetail_20' ) end [2025-02-12 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:51:21] Production.INFO: ==19379== Releasing lock... [2025-02-12 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:52:05 [end_date_ymd] => 2025-02-12 02:52:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:52:05' and `end` < '2025-02-12 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-12 02:52:19] Production.INFO: count ==261 [2025-02-12 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:52:05 - End Time 2025-02-12 02:52:05 [2025-02-12 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456134', 'tblTempUsageDetail_20' ) start [2025-02-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456134', 'tblTempUsageDetail_20' ) end [2025-02-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456134', 'tblTempVendorCDR_20' ) start [2025-02-12 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456134', 'tblTempVendorCDR_20' ) end [2025-02-12 02:52:19] Production.INFO: ProcessCDR(1,14456134,1,1,2) [2025-02-12 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456134', 'tblTempUsageDetail_20' ) start [2025-02-12 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456134', 'tblTempUsageDetail_20' ) end [2025-02-12 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:52:22] Production.INFO: ==19450== Releasing lock... [2025-02-12 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:53:05 [end_date_ymd] => 2025-02-12 02:53:05 [RateCDR] => 1 ) [2025-02-12 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:53:05' and `end` < '2025-02-12 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:53:19] Production.INFO: count ==255 [2025-02-12 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:53:05 - End Time 2025-02-12 02:53:05 [2025-02-12 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456139', 'tblTempUsageDetail_20' ) start [2025-02-12 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456139', 'tblTempUsageDetail_20' ) end [2025-02-12 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456139', 'tblTempVendorCDR_20' ) start [2025-02-12 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456139', 'tblTempVendorCDR_20' ) end [2025-02-12 02:53:19] Production.INFO: ProcessCDR(1,14456139,1,1,2) [2025-02-12 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456139', 'tblTempUsageDetail_20' ) start [2025-02-12 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456139', 'tblTempUsageDetail_20' ) end [2025-02-12 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:53:23] Production.INFO: ==19522== Releasing lock... [2025-02-12 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:53:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:54:05 [end_date_ymd] => 2025-02-12 02:54:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:54:05' and `end` < '2025-02-12 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-12 02:54:19] Production.INFO: count ==255 [2025-02-12 02:54:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:54:05 - End Time 2025-02-12 02:54:05 [2025-02-12 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456144', 'tblTempUsageDetail_20' ) start [2025-02-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456144', 'tblTempUsageDetail_20' ) end [2025-02-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456144', 'tblTempVendorCDR_20' ) start [2025-02-12 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456144', 'tblTempVendorCDR_20' ) end [2025-02-12 02:54:19] Production.INFO: ProcessCDR(1,14456144,1,1,2) [2025-02-12 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456144', 'tblTempUsageDetail_20' ) start [2025-02-12 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456144', 'tblTempUsageDetail_20' ) end [2025-02-12 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:54:22] Production.INFO: ==19601== Releasing lock... [2025-02-12 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:54:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:55:05 [end_date_ymd] => 2025-02-12 02:55:05 [RateCDR] => 1 ) [2025-02-12 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:55:05' and `end` < '2025-02-12 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:55:17] Production.INFO: count ==253 [2025-02-12 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-11 23:55:05 - End Time 2025-02-12 02:55:05 [2025-02-12 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456149', 'tblTempUsageDetail_20' ) start [2025-02-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456149', 'tblTempUsageDetail_20' ) end [2025-02-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456149', 'tblTempVendorCDR_20' ) start [2025-02-12 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456149', 'tblTempVendorCDR_20' ) end [2025-02-12 02:55:18] Production.INFO: ProcessCDR(1,14456149,1,1,2) [2025-02-12 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456149', 'tblTempUsageDetail_20' ) start [2025-02-12 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456149', 'tblTempUsageDetail_20' ) end [2025-02-12 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:55:21] Production.INFO: ==19676== Releasing lock... [2025-02-12 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 02:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:56:04 [end_date_ymd] => 2025-02-12 02:56:04 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:56:04' and `end` < '2025-02-12 02: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-12 02:56:19] Production.INFO: count ==249 [2025-02-12 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:56:04 - End Time 2025-02-12 02:56:04 [2025-02-12 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456154', 'tblTempUsageDetail_20' ) start [2025-02-12 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456154', 'tblTempUsageDetail_20' ) end [2025-02-12 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456154', 'tblTempVendorCDR_20' ) start [2025-02-12 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456154', 'tblTempVendorCDR_20' ) end [2025-02-12 02:56:19] Production.INFO: ProcessCDR(1,14456154,1,1,2) [2025-02-12 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456154', 'tblTempUsageDetail_20' ) start [2025-02-12 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456154', 'tblTempUsageDetail_20' ) end [2025-02-12 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:56:22] Production.INFO: ==19792== Releasing lock... [2025-02-12 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:57:05 [end_date_ymd] => 2025-02-12 02:57:05 [RateCDR] => 1 ) [2025-02-12 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-11 23:57:05' and `end` < '2025-02-12 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-12 02:57:18] Production.INFO: count ==248 [2025-02-12 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 23:57:05 - End Time 2025-02-12 02:57:05 [2025-02-12 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456159', 'tblTempUsageDetail_20' ) start [2025-02-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456159', 'tblTempUsageDetail_20' ) end [2025-02-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456159', 'tblTempVendorCDR_20' ) start [2025-02-12 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456159', 'tblTempVendorCDR_20' ) end [2025-02-12 02:57:18] Production.INFO: ProcessCDR(1,14456159,1,1,2) [2025-02-12 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456159', 'tblTempUsageDetail_20' ) start [2025-02-12 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456159', 'tblTempUsageDetail_20' ) end [2025-02-12 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:57:21] Production.INFO: ==19870== Releasing lock... [2025-02-12 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:58:06 [end_date_ymd] => 2025-02-12 02:58:06 [RateCDR] => 1 ) [2025-02-12 02:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 23:58:06' and `end` < '2025-02-12 02:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 02:58:19] Production.INFO: count ==248 [2025-02-12 02:58:19] Production.ERROR: pbx CDR StartTime 2025-02-11 23:58:06 - End Time 2025-02-12 02:58:06 [2025-02-12 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456164', 'tblTempUsageDetail_20' ) start [2025-02-12 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456164', 'tblTempUsageDetail_20' ) end [2025-02-12 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456164', 'tblTempVendorCDR_20' ) start [2025-02-12 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456164', 'tblTempVendorCDR_20' ) end [2025-02-12 02:58:19] Production.INFO: ProcessCDR(1,14456164,1,1,2) [2025-02-12 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456164', 'tblTempUsageDetail_20' ) start [2025-02-12 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456164', 'tblTempUsageDetail_20' ) end [2025-02-12 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:58:22] Production.INFO: ==19945== Releasing lock... [2025-02-12 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 23:59:04 [end_date_ymd] => 2025-02-12 02:59:04 [RateCDR] => 1 ) [2025-02-12 02: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-11 23:59:04' and `end` < '2025-02-12 02: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-12 02:59:17] Production.INFO: count ==248 [2025-02-12 02:59:17] Production.ERROR: pbx CDR StartTime 2025-02-11 23:59:04 - End Time 2025-02-12 02:59:04 [2025-02-12 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456169', 'tblTempUsageDetail_20' ) start [2025-02-12 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456169', 'tblTempUsageDetail_20' ) end [2025-02-12 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456169', 'tblTempVendorCDR_20' ) start [2025-02-12 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456169', 'tblTempVendorCDR_20' ) end [2025-02-12 02:59:17] Production.INFO: ProcessCDR(1,14456169,1,1,2) [2025-02-12 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456169', 'tblTempUsageDetail_20' ) start [2025-02-12 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456169', 'tblTempUsageDetail_20' ) end [2025-02-12 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 02:59:21] Production.INFO: ==20015== Releasing lock... [2025-02-12 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 02:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:00:06 [end_date_ymd] => 2025-02-12 03:00:06 [RateCDR] => 1 ) [2025-02-12 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:00:06' and `end` < '2025-02-12 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:00:19] Production.INFO: count ==248 [2025-02-12 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:00:06 - End Time 2025-02-12 03:00:06 [2025-02-12 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456175', 'tblTempUsageDetail_20' ) start [2025-02-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456175', 'tblTempUsageDetail_20' ) end [2025-02-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456175', 'tblTempVendorCDR_20' ) start [2025-02-12 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456175', 'tblTempVendorCDR_20' ) end [2025-02-12 03:00:19] Production.INFO: ProcessCDR(1,14456175,1,1,2) [2025-02-12 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456175', 'tblTempUsageDetail_20' ) start [2025-02-12 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456175', 'tblTempUsageDetail_20' ) end [2025-02-12 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:00:23] Production.INFO: ==20095== Releasing lock... [2025-02-12 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:01:05 [end_date_ymd] => 2025-02-12 03:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:01:05' and `end` < '2025-02-12 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-12 03:01:18] Production.INFO: count ==244 [2025-02-12 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:01:05 - End Time 2025-02-12 03:01:05 [2025-02-12 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456180', 'tblTempUsageDetail_20' ) start [2025-02-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456180', 'tblTempUsageDetail_20' ) end [2025-02-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456180', 'tblTempVendorCDR_20' ) start [2025-02-12 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456180', 'tblTempVendorCDR_20' ) end [2025-02-12 03:01:18] Production.INFO: ProcessCDR(1,14456180,1,1,2) [2025-02-12 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456180', 'tblTempUsageDetail_20' ) start [2025-02-12 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456180', 'tblTempUsageDetail_20' ) end [2025-02-12 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:01:22] Production.INFO: ==20184== Releasing lock... [2025-02-12 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:02:06 [end_date_ymd] => 2025-02-12 03:02:06 [RateCDR] => 1 ) [2025-02-12 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:02:06' and `end` < '2025-02-12 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:02:19] Production.INFO: count ==248 [2025-02-12 03:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:02:06 - End Time 2025-02-12 03:02:06 [2025-02-12 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456185', 'tblTempUsageDetail_20' ) start [2025-02-12 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456185', 'tblTempUsageDetail_20' ) end [2025-02-12 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456185', 'tblTempVendorCDR_20' ) start [2025-02-12 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456185', 'tblTempVendorCDR_20' ) end [2025-02-12 03:02:19] Production.INFO: ProcessCDR(1,14456185,1,1,2) [2025-02-12 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456185', 'tblTempUsageDetail_20' ) start [2025-02-12 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456185', 'tblTempUsageDetail_20' ) end [2025-02-12 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:02:23] Production.INFO: ==20334== Releasing lock... [2025-02-12 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:03:05 [end_date_ymd] => 2025-02-12 03:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:03:05' and `end` < '2025-02-12 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-12 03:03:18] Production.INFO: count ==248 [2025-02-12 03:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:03:05 - End Time 2025-02-12 03:03:05 [2025-02-12 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456190', 'tblTempUsageDetail_20' ) start [2025-02-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456190', 'tblTempUsageDetail_20' ) end [2025-02-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456190', 'tblTempVendorCDR_20' ) start [2025-02-12 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456190', 'tblTempVendorCDR_20' ) end [2025-02-12 03:03:18] Production.INFO: ProcessCDR(1,14456190,1,1,2) [2025-02-12 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456190', 'tblTempUsageDetail_20' ) start [2025-02-12 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456190', 'tblTempUsageDetail_20' ) end [2025-02-12 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:03:21] Production.INFO: ==20405== Releasing lock... [2025-02-12 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:04:05 [end_date_ymd] => 2025-02-12 03:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:04:05' and `end` < '2025-02-12 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-12 03:04:18] Production.INFO: count ==248 [2025-02-12 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:04:05 - End Time 2025-02-12 03:04:05 [2025-02-12 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456195', 'tblTempUsageDetail_20' ) start [2025-02-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456195', 'tblTempUsageDetail_20' ) end [2025-02-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456195', 'tblTempVendorCDR_20' ) start [2025-02-12 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456195', 'tblTempVendorCDR_20' ) end [2025-02-12 03:04:18] Production.INFO: ProcessCDR(1,14456195,1,1,2) [2025-02-12 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456195', 'tblTempUsageDetail_20' ) start [2025-02-12 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456195', 'tblTempUsageDetail_20' ) end [2025-02-12 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:04:21] Production.INFO: ==20480== Releasing lock... [2025-02-12 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:05:05 [end_date_ymd] => 2025-02-12 03:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:05:05' and `end` < '2025-02-12 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-12 03:05:17] Production.INFO: count ==248 [2025-02-12 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-12 00:05:05 - End Time 2025-02-12 03:05:05 [2025-02-12 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456200', 'tblTempUsageDetail_20' ) start [2025-02-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456200', 'tblTempUsageDetail_20' ) end [2025-02-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456200', 'tblTempVendorCDR_20' ) start [2025-02-12 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456200', 'tblTempVendorCDR_20' ) end [2025-02-12 03:05:17] Production.INFO: ProcessCDR(1,14456200,1,1,2) [2025-02-12 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456200', 'tblTempUsageDetail_20' ) start [2025-02-12 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456200', 'tblTempUsageDetail_20' ) end [2025-02-12 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:05:21] Production.INFO: ==20553== Releasing lock... [2025-02-12 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:06:05 [end_date_ymd] => 2025-02-12 03:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:06:05' and `end` < '2025-02-12 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-12 03:06:18] Production.INFO: count ==248 [2025-02-12 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:06:05 - End Time 2025-02-12 03:06:05 [2025-02-12 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456205', 'tblTempUsageDetail_20' ) start [2025-02-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456205', 'tblTempUsageDetail_20' ) end [2025-02-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456205', 'tblTempVendorCDR_20' ) start [2025-02-12 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456205', 'tblTempVendorCDR_20' ) end [2025-02-12 03:06:18] Production.INFO: ProcessCDR(1,14456205,1,1,2) [2025-02-12 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456205', 'tblTempUsageDetail_20' ) start [2025-02-12 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456205', 'tblTempUsageDetail_20' ) end [2025-02-12 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:06:21] Production.INFO: ==20706== Releasing lock... [2025-02-12 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:07:04 [end_date_ymd] => 2025-02-12 03:07:04 [RateCDR] => 1 ) [2025-02-12 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-12 00:07:04' and `end` < '2025-02-12 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-12 03:07:18] Production.INFO: count ==248 [2025-02-12 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:07:04 - End Time 2025-02-12 03:07:04 [2025-02-12 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456210', 'tblTempUsageDetail_20' ) start [2025-02-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456210', 'tblTempUsageDetail_20' ) end [2025-02-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456210', 'tblTempVendorCDR_20' ) start [2025-02-12 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456210', 'tblTempVendorCDR_20' ) end [2025-02-12 03:07:18] Production.INFO: ProcessCDR(1,14456210,1,1,2) [2025-02-12 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456210', 'tblTempUsageDetail_20' ) start [2025-02-12 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456210', 'tblTempUsageDetail_20' ) end [2025-02-12 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:07:22] Production.INFO: ==20781== Releasing lock... [2025-02-12 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:08:05 [end_date_ymd] => 2025-02-12 03:08:05 [RateCDR] => 1 ) [2025-02-12 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:08:05' and `end` < '2025-02-12 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:08:19] Production.INFO: count ==247 [2025-02-12 03:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:08:05 - End Time 2025-02-12 03:08:05 [2025-02-12 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456215', 'tblTempUsageDetail_20' ) start [2025-02-12 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456215', 'tblTempUsageDetail_20' ) end [2025-02-12 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456215', 'tblTempVendorCDR_20' ) start [2025-02-12 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456215', 'tblTempVendorCDR_20' ) end [2025-02-12 03:08:19] Production.INFO: ProcessCDR(1,14456215,1,1,2) [2025-02-12 03:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456215', 'tblTempUsageDetail_20' ) start [2025-02-12 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456215', 'tblTempUsageDetail_20' ) end [2025-02-12 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:08:22] Production.INFO: ==20855== Releasing lock... [2025-02-12 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:09:05 [end_date_ymd] => 2025-02-12 03:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:09:05' and `end` < '2025-02-12 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-12 03:09:18] Production.INFO: count ==247 [2025-02-12 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:09:05 - End Time 2025-02-12 03:09:05 [2025-02-12 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456220', 'tblTempUsageDetail_20' ) start [2025-02-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456220', 'tblTempUsageDetail_20' ) end [2025-02-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456220', 'tblTempVendorCDR_20' ) start [2025-02-12 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456220', 'tblTempVendorCDR_20' ) end [2025-02-12 03:09:18] Production.INFO: ProcessCDR(1,14456220,1,1,2) [2025-02-12 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456220', 'tblTempUsageDetail_20' ) start [2025-02-12 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456220', 'tblTempUsageDetail_20' ) end [2025-02-12 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:09:21] Production.INFO: ==21016== Releasing lock... [2025-02-12 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:10:06 [end_date_ymd] => 2025-02-12 03:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 00:10:06' and `end` < '2025-02-12 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-12 03:10:19] Production.INFO: count ==249 [2025-02-12 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:10:06 - End Time 2025-02-12 03:10:06 [2025-02-12 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456226', 'tblTempUsageDetail_20' ) start [2025-02-12 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456226', 'tblTempUsageDetail_20' ) end [2025-02-12 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456226', 'tblTempVendorCDR_20' ) start [2025-02-12 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456226', 'tblTempVendorCDR_20' ) end [2025-02-12 03:10:19] Production.INFO: ProcessCDR(1,14456226,1,1,2) [2025-02-12 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456226', 'tblTempUsageDetail_20' ) start [2025-02-12 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456226', 'tblTempUsageDetail_20' ) end [2025-02-12 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:10:22] Production.INFO: ==21100== Releasing lock... [2025-02-12 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:11:05 [end_date_ymd] => 2025-02-12 03:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:11:05' and `end` < '2025-02-12 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-12 03:11:18] Production.INFO: count ==249 [2025-02-12 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:11:05 - End Time 2025-02-12 03:11:05 [2025-02-12 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456231', 'tblTempUsageDetail_20' ) start [2025-02-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456231', 'tblTempUsageDetail_20' ) end [2025-02-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456231', 'tblTempVendorCDR_20' ) start [2025-02-12 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456231', 'tblTempVendorCDR_20' ) end [2025-02-12 03:11:18] Production.INFO: ProcessCDR(1,14456231,1,1,2) [2025-02-12 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456231', 'tblTempUsageDetail_20' ) start [2025-02-12 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456231', 'tblTempUsageDetail_20' ) end [2025-02-12 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:11:21] Production.INFO: ==21219== Releasing lock... [2025-02-12 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:12:05 [end_date_ymd] => 2025-02-12 03:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:12:05' and `end` < '2025-02-12 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-12 03:12:18] Production.INFO: count ==249 [2025-02-12 03:12:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:12:05 - End Time 2025-02-12 03:12:05 [2025-02-12 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456236', 'tblTempUsageDetail_20' ) start [2025-02-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456236', 'tblTempUsageDetail_20' ) end [2025-02-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456236', 'tblTempVendorCDR_20' ) start [2025-02-12 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456236', 'tblTempVendorCDR_20' ) end [2025-02-12 03:12:18] Production.INFO: ProcessCDR(1,14456236,1,1,2) [2025-02-12 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456236', 'tblTempUsageDetail_20' ) start [2025-02-12 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456236', 'tblTempUsageDetail_20' ) end [2025-02-12 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:12:21] Production.INFO: ==21295== Releasing lock... [2025-02-12 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:13:05 [end_date_ymd] => 2025-02-12 03:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:13:05' and `end` < '2025-02-12 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-12 03:13:18] Production.INFO: count ==245 [2025-02-12 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:13:05 - End Time 2025-02-12 03:13:05 [2025-02-12 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456241', 'tblTempUsageDetail_20' ) start [2025-02-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456241', 'tblTempUsageDetail_20' ) end [2025-02-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456241', 'tblTempVendorCDR_20' ) start [2025-02-12 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456241', 'tblTempVendorCDR_20' ) end [2025-02-12 03:13:18] Production.INFO: ProcessCDR(1,14456241,1,1,2) [2025-02-12 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456241', 'tblTempUsageDetail_20' ) start [2025-02-12 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456241', 'tblTempUsageDetail_20' ) end [2025-02-12 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:13:21] Production.INFO: ==21450== Releasing lock... [2025-02-12 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:14:04 [end_date_ymd] => 2025-02-12 03:14:04 [RateCDR] => 1 ) [2025-02-12 03:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:14:04' and `end` < '2025-02-12 03:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:14:18] Production.INFO: count ==241 [2025-02-12 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:14:04 - End Time 2025-02-12 03:14:04 [2025-02-12 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456246', 'tblTempUsageDetail_20' ) start [2025-02-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456246', 'tblTempUsageDetail_20' ) end [2025-02-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456246', 'tblTempVendorCDR_20' ) start [2025-02-12 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456246', 'tblTempVendorCDR_20' ) end [2025-02-12 03:14:18] Production.INFO: ProcessCDR(1,14456246,1,1,2) [2025-02-12 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456246', 'tblTempUsageDetail_20' ) start [2025-02-12 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456246', 'tblTempUsageDetail_20' ) end [2025-02-12 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:14:21] Production.INFO: ==21523== Releasing lock... [2025-02-12 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:15:05 [end_date_ymd] => 2025-02-12 03:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:15:05' and `end` < '2025-02-12 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-12 03:15:18] Production.INFO: count ==241 [2025-02-12 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:15:05 - End Time 2025-02-12 03:15:05 [2025-02-12 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456251', 'tblTempUsageDetail_20' ) start [2025-02-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456251', 'tblTempUsageDetail_20' ) end [2025-02-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456251', 'tblTempVendorCDR_20' ) start [2025-02-12 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456251', 'tblTempVendorCDR_20' ) end [2025-02-12 03:15:18] Production.INFO: ProcessCDR(1,14456251,1,1,2) [2025-02-12 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456251', 'tblTempUsageDetail_20' ) start [2025-02-12 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456251', 'tblTempUsageDetail_20' ) end [2025-02-12 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:15:22] Production.INFO: ==21604== Releasing lock... [2025-02-12 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:16:05 [end_date_ymd] => 2025-02-12 03:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:16:05' and `end` < '2025-02-12 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-12 03:16:18] Production.INFO: count ==239 [2025-02-12 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:16:05 - End Time 2025-02-12 03:16:05 [2025-02-12 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456256', 'tblTempUsageDetail_20' ) start [2025-02-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456256', 'tblTempUsageDetail_20' ) end [2025-02-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456256', 'tblTempVendorCDR_20' ) start [2025-02-12 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456256', 'tblTempVendorCDR_20' ) end [2025-02-12 03:16:18] Production.INFO: ProcessCDR(1,14456256,1,1,2) [2025-02-12 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456256', 'tblTempUsageDetail_20' ) start [2025-02-12 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456256', 'tblTempUsageDetail_20' ) end [2025-02-12 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:16:21] Production.INFO: ==21687== Releasing lock... [2025-02-12 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:17:05 [end_date_ymd] => 2025-02-12 03:17:05 [RateCDR] => 1 ) [2025-02-12 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:17:05' and `end` < '2025-02-12 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:17:18] Production.INFO: count ==238 [2025-02-12 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:17:05 - End Time 2025-02-12 03:17:05 [2025-02-12 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456261', 'tblTempUsageDetail_20' ) start [2025-02-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456261', 'tblTempUsageDetail_20' ) end [2025-02-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456261', 'tblTempVendorCDR_20' ) start [2025-02-12 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456261', 'tblTempVendorCDR_20' ) end [2025-02-12 03:17:18] Production.INFO: ProcessCDR(1,14456261,1,1,2) [2025-02-12 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456261', 'tblTempUsageDetail_20' ) start [2025-02-12 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456261', 'tblTempUsageDetail_20' ) end [2025-02-12 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:17:22] Production.INFO: ==21838== Releasing lock... [2025-02-12 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:18:06 [end_date_ymd] => 2025-02-12 03:18:06 [RateCDR] => 1 ) [2025-02-12 03: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-12 00:18:06' and `end` < '2025-02-12 03: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-12 03:18:18] Production.INFO: count ==237 [2025-02-12 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:18:06 - End Time 2025-02-12 03:18:06 [2025-02-12 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456266', 'tblTempUsageDetail_20' ) start [2025-02-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456266', 'tblTempUsageDetail_20' ) end [2025-02-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456266', 'tblTempVendorCDR_20' ) start [2025-02-12 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456266', 'tblTempVendorCDR_20' ) end [2025-02-12 03:18:18] Production.INFO: ProcessCDR(1,14456266,1,1,2) [2025-02-12 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456266', 'tblTempUsageDetail_20' ) start [2025-02-12 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456266', 'tblTempUsageDetail_20' ) end [2025-02-12 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:18:22] Production.INFO: ==21915== Releasing lock... [2025-02-12 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:19:05 [end_date_ymd] => 2025-02-12 03:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:19:05' and `end` < '2025-02-12 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-12 03:19:17] Production.INFO: count ==236 [2025-02-12 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-12 00:19:05 - End Time 2025-02-12 03:19:05 [2025-02-12 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456271', 'tblTempUsageDetail_20' ) start [2025-02-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456271', 'tblTempUsageDetail_20' ) end [2025-02-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456271', 'tblTempVendorCDR_20' ) start [2025-02-12 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456271', 'tblTempVendorCDR_20' ) end [2025-02-12 03:19:17] Production.INFO: ProcessCDR(1,14456271,1,1,2) [2025-02-12 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456271', 'tblTempUsageDetail_20' ) start [2025-02-12 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456271', 'tblTempUsageDetail_20' ) end [2025-02-12 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:19:20] Production.INFO: ==21991== Releasing lock... [2025-02-12 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:20:06 [end_date_ymd] => 2025-02-12 03:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 00:20:06' and `end` < '2025-02-12 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-12 03:20:19] Production.INFO: count ==231 [2025-02-12 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:20:06 - End Time 2025-02-12 03:20:06 [2025-02-12 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456277', 'tblTempUsageDetail_20' ) start [2025-02-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456277', 'tblTempUsageDetail_20' ) end [2025-02-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456277', 'tblTempVendorCDR_20' ) start [2025-02-12 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456277', 'tblTempVendorCDR_20' ) end [2025-02-12 03:20:19] Production.INFO: ProcessCDR(1,14456277,1,1,2) [2025-02-12 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456277', 'tblTempUsageDetail_20' ) start [2025-02-12 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456277', 'tblTempUsageDetail_20' ) end [2025-02-12 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:20:22] Production.INFO: ==22072== Releasing lock... [2025-02-12 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:20:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:21:05 [end_date_ymd] => 2025-02-12 03:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:21:05' and `end` < '2025-02-12 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-12 03:21:18] Production.INFO: count ==208 [2025-02-12 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:21:05 - End Time 2025-02-12 03:21:05 [2025-02-12 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456282', 'tblTempUsageDetail_20' ) start [2025-02-12 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456282', 'tblTempUsageDetail_20' ) end [2025-02-12 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456282', 'tblTempVendorCDR_20' ) start [2025-02-12 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456282', 'tblTempVendorCDR_20' ) end [2025-02-12 03:21:18] Production.INFO: ProcessCDR(1,14456282,1,1,2) [2025-02-12 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456282', 'tblTempUsageDetail_20' ) start [2025-02-12 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456282', 'tblTempUsageDetail_20' ) end [2025-02-12 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:21:21] Production.INFO: ==22155== Releasing lock... [2025-02-12 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:21:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:22:06 [end_date_ymd] => 2025-02-12 03:22:06 [RateCDR] => 1 ) [2025-02-12 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:22:06' and `end` < '2025-02-12 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:22:19] Production.INFO: count ==207 [2025-02-12 03:22:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:22:06 - End Time 2025-02-12 03:22:06 [2025-02-12 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456287', 'tblTempUsageDetail_20' ) start [2025-02-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456287', 'tblTempUsageDetail_20' ) end [2025-02-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456287', 'tblTempVendorCDR_20' ) start [2025-02-12 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456287', 'tblTempVendorCDR_20' ) end [2025-02-12 03:22:19] Production.INFO: ProcessCDR(1,14456287,1,1,2) [2025-02-12 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456287', 'tblTempUsageDetail_20' ) start [2025-02-12 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456287', 'tblTempUsageDetail_20' ) end [2025-02-12 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:22:22] Production.INFO: ==22246== Releasing lock... [2025-02-12 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:22:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:23:04 [end_date_ymd] => 2025-02-12 03:23:04 [RateCDR] => 1 ) [2025-02-12 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:23:04' and `end` < '2025-02-12 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:23:17] Production.INFO: count ==204 [2025-02-12 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-12 00:23:04 - End Time 2025-02-12 03:23:04 [2025-02-12 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456292', 'tblTempUsageDetail_20' ) start [2025-02-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456292', 'tblTempUsageDetail_20' ) end [2025-02-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456292', 'tblTempVendorCDR_20' ) start [2025-02-12 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456292', 'tblTempVendorCDR_20' ) end [2025-02-12 03:23:17] Production.INFO: ProcessCDR(1,14456292,1,1,2) [2025-02-12 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456292', 'tblTempUsageDetail_20' ) start [2025-02-12 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456292', 'tblTempUsageDetail_20' ) end [2025-02-12 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:23:20] Production.INFO: ==22327== Releasing lock... [2025-02-12 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:23:20] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:24:06 [end_date_ymd] => 2025-02-12 03:24:06 [RateCDR] => 1 ) [2025-02-12 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:24:06' and `end` < '2025-02-12 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:24:19] Production.INFO: count ==204 [2025-02-12 03:24:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:24:06 - End Time 2025-02-12 03:24:06 [2025-02-12 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456297', 'tblTempUsageDetail_20' ) start [2025-02-12 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456297', 'tblTempUsageDetail_20' ) end [2025-02-12 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456297', 'tblTempVendorCDR_20' ) start [2025-02-12 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456297', 'tblTempVendorCDR_20' ) end [2025-02-12 03:24:19] Production.INFO: ProcessCDR(1,14456297,1,1,2) [2025-02-12 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456297', 'tblTempUsageDetail_20' ) start [2025-02-12 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456297', 'tblTempUsageDetail_20' ) end [2025-02-12 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:24:22] Production.INFO: ==22415== Releasing lock... [2025-02-12 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:24:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:25:05 [end_date_ymd] => 2025-02-12 03:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:25:05' and `end` < '2025-02-12 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-12 03:25:18] Production.INFO: count ==204 [2025-02-12 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:25:05 - End Time 2025-02-12 03:25:05 [2025-02-12 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456302', 'tblTempUsageDetail_20' ) start [2025-02-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456302', 'tblTempUsageDetail_20' ) end [2025-02-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456302', 'tblTempVendorCDR_20' ) start [2025-02-12 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456302', 'tblTempVendorCDR_20' ) end [2025-02-12 03:25:18] Production.INFO: ProcessCDR(1,14456302,1,1,2) [2025-02-12 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456302', 'tblTempUsageDetail_20' ) start [2025-02-12 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456302', 'tblTempUsageDetail_20' ) end [2025-02-12 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:25:21] Production.INFO: ==22499== Releasing lock... [2025-02-12 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:26:05 [end_date_ymd] => 2025-02-12 03:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:26:05' and `end` < '2025-02-12 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-12 03:26:18] Production.INFO: count ==203 [2025-02-12 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:26:05 - End Time 2025-02-12 03:26:05 [2025-02-12 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456307', 'tblTempUsageDetail_20' ) start [2025-02-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456307', 'tblTempUsageDetail_20' ) end [2025-02-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456307', 'tblTempVendorCDR_20' ) start [2025-02-12 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456307', 'tblTempVendorCDR_20' ) end [2025-02-12 03:26:18] Production.INFO: ProcessCDR(1,14456307,1,1,2) [2025-02-12 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456307', 'tblTempUsageDetail_20' ) start [2025-02-12 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456307', 'tblTempUsageDetail_20' ) end [2025-02-12 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:26:22] Production.INFO: ==22580== Releasing lock... [2025-02-12 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:27:05 [end_date_ymd] => 2025-02-12 03:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:27:05' and `end` < '2025-02-12 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-12 03:27:18] Production.INFO: count ==203 [2025-02-12 03:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:27:05 - End Time 2025-02-12 03:27:05 [2025-02-12 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456312', 'tblTempUsageDetail_20' ) start [2025-02-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456312', 'tblTempUsageDetail_20' ) end [2025-02-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456312', 'tblTempVendorCDR_20' ) start [2025-02-12 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456312', 'tblTempVendorCDR_20' ) end [2025-02-12 03:27:18] Production.INFO: ProcessCDR(1,14456312,1,1,2) [2025-02-12 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456312', 'tblTempUsageDetail_20' ) start [2025-02-12 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456312', 'tblTempUsageDetail_20' ) end [2025-02-12 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:27:22] Production.INFO: ==22661== Releasing lock... [2025-02-12 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:28:05 [end_date_ymd] => 2025-02-12 03:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:28:05' and `end` < '2025-02-12 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-12 03:28:18] Production.INFO: count ==203 [2025-02-12 03:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:28:05 - End Time 2025-02-12 03:28:05 [2025-02-12 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456317', 'tblTempUsageDetail_20' ) start [2025-02-12 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456317', 'tblTempUsageDetail_20' ) end [2025-02-12 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456317', 'tblTempVendorCDR_20' ) start [2025-02-12 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456317', 'tblTempVendorCDR_20' ) end [2025-02-12 03:28:18] Production.INFO: ProcessCDR(1,14456317,1,1,2) [2025-02-12 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456317', 'tblTempUsageDetail_20' ) start [2025-02-12 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456317', 'tblTempUsageDetail_20' ) end [2025-02-12 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:28:21] Production.INFO: ==22780== Releasing lock... [2025-02-12 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:29:05 [end_date_ymd] => 2025-02-12 03:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:29:05' and `end` < '2025-02-12 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-12 03:29:18] Production.INFO: count ==203 [2025-02-12 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:29:05 - End Time 2025-02-12 03:29:05 [2025-02-12 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456322', 'tblTempUsageDetail_20' ) start [2025-02-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456322', 'tblTempUsageDetail_20' ) end [2025-02-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456322', 'tblTempVendorCDR_20' ) start [2025-02-12 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456322', 'tblTempVendorCDR_20' ) end [2025-02-12 03:29:18] Production.INFO: ProcessCDR(1,14456322,1,1,2) [2025-02-12 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456322', 'tblTempUsageDetail_20' ) start [2025-02-12 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456322', 'tblTempUsageDetail_20' ) end [2025-02-12 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:29:21] Production.INFO: ==22862== Releasing lock... [2025-02-12 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:30:05 [end_date_ymd] => 2025-02-12 03:30:05 [RateCDR] => 1 ) [2025-02-12 03: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-12 00:30:05' and `end` < '2025-02-12 03: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-12 03:30:18] Production.INFO: count ==197 [2025-02-12 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:30:05 - End Time 2025-02-12 03:30:05 [2025-02-12 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456328', 'tblTempUsageDetail_20' ) start [2025-02-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456328', 'tblTempUsageDetail_20' ) end [2025-02-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456328', 'tblTempVendorCDR_20' ) start [2025-02-12 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456328', 'tblTempVendorCDR_20' ) end [2025-02-12 03:30:18] Production.INFO: ProcessCDR(1,14456328,1,1,2) [2025-02-12 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456328', 'tblTempUsageDetail_20' ) start [2025-02-12 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456328', 'tblTempUsageDetail_20' ) end [2025-02-12 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:30:21] Production.INFO: ==22957== Releasing lock... [2025-02-12 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:31:05 [end_date_ymd] => 2025-02-12 03:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:31:05' and `end` < '2025-02-12 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-12 03:31:18] Production.INFO: count ==183 [2025-02-12 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:31:05 - End Time 2025-02-12 03:31:05 [2025-02-12 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456333', 'tblTempUsageDetail_20' ) start [2025-02-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456333', 'tblTempUsageDetail_20' ) end [2025-02-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456333', 'tblTempVendorCDR_20' ) start [2025-02-12 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456333', 'tblTempVendorCDR_20' ) end [2025-02-12 03:31:18] Production.INFO: ProcessCDR(1,14456333,1,1,2) [2025-02-12 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456333', 'tblTempUsageDetail_20' ) start [2025-02-12 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456333', 'tblTempUsageDetail_20' ) end [2025-02-12 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:31:22] Production.INFO: ==23046== Releasing lock... [2025-02-12 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:32:05 [end_date_ymd] => 2025-02-12 03:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:32:05' and `end` < '2025-02-12 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-12 03:32:18] Production.INFO: count ==183 [2025-02-12 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:32:05 - End Time 2025-02-12 03:32:05 [2025-02-12 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456338', 'tblTempUsageDetail_20' ) start [2025-02-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456338', 'tblTempUsageDetail_20' ) end [2025-02-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456338', 'tblTempVendorCDR_20' ) start [2025-02-12 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456338', 'tblTempVendorCDR_20' ) end [2025-02-12 03:32:18] Production.INFO: ProcessCDR(1,14456338,1,1,2) [2025-02-12 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456338', 'tblTempUsageDetail_20' ) start [2025-02-12 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456338', 'tblTempUsageDetail_20' ) end [2025-02-12 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:32:21] Production.INFO: ==23128== Releasing lock... [2025-02-12 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:33:05 [end_date_ymd] => 2025-02-12 03:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:33:05' and `end` < '2025-02-12 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-12 03:33:18] Production.INFO: count ==182 [2025-02-12 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:33:05 - End Time 2025-02-12 03:33:05 [2025-02-12 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456343', 'tblTempUsageDetail_20' ) start [2025-02-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456343', 'tblTempUsageDetail_20' ) end [2025-02-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456343', 'tblTempVendorCDR_20' ) start [2025-02-12 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456343', 'tblTempVendorCDR_20' ) end [2025-02-12 03:33:18] Production.INFO: ProcessCDR(1,14456343,1,1,2) [2025-02-12 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456343', 'tblTempUsageDetail_20' ) start [2025-02-12 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456343', 'tblTempUsageDetail_20' ) end [2025-02-12 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:33:21] Production.INFO: ==23220== Releasing lock... [2025-02-12 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:34:05 [end_date_ymd] => 2025-02-12 03:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:34:05' and `end` < '2025-02-12 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-12 03:34:18] Production.INFO: count ==182 [2025-02-12 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:34:05 - End Time 2025-02-12 03:34:05 [2025-02-12 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456348', 'tblTempUsageDetail_20' ) start [2025-02-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456348', 'tblTempUsageDetail_20' ) end [2025-02-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456348', 'tblTempVendorCDR_20' ) start [2025-02-12 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456348', 'tblTempVendorCDR_20' ) end [2025-02-12 03:34:18] Production.INFO: ProcessCDR(1,14456348,1,1,2) [2025-02-12 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456348', 'tblTempUsageDetail_20' ) start [2025-02-12 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456348', 'tblTempUsageDetail_20' ) end [2025-02-12 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:34:22] Production.INFO: ==23299== Releasing lock... [2025-02-12 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:35:06 [end_date_ymd] => 2025-02-12 03:35:06 [RateCDR] => 1 ) [2025-02-12 03:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:35:06' and `end` < '2025-02-12 03:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:35:19] Production.INFO: count ==182 [2025-02-12 03:35:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:35:06 - End Time 2025-02-12 03:35:06 [2025-02-12 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456353', 'tblTempUsageDetail_20' ) start [2025-02-12 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456353', 'tblTempUsageDetail_20' ) end [2025-02-12 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456353', 'tblTempVendorCDR_20' ) start [2025-02-12 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456353', 'tblTempVendorCDR_20' ) end [2025-02-12 03:35:19] Production.INFO: ProcessCDR(1,14456353,1,1,2) [2025-02-12 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456353', 'tblTempUsageDetail_20' ) start [2025-02-12 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456353', 'tblTempUsageDetail_20' ) end [2025-02-12 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:35:22] Production.INFO: ==23380== Releasing lock... [2025-02-12 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:36:05 [end_date_ymd] => 2025-02-12 03:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:36:05' and `end` < '2025-02-12 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-12 03:36:18] Production.INFO: count ==182 [2025-02-12 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:36:05 - End Time 2025-02-12 03:36:05 [2025-02-12 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456358', 'tblTempUsageDetail_20' ) start [2025-02-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456358', 'tblTempUsageDetail_20' ) end [2025-02-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456358', 'tblTempVendorCDR_20' ) start [2025-02-12 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456358', 'tblTempVendorCDR_20' ) end [2025-02-12 03:36:18] Production.INFO: ProcessCDR(1,14456358,1,1,2) [2025-02-12 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456358', 'tblTempUsageDetail_20' ) start [2025-02-12 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456358', 'tblTempUsageDetail_20' ) end [2025-02-12 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:36:21] Production.INFO: ==23473== Releasing lock... [2025-02-12 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:37:05 [end_date_ymd] => 2025-02-12 03:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:37:05' and `end` < '2025-02-12 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-12 03:37:18] Production.INFO: count ==182 [2025-02-12 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:37:05 - End Time 2025-02-12 03:37:05 [2025-02-12 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456363', 'tblTempUsageDetail_20' ) start [2025-02-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456363', 'tblTempUsageDetail_20' ) end [2025-02-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456363', 'tblTempVendorCDR_20' ) start [2025-02-12 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456363', 'tblTempVendorCDR_20' ) end [2025-02-12 03:37:18] Production.INFO: ProcessCDR(1,14456363,1,1,2) [2025-02-12 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456363', 'tblTempUsageDetail_20' ) start [2025-02-12 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456363', 'tblTempUsageDetail_20' ) end [2025-02-12 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:37:22] Production.INFO: ==23552== Releasing lock... [2025-02-12 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:38:05 [end_date_ymd] => 2025-02-12 03:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:38:05' and `end` < '2025-02-12 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-12 03:38:18] Production.INFO: count ==182 [2025-02-12 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:38:05 - End Time 2025-02-12 03:38:05 [2025-02-12 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456368', 'tblTempUsageDetail_20' ) start [2025-02-12 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456368', 'tblTempUsageDetail_20' ) end [2025-02-12 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456368', 'tblTempVendorCDR_20' ) start [2025-02-12 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456368', 'tblTempVendorCDR_20' ) end [2025-02-12 03:38:18] Production.INFO: ProcessCDR(1,14456368,1,1,2) [2025-02-12 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456368', 'tblTempUsageDetail_20' ) start [2025-02-12 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456368', 'tblTempUsageDetail_20' ) end [2025-02-12 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:38:22] Production.INFO: ==23633== Releasing lock... [2025-02-12 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:39:05 [end_date_ymd] => 2025-02-12 03:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:39:05' and `end` < '2025-02-12 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-12 03:39:18] Production.INFO: count ==181 [2025-02-12 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:39:05 - End Time 2025-02-12 03:39:05 [2025-02-12 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456373', 'tblTempUsageDetail_20' ) start [2025-02-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456373', 'tblTempUsageDetail_20' ) end [2025-02-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456373', 'tblTempVendorCDR_20' ) start [2025-02-12 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456373', 'tblTempVendorCDR_20' ) end [2025-02-12 03:39:18] Production.INFO: ProcessCDR(1,14456373,1,1,2) [2025-02-12 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456373', 'tblTempUsageDetail_20' ) start [2025-02-12 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456373', 'tblTempUsageDetail_20' ) end [2025-02-12 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:39:22] Production.INFO: ==23722== Releasing lock... [2025-02-12 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:40:06 [end_date_ymd] => 2025-02-12 03:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 00:40:06' and `end` < '2025-02-12 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-12 03:40:19] Production.INFO: count ==179 [2025-02-12 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:40:06 - End Time 2025-02-12 03:40:06 [2025-02-12 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456379', 'tblTempUsageDetail_20' ) start [2025-02-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456379', 'tblTempUsageDetail_20' ) end [2025-02-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456379', 'tblTempVendorCDR_20' ) start [2025-02-12 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456379', 'tblTempVendorCDR_20' ) end [2025-02-12 03:40:19] Production.INFO: ProcessCDR(1,14456379,1,1,2) [2025-02-12 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456379', 'tblTempUsageDetail_20' ) start [2025-02-12 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456379', 'tblTempUsageDetail_20' ) end [2025-02-12 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:40:23] Production.INFO: ==23821== Releasing lock... [2025-02-12 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:40:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:41:05 [end_date_ymd] => 2025-02-12 03:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:41:05' and `end` < '2025-02-12 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-12 03:41:20] Production.INFO: count ==154 [2025-02-12 03:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 00:41:05 - End Time 2025-02-12 03:41:05 [2025-02-12 03:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456384', 'tblTempUsageDetail_20' ) start [2025-02-12 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456384', 'tblTempUsageDetail_20' ) end [2025-02-12 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456384', 'tblTempVendorCDR_20' ) start [2025-02-12 03:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456384', 'tblTempVendorCDR_20' ) end [2025-02-12 03:41:20] Production.INFO: ProcessCDR(1,14456384,1,1,2) [2025-02-12 03:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456384', 'tblTempUsageDetail_20' ) start [2025-02-12 03:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456384', 'tblTempUsageDetail_20' ) end [2025-02-12 03:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:41:23] Production.INFO: ==23929== Releasing lock... [2025-02-12 03:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:41:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:42:05 [end_date_ymd] => 2025-02-12 03:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:42:05' and `end` < '2025-02-12 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-12 03:42:18] Production.INFO: count ==154 [2025-02-12 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:42:05 - End Time 2025-02-12 03:42:05 [2025-02-12 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456389', 'tblTempUsageDetail_20' ) start [2025-02-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456389', 'tblTempUsageDetail_20' ) end [2025-02-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456389', 'tblTempVendorCDR_20' ) start [2025-02-12 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456389', 'tblTempVendorCDR_20' ) end [2025-02-12 03:42:18] Production.INFO: ProcessCDR(1,14456389,1,1,2) [2025-02-12 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456389', 'tblTempUsageDetail_20' ) start [2025-02-12 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456389', 'tblTempUsageDetail_20' ) end [2025-02-12 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:42:22] Production.INFO: ==24006== Releasing lock... [2025-02-12 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:43:06 [end_date_ymd] => 2025-02-12 03:43:06 [RateCDR] => 1 ) [2025-02-12 03:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:43:06' and `end` < '2025-02-12 03:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:43:18] Production.INFO: count ==154 [2025-02-12 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:43:06 - End Time 2025-02-12 03:43:06 [2025-02-12 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456394', 'tblTempUsageDetail_20' ) start [2025-02-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456394', 'tblTempUsageDetail_20' ) end [2025-02-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456394', 'tblTempVendorCDR_20' ) start [2025-02-12 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456394', 'tblTempVendorCDR_20' ) end [2025-02-12 03:43:18] Production.INFO: ProcessCDR(1,14456394,1,1,2) [2025-02-12 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456394', 'tblTempUsageDetail_20' ) start [2025-02-12 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456394', 'tblTempUsageDetail_20' ) end [2025-02-12 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:43:22] Production.INFO: ==24083== Releasing lock... [2025-02-12 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:44:05 [end_date_ymd] => 2025-02-12 03:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:44:05' and `end` < '2025-02-12 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-12 03:44:18] Production.INFO: count ==154 [2025-02-12 03:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:44:05 - End Time 2025-02-12 03:44:05 [2025-02-12 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456399', 'tblTempUsageDetail_20' ) start [2025-02-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456399', 'tblTempUsageDetail_20' ) end [2025-02-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456399', 'tblTempVendorCDR_20' ) start [2025-02-12 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456399', 'tblTempVendorCDR_20' ) end [2025-02-12 03:44:18] Production.INFO: ProcessCDR(1,14456399,1,1,2) [2025-02-12 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456399', 'tblTempUsageDetail_20' ) start [2025-02-12 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456399', 'tblTempUsageDetail_20' ) end [2025-02-12 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:44:21] Production.INFO: ==24204== Releasing lock... [2025-02-12 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:45:05 [end_date_ymd] => 2025-02-12 03:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:45:05' and `end` < '2025-02-12 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-12 03:45:18] Production.INFO: count ==154 [2025-02-12 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:45:05 - End Time 2025-02-12 03:45:05 [2025-02-12 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456404', 'tblTempUsageDetail_20' ) start [2025-02-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456404', 'tblTempUsageDetail_20' ) end [2025-02-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456404', 'tblTempVendorCDR_20' ) start [2025-02-12 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456404', 'tblTempVendorCDR_20' ) end [2025-02-12 03:45:18] Production.INFO: ProcessCDR(1,14456404,1,1,2) [2025-02-12 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456404', 'tblTempUsageDetail_20' ) start [2025-02-12 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456404', 'tblTempUsageDetail_20' ) end [2025-02-12 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:45:21] Production.INFO: ==24285== Releasing lock... [2025-02-12 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:46:06 [end_date_ymd] => 2025-02-12 03:46:06 [RateCDR] => 1 ) [2025-02-12 03: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-12 00:46:06' and `end` < '2025-02-12 03: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-12 03:46:19] Production.INFO: count ==154 [2025-02-12 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:46:06 - End Time 2025-02-12 03:46:06 [2025-02-12 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456409', 'tblTempUsageDetail_20' ) start [2025-02-12 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456409', 'tblTempUsageDetail_20' ) end [2025-02-12 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456409', 'tblTempVendorCDR_20' ) start [2025-02-12 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456409', 'tblTempVendorCDR_20' ) end [2025-02-12 03:46:19] Production.INFO: ProcessCDR(1,14456409,1,1,2) [2025-02-12 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456409', 'tblTempUsageDetail_20' ) start [2025-02-12 03:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456409', 'tblTempUsageDetail_20' ) end [2025-02-12 03:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:46:23] Production.INFO: ==24374== Releasing lock... [2025-02-12 03:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:46:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:47:05 [end_date_ymd] => 2025-02-12 03:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:47:05' and `end` < '2025-02-12 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-12 03:47:20] Production.INFO: count ==154 [2025-02-12 03:47:20] Production.ERROR: pbx CDR StartTime 2025-02-12 00:47:05 - End Time 2025-02-12 03:47:05 [2025-02-12 03:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456414', 'tblTempUsageDetail_20' ) start [2025-02-12 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456414', 'tblTempUsageDetail_20' ) end [2025-02-12 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456414', 'tblTempVendorCDR_20' ) start [2025-02-12 03:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456414', 'tblTempVendorCDR_20' ) end [2025-02-12 03:47:20] Production.INFO: ProcessCDR(1,14456414,1,1,2) [2025-02-12 03:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456414', 'tblTempUsageDetail_20' ) start [2025-02-12 03:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456414', 'tblTempUsageDetail_20' ) end [2025-02-12 03:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:47:24] Production.INFO: ==24455== Releasing lock... [2025-02-12 03:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:47:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:48:05 [end_date_ymd] => 2025-02-12 03:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:48:05' and `end` < '2025-02-12 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-12 03:48:18] Production.INFO: count ==154 [2025-02-12 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:48:05 - End Time 2025-02-12 03:48:05 [2025-02-12 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456419', 'tblTempUsageDetail_20' ) start [2025-02-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456419', 'tblTempUsageDetail_20' ) end [2025-02-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456419', 'tblTempVendorCDR_20' ) start [2025-02-12 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456419', 'tblTempVendorCDR_20' ) end [2025-02-12 03:48:18] Production.INFO: ProcessCDR(1,14456419,1,1,2) [2025-02-12 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456419', 'tblTempUsageDetail_20' ) start [2025-02-12 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456419', 'tblTempUsageDetail_20' ) end [2025-02-12 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:48:22] Production.INFO: ==24534== Releasing lock... [2025-02-12 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:49:05 [end_date_ymd] => 2025-02-12 03:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:49:05' and `end` < '2025-02-12 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-12 03:49:19] Production.INFO: count ==154 [2025-02-12 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:49:05 - End Time 2025-02-12 03:49:05 [2025-02-12 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456424', 'tblTempUsageDetail_20' ) start [2025-02-12 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456424', 'tblTempUsageDetail_20' ) end [2025-02-12 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456424', 'tblTempVendorCDR_20' ) start [2025-02-12 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456424', 'tblTempVendorCDR_20' ) end [2025-02-12 03:49:19] Production.INFO: ProcessCDR(1,14456424,1,1,2) [2025-02-12 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456424', 'tblTempUsageDetail_20' ) start [2025-02-12 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456424', 'tblTempUsageDetail_20' ) end [2025-02-12 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:49:23] Production.INFO: ==24621== Releasing lock... [2025-02-12 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:50:06 [end_date_ymd] => 2025-02-12 03:50:06 [RateCDR] => 1 ) [2025-02-12 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:50:06' and `end` < '2025-02-12 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:50:19] Production.INFO: count ==145 [2025-02-12 03:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:50:06 - End Time 2025-02-12 03:50:06 [2025-02-12 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456429', 'tblTempUsageDetail_20' ) start [2025-02-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456429', 'tblTempUsageDetail_20' ) end [2025-02-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456429', 'tblTempVendorCDR_20' ) start [2025-02-12 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456429', 'tblTempVendorCDR_20' ) end [2025-02-12 03:50:19] Production.INFO: ProcessCDR(1,14456429,1,1,2) [2025-02-12 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456429', 'tblTempUsageDetail_20' ) start [2025-02-12 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456429', 'tblTempUsageDetail_20' ) end [2025-02-12 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:50:23] Production.INFO: ==24713== Releasing lock... [2025-02-12 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:51:05 [end_date_ymd] => 2025-02-12 03:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:51:05' and `end` < '2025-02-12 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-12 03:51:18] Production.INFO: count ==122 [2025-02-12 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:51:05 - End Time 2025-02-12 03:51:05 [2025-02-12 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456435', 'tblTempUsageDetail_20' ) start [2025-02-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456435', 'tblTempUsageDetail_20' ) end [2025-02-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456435', 'tblTempVendorCDR_20' ) start [2025-02-12 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456435', 'tblTempVendorCDR_20' ) end [2025-02-12 03:51:18] Production.INFO: ProcessCDR(1,14456435,1,1,2) [2025-02-12 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456435', 'tblTempUsageDetail_20' ) start [2025-02-12 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456435', 'tblTempUsageDetail_20' ) end [2025-02-12 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:51:22] Production.INFO: ==24796== Releasing lock... [2025-02-12 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:52:06 [end_date_ymd] => 2025-02-12 03:52:06 [RateCDR] => 1 ) [2025-02-12 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:52:06' and `end` < '2025-02-12 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:52:19] Production.INFO: count ==121 [2025-02-12 03:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:52:06 - End Time 2025-02-12 03:52:06 [2025-02-12 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456440', 'tblTempUsageDetail_20' ) start [2025-02-12 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456440', 'tblTempUsageDetail_20' ) end [2025-02-12 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456440', 'tblTempVendorCDR_20' ) start [2025-02-12 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456440', 'tblTempVendorCDR_20' ) end [2025-02-12 03:52:19] Production.INFO: ProcessCDR(1,14456440,1,1,2) [2025-02-12 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456440', 'tblTempUsageDetail_20' ) start [2025-02-12 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456440', 'tblTempUsageDetail_20' ) end [2025-02-12 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:52:23] Production.INFO: ==24879== Releasing lock... [2025-02-12 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:52:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:53:05 [end_date_ymd] => 2025-02-12 03:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:53:05' and `end` < '2025-02-12 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-12 03:53:19] Production.INFO: count ==121 [2025-02-12 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 00:53:05 - End Time 2025-02-12 03:53:05 [2025-02-12 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456445', 'tblTempUsageDetail_20' ) start [2025-02-12 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456445', 'tblTempUsageDetail_20' ) end [2025-02-12 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456445', 'tblTempVendorCDR_20' ) start [2025-02-12 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456445', 'tblTempVendorCDR_20' ) end [2025-02-12 03:53:19] Production.INFO: ProcessCDR(1,14456445,1,1,2) [2025-02-12 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456445', 'tblTempUsageDetail_20' ) start [2025-02-12 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456445', 'tblTempUsageDetail_20' ) end [2025-02-12 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:53:22] Production.INFO: ==24961== Releasing lock... [2025-02-12 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:54:06 [end_date_ymd] => 2025-02-12 03:54:06 [RateCDR] => 1 ) [2025-02-12 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:54:06' and `end` < '2025-02-12 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:54:18] Production.INFO: count ==121 [2025-02-12 03:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:54:06 - End Time 2025-02-12 03:54:06 [2025-02-12 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456450', 'tblTempUsageDetail_20' ) start [2025-02-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456450', 'tblTempUsageDetail_20' ) end [2025-02-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456450', 'tblTempVendorCDR_20' ) start [2025-02-12 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456450', 'tblTempVendorCDR_20' ) end [2025-02-12 03:54:18] Production.INFO: ProcessCDR(1,14456450,1,1,2) [2025-02-12 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456450', 'tblTempUsageDetail_20' ) start [2025-02-12 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456450', 'tblTempUsageDetail_20' ) end [2025-02-12 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:54:22] Production.INFO: ==25042== Releasing lock... [2025-02-12 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:55:05 [end_date_ymd] => 2025-02-12 03:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:55:05' and `end` < '2025-02-12 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-12 03:55:18] Production.INFO: count ==121 [2025-02-12 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:55:05 - End Time 2025-02-12 03:55:05 [2025-02-12 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456455', 'tblTempUsageDetail_20' ) start [2025-02-12 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456455', 'tblTempUsageDetail_20' ) end [2025-02-12 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456455', 'tblTempVendorCDR_20' ) start [2025-02-12 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456455', 'tblTempVendorCDR_20' ) end [2025-02-12 03:55:18] Production.INFO: ProcessCDR(1,14456455,1,1,2) [2025-02-12 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456455', 'tblTempUsageDetail_20' ) start [2025-02-12 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456455', 'tblTempUsageDetail_20' ) end [2025-02-12 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:55:22] Production.INFO: ==25120== Releasing lock... [2025-02-12 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:56:06 [end_date_ymd] => 2025-02-12 03:56:06 [RateCDR] => 1 ) [2025-02-12 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:56:06' and `end` < '2025-02-12 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:56:20] Production.INFO: count ==122 [2025-02-12 03:56:20] Production.ERROR: pbx CDR StartTime 2025-02-12 00:56:06 - End Time 2025-02-12 03:56:06 [2025-02-12 03:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456460', 'tblTempUsageDetail_20' ) start [2025-02-12 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456460', 'tblTempUsageDetail_20' ) end [2025-02-12 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456460', 'tblTempVendorCDR_20' ) start [2025-02-12 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456460', 'tblTempVendorCDR_20' ) end [2025-02-12 03:56:20] Production.INFO: ProcessCDR(1,14456460,1,1,2) [2025-02-12 03:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456460', 'tblTempUsageDetail_20' ) start [2025-02-12 03:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456460', 'tblTempUsageDetail_20' ) end [2025-02-12 03:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:56:25] Production.INFO: ==25196== Releasing lock... [2025-02-12 03:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:56:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:57:05 [end_date_ymd] => 2025-02-12 03:57:05 [RateCDR] => 1 ) [2025-02-12 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:57:05' and `end` < '2025-02-12 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:57:18] Production.INFO: count ==122 [2025-02-12 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:57:05 - End Time 2025-02-12 03:57:05 [2025-02-12 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456465', 'tblTempUsageDetail_20' ) start [2025-02-12 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456465', 'tblTempUsageDetail_20' ) end [2025-02-12 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456465', 'tblTempVendorCDR_20' ) start [2025-02-12 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456465', 'tblTempVendorCDR_20' ) end [2025-02-12 03:57:18] Production.INFO: ProcessCDR(1,14456465,1,1,2) [2025-02-12 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456465', 'tblTempUsageDetail_20' ) start [2025-02-12 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456465', 'tblTempUsageDetail_20' ) end [2025-02-12 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:57:22] Production.INFO: ==25268== Releasing lock... [2025-02-12 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:58:05 [end_date_ymd] => 2025-02-12 03:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 00:58:05' and `end` < '2025-02-12 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-12 03:58:18] Production.INFO: count ==122 [2025-02-12 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:58:05 - End Time 2025-02-12 03:58:05 [2025-02-12 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456470', 'tblTempUsageDetail_20' ) start [2025-02-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456470', 'tblTempUsageDetail_20' ) end [2025-02-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456470', 'tblTempVendorCDR_20' ) start [2025-02-12 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456470', 'tblTempVendorCDR_20' ) end [2025-02-12 03:58:18] Production.INFO: ProcessCDR(1,14456470,1,1,2) [2025-02-12 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456470', 'tblTempUsageDetail_20' ) start [2025-02-12 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456470', 'tblTempUsageDetail_20' ) end [2025-02-12 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:58:22] Production.INFO: ==25344== Releasing lock... [2025-02-12 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 00:59:05 [end_date_ymd] => 2025-02-12 03:59:05 [RateCDR] => 1 ) [2025-02-12 03:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 00:59:05' and `end` < '2025-02-12 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 03:59:18] Production.INFO: count ==122 [2025-02-12 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-12 00:59:05 - End Time 2025-02-12 03:59:05 [2025-02-12 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456475', 'tblTempUsageDetail_20' ) start [2025-02-12 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456475', 'tblTempUsageDetail_20' ) end [2025-02-12 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456475', 'tblTempVendorCDR_20' ) start [2025-02-12 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456475', 'tblTempVendorCDR_20' ) end [2025-02-12 03:59:18] Production.INFO: ProcessCDR(1,14456475,1,1,2) [2025-02-12 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456475', 'tblTempUsageDetail_20' ) start [2025-02-12 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456475', 'tblTempUsageDetail_20' ) end [2025-02-12 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 03:59:22] Production.INFO: ==25473== Releasing lock... [2025-02-12 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 03:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:00:06 [end_date_ymd] => 2025-02-12 04:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 01:00:06' and `end` < '2025-02-12 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-12 04:00:19] Production.INFO: count ==114 [2025-02-12 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:00:06 - End Time 2025-02-12 04:00:06 [2025-02-12 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456481', 'tblTempUsageDetail_20' ) start [2025-02-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456481', 'tblTempUsageDetail_20' ) end [2025-02-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456481', 'tblTempVendorCDR_20' ) start [2025-02-12 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456481', 'tblTempVendorCDR_20' ) end [2025-02-12 04:00:19] Production.INFO: ProcessCDR(1,14456481,1,1,2) [2025-02-12 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456481', 'tblTempUsageDetail_20' ) start [2025-02-12 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456481', 'tblTempUsageDetail_20' ) end [2025-02-12 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:00:23] Production.INFO: ==25552== Releasing lock... [2025-02-12 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:01:05 [end_date_ymd] => 2025-02-12 04:01:05 [RateCDR] => 1 ) [2025-02-12 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:01:05' and `end` < '2025-02-12 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:01:18] Production.INFO: count ==118 [2025-02-12 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:01:05 - End Time 2025-02-12 04:01:05 [2025-02-12 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456487', 'tblTempUsageDetail_20' ) start [2025-02-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456487', 'tblTempUsageDetail_20' ) end [2025-02-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456487', 'tblTempVendorCDR_20' ) start [2025-02-12 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456487', 'tblTempVendorCDR_20' ) end [2025-02-12 04:01:18] Production.INFO: ProcessCDR(1,14456487,1,1,2) [2025-02-12 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456487', 'tblTempUsageDetail_20' ) start [2025-02-12 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456487', 'tblTempUsageDetail_20' ) end [2025-02-12 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:01:22] Production.INFO: ==25645== Releasing lock... [2025-02-12 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:02:05 [end_date_ymd] => 2025-02-12 04:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:02:05' and `end` < '2025-02-12 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-12 04:02:19] Production.INFO: count ==118 [2025-02-12 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:02:05 - End Time 2025-02-12 04:02:05 [2025-02-12 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456492', 'tblTempUsageDetail_20' ) start [2025-02-12 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456492', 'tblTempUsageDetail_20' ) end [2025-02-12 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456492', 'tblTempVendorCDR_20' ) start [2025-02-12 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456492', 'tblTempVendorCDR_20' ) end [2025-02-12 04:02:19] Production.INFO: ProcessCDR(1,14456492,1,1,2) [2025-02-12 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456492', 'tblTempUsageDetail_20' ) start [2025-02-12 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456492', 'tblTempUsageDetail_20' ) end [2025-02-12 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:02:22] Production.INFO: ==25721== Releasing lock... [2025-02-12 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:03:06 [end_date_ymd] => 2025-02-12 04:03:06 [RateCDR] => 1 ) [2025-02-12 04:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:03:06' and `end` < '2025-02-12 04:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:03:18] Production.INFO: count ==118 [2025-02-12 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:03:06 - End Time 2025-02-12 04:03:06 [2025-02-12 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456497', 'tblTempUsageDetail_20' ) start [2025-02-12 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456497', 'tblTempUsageDetail_20' ) end [2025-02-12 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456497', 'tblTempVendorCDR_20' ) start [2025-02-12 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456497', 'tblTempVendorCDR_20' ) end [2025-02-12 04:03:18] Production.INFO: ProcessCDR(1,14456497,1,1,2) [2025-02-12 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456497', 'tblTempUsageDetail_20' ) start [2025-02-12 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456497', 'tblTempUsageDetail_20' ) end [2025-02-12 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:03:22] Production.INFO: ==25801== Releasing lock... [2025-02-12 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:04:05 [end_date_ymd] => 2025-02-12 04:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:04:05' and `end` < '2025-02-12 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-12 04:04:18] Production.INFO: count ==118 [2025-02-12 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:04:05 - End Time 2025-02-12 04:04:05 [2025-02-12 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456502', 'tblTempUsageDetail_20' ) start [2025-02-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456502', 'tblTempUsageDetail_20' ) end [2025-02-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456502', 'tblTempVendorCDR_20' ) start [2025-02-12 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456502', 'tblTempVendorCDR_20' ) end [2025-02-12 04:04:18] Production.INFO: ProcessCDR(1,14456502,1,1,2) [2025-02-12 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456502', 'tblTempUsageDetail_20' ) start [2025-02-12 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456502', 'tblTempUsageDetail_20' ) end [2025-02-12 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:04:21] Production.INFO: ==25880== Releasing lock... [2025-02-12 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:05:05 [end_date_ymd] => 2025-02-12 04:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:05:05' and `end` < '2025-02-12 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-12 04:05:18] Production.INFO: count ==118 [2025-02-12 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:05:05 - End Time 2025-02-12 04:05:05 [2025-02-12 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456507', 'tblTempUsageDetail_20' ) start [2025-02-12 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456507', 'tblTempUsageDetail_20' ) end [2025-02-12 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456507', 'tblTempVendorCDR_20' ) start [2025-02-12 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456507', 'tblTempVendorCDR_20' ) end [2025-02-12 04:05:18] Production.INFO: ProcessCDR(1,14456507,1,1,2) [2025-02-12 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456507', 'tblTempUsageDetail_20' ) start [2025-02-12 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456507', 'tblTempUsageDetail_20' ) end [2025-02-12 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:05:21] Production.INFO: ==25955== Releasing lock... [2025-02-12 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:06:04 [end_date_ymd] => 2025-02-12 04:06:04 [RateCDR] => 1 ) [2025-02-12 04: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-12 01:06:04' and `end` < '2025-02-12 04: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-12 04:06:18] Production.INFO: count ==118 [2025-02-12 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:06:04 - End Time 2025-02-12 04:06:04 [2025-02-12 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456512', 'tblTempUsageDetail_20' ) start [2025-02-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456512', 'tblTempUsageDetail_20' ) end [2025-02-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456512', 'tblTempVendorCDR_20' ) start [2025-02-12 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456512', 'tblTempVendorCDR_20' ) end [2025-02-12 04:06:18] Production.INFO: ProcessCDR(1,14456512,1,1,2) [2025-02-12 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456512', 'tblTempUsageDetail_20' ) start [2025-02-12 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456512', 'tblTempUsageDetail_20' ) end [2025-02-12 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:06:21] Production.INFO: ==26025== Releasing lock... [2025-02-12 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:07:06 [end_date_ymd] => 2025-02-12 04:07:06 [RateCDR] => 1 ) [2025-02-12 04:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:07:06' and `end` < '2025-02-12 04:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:07:19] Production.INFO: count ==118 [2025-02-12 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:07:06 - End Time 2025-02-12 04:07:06 [2025-02-12 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456517', 'tblTempUsageDetail_20' ) start [2025-02-12 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456517', 'tblTempUsageDetail_20' ) end [2025-02-12 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456517', 'tblTempVendorCDR_20' ) start [2025-02-12 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456517', 'tblTempVendorCDR_20' ) end [2025-02-12 04:07:19] Production.INFO: ProcessCDR(1,14456517,1,1,2) [2025-02-12 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456517', 'tblTempUsageDetail_20' ) start [2025-02-12 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456517', 'tblTempUsageDetail_20' ) end [2025-02-12 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:07:22] Production.INFO: ==26106== Releasing lock... [2025-02-12 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:08:06 [end_date_ymd] => 2025-02-12 04:08:06 [RateCDR] => 1 ) [2025-02-12 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:08:06' and `end` < '2025-02-12 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:08:19] Production.INFO: count ==118 [2025-02-12 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:08:06 - End Time 2025-02-12 04:08:06 [2025-02-12 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456522', 'tblTempUsageDetail_20' ) start [2025-02-12 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456522', 'tblTempUsageDetail_20' ) end [2025-02-12 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456522', 'tblTempVendorCDR_20' ) start [2025-02-12 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456522', 'tblTempVendorCDR_20' ) end [2025-02-12 04:08:19] Production.INFO: ProcessCDR(1,14456522,1,1,2) [2025-02-12 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456522', 'tblTempUsageDetail_20' ) start [2025-02-12 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456522', 'tblTempUsageDetail_20' ) end [2025-02-12 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:08:22] Production.INFO: ==26179== Releasing lock... [2025-02-12 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:09:05 [end_date_ymd] => 2025-02-12 04:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:09:05' and `end` < '2025-02-12 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-12 04:09:18] Production.INFO: count ==118 [2025-02-12 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:09:05 - End Time 2025-02-12 04:09:05 [2025-02-12 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456527', 'tblTempUsageDetail_20' ) start [2025-02-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456527', 'tblTempUsageDetail_20' ) end [2025-02-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456527', 'tblTempVendorCDR_20' ) start [2025-02-12 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456527', 'tblTempVendorCDR_20' ) end [2025-02-12 04:09:18] Production.INFO: ProcessCDR(1,14456527,1,1,2) [2025-02-12 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456527', 'tblTempUsageDetail_20' ) start [2025-02-12 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456527', 'tblTempUsageDetail_20' ) end [2025-02-12 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:09:21] Production.INFO: ==26249== Releasing lock... [2025-02-12 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:10:07 [end_date_ymd] => 2025-02-12 04:10:07 [RateCDR] => 1 ) [2025-02-12 04: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-12 01:10:07' and `end` < '2025-02-12 04: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-12 04:10:20] Production.INFO: count ==120 [2025-02-12 04:10:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:10:07 - End Time 2025-02-12 04:10:07 [2025-02-12 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456533', 'tblTempUsageDetail_20' ) start [2025-02-12 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456533', 'tblTempUsageDetail_20' ) end [2025-02-12 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456533', 'tblTempVendorCDR_20' ) start [2025-02-12 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456533', 'tblTempVendorCDR_20' ) end [2025-02-12 04:10:20] Production.INFO: ProcessCDR(1,14456533,1,1,2) [2025-02-12 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456533', 'tblTempUsageDetail_20' ) start [2025-02-12 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456533', 'tblTempUsageDetail_20' ) end [2025-02-12 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:10:23] Production.INFO: ==26325== Releasing lock... [2025-02-12 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:11:05 [end_date_ymd] => 2025-02-12 04:11:05 [RateCDR] => 1 ) [2025-02-12 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:11:05' and `end` < '2025-02-12 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:11:18] Production.INFO: count ==120 [2025-02-12 04:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:11:05 - End Time 2025-02-12 04:11:05 [2025-02-12 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456538', 'tblTempUsageDetail_20' ) start [2025-02-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456538', 'tblTempUsageDetail_20' ) end [2025-02-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456538', 'tblTempVendorCDR_20' ) start [2025-02-12 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456538', 'tblTempVendorCDR_20' ) end [2025-02-12 04:11:18] Production.INFO: ProcessCDR(1,14456538,1,1,2) [2025-02-12 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456538', 'tblTempUsageDetail_20' ) start [2025-02-12 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456538', 'tblTempUsageDetail_20' ) end [2025-02-12 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:11:22] Production.INFO: ==26403== Releasing lock... [2025-02-12 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:12:05 [end_date_ymd] => 2025-02-12 04:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:12:05' and `end` < '2025-02-12 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-12 04:12:18] Production.INFO: count ==120 [2025-02-12 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:12:05 - End Time 2025-02-12 04:12:05 [2025-02-12 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456543', 'tblTempUsageDetail_20' ) start [2025-02-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456543', 'tblTempUsageDetail_20' ) end [2025-02-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456543', 'tblTempVendorCDR_20' ) start [2025-02-12 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456543', 'tblTempVendorCDR_20' ) end [2025-02-12 04:12:18] Production.INFO: ProcessCDR(1,14456543,1,1,2) [2025-02-12 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456543', 'tblTempUsageDetail_20' ) start [2025-02-12 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456543', 'tblTempUsageDetail_20' ) end [2025-02-12 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:12:21] Production.INFO: ==26478== Releasing lock... [2025-02-12 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:13:05 [end_date_ymd] => 2025-02-12 04:13:05 [RateCDR] => 1 ) [2025-02-12 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:13:05' and `end` < '2025-02-12 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:13:18] Production.INFO: count ==120 [2025-02-12 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:13:05 - End Time 2025-02-12 04:13:05 [2025-02-12 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456548', 'tblTempUsageDetail_20' ) start [2025-02-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456548', 'tblTempUsageDetail_20' ) end [2025-02-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456548', 'tblTempVendorCDR_20' ) start [2025-02-12 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456548', 'tblTempVendorCDR_20' ) end [2025-02-12 04:13:18] Production.INFO: ProcessCDR(1,14456548,1,1,2) [2025-02-12 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456548', 'tblTempUsageDetail_20' ) start [2025-02-12 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456548', 'tblTempUsageDetail_20' ) end [2025-02-12 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:13:21] Production.INFO: ==26547== Releasing lock... [2025-02-12 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:14:05 [end_date_ymd] => 2025-02-12 04:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:14:05' and `end` < '2025-02-12 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-12 04:14:18] Production.INFO: count ==120 [2025-02-12 04:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:14:05 - End Time 2025-02-12 04:14:05 [2025-02-12 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456553', 'tblTempUsageDetail_20' ) start [2025-02-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456553', 'tblTempUsageDetail_20' ) end [2025-02-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456553', 'tblTempVendorCDR_20' ) start [2025-02-12 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456553', 'tblTempVendorCDR_20' ) end [2025-02-12 04:14:18] Production.INFO: ProcessCDR(1,14456553,1,1,2) [2025-02-12 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456553', 'tblTempUsageDetail_20' ) start [2025-02-12 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456553', 'tblTempUsageDetail_20' ) end [2025-02-12 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:14:21] Production.INFO: ==26633== Releasing lock... [2025-02-12 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:15:06 [end_date_ymd] => 2025-02-12 04:15:06 [RateCDR] => 1 ) [2025-02-12 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:15:06' and `end` < '2025-02-12 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:15:19] Production.INFO: count ==120 [2025-02-12 04:15:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:15:06 - End Time 2025-02-12 04:15:06 [2025-02-12 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456558', 'tblTempUsageDetail_20' ) start [2025-02-12 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456558', 'tblTempUsageDetail_20' ) end [2025-02-12 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456558', 'tblTempVendorCDR_20' ) start [2025-02-12 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456558', 'tblTempVendorCDR_20' ) end [2025-02-12 04:15:19] Production.INFO: ProcessCDR(1,14456558,1,1,2) [2025-02-12 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456558', 'tblTempUsageDetail_20' ) start [2025-02-12 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456558', 'tblTempUsageDetail_20' ) end [2025-02-12 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:15:22] Production.INFO: ==26751== Releasing lock... [2025-02-12 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:16:05 [end_date_ymd] => 2025-02-12 04:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:16:05' and `end` < '2025-02-12 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-12 04:16:19] Production.INFO: count ==120 [2025-02-12 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:16:05 - End Time 2025-02-12 04:16:05 [2025-02-12 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456563', 'tblTempUsageDetail_20' ) start [2025-02-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456563', 'tblTempUsageDetail_20' ) end [2025-02-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456563', 'tblTempVendorCDR_20' ) start [2025-02-12 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456563', 'tblTempVendorCDR_20' ) end [2025-02-12 04:16:19] Production.INFO: ProcessCDR(1,14456563,1,1,2) [2025-02-12 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456563', 'tblTempUsageDetail_20' ) start [2025-02-12 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456563', 'tblTempUsageDetail_20' ) end [2025-02-12 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:16:22] Production.INFO: ==26828== Releasing lock... [2025-02-12 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:17:05 [end_date_ymd] => 2025-02-12 04:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:17:05' and `end` < '2025-02-12 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-12 04:17:19] Production.INFO: count ==120 [2025-02-12 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:17:05 - End Time 2025-02-12 04:17:05 [2025-02-12 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456568', 'tblTempUsageDetail_20' ) start [2025-02-12 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456568', 'tblTempUsageDetail_20' ) end [2025-02-12 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456568', 'tblTempVendorCDR_20' ) start [2025-02-12 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456568', 'tblTempVendorCDR_20' ) end [2025-02-12 04:17:19] Production.INFO: ProcessCDR(1,14456568,1,1,2) [2025-02-12 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456568', 'tblTempUsageDetail_20' ) start [2025-02-12 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456568', 'tblTempUsageDetail_20' ) end [2025-02-12 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:17:22] Production.INFO: ==26898== Releasing lock... [2025-02-12 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:18:06 [end_date_ymd] => 2025-02-12 04:18:06 [RateCDR] => 1 ) [2025-02-12 04:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:18:06' and `end` < '2025-02-12 04:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:18:19] Production.INFO: count ==120 [2025-02-12 04:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:18:06 - End Time 2025-02-12 04:18:06 [2025-02-12 04:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456573', 'tblTempUsageDetail_20' ) start [2025-02-12 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456573', 'tblTempUsageDetail_20' ) end [2025-02-12 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456573', 'tblTempVendorCDR_20' ) start [2025-02-12 04:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456573', 'tblTempVendorCDR_20' ) end [2025-02-12 04:18:19] Production.INFO: ProcessCDR(1,14456573,1,1,2) [2025-02-12 04:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456573', 'tblTempUsageDetail_20' ) start [2025-02-12 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456573', 'tblTempUsageDetail_20' ) end [2025-02-12 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:18:22] Production.INFO: ==26987== Releasing lock... [2025-02-12 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:19:05 [end_date_ymd] => 2025-02-12 04:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:19:05' and `end` < '2025-02-12 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-12 04:19:18] Production.INFO: count ==120 [2025-02-12 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:19:05 - End Time 2025-02-12 04:19:05 [2025-02-12 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456578', 'tblTempUsageDetail_20' ) start [2025-02-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456578', 'tblTempUsageDetail_20' ) end [2025-02-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456578', 'tblTempVendorCDR_20' ) start [2025-02-12 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456578', 'tblTempVendorCDR_20' ) end [2025-02-12 04:19:18] Production.INFO: ProcessCDR(1,14456578,1,1,2) [2025-02-12 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456578', 'tblTempUsageDetail_20' ) start [2025-02-12 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456578', 'tblTempUsageDetail_20' ) end [2025-02-12 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:19:22] Production.INFO: ==27062== Releasing lock... [2025-02-12 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:20:06 [end_date_ymd] => 2025-02-12 04:20:06 [RateCDR] => 1 ) [2025-02-12 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:20:06' and `end` < '2025-02-12 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:20:20] Production.INFO: count ==116 [2025-02-12 04:20:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:20:06 - End Time 2025-02-12 04:20:06 [2025-02-12 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456583', 'tblTempUsageDetail_20' ) start [2025-02-12 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456583', 'tblTempUsageDetail_20' ) end [2025-02-12 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456583', 'tblTempVendorCDR_20' ) start [2025-02-12 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456583', 'tblTempVendorCDR_20' ) end [2025-02-12 04:20:20] Production.INFO: ProcessCDR(1,14456583,1,1,2) [2025-02-12 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456583', 'tblTempUsageDetail_20' ) start [2025-02-12 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456583', 'tblTempUsageDetail_20' ) end [2025-02-12 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:20:23] Production.INFO: ==27140== Releasing lock... [2025-02-12 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:21:05 [end_date_ymd] => 2025-02-12 04:21:05 [RateCDR] => 1 ) [2025-02-12 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:21:05' and `end` < '2025-02-12 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:21:18] Production.INFO: count ==108 [2025-02-12 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:21:05 - End Time 2025-02-12 04:21:05 [2025-02-12 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456589', 'tblTempUsageDetail_20' ) start [2025-02-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456589', 'tblTempUsageDetail_20' ) end [2025-02-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456589', 'tblTempVendorCDR_20' ) start [2025-02-12 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456589', 'tblTempVendorCDR_20' ) end [2025-02-12 04:21:18] Production.INFO: ProcessCDR(1,14456589,1,1,2) [2025-02-12 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456589', 'tblTempUsageDetail_20' ) start [2025-02-12 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456589', 'tblTempUsageDetail_20' ) end [2025-02-12 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:21:21] Production.INFO: ==27220== Releasing lock... [2025-02-12 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:22:05 [end_date_ymd] => 2025-02-12 04:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:22:05' and `end` < '2025-02-12 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-12 04:22:18] Production.INFO: count ==108 [2025-02-12 04:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:22:05 - End Time 2025-02-12 04:22:05 [2025-02-12 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456594', 'tblTempUsageDetail_20' ) start [2025-02-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456594', 'tblTempUsageDetail_20' ) end [2025-02-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456594', 'tblTempVendorCDR_20' ) start [2025-02-12 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456594', 'tblTempVendorCDR_20' ) end [2025-02-12 04:22:18] Production.INFO: ProcessCDR(1,14456594,1,1,2) [2025-02-12 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456594', 'tblTempUsageDetail_20' ) start [2025-02-12 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456594', 'tblTempUsageDetail_20' ) end [2025-02-12 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:22:21] Production.INFO: ==27292== Releasing lock... [2025-02-12 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:23:05 [end_date_ymd] => 2025-02-12 04:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:23:05' and `end` < '2025-02-12 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-12 04:23:18] Production.INFO: count ==108 [2025-02-12 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:23:05 - End Time 2025-02-12 04:23:05 [2025-02-12 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456599', 'tblTempUsageDetail_20' ) start [2025-02-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456599', 'tblTempUsageDetail_20' ) end [2025-02-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456599', 'tblTempVendorCDR_20' ) start [2025-02-12 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456599', 'tblTempVendorCDR_20' ) end [2025-02-12 04:23:18] Production.INFO: ProcessCDR(1,14456599,1,1,2) [2025-02-12 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456599', 'tblTempUsageDetail_20' ) start [2025-02-12 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456599', 'tblTempUsageDetail_20' ) end [2025-02-12 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:23:21] Production.INFO: ==27369== Releasing lock... [2025-02-12 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:24:05 [end_date_ymd] => 2025-02-12 04:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:24:05' and `end` < '2025-02-12 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-12 04:24:19] Production.INFO: count ==108 [2025-02-12 04:24:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:24:05 - End Time 2025-02-12 04:24:05 [2025-02-12 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456604', 'tblTempUsageDetail_20' ) start [2025-02-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456604', 'tblTempUsageDetail_20' ) end [2025-02-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456604', 'tblTempVendorCDR_20' ) start [2025-02-12 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456604', 'tblTempVendorCDR_20' ) end [2025-02-12 04:24:19] Production.INFO: ProcessCDR(1,14456604,1,1,2) [2025-02-12 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456604', 'tblTempUsageDetail_20' ) start [2025-02-12 04:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456604', 'tblTempUsageDetail_20' ) end [2025-02-12 04:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:24:22] Production.INFO: ==27443== Releasing lock... [2025-02-12 04:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:25:04 [end_date_ymd] => 2025-02-12 04:25:04 [RateCDR] => 1 ) [2025-02-12 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:25:04' and `end` < '2025-02-12 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:25:17] Production.INFO: count ==108 [2025-02-12 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-12 01:25:04 - End Time 2025-02-12 04:25:04 [2025-02-12 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456609', 'tblTempUsageDetail_20' ) start [2025-02-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456609', 'tblTempUsageDetail_20' ) end [2025-02-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456609', 'tblTempVendorCDR_20' ) start [2025-02-12 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456609', 'tblTempVendorCDR_20' ) end [2025-02-12 04:25:17] Production.INFO: ProcessCDR(1,14456609,1,1,2) [2025-02-12 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456609', 'tblTempUsageDetail_20' ) start [2025-02-12 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456609', 'tblTempUsageDetail_20' ) end [2025-02-12 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:25:21] Production.INFO: ==27516== Releasing lock... [2025-02-12 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:26:05 [end_date_ymd] => 2025-02-12 04:26:05 [RateCDR] => 1 ) [2025-02-12 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:26:05' and `end` < '2025-02-12 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:26:18] Production.INFO: count ==108 [2025-02-12 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:26:05 - End Time 2025-02-12 04:26:05 [2025-02-12 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456614', 'tblTempUsageDetail_20' ) start [2025-02-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456614', 'tblTempUsageDetail_20' ) end [2025-02-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456614', 'tblTempVendorCDR_20' ) start [2025-02-12 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456614', 'tblTempVendorCDR_20' ) end [2025-02-12 04:26:18] Production.INFO: ProcessCDR(1,14456614,1,1,2) [2025-02-12 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456614', 'tblTempUsageDetail_20' ) start [2025-02-12 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456614', 'tblTempUsageDetail_20' ) end [2025-02-12 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:26:21] Production.INFO: ==27592== Releasing lock... [2025-02-12 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:27:05 [end_date_ymd] => 2025-02-12 04:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:27:05' and `end` < '2025-02-12 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-12 04:27:17] Production.INFO: count ==108 [2025-02-12 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-12 01:27:05 - End Time 2025-02-12 04:27:05 [2025-02-12 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456619', 'tblTempUsageDetail_20' ) start [2025-02-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456619', 'tblTempUsageDetail_20' ) end [2025-02-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456619', 'tblTempVendorCDR_20' ) start [2025-02-12 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456619', 'tblTempVendorCDR_20' ) end [2025-02-12 04:27:17] Production.INFO: ProcessCDR(1,14456619,1,1,2) [2025-02-12 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456619', 'tblTempUsageDetail_20' ) start [2025-02-12 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456619', 'tblTempUsageDetail_20' ) end [2025-02-12 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:27:21] Production.INFO: ==27666== Releasing lock... [2025-02-12 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:28:05 [end_date_ymd] => 2025-02-12 04:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:28:05' and `end` < '2025-02-12 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-12 04:28:18] Production.INFO: count ==108 [2025-02-12 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:28:05 - End Time 2025-02-12 04:28:05 [2025-02-12 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456624', 'tblTempUsageDetail_20' ) start [2025-02-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456624', 'tblTempUsageDetail_20' ) end [2025-02-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456624', 'tblTempVendorCDR_20' ) start [2025-02-12 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456624', 'tblTempVendorCDR_20' ) end [2025-02-12 04:28:18] Production.INFO: ProcessCDR(1,14456624,1,1,2) [2025-02-12 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456624', 'tblTempUsageDetail_20' ) start [2025-02-12 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456624', 'tblTempUsageDetail_20' ) end [2025-02-12 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:28:21] Production.INFO: ==27745== Releasing lock... [2025-02-12 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:29:05 [end_date_ymd] => 2025-02-12 04:29:05 [RateCDR] => 1 ) [2025-02-12 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:29:05' and `end` < '2025-02-12 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:29:18] Production.INFO: count ==108 [2025-02-12 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:29:05 - End Time 2025-02-12 04:29:05 [2025-02-12 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456629', 'tblTempUsageDetail_20' ) start [2025-02-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456629', 'tblTempUsageDetail_20' ) end [2025-02-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456629', 'tblTempVendorCDR_20' ) start [2025-02-12 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456629', 'tblTempVendorCDR_20' ) end [2025-02-12 04:29:18] Production.INFO: ProcessCDR(1,14456629,1,1,2) [2025-02-12 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456629', 'tblTempUsageDetail_20' ) start [2025-02-12 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456629', 'tblTempUsageDetail_20' ) end [2025-02-12 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:29:21] Production.INFO: ==27832== Releasing lock... [2025-02-12 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:30:06 [end_date_ymd] => 2025-02-12 04:30:06 [RateCDR] => 1 ) [2025-02-12 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:30:06' and `end` < '2025-02-12 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:30:18] Production.INFO: count ==110 [2025-02-12 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:30:06 - End Time 2025-02-12 04:30:06 [2025-02-12 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456635', 'tblTempUsageDetail_20' ) start [2025-02-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456635', 'tblTempUsageDetail_20' ) end [2025-02-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456635', 'tblTempVendorCDR_20' ) start [2025-02-12 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456635', 'tblTempVendorCDR_20' ) end [2025-02-12 04:30:18] Production.INFO: ProcessCDR(1,14456635,1,1,2) [2025-02-12 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456635', 'tblTempUsageDetail_20' ) start [2025-02-12 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456635', 'tblTempUsageDetail_20' ) end [2025-02-12 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:30:22] Production.INFO: ==27955== Releasing lock... [2025-02-12 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:31:06 [end_date_ymd] => 2025-02-12 04:31:06 [RateCDR] => 1 ) [2025-02-12 04:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:31:06' and `end` < '2025-02-12 04:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:31:19] Production.INFO: count ==111 [2025-02-12 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:31:06 - End Time 2025-02-12 04:31:06 [2025-02-12 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456640', 'tblTempUsageDetail_20' ) start [2025-02-12 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456640', 'tblTempUsageDetail_20' ) end [2025-02-12 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456640', 'tblTempVendorCDR_20' ) start [2025-02-12 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456640', 'tblTempVendorCDR_20' ) end [2025-02-12 04:31:19] Production.INFO: ProcessCDR(1,14456640,1,1,2) [2025-02-12 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456640', 'tblTempUsageDetail_20' ) start [2025-02-12 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456640', 'tblTempUsageDetail_20' ) end [2025-02-12 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:31:22] Production.INFO: ==28049== Releasing lock... [2025-02-12 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:32:05 [end_date_ymd] => 2025-02-12 04:32:05 [RateCDR] => 1 ) [2025-02-12 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:32:05' and `end` < '2025-02-12 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:32:18] Production.INFO: count ==111 [2025-02-12 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:32:05 - End Time 2025-02-12 04:32:05 [2025-02-12 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456646', 'tblTempUsageDetail_20' ) start [2025-02-12 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456646', 'tblTempUsageDetail_20' ) end [2025-02-12 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456646', 'tblTempVendorCDR_20' ) start [2025-02-12 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456646', 'tblTempVendorCDR_20' ) end [2025-02-12 04:32:18] Production.INFO: ProcessCDR(1,14456646,1,1,2) [2025-02-12 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456646', 'tblTempUsageDetail_20' ) start [2025-02-12 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456646', 'tblTempUsageDetail_20' ) end [2025-02-12 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:32:21] Production.INFO: ==28199== Releasing lock... [2025-02-12 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:33:05 [end_date_ymd] => 2025-02-12 04:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:33:05' and `end` < '2025-02-12 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-12 04:33:18] Production.INFO: count ==111 [2025-02-12 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:33:05 - End Time 2025-02-12 04:33:05 [2025-02-12 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456651', 'tblTempUsageDetail_20' ) start [2025-02-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456651', 'tblTempUsageDetail_20' ) end [2025-02-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456651', 'tblTempVendorCDR_20' ) start [2025-02-12 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456651', 'tblTempVendorCDR_20' ) end [2025-02-12 04:33:18] Production.INFO: ProcessCDR(1,14456651,1,1,2) [2025-02-12 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456651', 'tblTempUsageDetail_20' ) start [2025-02-12 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456651', 'tblTempUsageDetail_20' ) end [2025-02-12 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:33:21] Production.INFO: ==28331== Releasing lock... [2025-02-12 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:34:05 [end_date_ymd] => 2025-02-12 04:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:34:05' and `end` < '2025-02-12 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-12 04:34:18] Production.INFO: count ==111 [2025-02-12 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:34:05 - End Time 2025-02-12 04:34:05 [2025-02-12 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456656', 'tblTempUsageDetail_20' ) start [2025-02-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456656', 'tblTempUsageDetail_20' ) end [2025-02-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456656', 'tblTempVendorCDR_20' ) start [2025-02-12 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456656', 'tblTempVendorCDR_20' ) end [2025-02-12 04:34:18] Production.INFO: ProcessCDR(1,14456656,1,1,2) [2025-02-12 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456656', 'tblTempUsageDetail_20' ) start [2025-02-12 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456656', 'tblTempUsageDetail_20' ) end [2025-02-12 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:34:21] Production.INFO: ==28420== Releasing lock... [2025-02-12 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:35:05 [end_date_ymd] => 2025-02-12 04:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:35:05' and `end` < '2025-02-12 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-12 04:35:18] Production.INFO: count ==111 [2025-02-12 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:35:05 - End Time 2025-02-12 04:35:05 [2025-02-12 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456659', 'tblTempUsageDetail_20' ) start [2025-02-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456659', 'tblTempUsageDetail_20' ) end [2025-02-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456659', 'tblTempVendorCDR_20' ) start [2025-02-12 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456659', 'tblTempVendorCDR_20' ) end [2025-02-12 04:35:18] Production.INFO: ProcessCDR(1,14456659,1,1,2) [2025-02-12 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456659', 'tblTempUsageDetail_20' ) start [2025-02-12 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456659', 'tblTempUsageDetail_20' ) end [2025-02-12 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:35:21] Production.INFO: ==28504== Releasing lock... [2025-02-12 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:36:05 [end_date_ymd] => 2025-02-12 04:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:36:05' and `end` < '2025-02-12 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-12 04:36:18] Production.INFO: count ==111 [2025-02-12 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:36:05 - End Time 2025-02-12 04:36:05 [2025-02-12 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456666', 'tblTempUsageDetail_20' ) start [2025-02-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456666', 'tblTempUsageDetail_20' ) end [2025-02-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456666', 'tblTempVendorCDR_20' ) start [2025-02-12 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456666', 'tblTempVendorCDR_20' ) end [2025-02-12 04:36:18] Production.INFO: ProcessCDR(1,14456666,1,1,2) [2025-02-12 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456666', 'tblTempUsageDetail_20' ) start [2025-02-12 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456666', 'tblTempUsageDetail_20' ) end [2025-02-12 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:36:21] Production.INFO: ==28589== Releasing lock... [2025-02-12 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:37:05 [end_date_ymd] => 2025-02-12 04:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:37:05' and `end` < '2025-02-12 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-12 04:37:18] Production.INFO: count ==111 [2025-02-12 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:37:05 - End Time 2025-02-12 04:37:05 [2025-02-12 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456671', 'tblTempUsageDetail_20' ) start [2025-02-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456671', 'tblTempUsageDetail_20' ) end [2025-02-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456671', 'tblTempVendorCDR_20' ) start [2025-02-12 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456671', 'tblTempVendorCDR_20' ) end [2025-02-12 04:37:18] Production.INFO: ProcessCDR(1,14456671,1,1,2) [2025-02-12 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456671', 'tblTempUsageDetail_20' ) start [2025-02-12 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456671', 'tblTempUsageDetail_20' ) end [2025-02-12 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:37:21] Production.INFO: ==28670== Releasing lock... [2025-02-12 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:38:04 [end_date_ymd] => 2025-02-12 04:38:04 [RateCDR] => 1 ) [2025-02-12 04: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-12 01:38:04' and `end` < '2025-02-12 04: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-12 04:38:18] Production.INFO: count ==111 [2025-02-12 04:38:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:38:04 - End Time 2025-02-12 04:38:04 [2025-02-12 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456676', 'tblTempUsageDetail_20' ) start [2025-02-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456676', 'tblTempUsageDetail_20' ) end [2025-02-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456676', 'tblTempVendorCDR_20' ) start [2025-02-12 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456676', 'tblTempVendorCDR_20' ) end [2025-02-12 04:38:18] Production.INFO: ProcessCDR(1,14456676,1,1,2) [2025-02-12 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456676', 'tblTempUsageDetail_20' ) start [2025-02-12 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456676', 'tblTempUsageDetail_20' ) end [2025-02-12 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:38:21] Production.INFO: ==28750== Releasing lock... [2025-02-12 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:39:05 [end_date_ymd] => 2025-02-12 04:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:39:05' and `end` < '2025-02-12 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-12 04:39:18] Production.INFO: count ==111 [2025-02-12 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:39:05 - End Time 2025-02-12 04:39:05 [2025-02-12 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456681', 'tblTempUsageDetail_20' ) start [2025-02-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456681', 'tblTempUsageDetail_20' ) end [2025-02-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456681', 'tblTempVendorCDR_20' ) start [2025-02-12 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456681', 'tblTempVendorCDR_20' ) end [2025-02-12 04:39:18] Production.INFO: ProcessCDR(1,14456681,1,1,2) [2025-02-12 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456681', 'tblTempUsageDetail_20' ) start [2025-02-12 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456681', 'tblTempUsageDetail_20' ) end [2025-02-12 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:39:21] Production.INFO: ==28834== Releasing lock... [2025-02-12 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:40:06 [end_date_ymd] => 2025-02-12 04:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 01:40:06' and `end` < '2025-02-12 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-12 04:40:19] Production.INFO: count ==111 [2025-02-12 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:40:06 - End Time 2025-02-12 04:40:06 [2025-02-12 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456687', 'tblTempUsageDetail_20' ) start [2025-02-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456687', 'tblTempUsageDetail_20' ) end [2025-02-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456687', 'tblTempVendorCDR_20' ) start [2025-02-12 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456687', 'tblTempVendorCDR_20' ) end [2025-02-12 04:40:19] Production.INFO: ProcessCDR(1,14456687,1,1,2) [2025-02-12 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456687', 'tblTempUsageDetail_20' ) start [2025-02-12 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456687', 'tblTempUsageDetail_20' ) end [2025-02-12 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:40:22] Production.INFO: ==28919== Releasing lock... [2025-02-12 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:41:05 [end_date_ymd] => 2025-02-12 04:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:41:05' and `end` < '2025-02-12 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-12 04:41:18] Production.INFO: count ==111 [2025-02-12 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:41:05 - End Time 2025-02-12 04:41:05 [2025-02-12 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456692', 'tblTempUsageDetail_20' ) start [2025-02-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456692', 'tblTempUsageDetail_20' ) end [2025-02-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456692', 'tblTempVendorCDR_20' ) start [2025-02-12 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456692', 'tblTempVendorCDR_20' ) end [2025-02-12 04:41:18] Production.INFO: ProcessCDR(1,14456692,1,1,2) [2025-02-12 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456692', 'tblTempUsageDetail_20' ) start [2025-02-12 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456692', 'tblTempUsageDetail_20' ) end [2025-02-12 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:41:22] Production.INFO: ==29000== Releasing lock... [2025-02-12 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:42:05 [end_date_ymd] => 2025-02-12 04:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:42:05' and `end` < '2025-02-12 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-12 04:42:18] Production.INFO: count ==111 [2025-02-12 04:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:42:05 - End Time 2025-02-12 04:42:05 [2025-02-12 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456697', 'tblTempUsageDetail_20' ) start [2025-02-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456697', 'tblTempUsageDetail_20' ) end [2025-02-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456697', 'tblTempVendorCDR_20' ) start [2025-02-12 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456697', 'tblTempVendorCDR_20' ) end [2025-02-12 04:42:18] Production.INFO: ProcessCDR(1,14456697,1,1,2) [2025-02-12 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456697', 'tblTempUsageDetail_20' ) start [2025-02-12 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456697', 'tblTempUsageDetail_20' ) end [2025-02-12 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:42:21] Production.INFO: ==29076== Releasing lock... [2025-02-12 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:43:04 [end_date_ymd] => 2025-02-12 04:43:04 [RateCDR] => 1 ) [2025-02-12 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-12 01:43:04' and `end` < '2025-02-12 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-12 04:43:18] Production.INFO: count ==111 [2025-02-12 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:43:04 - End Time 2025-02-12 04:43:04 [2025-02-12 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456702', 'tblTempUsageDetail_20' ) start [2025-02-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456702', 'tblTempUsageDetail_20' ) end [2025-02-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456702', 'tblTempVendorCDR_20' ) start [2025-02-12 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456702', 'tblTempVendorCDR_20' ) end [2025-02-12 04:43:18] Production.INFO: ProcessCDR(1,14456702,1,1,2) [2025-02-12 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456702', 'tblTempUsageDetail_20' ) start [2025-02-12 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456702', 'tblTempUsageDetail_20' ) end [2025-02-12 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:43:21] Production.INFO: ==29164== Releasing lock... [2025-02-12 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:44:05 [end_date_ymd] => 2025-02-12 04:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:44:05' and `end` < '2025-02-12 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-12 04:44:18] Production.INFO: count ==111 [2025-02-12 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:44:05 - End Time 2025-02-12 04:44:05 [2025-02-12 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456707', 'tblTempUsageDetail_20' ) start [2025-02-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456707', 'tblTempUsageDetail_20' ) end [2025-02-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456707', 'tblTempVendorCDR_20' ) start [2025-02-12 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456707', 'tblTempVendorCDR_20' ) end [2025-02-12 04:44:18] Production.INFO: ProcessCDR(1,14456707,1,1,2) [2025-02-12 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456707', 'tblTempUsageDetail_20' ) start [2025-02-12 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456707', 'tblTempUsageDetail_20' ) end [2025-02-12 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:44:22] Production.INFO: ==29250== Releasing lock... [2025-02-12 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:44:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:45:05 [end_date_ymd] => 2025-02-12 04:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:45:05' and `end` < '2025-02-12 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-12 04:45:18] Production.INFO: count ==111 [2025-02-12 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 01:45:05 - End Time 2025-02-12 04:45:05 [2025-02-12 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456712', 'tblTempUsageDetail_20' ) start [2025-02-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456712', 'tblTempUsageDetail_20' ) end [2025-02-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456712', 'tblTempVendorCDR_20' ) start [2025-02-12 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456712', 'tblTempVendorCDR_20' ) end [2025-02-12 04:45:18] Production.INFO: ProcessCDR(1,14456712,1,1,2) [2025-02-12 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456712', 'tblTempUsageDetail_20' ) start [2025-02-12 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456712', 'tblTempUsageDetail_20' ) end [2025-02-12 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:45:21] Production.INFO: ==29330== Releasing lock... [2025-02-12 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:46:05 [end_date_ymd] => 2025-02-12 04:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:46:05' and `end` < '2025-02-12 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-12 04:46:26] Production.INFO: count ==111 [2025-02-12 04:46:26] Production.ERROR: pbx CDR StartTime 2025-02-12 01:46:05 - End Time 2025-02-12 04:46:05 [2025-02-12 04:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456717', 'tblTempUsageDetail_20' ) start [2025-02-12 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456717', 'tblTempUsageDetail_20' ) end [2025-02-12 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456717', 'tblTempVendorCDR_20' ) start [2025-02-12 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456717', 'tblTempVendorCDR_20' ) end [2025-02-12 04:46:26] Production.INFO: ProcessCDR(1,14456717,1,1,2) [2025-02-12 04:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456717', 'tblTempUsageDetail_20' ) start [2025-02-12 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456717', 'tblTempUsageDetail_20' ) end [2025-02-12 04:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:46:29] Production.INFO: ==29448== Releasing lock... [2025-02-12 04:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:46:29] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:47:05 [end_date_ymd] => 2025-02-12 04:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:47:05' and `end` < '2025-02-12 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-12 04:47:21] Production.INFO: count ==111 [2025-02-12 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-12 01:47:05 - End Time 2025-02-12 04:47:05 [2025-02-12 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456722', 'tblTempUsageDetail_20' ) start [2025-02-12 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456722', 'tblTempUsageDetail_20' ) end [2025-02-12 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456722', 'tblTempVendorCDR_20' ) start [2025-02-12 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456722', 'tblTempVendorCDR_20' ) end [2025-02-12 04:47:21] Production.INFO: ProcessCDR(1,14456722,1,1,2) [2025-02-12 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456722', 'tblTempUsageDetail_20' ) start [2025-02-12 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456722', 'tblTempUsageDetail_20' ) end [2025-02-12 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:47:24] Production.INFO: ==29528== Releasing lock... [2025-02-12 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:47:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:48:05 [end_date_ymd] => 2025-02-12 04:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:48:05' and `end` < '2025-02-12 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-12 04:48:19] Production.INFO: count ==111 [2025-02-12 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:48:05 - End Time 2025-02-12 04:48:05 [2025-02-12 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456727', 'tblTempUsageDetail_20' ) start [2025-02-12 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456727', 'tblTempUsageDetail_20' ) end [2025-02-12 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456727', 'tblTempVendorCDR_20' ) start [2025-02-12 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456727', 'tblTempVendorCDR_20' ) end [2025-02-12 04:48:19] Production.INFO: ProcessCDR(1,14456727,1,1,2) [2025-02-12 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456727', 'tblTempUsageDetail_20' ) start [2025-02-12 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456727', 'tblTempUsageDetail_20' ) end [2025-02-12 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:48:22] Production.INFO: ==29607== Releasing lock... [2025-02-12 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:49:05 [end_date_ymd] => 2025-02-12 04:49:05 [RateCDR] => 1 ) [2025-02-12 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:49:05' and `end` < '2025-02-12 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:49:20] Production.INFO: count ==111 [2025-02-12 04:49:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:49:05 - End Time 2025-02-12 04:49:05 [2025-02-12 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456732', 'tblTempUsageDetail_20' ) start [2025-02-12 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456732', 'tblTempUsageDetail_20' ) end [2025-02-12 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456732', 'tblTempVendorCDR_20' ) start [2025-02-12 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456732', 'tblTempVendorCDR_20' ) end [2025-02-12 04:49:20] Production.INFO: ProcessCDR(1,14456732,1,1,2) [2025-02-12 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456732', 'tblTempUsageDetail_20' ) start [2025-02-12 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456732', 'tblTempUsageDetail_20' ) end [2025-02-12 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:49:23] Production.INFO: ==29691== Releasing lock... [2025-02-12 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:50:06 [end_date_ymd] => 2025-02-12 04:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 01:50:06' and `end` < '2025-02-12 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-12 04:50:21] Production.INFO: count ==111 [2025-02-12 04:50:21] Production.ERROR: pbx CDR StartTime 2025-02-12 01:50:06 - End Time 2025-02-12 04:50:06 [2025-02-12 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456738', 'tblTempUsageDetail_20' ) start [2025-02-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456738', 'tblTempUsageDetail_20' ) end [2025-02-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456738', 'tblTempVendorCDR_20' ) start [2025-02-12 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456738', 'tblTempVendorCDR_20' ) end [2025-02-12 04:50:21] Production.INFO: ProcessCDR(1,14456738,1,1,2) [2025-02-12 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456738', 'tblTempUsageDetail_20' ) start [2025-02-12 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456738', 'tblTempUsageDetail_20' ) end [2025-02-12 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:50:24] Production.INFO: ==29775== Releasing lock... [2025-02-12 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:50:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:51:05 [end_date_ymd] => 2025-02-12 04:51:05 [RateCDR] => 1 ) [2025-02-12 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:51:05' and `end` < '2025-02-12 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:51:20] Production.INFO: count ==111 [2025-02-12 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:51:05 - End Time 2025-02-12 04:51:05 [2025-02-12 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456743', 'tblTempUsageDetail_20' ) start [2025-02-12 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456743', 'tblTempUsageDetail_20' ) end [2025-02-12 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456743', 'tblTempVendorCDR_20' ) start [2025-02-12 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456743', 'tblTempVendorCDR_20' ) end [2025-02-12 04:51:20] Production.INFO: ProcessCDR(1,14456743,1,1,2) [2025-02-12 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456743', 'tblTempUsageDetail_20' ) start [2025-02-12 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456743', 'tblTempUsageDetail_20' ) end [2025-02-12 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:51:23] Production.INFO: ==29855== Releasing lock... [2025-02-12 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:51:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:52:05 [end_date_ymd] => 2025-02-12 04:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:52:05' and `end` < '2025-02-12 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-12 04:52:20] Production.INFO: count ==111 [2025-02-12 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:52:05 - End Time 2025-02-12 04:52:05 [2025-02-12 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456748', 'tblTempUsageDetail_20' ) start [2025-02-12 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456748', 'tblTempUsageDetail_20' ) end [2025-02-12 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456748', 'tblTempVendorCDR_20' ) start [2025-02-12 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456748', 'tblTempVendorCDR_20' ) end [2025-02-12 04:52:20] Production.INFO: ProcessCDR(1,14456748,1,1,2) [2025-02-12 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456748', 'tblTempUsageDetail_20' ) start [2025-02-12 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456748', 'tblTempUsageDetail_20' ) end [2025-02-12 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:52:23] Production.INFO: ==29933== Releasing lock... [2025-02-12 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:52:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:53:05 [end_date_ymd] => 2025-02-12 04:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:53:05' and `end` < '2025-02-12 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-12 04:53:20] Production.INFO: count ==111 [2025-02-12 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:53:05 - End Time 2025-02-12 04:53:05 [2025-02-12 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456753', 'tblTempUsageDetail_20' ) start [2025-02-12 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456753', 'tblTempUsageDetail_20' ) end [2025-02-12 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456753', 'tblTempVendorCDR_20' ) start [2025-02-12 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456753', 'tblTempVendorCDR_20' ) end [2025-02-12 04:53:20] Production.INFO: ProcessCDR(1,14456753,1,1,2) [2025-02-12 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456753', 'tblTempUsageDetail_20' ) start [2025-02-12 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456753', 'tblTempUsageDetail_20' ) end [2025-02-12 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:53:23] Production.INFO: ==30009== Releasing lock... [2025-02-12 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:54:05 [end_date_ymd] => 2025-02-12 04:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:54:05' and `end` < '2025-02-12 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-12 04:54:21] Production.INFO: count ==115 [2025-02-12 04:54:21] Production.ERROR: pbx CDR StartTime 2025-02-12 01:54:05 - End Time 2025-02-12 04:54:05 [2025-02-12 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456758', 'tblTempUsageDetail_20' ) start [2025-02-12 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456758', 'tblTempUsageDetail_20' ) end [2025-02-12 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456758', 'tblTempVendorCDR_20' ) start [2025-02-12 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456758', 'tblTempVendorCDR_20' ) end [2025-02-12 04:54:21] Production.INFO: ProcessCDR(1,14456758,1,1,2) [2025-02-12 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456758', 'tblTempUsageDetail_20' ) start [2025-02-12 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456758', 'tblTempUsageDetail_20' ) end [2025-02-12 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:54:24] Production.INFO: ==30086== Releasing lock... [2025-02-12 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:54:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:55:04 [end_date_ymd] => 2025-02-12 04:55:04 [RateCDR] => 1 ) [2025-02-12 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 01:55:04' and `end` < '2025-02-12 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 04:55:19] Production.INFO: count ==115 [2025-02-12 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:55:04 - End Time 2025-02-12 04:55:04 [2025-02-12 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456761', 'tblTempUsageDetail_20' ) start [2025-02-12 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456761', 'tblTempUsageDetail_20' ) end [2025-02-12 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456761', 'tblTempVendorCDR_20' ) start [2025-02-12 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456761', 'tblTempVendorCDR_20' ) end [2025-02-12 04:55:19] Production.INFO: ProcessCDR(1,14456761,1,1,2) [2025-02-12 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456761', 'tblTempUsageDetail_20' ) start [2025-02-12 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456761', 'tblTempUsageDetail_20' ) end [2025-02-12 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:55:22] Production.INFO: ==30158== Releasing lock... [2025-02-12 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:56:05 [end_date_ymd] => 2025-02-12 04:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:56:05' and `end` < '2025-02-12 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-12 04:56:20] Production.INFO: count ==115 [2025-02-12 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:56:05 - End Time 2025-02-12 04:56:05 [2025-02-12 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456768', 'tblTempUsageDetail_20' ) start [2025-02-12 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456768', 'tblTempUsageDetail_20' ) end [2025-02-12 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456768', 'tblTempVendorCDR_20' ) start [2025-02-12 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456768', 'tblTempVendorCDR_20' ) end [2025-02-12 04:56:20] Production.INFO: ProcessCDR(1,14456768,1,1,2) [2025-02-12 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456768', 'tblTempUsageDetail_20' ) start [2025-02-12 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456768', 'tblTempUsageDetail_20' ) end [2025-02-12 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:56:23] Production.INFO: ==30236== Releasing lock... [2025-02-12 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:56:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:57:05 [end_date_ymd] => 2025-02-12 04:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:57:05' and `end` < '2025-02-12 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-12 04:57:20] Production.INFO: count ==115 [2025-02-12 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-12 01:57:05 - End Time 2025-02-12 04:57:05 [2025-02-12 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456773', 'tblTempUsageDetail_20' ) start [2025-02-12 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456773', 'tblTempUsageDetail_20' ) end [2025-02-12 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456773', 'tblTempVendorCDR_20' ) start [2025-02-12 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456773', 'tblTempVendorCDR_20' ) end [2025-02-12 04:57:20] Production.INFO: ProcessCDR(1,14456773,1,1,2) [2025-02-12 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456773', 'tblTempUsageDetail_20' ) start [2025-02-12 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456773', 'tblTempUsageDetail_20' ) end [2025-02-12 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:57:23] Production.INFO: ==30323== Releasing lock... [2025-02-12 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:57:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:58:05 [end_date_ymd] => 2025-02-12 04:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 01:58:05' and `end` < '2025-02-12 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-12 04:58:19] Production.INFO: count ==115 [2025-02-12 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:58:05 - End Time 2025-02-12 04:58:05 [2025-02-12 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456778', 'tblTempUsageDetail_20' ) start [2025-02-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456778', 'tblTempUsageDetail_20' ) end [2025-02-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456778', 'tblTempVendorCDR_20' ) start [2025-02-12 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456778', 'tblTempVendorCDR_20' ) end [2025-02-12 04:58:19] Production.INFO: ProcessCDR(1,14456778,1,1,2) [2025-02-12 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456778', 'tblTempUsageDetail_20' ) start [2025-02-12 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456778', 'tblTempUsageDetail_20' ) end [2025-02-12 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:58:22] Production.INFO: ==30429== Releasing lock... [2025-02-12 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 01:59:04 [end_date_ymd] => 2025-02-12 04:59:04 [RateCDR] => 1 ) [2025-02-12 04: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-12 01:59:04' and `end` < '2025-02-12 04: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-12 04:59:19] Production.INFO: count ==115 [2025-02-12 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 01:59:04 - End Time 2025-02-12 04:59:04 [2025-02-12 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456783', 'tblTempUsageDetail_20' ) start [2025-02-12 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456783', 'tblTempUsageDetail_20' ) end [2025-02-12 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456783', 'tblTempVendorCDR_20' ) start [2025-02-12 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456783', 'tblTempVendorCDR_20' ) end [2025-02-12 04:59:19] Production.INFO: ProcessCDR(1,14456783,1,1,2) [2025-02-12 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456783', 'tblTempUsageDetail_20' ) start [2025-02-12 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456783', 'tblTempUsageDetail_20' ) end [2025-02-12 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 04:59:22] Production.INFO: ==30505== Releasing lock... [2025-02-12 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 04:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:00:06 [end_date_ymd] => 2025-02-12 05:00:06 [RateCDR] => 1 ) [2025-02-12 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:00:06' and `end` < '2025-02-12 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:00:21] Production.INFO: count ==116 [2025-02-12 05:00:21] Production.ERROR: pbx CDR StartTime 2025-02-12 02:00:06 - End Time 2025-02-12 05:00:06 [2025-02-12 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456788', 'tblTempUsageDetail_20' ) start [2025-02-12 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456788', 'tblTempUsageDetail_20' ) end [2025-02-12 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456788', 'tblTempVendorCDR_20' ) start [2025-02-12 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456788', 'tblTempVendorCDR_20' ) end [2025-02-12 05:00:21] Production.INFO: ProcessCDR(1,14456788,1,1,2) [2025-02-12 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456788', 'tblTempUsageDetail_20' ) start [2025-02-12 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456788', 'tblTempUsageDetail_20' ) end [2025-02-12 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:00:24] Production.INFO: ==30587== Releasing lock... [2025-02-12 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:01:05 [end_date_ymd] => 2025-02-12 05:01:05 [RateCDR] => 1 ) [2025-02-12 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:01:05' and `end` < '2025-02-12 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:01:20] Production.INFO: count ==120 [2025-02-12 05:01:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:01:05 - End Time 2025-02-12 05:01:05 [2025-02-12 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456794', 'tblTempUsageDetail_20' ) start [2025-02-12 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456794', 'tblTempUsageDetail_20' ) end [2025-02-12 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456794', 'tblTempVendorCDR_20' ) start [2025-02-12 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456794', 'tblTempVendorCDR_20' ) end [2025-02-12 05:01:20] Production.INFO: ProcessCDR(1,14456794,1,1,2) [2025-02-12 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456794', 'tblTempUsageDetail_20' ) start [2025-02-12 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456794', 'tblTempUsageDetail_20' ) end [2025-02-12 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:01:23] Production.INFO: ==30718== Releasing lock... [2025-02-12 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:02:06 [end_date_ymd] => 2025-02-12 05:02:06 [RateCDR] => 1 ) [2025-02-12 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:02:06' and `end` < '2025-02-12 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:02:21] Production.INFO: count ==120 [2025-02-12 05:02:21] Production.ERROR: pbx CDR StartTime 2025-02-12 02:02:06 - End Time 2025-02-12 05:02:06 [2025-02-12 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456799', 'tblTempUsageDetail_20' ) start [2025-02-12 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456799', 'tblTempUsageDetail_20' ) end [2025-02-12 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456799', 'tblTempVendorCDR_20' ) start [2025-02-12 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456799', 'tblTempVendorCDR_20' ) end [2025-02-12 05:02:21] Production.INFO: ProcessCDR(1,14456799,1,1,2) [2025-02-12 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456799', 'tblTempUsageDetail_20' ) start [2025-02-12 05:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456799', 'tblTempUsageDetail_20' ) end [2025-02-12 05:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:02:25] Production.INFO: ==30794== Releasing lock... [2025-02-12 05:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:02:25] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:03:05 [end_date_ymd] => 2025-02-12 05:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:03:05' and `end` < '2025-02-12 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-12 05:03:20] Production.INFO: count ==120 [2025-02-12 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:03:05 - End Time 2025-02-12 05:03:05 [2025-02-12 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456804', 'tblTempUsageDetail_20' ) start [2025-02-12 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456804', 'tblTempUsageDetail_20' ) end [2025-02-12 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456804', 'tblTempVendorCDR_20' ) start [2025-02-12 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456804', 'tblTempVendorCDR_20' ) end [2025-02-12 05:03:20] Production.INFO: ProcessCDR(1,14456804,1,1,2) [2025-02-12 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456804', 'tblTempUsageDetail_20' ) start [2025-02-12 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456804', 'tblTempUsageDetail_20' ) end [2025-02-12 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:03:23] Production.INFO: ==30865== Releasing lock... [2025-02-12 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:04:06 [end_date_ymd] => 2025-02-12 05:04:06 [RateCDR] => 1 ) [2025-02-12 05: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-12 02:04:06' and `end` < '2025-02-12 05: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-12 05:04:20] Production.INFO: count ==120 [2025-02-12 05:04:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:04:06 - End Time 2025-02-12 05:04:06 [2025-02-12 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456809', 'tblTempUsageDetail_20' ) start [2025-02-12 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456809', 'tblTempUsageDetail_20' ) end [2025-02-12 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456809', 'tblTempVendorCDR_20' ) start [2025-02-12 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456809', 'tblTempVendorCDR_20' ) end [2025-02-12 05:04:20] Production.INFO: ProcessCDR(1,14456809,1,1,2) [2025-02-12 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456809', 'tblTempUsageDetail_20' ) start [2025-02-12 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456809', 'tblTempUsageDetail_20' ) end [2025-02-12 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:04:23] Production.INFO: ==30939== Releasing lock... [2025-02-12 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:04:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:05:05 [end_date_ymd] => 2025-02-12 05:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:05:05' and `end` < '2025-02-12 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-12 05:05:18] Production.INFO: count ==120 [2025-02-12 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:05:05 - End Time 2025-02-12 05:05:05 [2025-02-12 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456814', 'tblTempUsageDetail_20' ) start [2025-02-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456814', 'tblTempUsageDetail_20' ) end [2025-02-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456814', 'tblTempVendorCDR_20' ) start [2025-02-12 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456814', 'tblTempVendorCDR_20' ) end [2025-02-12 05:05:18] Production.INFO: ProcessCDR(1,14456814,1,1,2) [2025-02-12 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456814', 'tblTempUsageDetail_20' ) start [2025-02-12 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456814', 'tblTempUsageDetail_20' ) end [2025-02-12 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:05:21] Production.INFO: ==31014== Releasing lock... [2025-02-12 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:06:05 [end_date_ymd] => 2025-02-12 05:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:06:05' and `end` < '2025-02-12 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-12 05:06:19] Production.INFO: count ==120 [2025-02-12 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:06:05 - End Time 2025-02-12 05:06:05 [2025-02-12 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456819', 'tblTempUsageDetail_20' ) start [2025-02-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456819', 'tblTempUsageDetail_20' ) end [2025-02-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456819', 'tblTempVendorCDR_20' ) start [2025-02-12 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456819', 'tblTempVendorCDR_20' ) end [2025-02-12 05:06:19] Production.INFO: ProcessCDR(1,14456819,1,1,2) [2025-02-12 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456819', 'tblTempUsageDetail_20' ) start [2025-02-12 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456819', 'tblTempUsageDetail_20' ) end [2025-02-12 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:06:22] Production.INFO: ==31086== Releasing lock... [2025-02-12 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:07:05 [end_date_ymd] => 2025-02-12 05:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:07:05' and `end` < '2025-02-12 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-12 05:07:18] Production.INFO: count ==120 [2025-02-12 05:07:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:07:05 - End Time 2025-02-12 05:07:05 [2025-02-12 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456824', 'tblTempUsageDetail_20' ) start [2025-02-12 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456824', 'tblTempUsageDetail_20' ) end [2025-02-12 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456824', 'tblTempVendorCDR_20' ) start [2025-02-12 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456824', 'tblTempVendorCDR_20' ) end [2025-02-12 05:07:18] Production.INFO: ProcessCDR(1,14456824,1,1,2) [2025-02-12 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456824', 'tblTempUsageDetail_20' ) start [2025-02-12 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456824', 'tblTempUsageDetail_20' ) end [2025-02-12 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:07:21] Production.INFO: ==31156== Releasing lock... [2025-02-12 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:08:05 [end_date_ymd] => 2025-02-12 05:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:08:05' and `end` < '2025-02-12 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-12 05:08:18] Production.INFO: count ==120 [2025-02-12 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:08:05 - End Time 2025-02-12 05:08:05 [2025-02-12 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456829', 'tblTempUsageDetail_20' ) start [2025-02-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456829', 'tblTempUsageDetail_20' ) end [2025-02-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456829', 'tblTempVendorCDR_20' ) start [2025-02-12 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456829', 'tblTempVendorCDR_20' ) end [2025-02-12 05:08:18] Production.INFO: ProcessCDR(1,14456829,1,1,2) [2025-02-12 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456829', 'tblTempUsageDetail_20' ) start [2025-02-12 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456829', 'tblTempUsageDetail_20' ) end [2025-02-12 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:08:21] Production.INFO: ==31230== Releasing lock... [2025-02-12 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:09:04 [end_date_ymd] => 2025-02-12 05:09:04 [RateCDR] => 1 ) [2025-02-12 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:09:04' and `end` < '2025-02-12 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:09:17] Production.INFO: count ==120 [2025-02-12 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-12 02:09:04 - End Time 2025-02-12 05:09:04 [2025-02-12 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456834', 'tblTempUsageDetail_20' ) start [2025-02-12 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456834', 'tblTempUsageDetail_20' ) end [2025-02-12 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456834', 'tblTempVendorCDR_20' ) start [2025-02-12 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456834', 'tblTempVendorCDR_20' ) end [2025-02-12 05:09:17] Production.INFO: ProcessCDR(1,14456834,1,1,2) [2025-02-12 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456834', 'tblTempUsageDetail_20' ) start [2025-02-12 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456834', 'tblTempUsageDetail_20' ) end [2025-02-12 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:09:21] Production.INFO: ==31307== Releasing lock... [2025-02-12 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:10:06 [end_date_ymd] => 2025-02-12 05:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 02:10:06' and `end` < '2025-02-12 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-12 05:10:19] Production.INFO: count ==120 [2025-02-12 05:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:10:06 - End Time 2025-02-12 05:10:06 [2025-02-12 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456839', 'tblTempUsageDetail_20' ) start [2025-02-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456839', 'tblTempUsageDetail_20' ) end [2025-02-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456839', 'tblTempVendorCDR_20' ) start [2025-02-12 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456839', 'tblTempVendorCDR_20' ) end [2025-02-12 05:10:19] Production.INFO: ProcessCDR(1,14456839,1,1,2) [2025-02-12 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456839', 'tblTempUsageDetail_20' ) start [2025-02-12 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456839', 'tblTempUsageDetail_20' ) end [2025-02-12 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:10:22] Production.INFO: ==31384== Releasing lock... [2025-02-12 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:11:04 [end_date_ymd] => 2025-02-12 05:11:04 [RateCDR] => 1 ) [2025-02-12 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-12 02:11:04' and `end` < '2025-02-12 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-12 05:11:18] Production.INFO: count ==120 [2025-02-12 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:11:04 - End Time 2025-02-12 05:11:04 [2025-02-12 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456845', 'tblTempUsageDetail_20' ) start [2025-02-12 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456845', 'tblTempUsageDetail_20' ) end [2025-02-12 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456845', 'tblTempVendorCDR_20' ) start [2025-02-12 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456845', 'tblTempVendorCDR_20' ) end [2025-02-12 05:11:18] Production.INFO: ProcessCDR(1,14456845,1,1,2) [2025-02-12 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456845', 'tblTempUsageDetail_20' ) start [2025-02-12 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456845', 'tblTempUsageDetail_20' ) end [2025-02-12 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:11:21] Production.INFO: ==31462== Releasing lock... [2025-02-12 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:12:06 [end_date_ymd] => 2025-02-12 05:12:06 [RateCDR] => 1 ) [2025-02-12 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-12 02:12:06' and `end` < '2025-02-12 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-12 05:12:19] Production.INFO: count ==120 [2025-02-12 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:12:06 - End Time 2025-02-12 05:12:06 [2025-02-12 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456850', 'tblTempUsageDetail_20' ) start [2025-02-12 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456850', 'tblTempUsageDetail_20' ) end [2025-02-12 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456850', 'tblTempVendorCDR_20' ) start [2025-02-12 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456850', 'tblTempVendorCDR_20' ) end [2025-02-12 05:12:19] Production.INFO: ProcessCDR(1,14456850,1,1,2) [2025-02-12 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456850', 'tblTempUsageDetail_20' ) start [2025-02-12 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456850', 'tblTempUsageDetail_20' ) end [2025-02-12 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:12:22] Production.INFO: ==31534== Releasing lock... [2025-02-12 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:13:05 [end_date_ymd] => 2025-02-12 05:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:13:05' and `end` < '2025-02-12 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-12 05:13:18] Production.INFO: count ==120 [2025-02-12 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:13:05 - End Time 2025-02-12 05:13:05 [2025-02-12 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456855', 'tblTempUsageDetail_20' ) start [2025-02-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456855', 'tblTempUsageDetail_20' ) end [2025-02-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456855', 'tblTempVendorCDR_20' ) start [2025-02-12 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456855', 'tblTempVendorCDR_20' ) end [2025-02-12 05:13:18] Production.INFO: ProcessCDR(1,14456855,1,1,2) [2025-02-12 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456855', 'tblTempUsageDetail_20' ) start [2025-02-12 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456855', 'tblTempUsageDetail_20' ) end [2025-02-12 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:13:21] Production.INFO: ==31606== Releasing lock... [2025-02-12 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:14:05 [end_date_ymd] => 2025-02-12 05:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:14:05' and `end` < '2025-02-12 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-12 05:14:19] Production.INFO: count ==120 [2025-02-12 05:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:14:05 - End Time 2025-02-12 05:14:05 [2025-02-12 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456860', 'tblTempUsageDetail_20' ) start [2025-02-12 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456860', 'tblTempUsageDetail_20' ) end [2025-02-12 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456860', 'tblTempVendorCDR_20' ) start [2025-02-12 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456860', 'tblTempVendorCDR_20' ) end [2025-02-12 05:14:19] Production.INFO: ProcessCDR(1,14456860,1,1,2) [2025-02-12 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456860', 'tblTempUsageDetail_20' ) start [2025-02-12 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456860', 'tblTempUsageDetail_20' ) end [2025-02-12 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:14:22] Production.INFO: ==31677== Releasing lock... [2025-02-12 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:15:04 [end_date_ymd] => 2025-02-12 05:15:04 [RateCDR] => 1 ) [2025-02-12 05: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-12 02:15:04' and `end` < '2025-02-12 05: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-12 05:15:18] Production.INFO: count ==120 [2025-02-12 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:15:04 - End Time 2025-02-12 05:15:04 [2025-02-12 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456865', 'tblTempUsageDetail_20' ) start [2025-02-12 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456865', 'tblTempUsageDetail_20' ) end [2025-02-12 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456865', 'tblTempVendorCDR_20' ) start [2025-02-12 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456865', 'tblTempVendorCDR_20' ) end [2025-02-12 05:15:18] Production.INFO: ProcessCDR(1,14456865,1,1,2) [2025-02-12 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456865', 'tblTempUsageDetail_20' ) start [2025-02-12 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456865', 'tblTempUsageDetail_20' ) end [2025-02-12 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:15:21] Production.INFO: ==31752== Releasing lock... [2025-02-12 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:16:05 [end_date_ymd] => 2025-02-12 05:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:16:05' and `end` < '2025-02-12 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-12 05:16:18] Production.INFO: count ==120 [2025-02-12 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:16:05 - End Time 2025-02-12 05:16:05 [2025-02-12 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456870', 'tblTempUsageDetail_20' ) start [2025-02-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456870', 'tblTempUsageDetail_20' ) end [2025-02-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456870', 'tblTempVendorCDR_20' ) start [2025-02-12 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456870', 'tblTempVendorCDR_20' ) end [2025-02-12 05:16:18] Production.INFO: ProcessCDR(1,14456870,1,1,2) [2025-02-12 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456870', 'tblTempUsageDetail_20' ) start [2025-02-12 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456870', 'tblTempUsageDetail_20' ) end [2025-02-12 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:16:21] Production.INFO: ==31866== Releasing lock... [2025-02-12 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:17:04 [end_date_ymd] => 2025-02-12 05:17:04 [RateCDR] => 1 ) [2025-02-12 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:17:04' and `end` < '2025-02-12 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:17:18] Production.INFO: count ==120 [2025-02-12 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:17:04 - End Time 2025-02-12 05:17:04 [2025-02-12 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456875', 'tblTempUsageDetail_20' ) start [2025-02-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456875', 'tblTempUsageDetail_20' ) end [2025-02-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456875', 'tblTempVendorCDR_20' ) start [2025-02-12 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456875', 'tblTempVendorCDR_20' ) end [2025-02-12 05:17:18] Production.INFO: ProcessCDR(1,14456875,1,1,2) [2025-02-12 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456875', 'tblTempUsageDetail_20' ) start [2025-02-12 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456875', 'tblTempUsageDetail_20' ) end [2025-02-12 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:17:21] Production.INFO: ==31939== Releasing lock... [2025-02-12 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:18:05 [end_date_ymd] => 2025-02-12 05:18:05 [RateCDR] => 1 ) [2025-02-12 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:18:05' and `end` < '2025-02-12 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:18:19] Production.INFO: count ==120 [2025-02-12 05:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:18:05 - End Time 2025-02-12 05:18:05 [2025-02-12 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456880', 'tblTempUsageDetail_20' ) start [2025-02-12 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456880', 'tblTempUsageDetail_20' ) end [2025-02-12 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456880', 'tblTempVendorCDR_20' ) start [2025-02-12 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456880', 'tblTempVendorCDR_20' ) end [2025-02-12 05:18:19] Production.INFO: ProcessCDR(1,14456880,1,1,2) [2025-02-12 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456880', 'tblTempUsageDetail_20' ) start [2025-02-12 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456880', 'tblTempUsageDetail_20' ) end [2025-02-12 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:18:22] Production.INFO: ==32013== Releasing lock... [2025-02-12 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:19:04 [end_date_ymd] => 2025-02-12 05:19:04 [RateCDR] => 1 ) [2025-02-12 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:19:04' and `end` < '2025-02-12 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:19:17] Production.INFO: count ==120 [2025-02-12 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-12 02:19:04 - End Time 2025-02-12 05:19:04 [2025-02-12 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456881', 'tblTempUsageDetail_20' ) start [2025-02-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456881', 'tblTempUsageDetail_20' ) end [2025-02-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456881', 'tblTempVendorCDR_20' ) start [2025-02-12 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456881', 'tblTempVendorCDR_20' ) end [2025-02-12 05:19:17] Production.INFO: ProcessCDR(1,14456881,1,1,2) [2025-02-12 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456881', 'tblTempUsageDetail_20' ) start [2025-02-12 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456881', 'tblTempUsageDetail_20' ) end [2025-02-12 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:19:20] Production.INFO: ==32085== Releasing lock... [2025-02-12 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:20:06 [end_date_ymd] => 2025-02-12 05:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 02:20:06' and `end` < '2025-02-12 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-12 05:20:20] Production.INFO: count ==120 [2025-02-12 05:20:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:20:06 - End Time 2025-02-12 05:20:06 [2025-02-12 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456891', 'tblTempUsageDetail_20' ) start [2025-02-12 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456891', 'tblTempUsageDetail_20' ) end [2025-02-12 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456891', 'tblTempVendorCDR_20' ) start [2025-02-12 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456891', 'tblTempVendorCDR_20' ) end [2025-02-12 05:20:20] Production.INFO: ProcessCDR(1,14456891,1,1,2) [2025-02-12 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456891', 'tblTempUsageDetail_20' ) start [2025-02-12 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456891', 'tblTempUsageDetail_20' ) end [2025-02-12 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:20:23] Production.INFO: ==32162== Releasing lock... [2025-02-12 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:21:06 [end_date_ymd] => 2025-02-12 05:21:06 [RateCDR] => 1 ) [2025-02-12 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:21:06' and `end` < '2025-02-12 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:21:19] Production.INFO: count ==120 [2025-02-12 05:21:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:21:06 - End Time 2025-02-12 05:21:06 [2025-02-12 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456896', 'tblTempUsageDetail_20' ) start [2025-02-12 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456896', 'tblTempUsageDetail_20' ) end [2025-02-12 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456896', 'tblTempVendorCDR_20' ) start [2025-02-12 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456896', 'tblTempVendorCDR_20' ) end [2025-02-12 05:21:19] Production.INFO: ProcessCDR(1,14456896,1,1,2) [2025-02-12 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456896', 'tblTempUsageDetail_20' ) start [2025-02-12 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456896', 'tblTempUsageDetail_20' ) end [2025-02-12 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:21:22] Production.INFO: ==32244== Releasing lock... [2025-02-12 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:22:05 [end_date_ymd] => 2025-02-12 05:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:22:05' and `end` < '2025-02-12 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-12 05:22:18] Production.INFO: count ==120 [2025-02-12 05:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:22:05 - End Time 2025-02-12 05:22:05 [2025-02-12 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456901', 'tblTempUsageDetail_20' ) start [2025-02-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456901', 'tblTempUsageDetail_20' ) end [2025-02-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456901', 'tblTempVendorCDR_20' ) start [2025-02-12 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456901', 'tblTempVendorCDR_20' ) end [2025-02-12 05:22:18] Production.INFO: ProcessCDR(1,14456901,1,1,2) [2025-02-12 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456901', 'tblTempUsageDetail_20' ) start [2025-02-12 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456901', 'tblTempUsageDetail_20' ) end [2025-02-12 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:22:21] Production.INFO: ==32320== Releasing lock... [2025-02-12 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:23:05 [end_date_ymd] => 2025-02-12 05:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:23:05' and `end` < '2025-02-12 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-12 05:23:18] Production.INFO: count ==120 [2025-02-12 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:23:05 - End Time 2025-02-12 05:23:05 [2025-02-12 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456906', 'tblTempUsageDetail_20' ) start [2025-02-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456906', 'tblTempUsageDetail_20' ) end [2025-02-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456906', 'tblTempVendorCDR_20' ) start [2025-02-12 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456906', 'tblTempVendorCDR_20' ) end [2025-02-12 05:23:18] Production.INFO: ProcessCDR(1,14456906,1,1,2) [2025-02-12 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456906', 'tblTempUsageDetail_20' ) start [2025-02-12 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456906', 'tblTempUsageDetail_20' ) end [2025-02-12 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:23:22] Production.INFO: ==32401== Releasing lock... [2025-02-12 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:24:05 [end_date_ymd] => 2025-02-12 05:24:05 [RateCDR] => 1 ) [2025-02-12 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:24:05' and `end` < '2025-02-12 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:24:18] Production.INFO: count ==119 [2025-02-12 05:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:24:05 - End Time 2025-02-12 05:24:05 [2025-02-12 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456911', 'tblTempUsageDetail_20' ) start [2025-02-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456911', 'tblTempUsageDetail_20' ) end [2025-02-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456911', 'tblTempVendorCDR_20' ) start [2025-02-12 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456911', 'tblTempVendorCDR_20' ) end [2025-02-12 05:24:18] Production.INFO: ProcessCDR(1,14456911,1,1,2) [2025-02-12 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456911', 'tblTempUsageDetail_20' ) start [2025-02-12 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456911', 'tblTempUsageDetail_20' ) end [2025-02-12 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:24:21] Production.INFO: ==32481== Releasing lock... [2025-02-12 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:25:05 [end_date_ymd] => 2025-02-12 05:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:25:05' and `end` < '2025-02-12 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-12 05:25:18] Production.INFO: count ==119 [2025-02-12 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:25:05 - End Time 2025-02-12 05:25:05 [2025-02-12 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456916', 'tblTempUsageDetail_20' ) start [2025-02-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456916', 'tblTempUsageDetail_20' ) end [2025-02-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456916', 'tblTempVendorCDR_20' ) start [2025-02-12 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456916', 'tblTempVendorCDR_20' ) end [2025-02-12 05:25:18] Production.INFO: ProcessCDR(1,14456916,1,1,2) [2025-02-12 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456916', 'tblTempUsageDetail_20' ) start [2025-02-12 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456916', 'tblTempUsageDetail_20' ) end [2025-02-12 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:25:21] Production.INFO: ==32562== Releasing lock... [2025-02-12 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:26:05 [end_date_ymd] => 2025-02-12 05:26:05 [RateCDR] => 1 ) [2025-02-12 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:26:05' and `end` < '2025-02-12 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:26:17] Production.INFO: count ==119 [2025-02-12 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-12 02:26:05 - End Time 2025-02-12 05:26:05 [2025-02-12 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456921', 'tblTempUsageDetail_20' ) start [2025-02-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456921', 'tblTempUsageDetail_20' ) end [2025-02-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456921', 'tblTempVendorCDR_20' ) start [2025-02-12 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456921', 'tblTempVendorCDR_20' ) end [2025-02-12 05:26:17] Production.INFO: ProcessCDR(1,14456921,1,1,2) [2025-02-12 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456921', 'tblTempUsageDetail_20' ) start [2025-02-12 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456921', 'tblTempUsageDetail_20' ) end [2025-02-12 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:26:21] Production.INFO: ==32639== Releasing lock... [2025-02-12 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:27:05 [end_date_ymd] => 2025-02-12 05:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:27:05' and `end` < '2025-02-12 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-12 05:27:18] Production.INFO: count ==119 [2025-02-12 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:27:05 - End Time 2025-02-12 05:27:05 [2025-02-12 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456926', 'tblTempUsageDetail_20' ) start [2025-02-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456926', 'tblTempUsageDetail_20' ) end [2025-02-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456926', 'tblTempVendorCDR_20' ) start [2025-02-12 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456926', 'tblTempVendorCDR_20' ) end [2025-02-12 05:27:18] Production.INFO: ProcessCDR(1,14456926,1,1,2) [2025-02-12 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456926', 'tblTempUsageDetail_20' ) start [2025-02-12 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456926', 'tblTempUsageDetail_20' ) end [2025-02-12 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:27:22] Production.INFO: ==32717== Releasing lock... [2025-02-12 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:28:05 [end_date_ymd] => 2025-02-12 05:28:05 [RateCDR] => 1 ) [2025-02-12 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:28:05' and `end` < '2025-02-12 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:28:18] Production.INFO: count ==119 [2025-02-12 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:28:05 - End Time 2025-02-12 05:28:05 [2025-02-12 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456931', 'tblTempUsageDetail_20' ) start [2025-02-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456931', 'tblTempUsageDetail_20' ) end [2025-02-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456931', 'tblTempVendorCDR_20' ) start [2025-02-12 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456931', 'tblTempVendorCDR_20' ) end [2025-02-12 05:28:18] Production.INFO: ProcessCDR(1,14456931,1,1,2) [2025-02-12 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456931', 'tblTempUsageDetail_20' ) start [2025-02-12 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456931', 'tblTempUsageDetail_20' ) end [2025-02-12 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:28:21] Production.INFO: ==329== Releasing lock... [2025-02-12 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:29:05 [end_date_ymd] => 2025-02-12 05:29:05 [RateCDR] => 1 ) [2025-02-12 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:29:05' and `end` < '2025-02-12 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:29:18] Production.INFO: count ==123 [2025-02-12 05:29:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:29:05 - End Time 2025-02-12 05:29:05 [2025-02-12 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456936', 'tblTempUsageDetail_20' ) start [2025-02-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456936', 'tblTempUsageDetail_20' ) end [2025-02-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456936', 'tblTempVendorCDR_20' ) start [2025-02-12 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456936', 'tblTempVendorCDR_20' ) end [2025-02-12 05:29:18] Production.INFO: ProcessCDR(1,14456936,1,1,2) [2025-02-12 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456936', 'tblTempUsageDetail_20' ) start [2025-02-12 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456936', 'tblTempUsageDetail_20' ) end [2025-02-12 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:29:22] Production.INFO: ==428== Releasing lock... [2025-02-12 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:30:06 [end_date_ymd] => 2025-02-12 05:30:06 [RateCDR] => 1 ) [2025-02-12 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:30:06' and `end` < '2025-02-12 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:30:19] Production.INFO: count ==122 [2025-02-12 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:30:06 - End Time 2025-02-12 05:30:06 [2025-02-12 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456942', 'tblTempUsageDetail_20' ) start [2025-02-12 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456942', 'tblTempUsageDetail_20' ) end [2025-02-12 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456942', 'tblTempVendorCDR_20' ) start [2025-02-12 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456942', 'tblTempVendorCDR_20' ) end [2025-02-12 05:30:19] Production.INFO: ProcessCDR(1,14456942,1,1,2) [2025-02-12 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456942', 'tblTempUsageDetail_20' ) start [2025-02-12 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456942', 'tblTempUsageDetail_20' ) end [2025-02-12 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:30:22] Production.INFO: ==509== Releasing lock... [2025-02-12 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-12 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:31:05 [end_date_ymd] => 2025-02-12 05:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:31:05' and `end` < '2025-02-12 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-12 05:31:18] Production.INFO: count ==126 [2025-02-12 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:31:05 - End Time 2025-02-12 05:31:05 [2025-02-12 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456947', 'tblTempUsageDetail_20' ) start [2025-02-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456947', 'tblTempUsageDetail_20' ) end [2025-02-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456947', 'tblTempVendorCDR_20' ) start [2025-02-12 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456947', 'tblTempVendorCDR_20' ) end [2025-02-12 05:31:18] Production.INFO: ProcessCDR(1,14456947,1,1,2) [2025-02-12 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456947', 'tblTempUsageDetail_20' ) start [2025-02-12 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456947', 'tblTempUsageDetail_20' ) end [2025-02-12 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:31:21] Production.INFO: ==590== Releasing lock... [2025-02-12 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:32:05 [end_date_ymd] => 2025-02-12 05:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:32:05' and `end` < '2025-02-12 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-12 05:32:19] Production.INFO: count ==130 [2025-02-12 05:32:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:32:05 - End Time 2025-02-12 05:32:05 [2025-02-12 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456952', 'tblTempUsageDetail_20' ) start [2025-02-12 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456952', 'tblTempUsageDetail_20' ) end [2025-02-12 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456952', 'tblTempVendorCDR_20' ) start [2025-02-12 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456952', 'tblTempVendorCDR_20' ) end [2025-02-12 05:32:19] Production.INFO: ProcessCDR(1,14456952,1,1,2) [2025-02-12 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456952', 'tblTempUsageDetail_20' ) start [2025-02-12 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456952', 'tblTempUsageDetail_20' ) end [2025-02-12 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:32:22] Production.INFO: ==734== Releasing lock... [2025-02-12 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:33:04 [end_date_ymd] => 2025-02-12 05:33:04 [RateCDR] => 1 ) [2025-02-12 05: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-12 02:33:04' and `end` < '2025-02-12 05: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-12 05:33:17] Production.INFO: count ==130 [2025-02-12 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-12 02:33:04 - End Time 2025-02-12 05:33:04 [2025-02-12 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456957', 'tblTempUsageDetail_20' ) start [2025-02-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456957', 'tblTempUsageDetail_20' ) end [2025-02-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456957', 'tblTempVendorCDR_20' ) start [2025-02-12 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456957', 'tblTempVendorCDR_20' ) end [2025-02-12 05:33:17] Production.INFO: ProcessCDR(1,14456957,1,1,2) [2025-02-12 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456957', 'tblTempUsageDetail_20' ) start [2025-02-12 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456957', 'tblTempUsageDetail_20' ) end [2025-02-12 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:33:20] Production.INFO: ==813== Releasing lock... [2025-02-12 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:33:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:34:05 [end_date_ymd] => 2025-02-12 05:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:34:05' and `end` < '2025-02-12 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-12 05:34:18] Production.INFO: count ==130 [2025-02-12 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:34:05 - End Time 2025-02-12 05:34:05 [2025-02-12 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456962', 'tblTempUsageDetail_20' ) start [2025-02-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456962', 'tblTempUsageDetail_20' ) end [2025-02-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456962', 'tblTempVendorCDR_20' ) start [2025-02-12 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456962', 'tblTempVendorCDR_20' ) end [2025-02-12 05:34:18] Production.INFO: ProcessCDR(1,14456962,1,1,2) [2025-02-12 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456962', 'tblTempUsageDetail_20' ) start [2025-02-12 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456962', 'tblTempUsageDetail_20' ) end [2025-02-12 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:34:21] Production.INFO: ==891== Releasing lock... [2025-02-12 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:35:05 [end_date_ymd] => 2025-02-12 05:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:35:05' and `end` < '2025-02-12 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-12 05:35:18] Production.INFO: count ==130 [2025-02-12 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:35:05 - End Time 2025-02-12 05:35:05 [2025-02-12 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456967', 'tblTempUsageDetail_20' ) start [2025-02-12 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456967', 'tblTempUsageDetail_20' ) end [2025-02-12 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456967', 'tblTempVendorCDR_20' ) start [2025-02-12 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456967', 'tblTempVendorCDR_20' ) end [2025-02-12 05:35:18] Production.INFO: ProcessCDR(1,14456967,1,1,2) [2025-02-12 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456967', 'tblTempUsageDetail_20' ) start [2025-02-12 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456967', 'tblTempUsageDetail_20' ) end [2025-02-12 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:35:21] Production.INFO: ==967== Releasing lock... [2025-02-12 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:36:05 [end_date_ymd] => 2025-02-12 05:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:36:05' and `end` < '2025-02-12 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-12 05:36:18] Production.INFO: count ==130 [2025-02-12 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:36:05 - End Time 2025-02-12 05:36:05 [2025-02-12 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456972', 'tblTempUsageDetail_20' ) start [2025-02-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456972', 'tblTempUsageDetail_20' ) end [2025-02-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456972', 'tblTempVendorCDR_20' ) start [2025-02-12 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456972', 'tblTempVendorCDR_20' ) end [2025-02-12 05:36:18] Production.INFO: ProcessCDR(1,14456972,1,1,2) [2025-02-12 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456972', 'tblTempUsageDetail_20' ) start [2025-02-12 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456972', 'tblTempUsageDetail_20' ) end [2025-02-12 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:36:21] Production.INFO: ==1046== Releasing lock... [2025-02-12 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:37:05 [end_date_ymd] => 2025-02-12 05:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:37:05' and `end` < '2025-02-12 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-12 05:37:18] Production.INFO: count ==130 [2025-02-12 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:37:05 - End Time 2025-02-12 05:37:05 [2025-02-12 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456977', 'tblTempUsageDetail_20' ) start [2025-02-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456977', 'tblTempUsageDetail_20' ) end [2025-02-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456977', 'tblTempVendorCDR_20' ) start [2025-02-12 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456977', 'tblTempVendorCDR_20' ) end [2025-02-12 05:37:18] Production.INFO: ProcessCDR(1,14456977,1,1,2) [2025-02-12 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456977', 'tblTempUsageDetail_20' ) start [2025-02-12 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456977', 'tblTempUsageDetail_20' ) end [2025-02-12 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:37:21] Production.INFO: ==1125== Releasing lock... [2025-02-12 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:38:05 [end_date_ymd] => 2025-02-12 05:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:38:05' and `end` < '2025-02-12 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-12 05:38:19] Production.INFO: count ==130 [2025-02-12 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:38:05 - End Time 2025-02-12 05:38:05 [2025-02-12 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456982', 'tblTempUsageDetail_20' ) start [2025-02-12 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456982', 'tblTempUsageDetail_20' ) end [2025-02-12 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456982', 'tblTempVendorCDR_20' ) start [2025-02-12 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456982', 'tblTempVendorCDR_20' ) end [2025-02-12 05:38:19] Production.INFO: ProcessCDR(1,14456982,1,1,2) [2025-02-12 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456982', 'tblTempUsageDetail_20' ) start [2025-02-12 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456982', 'tblTempUsageDetail_20' ) end [2025-02-12 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:38:22] Production.INFO: ==1215== Releasing lock... [2025-02-12 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:39:05 [end_date_ymd] => 2025-02-12 05:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:39:05' and `end` < '2025-02-12 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-12 05:39:19] Production.INFO: count ==130 [2025-02-12 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:39:05 - End Time 2025-02-12 05:39:05 [2025-02-12 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456987', 'tblTempUsageDetail_20' ) start [2025-02-12 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456987', 'tblTempUsageDetail_20' ) end [2025-02-12 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456987', 'tblTempVendorCDR_20' ) start [2025-02-12 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456987', 'tblTempVendorCDR_20' ) end [2025-02-12 05:39:19] Production.INFO: ProcessCDR(1,14456987,1,1,2) [2025-02-12 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456987', 'tblTempUsageDetail_20' ) start [2025-02-12 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456987', 'tblTempUsageDetail_20' ) end [2025-02-12 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:39:22] Production.INFO: ==1302== Releasing lock... [2025-02-12 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:40:06 [end_date_ymd] => 2025-02-12 05:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 02:40:06' and `end` < '2025-02-12 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-12 05:40:19] Production.INFO: count ==128 [2025-02-12 05:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:40:06 - End Time 2025-02-12 05:40:06 [2025-02-12 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456992', 'tblTempUsageDetail_20' ) start [2025-02-12 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456992', 'tblTempUsageDetail_20' ) end [2025-02-12 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456992', 'tblTempVendorCDR_20' ) start [2025-02-12 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456992', 'tblTempVendorCDR_20' ) end [2025-02-12 05:40:19] Production.INFO: ProcessCDR(1,14456992,1,1,2) [2025-02-12 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456992', 'tblTempUsageDetail_20' ) start [2025-02-12 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456992', 'tblTempUsageDetail_20' ) end [2025-02-12 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:40:22] Production.INFO: ==1381== Releasing lock... [2025-02-12 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:41:05 [end_date_ymd] => 2025-02-12 05:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:41:05' and `end` < '2025-02-12 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-12 05:41:19] Production.INFO: count ==128 [2025-02-12 05:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:41:05 - End Time 2025-02-12 05:41:05 [2025-02-12 05:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456998', 'tblTempUsageDetail_20' ) start [2025-02-12 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14456998', 'tblTempUsageDetail_20' ) end [2025-02-12 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456998', 'tblTempVendorCDR_20' ) start [2025-02-12 05:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14456998', 'tblTempVendorCDR_20' ) end [2025-02-12 05:41:19] Production.INFO: ProcessCDR(1,14456998,1,1,2) [2025-02-12 05:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14456998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14456998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14456998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14456998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456998', 'tblTempUsageDetail_20' ) start [2025-02-12 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14456998', 'tblTempUsageDetail_20' ) end [2025-02-12 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:41:22] Production.INFO: ==1464== Releasing lock... [2025-02-12 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:42:05 [end_date_ymd] => 2025-02-12 05:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:42:05' and `end` < '2025-02-12 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-12 05:42:19] Production.INFO: count ==128 [2025-02-12 05:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:42:05 - End Time 2025-02-12 05:42:05 [2025-02-12 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457003', 'tblTempUsageDetail_20' ) start [2025-02-12 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457003', 'tblTempUsageDetail_20' ) end [2025-02-12 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457003', 'tblTempVendorCDR_20' ) start [2025-02-12 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457003', 'tblTempVendorCDR_20' ) end [2025-02-12 05:42:19] Production.INFO: ProcessCDR(1,14457003,1,1,2) [2025-02-12 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457003', 'tblTempUsageDetail_20' ) start [2025-02-12 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457003', 'tblTempUsageDetail_20' ) end [2025-02-12 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:42:22] Production.INFO: ==1581== Releasing lock... [2025-02-12 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:43:05 [end_date_ymd] => 2025-02-12 05:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:43:05' and `end` < '2025-02-12 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-12 05:43:18] Production.INFO: count ==128 [2025-02-12 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:43:05 - End Time 2025-02-12 05:43:05 [2025-02-12 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457008', 'tblTempUsageDetail_20' ) start [2025-02-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457008', 'tblTempUsageDetail_20' ) end [2025-02-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457008', 'tblTempVendorCDR_20' ) start [2025-02-12 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457008', 'tblTempVendorCDR_20' ) end [2025-02-12 05:43:18] Production.INFO: ProcessCDR(1,14457008,1,1,2) [2025-02-12 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457008', 'tblTempUsageDetail_20' ) start [2025-02-12 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457008', 'tblTempUsageDetail_20' ) end [2025-02-12 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:43:21] Production.INFO: ==1659== Releasing lock... [2025-02-12 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:44:05 [end_date_ymd] => 2025-02-12 05:44:05 [RateCDR] => 1 ) [2025-02-12 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:44:05' and `end` < '2025-02-12 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:44:18] Production.INFO: count ==128 [2025-02-12 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:44:05 - End Time 2025-02-12 05:44:05 [2025-02-12 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457013', 'tblTempUsageDetail_20' ) start [2025-02-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457013', 'tblTempUsageDetail_20' ) end [2025-02-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457013', 'tblTempVendorCDR_20' ) start [2025-02-12 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457013', 'tblTempVendorCDR_20' ) end [2025-02-12 05:44:18] Production.INFO: ProcessCDR(1,14457013,1,1,2) [2025-02-12 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457013', 'tblTempUsageDetail_20' ) start [2025-02-12 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457013', 'tblTempUsageDetail_20' ) end [2025-02-12 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:44:21] Production.INFO: ==1733== Releasing lock... [2025-02-12 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:45:05 [end_date_ymd] => 2025-02-12 05:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:45:05' and `end` < '2025-02-12 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-12 05:45:18] Production.INFO: count ==128 [2025-02-12 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:45:05 - End Time 2025-02-12 05:45:05 [2025-02-12 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457018', 'tblTempUsageDetail_20' ) start [2025-02-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457018', 'tblTempUsageDetail_20' ) end [2025-02-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457018', 'tblTempVendorCDR_20' ) start [2025-02-12 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457018', 'tblTempVendorCDR_20' ) end [2025-02-12 05:45:18] Production.INFO: ProcessCDR(1,14457018,1,1,2) [2025-02-12 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457018', 'tblTempUsageDetail_20' ) start [2025-02-12 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457018', 'tblTempUsageDetail_20' ) end [2025-02-12 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:45:21] Production.INFO: ==1811== Releasing lock... [2025-02-12 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:46:04 [end_date_ymd] => 2025-02-12 05:46:04 [RateCDR] => 1 ) [2025-02-12 05:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:46:04' and `end` < '2025-02-12 05:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:46:18] Production.INFO: count ==128 [2025-02-12 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:46:04 - End Time 2025-02-12 05:46:04 [2025-02-12 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457023', 'tblTempUsageDetail_20' ) start [2025-02-12 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457023', 'tblTempUsageDetail_20' ) end [2025-02-12 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457023', 'tblTempVendorCDR_20' ) start [2025-02-12 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457023', 'tblTempVendorCDR_20' ) end [2025-02-12 05:46:18] Production.INFO: ProcessCDR(1,14457023,1,1,2) [2025-02-12 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457023', 'tblTempUsageDetail_20' ) start [2025-02-12 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457023', 'tblTempUsageDetail_20' ) end [2025-02-12 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:46:21] Production.INFO: ==1893== Releasing lock... [2025-02-12 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:47:05 [end_date_ymd] => 2025-02-12 05:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:47:05' and `end` < '2025-02-12 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-12 05:47:19] Production.INFO: count ==128 [2025-02-12 05:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:47:05 - End Time 2025-02-12 05:47:05 [2025-02-12 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457028', 'tblTempUsageDetail_20' ) start [2025-02-12 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457028', 'tblTempUsageDetail_20' ) end [2025-02-12 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457028', 'tblTempVendorCDR_20' ) start [2025-02-12 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457028', 'tblTempVendorCDR_20' ) end [2025-02-12 05:47:19] Production.INFO: ProcessCDR(1,14457028,1,1,2) [2025-02-12 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457028', 'tblTempUsageDetail_20' ) start [2025-02-12 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457028', 'tblTempUsageDetail_20' ) end [2025-02-12 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:47:22] Production.INFO: ==2010== Releasing lock... [2025-02-12 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:48:04 [end_date_ymd] => 2025-02-12 05:48:04 [RateCDR] => 1 ) [2025-02-12 05: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-12 02:48:04' and `end` < '2025-02-12 05: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-12 05:48:18] Production.INFO: count ==128 [2025-02-12 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:48:04 - End Time 2025-02-12 05:48:04 [2025-02-12 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457033', 'tblTempUsageDetail_20' ) start [2025-02-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457033', 'tblTempUsageDetail_20' ) end [2025-02-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457033', 'tblTempVendorCDR_20' ) start [2025-02-12 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457033', 'tblTempVendorCDR_20' ) end [2025-02-12 05:48:18] Production.INFO: ProcessCDR(1,14457033,1,1,2) [2025-02-12 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457033', 'tblTempUsageDetail_20' ) start [2025-02-12 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457033', 'tblTempUsageDetail_20' ) end [2025-02-12 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:48:21] Production.INFO: ==2091== Releasing lock... [2025-02-12 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:49:05 [end_date_ymd] => 2025-02-12 05:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:49:05' and `end` < '2025-02-12 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-12 05:49:18] Production.INFO: count ==128 [2025-02-12 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:49:05 - End Time 2025-02-12 05:49:05 [2025-02-12 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457038', 'tblTempUsageDetail_20' ) start [2025-02-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457038', 'tblTempUsageDetail_20' ) end [2025-02-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457038', 'tblTempVendorCDR_20' ) start [2025-02-12 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457038', 'tblTempVendorCDR_20' ) end [2025-02-12 05:49:18] Production.INFO: ProcessCDR(1,14457038,1,1,2) [2025-02-12 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457038', 'tblTempUsageDetail_20' ) start [2025-02-12 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457038', 'tblTempUsageDetail_20' ) end [2025-02-12 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:49:21] Production.INFO: ==2172== Releasing lock... [2025-02-12 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:50:06 [end_date_ymd] => 2025-02-12 05:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 02:50:06' and `end` < '2025-02-12 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-12 05:50:19] Production.INFO: count ==128 [2025-02-12 05:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:50:06 - End Time 2025-02-12 05:50:06 [2025-02-12 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457044', 'tblTempUsageDetail_20' ) start [2025-02-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457044', 'tblTempUsageDetail_20' ) end [2025-02-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457044', 'tblTempVendorCDR_20' ) start [2025-02-12 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457044', 'tblTempVendorCDR_20' ) end [2025-02-12 05:50:19] Production.INFO: ProcessCDR(1,14457044,1,1,2) [2025-02-12 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457044', 'tblTempUsageDetail_20' ) start [2025-02-12 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457044', 'tblTempUsageDetail_20' ) end [2025-02-12 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:50:23] Production.INFO: ==2253== Releasing lock... [2025-02-12 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:51:05 [end_date_ymd] => 2025-02-12 05:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:51:05' and `end` < '2025-02-12 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-12 05:51:18] Production.INFO: count ==128 [2025-02-12 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:51:05 - End Time 2025-02-12 05:51:05 [2025-02-12 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457047', 'tblTempUsageDetail_20' ) start [2025-02-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457047', 'tblTempUsageDetail_20' ) end [2025-02-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457047', 'tblTempVendorCDR_20' ) start [2025-02-12 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457047', 'tblTempVendorCDR_20' ) end [2025-02-12 05:51:18] Production.INFO: ProcessCDR(1,14457047,1,1,2) [2025-02-12 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457047', 'tblTempUsageDetail_20' ) start [2025-02-12 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457047', 'tblTempUsageDetail_20' ) end [2025-02-12 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:51:21] Production.INFO: ==2333== Releasing lock... [2025-02-12 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:52:06 [end_date_ymd] => 2025-02-12 05:52:06 [RateCDR] => 1 ) [2025-02-12 05:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:52:06' and `end` < '2025-02-12 05:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:52:19] Production.INFO: count ==128 [2025-02-12 05:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:52:06 - End Time 2025-02-12 05:52:06 [2025-02-12 05:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457054', 'tblTempUsageDetail_20' ) start [2025-02-12 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457054', 'tblTempUsageDetail_20' ) end [2025-02-12 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457054', 'tblTempVendorCDR_20' ) start [2025-02-12 05:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457054', 'tblTempVendorCDR_20' ) end [2025-02-12 05:52:19] Production.INFO: ProcessCDR(1,14457054,1,1,2) [2025-02-12 05:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457054', 'tblTempUsageDetail_20' ) start [2025-02-12 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457054', 'tblTempUsageDetail_20' ) end [2025-02-12 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:52:22] Production.INFO: ==2411== Releasing lock... [2025-02-12 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:53:05 [end_date_ymd] => 2025-02-12 05:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:53:05' and `end` < '2025-02-12 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-12 05:53:18] Production.INFO: count ==128 [2025-02-12 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:53:05 - End Time 2025-02-12 05:53:05 [2025-02-12 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457059', 'tblTempUsageDetail_20' ) start [2025-02-12 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457059', 'tblTempUsageDetail_20' ) end [2025-02-12 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457059', 'tblTempVendorCDR_20' ) start [2025-02-12 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457059', 'tblTempVendorCDR_20' ) end [2025-02-12 05:53:18] Production.INFO: ProcessCDR(1,14457059,1,1,2) [2025-02-12 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457059', 'tblTempUsageDetail_20' ) start [2025-02-12 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457059', 'tblTempUsageDetail_20' ) end [2025-02-12 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:53:21] Production.INFO: ==2485== Releasing lock... [2025-02-12 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:54:06 [end_date_ymd] => 2025-02-12 05:54:06 [RateCDR] => 1 ) [2025-02-12 05:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:54:06' and `end` < '2025-02-12 05:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:54:19] Production.INFO: count ==128 [2025-02-12 05:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 02:54:06 - End Time 2025-02-12 05:54:06 [2025-02-12 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457064', 'tblTempUsageDetail_20' ) start [2025-02-12 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457064', 'tblTempUsageDetail_20' ) end [2025-02-12 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457064', 'tblTempVendorCDR_20' ) start [2025-02-12 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457064', 'tblTempVendorCDR_20' ) end [2025-02-12 05:54:19] Production.INFO: ProcessCDR(1,14457064,1,1,2) [2025-02-12 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457064', 'tblTempUsageDetail_20' ) start [2025-02-12 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457064', 'tblTempUsageDetail_20' ) end [2025-02-12 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:54:22] Production.INFO: ==2563== Releasing lock... [2025-02-12 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:55:05 [end_date_ymd] => 2025-02-12 05:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:55:05' and `end` < '2025-02-12 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-12 05:55:18] Production.INFO: count ==132 [2025-02-12 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:55:05 - End Time 2025-02-12 05:55:05 [2025-02-12 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457069', 'tblTempUsageDetail_20' ) start [2025-02-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457069', 'tblTempUsageDetail_20' ) end [2025-02-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457069', 'tblTempVendorCDR_20' ) start [2025-02-12 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457069', 'tblTempVendorCDR_20' ) end [2025-02-12 05:55:18] Production.INFO: ProcessCDR(1,14457069,1,1,2) [2025-02-12 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457069', 'tblTempUsageDetail_20' ) start [2025-02-12 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457069', 'tblTempUsageDetail_20' ) end [2025-02-12 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:55:21] Production.INFO: ==2639== Releasing lock... [2025-02-12 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:56:05 [end_date_ymd] => 2025-02-12 05:56:05 [RateCDR] => 1 ) [2025-02-12 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:56:05' and `end` < '2025-02-12 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:56:20] Production.INFO: count ==132 [2025-02-12 05:56:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:56:05 - End Time 2025-02-12 05:56:05 [2025-02-12 05:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457074', 'tblTempUsageDetail_20' ) start [2025-02-12 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457074', 'tblTempUsageDetail_20' ) end [2025-02-12 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457074', 'tblTempVendorCDR_20' ) start [2025-02-12 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457074', 'tblTempVendorCDR_20' ) end [2025-02-12 05:56:20] Production.INFO: ProcessCDR(1,14457074,1,1,2) [2025-02-12 05:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457074', 'tblTempUsageDetail_20' ) start [2025-02-12 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457074', 'tblTempUsageDetail_20' ) end [2025-02-12 05:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:56:23] Production.INFO: ==2714== Releasing lock... [2025-02-12 05:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:57:05 [end_date_ymd] => 2025-02-12 05:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:57:05' and `end` < '2025-02-12 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-12 05:57:18] Production.INFO: count ==132 [2025-02-12 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:57:05 - End Time 2025-02-12 05:57:05 [2025-02-12 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457079', 'tblTempUsageDetail_20' ) start [2025-02-12 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457079', 'tblTempUsageDetail_20' ) end [2025-02-12 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457079', 'tblTempVendorCDR_20' ) start [2025-02-12 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457079', 'tblTempVendorCDR_20' ) end [2025-02-12 05:57:18] Production.INFO: ProcessCDR(1,14457079,1,1,2) [2025-02-12 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457079', 'tblTempUsageDetail_20' ) start [2025-02-12 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457079', 'tblTempUsageDetail_20' ) end [2025-02-12 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:57:21] Production.INFO: ==2786== Releasing lock... [2025-02-12 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:58:05 [end_date_ymd] => 2025-02-12 05:58:05 [RateCDR] => 1 ) [2025-02-12 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 02:58:05' and `end` < '2025-02-12 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 05:58:20] Production.INFO: count ==133 [2025-02-12 05:58:20] Production.ERROR: pbx CDR StartTime 2025-02-12 02:58:05 - End Time 2025-02-12 05:58:05 [2025-02-12 05:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457084', 'tblTempUsageDetail_20' ) start [2025-02-12 05:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457084', 'tblTempUsageDetail_20' ) end [2025-02-12 05:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457084', 'tblTempVendorCDR_20' ) start [2025-02-12 05:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457084', 'tblTempVendorCDR_20' ) end [2025-02-12 05:58:20] Production.INFO: ProcessCDR(1,14457084,1,1,2) [2025-02-12 05:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457084', 'tblTempUsageDetail_20' ) start [2025-02-12 05:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457084', 'tblTempUsageDetail_20' ) end [2025-02-12 05:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:58:24] Production.INFO: ==2861== Releasing lock... [2025-02-12 05:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:58:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 02:59:05 [end_date_ymd] => 2025-02-12 05:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 02:59:05' and `end` < '2025-02-12 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-12 05:59:18] Production.INFO: count ==133 [2025-02-12 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-12 02:59:05 - End Time 2025-02-12 05:59:05 [2025-02-12 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457089', 'tblTempUsageDetail_20' ) start [2025-02-12 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457089', 'tblTempUsageDetail_20' ) end [2025-02-12 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457089', 'tblTempVendorCDR_20' ) start [2025-02-12 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457089', 'tblTempVendorCDR_20' ) end [2025-02-12 05:59:18] Production.INFO: ProcessCDR(1,14457089,1,1,2) [2025-02-12 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457089', 'tblTempUsageDetail_20' ) start [2025-02-12 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457089', 'tblTempUsageDetail_20' ) end [2025-02-12 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 05:59:21] Production.INFO: ==2934== Releasing lock... [2025-02-12 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:00:06 [end_date_ymd] => 2025-02-12 06:00:06 [RateCDR] => 1 ) [2025-02-12 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:00:06' and `end` < '2025-02-12 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:00:20] Production.INFO: count ==135 [2025-02-12 06:00:20] Production.ERROR: pbx CDR StartTime 2025-02-12 03:00:06 - End Time 2025-02-12 06:00:06 [2025-02-12 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457094', 'tblTempUsageDetail_20' ) start [2025-02-12 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457094', 'tblTempUsageDetail_20' ) end [2025-02-12 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457094', 'tblTempVendorCDR_20' ) start [2025-02-12 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457094', 'tblTempVendorCDR_20' ) end [2025-02-12 06:00:20] Production.INFO: ProcessCDR(1,14457094,1,1,2) [2025-02-12 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457094', 'tblTempUsageDetail_20' ) start [2025-02-12 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457094', 'tblTempUsageDetail_20' ) end [2025-02-12 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:00:23] Production.INFO: ==3010== Releasing lock... [2025-02-12 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:01:05 [end_date_ymd] => 2025-02-12 06:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:01:05' and `end` < '2025-02-12 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-12 06:01:19] Production.INFO: count ==139 [2025-02-12 06:01:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:01:05 - End Time 2025-02-12 06:01:05 [2025-02-12 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457100', 'tblTempUsageDetail_20' ) start [2025-02-12 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457100', 'tblTempUsageDetail_20' ) end [2025-02-12 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457100', 'tblTempVendorCDR_20' ) start [2025-02-12 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457100', 'tblTempVendorCDR_20' ) end [2025-02-12 06:01:19] Production.INFO: ProcessCDR(1,14457100,1,1,2) [2025-02-12 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457100', 'tblTempUsageDetail_20' ) start [2025-02-12 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457100', 'tblTempUsageDetail_20' ) end [2025-02-12 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:01:22] Production.INFO: ==3097== Releasing lock... [2025-02-12 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:02:05 [end_date_ymd] => 2025-02-12 06:02:05 [RateCDR] => 1 ) [2025-02-12 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:02:05' and `end` < '2025-02-12 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:02:18] Production.INFO: count ==135 [2025-02-12 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:02:05 - End Time 2025-02-12 06:02:05 [2025-02-12 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457105', 'tblTempUsageDetail_20' ) start [2025-02-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457105', 'tblTempUsageDetail_20' ) end [2025-02-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457105', 'tblTempVendorCDR_20' ) start [2025-02-12 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457105', 'tblTempVendorCDR_20' ) end [2025-02-12 06:02:18] Production.INFO: ProcessCDR(1,14457105,1,1,2) [2025-02-12 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457105', 'tblTempUsageDetail_20' ) start [2025-02-12 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457105', 'tblTempUsageDetail_20' ) end [2025-02-12 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:02:22] Production.INFO: ==3167== Releasing lock... [2025-02-12 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:03:05 [end_date_ymd] => 2025-02-12 06:03:05 [RateCDR] => 1 ) [2025-02-12 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:03:05' and `end` < '2025-02-12 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:03:18] Production.INFO: count ==135 [2025-02-12 06:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:03:05 - End Time 2025-02-12 06:03:05 [2025-02-12 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457110', 'tblTempUsageDetail_20' ) start [2025-02-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457110', 'tblTempUsageDetail_20' ) end [2025-02-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457110', 'tblTempVendorCDR_20' ) start [2025-02-12 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457110', 'tblTempVendorCDR_20' ) end [2025-02-12 06:03:18] Production.INFO: ProcessCDR(1,14457110,1,1,2) [2025-02-12 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457110', 'tblTempUsageDetail_20' ) start [2025-02-12 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457110', 'tblTempUsageDetail_20' ) end [2025-02-12 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:03:21] Production.INFO: ==3277== Releasing lock... [2025-02-12 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:04:05 [end_date_ymd] => 2025-02-12 06:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:04:05' and `end` < '2025-02-12 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-12 06:04:19] Production.INFO: count ==137 [2025-02-12 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:04:05 - End Time 2025-02-12 06:04:05 [2025-02-12 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457115', 'tblTempUsageDetail_20' ) start [2025-02-12 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457115', 'tblTempUsageDetail_20' ) end [2025-02-12 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457115', 'tblTempVendorCDR_20' ) start [2025-02-12 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457115', 'tblTempVendorCDR_20' ) end [2025-02-12 06:04:19] Production.INFO: ProcessCDR(1,14457115,1,1,2) [2025-02-12 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457115', 'tblTempUsageDetail_20' ) start [2025-02-12 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457115', 'tblTempUsageDetail_20' ) end [2025-02-12 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:04:23] Production.INFO: ==3356== Releasing lock... [2025-02-12 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:05:05 [end_date_ymd] => 2025-02-12 06:05:05 [RateCDR] => 1 ) [2025-02-12 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:05:05' and `end` < '2025-02-12 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:05:18] Production.INFO: count ==139 [2025-02-12 06:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:05:05 - End Time 2025-02-12 06:05:05 [2025-02-12 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457120', 'tblTempUsageDetail_20' ) start [2025-02-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457120', 'tblTempUsageDetail_20' ) end [2025-02-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457120', 'tblTempVendorCDR_20' ) start [2025-02-12 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457120', 'tblTempVendorCDR_20' ) end [2025-02-12 06:05:18] Production.INFO: ProcessCDR(1,14457120,1,1,2) [2025-02-12 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457120', 'tblTempUsageDetail_20' ) start [2025-02-12 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457120', 'tblTempUsageDetail_20' ) end [2025-02-12 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:05:21] Production.INFO: ==3429== Releasing lock... [2025-02-12 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:06:05 [end_date_ymd] => 2025-02-12 06:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:06:05' and `end` < '2025-02-12 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-12 06:06:18] Production.INFO: count ==139 [2025-02-12 06:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:06:05 - End Time 2025-02-12 06:06:05 [2025-02-12 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457125', 'tblTempUsageDetail_20' ) start [2025-02-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457125', 'tblTempUsageDetail_20' ) end [2025-02-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457125', 'tblTempVendorCDR_20' ) start [2025-02-12 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457125', 'tblTempVendorCDR_20' ) end [2025-02-12 06:06:18] Production.INFO: ProcessCDR(1,14457125,1,1,2) [2025-02-12 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457125', 'tblTempUsageDetail_20' ) start [2025-02-12 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457125', 'tblTempUsageDetail_20' ) end [2025-02-12 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:06:21] Production.INFO: ==3504== Releasing lock... [2025-02-12 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:07:05 [end_date_ymd] => 2025-02-12 06:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:07:05' and `end` < '2025-02-12 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-12 06:07:18] Production.INFO: count ==139 [2025-02-12 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:07:05 - End Time 2025-02-12 06:07:05 [2025-02-12 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457130', 'tblTempUsageDetail_20' ) start [2025-02-12 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457130', 'tblTempUsageDetail_20' ) end [2025-02-12 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457130', 'tblTempVendorCDR_20' ) start [2025-02-12 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457130', 'tblTempVendorCDR_20' ) end [2025-02-12 06:07:18] Production.INFO: ProcessCDR(1,14457130,1,1,2) [2025-02-12 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457130', 'tblTempUsageDetail_20' ) start [2025-02-12 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457130', 'tblTempUsageDetail_20' ) end [2025-02-12 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:07:21] Production.INFO: ==3585== Releasing lock... [2025-02-12 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:08:05 [end_date_ymd] => 2025-02-12 06:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:08:05' and `end` < '2025-02-12 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-12 06:08:18] Production.INFO: count ==139 [2025-02-12 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:08:05 - End Time 2025-02-12 06:08:05 [2025-02-12 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457135', 'tblTempUsageDetail_20' ) start [2025-02-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457135', 'tblTempUsageDetail_20' ) end [2025-02-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457135', 'tblTempVendorCDR_20' ) start [2025-02-12 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457135', 'tblTempVendorCDR_20' ) end [2025-02-12 06:08:18] Production.INFO: ProcessCDR(1,14457135,1,1,2) [2025-02-12 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457135', 'tblTempUsageDetail_20' ) start [2025-02-12 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457135', 'tblTempUsageDetail_20' ) end [2025-02-12 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:08:21] Production.INFO: ==3661== Releasing lock... [2025-02-12 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:09:05 [end_date_ymd] => 2025-02-12 06:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:09:05' and `end` < '2025-02-12 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-12 06:09:19] Production.INFO: count ==140 [2025-02-12 06:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:09:05 - End Time 2025-02-12 06:09:05 [2025-02-12 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457140', 'tblTempUsageDetail_20' ) start [2025-02-12 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457140', 'tblTempUsageDetail_20' ) end [2025-02-12 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457140', 'tblTempVendorCDR_20' ) start [2025-02-12 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457140', 'tblTempVendorCDR_20' ) end [2025-02-12 06:09:19] Production.INFO: ProcessCDR(1,14457140,1,1,2) [2025-02-12 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457140', 'tblTempUsageDetail_20' ) start [2025-02-12 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457140', 'tblTempUsageDetail_20' ) end [2025-02-12 06:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:09:23] Production.INFO: ==3735== Releasing lock... [2025-02-12 06:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:10:06 [end_date_ymd] => 2025-02-12 06:10:06 [RateCDR] => 1 ) [2025-02-12 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:10:06' and `end` < '2025-02-12 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:10:19] Production.INFO: count ==138 [2025-02-12 06:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:10:06 - End Time 2025-02-12 06:10:06 [2025-02-12 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457146', 'tblTempUsageDetail_20' ) start [2025-02-12 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457146', 'tblTempUsageDetail_20' ) end [2025-02-12 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457146', 'tblTempVendorCDR_20' ) start [2025-02-12 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457146', 'tblTempVendorCDR_20' ) end [2025-02-12 06:10:19] Production.INFO: ProcessCDR(1,14457146,1,1,2) [2025-02-12 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457146', 'tblTempUsageDetail_20' ) start [2025-02-12 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457146', 'tblTempUsageDetail_20' ) end [2025-02-12 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:10:22] Production.INFO: ==3815== Releasing lock... [2025-02-12 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:11:04 [end_date_ymd] => 2025-02-12 06:11:04 [RateCDR] => 1 ) [2025-02-12 06: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-12 03:11:04' and `end` < '2025-02-12 06: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-12 06:11:18] Production.INFO: count ==138 [2025-02-12 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:11:04 - End Time 2025-02-12 06:11:04 [2025-02-12 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457151', 'tblTempUsageDetail_20' ) start [2025-02-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457151', 'tblTempUsageDetail_20' ) end [2025-02-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457151', 'tblTempVendorCDR_20' ) start [2025-02-12 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457151', 'tblTempVendorCDR_20' ) end [2025-02-12 06:11:18] Production.INFO: ProcessCDR(1,14457151,1,1,2) [2025-02-12 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457151', 'tblTempUsageDetail_20' ) start [2025-02-12 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457151', 'tblTempUsageDetail_20' ) end [2025-02-12 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:11:21] Production.INFO: ==3892== Releasing lock... [2025-02-12 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-12 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:12:05 [end_date_ymd] => 2025-02-12 06:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:12:05' and `end` < '2025-02-12 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-12 06:12:19] Production.INFO: count ==141 [2025-02-12 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:12:05 - End Time 2025-02-12 06:12:05 [2025-02-12 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457156', 'tblTempUsageDetail_20' ) start [2025-02-12 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457156', 'tblTempUsageDetail_20' ) end [2025-02-12 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457156', 'tblTempVendorCDR_20' ) start [2025-02-12 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457156', 'tblTempVendorCDR_20' ) end [2025-02-12 06:12:19] Production.INFO: ProcessCDR(1,14457156,1,1,2) [2025-02-12 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457156', 'tblTempUsageDetail_20' ) start [2025-02-12 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457156', 'tblTempUsageDetail_20' ) end [2025-02-12 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:12:22] Production.INFO: ==3971== Releasing lock... [2025-02-12 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:13:05 [end_date_ymd] => 2025-02-12 06:13:05 [RateCDR] => 1 ) [2025-02-12 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:13:05' and `end` < '2025-02-12 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:13:19] Production.INFO: count ==143 [2025-02-12 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:13:05 - End Time 2025-02-12 06:13:05 [2025-02-12 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457161', 'tblTempUsageDetail_20' ) start [2025-02-12 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457161', 'tblTempUsageDetail_20' ) end [2025-02-12 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457161', 'tblTempVendorCDR_20' ) start [2025-02-12 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457161', 'tblTempVendorCDR_20' ) end [2025-02-12 06:13:19] Production.INFO: ProcessCDR(1,14457161,1,1,2) [2025-02-12 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457161', 'tblTempUsageDetail_20' ) start [2025-02-12 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457161', 'tblTempUsageDetail_20' ) end [2025-02-12 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:13:22] Production.INFO: ==4058== Releasing lock... [2025-02-12 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:14:05 [end_date_ymd] => 2025-02-12 06:14:05 [RateCDR] => 1 ) [2025-02-12 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:14:05' and `end` < '2025-02-12 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:14:18] Production.INFO: count ==143 [2025-02-12 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:14:05 - End Time 2025-02-12 06:14:05 [2025-02-12 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457166', 'tblTempUsageDetail_20' ) start [2025-02-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457166', 'tblTempUsageDetail_20' ) end [2025-02-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457166', 'tblTempVendorCDR_20' ) start [2025-02-12 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457166', 'tblTempVendorCDR_20' ) end [2025-02-12 06:14:18] Production.INFO: ProcessCDR(1,14457166,1,1,2) [2025-02-12 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457166', 'tblTempUsageDetail_20' ) start [2025-02-12 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457166', 'tblTempUsageDetail_20' ) end [2025-02-12 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:14:21] Production.INFO: ==4141== Releasing lock... [2025-02-12 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:15:05 [end_date_ymd] => 2025-02-12 06:15:05 [RateCDR] => 1 ) [2025-02-12 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:15:05' and `end` < '2025-02-12 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:15:18] Production.INFO: count ==143 [2025-02-12 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:15:05 - End Time 2025-02-12 06:15:05 [2025-02-12 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457171', 'tblTempUsageDetail_20' ) start [2025-02-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457171', 'tblTempUsageDetail_20' ) end [2025-02-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457171', 'tblTempVendorCDR_20' ) start [2025-02-12 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457171', 'tblTempVendorCDR_20' ) end [2025-02-12 06:15:18] Production.INFO: ProcessCDR(1,14457171,1,1,2) [2025-02-12 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457171', 'tblTempUsageDetail_20' ) start [2025-02-12 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457171', 'tblTempUsageDetail_20' ) end [2025-02-12 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:15:21] Production.INFO: ==4224== Releasing lock... [2025-02-12 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:16:05 [end_date_ymd] => 2025-02-12 06:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:16:05' and `end` < '2025-02-12 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-12 06:16:21] Production.INFO: count ==151 [2025-02-12 06:16:21] Production.ERROR: pbx CDR StartTime 2025-02-12 03:16:05 - End Time 2025-02-12 06:16:05 [2025-02-12 06:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457176', 'tblTempUsageDetail_20' ) start [2025-02-12 06:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457176', 'tblTempUsageDetail_20' ) end [2025-02-12 06:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457176', 'tblTempVendorCDR_20' ) start [2025-02-12 06:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457176', 'tblTempVendorCDR_20' ) end [2025-02-12 06:16:21] Production.INFO: ProcessCDR(1,14457176,1,1,2) [2025-02-12 06:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457176', 'tblTempUsageDetail_20' ) start [2025-02-12 06:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457176', 'tblTempUsageDetail_20' ) end [2025-02-12 06:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:16:25] Production.INFO: ==4306== Releasing lock... [2025-02-12 06:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:16:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:17:04 [end_date_ymd] => 2025-02-12 06:17:04 [RateCDR] => 1 ) [2025-02-12 06: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-12 03:17:04' and `end` < '2025-02-12 06: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-12 06:17:18] Production.INFO: count ==151 [2025-02-12 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:17:04 - End Time 2025-02-12 06:17:04 [2025-02-12 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457181', 'tblTempUsageDetail_20' ) start [2025-02-12 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457181', 'tblTempUsageDetail_20' ) end [2025-02-12 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457181', 'tblTempVendorCDR_20' ) start [2025-02-12 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457181', 'tblTempVendorCDR_20' ) end [2025-02-12 06:17:18] Production.INFO: ProcessCDR(1,14457181,1,1,2) [2025-02-12 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457181', 'tblTempUsageDetail_20' ) start [2025-02-12 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457181', 'tblTempUsageDetail_20' ) end [2025-02-12 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:17:21] Production.INFO: ==4393== Releasing lock... [2025-02-12 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:18:05 [end_date_ymd] => 2025-02-12 06:18:05 [RateCDR] => 1 ) [2025-02-12 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:18:05' and `end` < '2025-02-12 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:18:19] Production.INFO: count ==151 [2025-02-12 06:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:18:05 - End Time 2025-02-12 06:18:05 [2025-02-12 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457186', 'tblTempUsageDetail_20' ) start [2025-02-12 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457186', 'tblTempUsageDetail_20' ) end [2025-02-12 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457186', 'tblTempVendorCDR_20' ) start [2025-02-12 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457186', 'tblTempVendorCDR_20' ) end [2025-02-12 06:18:19] Production.INFO: ProcessCDR(1,14457186,1,1,2) [2025-02-12 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457186', 'tblTempUsageDetail_20' ) start [2025-02-12 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457186', 'tblTempUsageDetail_20' ) end [2025-02-12 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:18:22] Production.INFO: ==4520== Releasing lock... [2025-02-12 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-12 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:19:05 [end_date_ymd] => 2025-02-12 06:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:19:05' and `end` < '2025-02-12 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-12 06:19:18] Production.INFO: count ==155 [2025-02-12 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:19:05 - End Time 2025-02-12 06:19:05 [2025-02-12 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457191', 'tblTempUsageDetail_20' ) start [2025-02-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457191', 'tblTempUsageDetail_20' ) end [2025-02-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457191', 'tblTempVendorCDR_20' ) start [2025-02-12 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457191', 'tblTempVendorCDR_20' ) end [2025-02-12 06:19:18] Production.INFO: ProcessCDR(1,14457191,1,1,2) [2025-02-12 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457191', 'tblTempUsageDetail_20' ) start [2025-02-12 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457191', 'tblTempUsageDetail_20' ) end [2025-02-12 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:19:21] Production.INFO: ==4617== Releasing lock... [2025-02-12 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:19:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:20:05 [end_date_ymd] => 2025-02-12 06:20:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:20:05' and `end` < '2025-02-12 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-12 06:20:18] Production.INFO: count ==157 [2025-02-12 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:20:05 - End Time 2025-02-12 06:20:05 [2025-02-12 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457196', 'tblTempUsageDetail_20' ) start [2025-02-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457196', 'tblTempUsageDetail_20' ) end [2025-02-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457196', 'tblTempVendorCDR_20' ) start [2025-02-12 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457196', 'tblTempVendorCDR_20' ) end [2025-02-12 06:20:18] Production.INFO: ProcessCDR(1,14457196,1,1,2) [2025-02-12 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457196', 'tblTempUsageDetail_20' ) start [2025-02-12 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457196', 'tblTempUsageDetail_20' ) end [2025-02-12 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:20:22] Production.INFO: ==4706== Releasing lock... [2025-02-12 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:20:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:21:04 [end_date_ymd] => 2025-02-12 06:21:04 [RateCDR] => 1 ) [2025-02-12 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:21:04' and `end` < '2025-02-12 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:21:18] Production.INFO: count ==157 [2025-02-12 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:21:04 - End Time 2025-02-12 06:21:04 [2025-02-12 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457202', 'tblTempUsageDetail_20' ) start [2025-02-12 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457202', 'tblTempUsageDetail_20' ) end [2025-02-12 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457202', 'tblTempVendorCDR_20' ) start [2025-02-12 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457202', 'tblTempVendorCDR_20' ) end [2025-02-12 06:21:18] Production.INFO: ProcessCDR(1,14457202,1,1,2) [2025-02-12 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457202', 'tblTempUsageDetail_20' ) start [2025-02-12 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457202', 'tblTempUsageDetail_20' ) end [2025-02-12 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:21:22] Production.INFO: ==4793== Releasing lock... [2025-02-12 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:21:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:22:05 [end_date_ymd] => 2025-02-12 06:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:22:05' and `end` < '2025-02-12 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-12 06:22:19] Production.INFO: count ==158 [2025-02-12 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:22:05 - End Time 2025-02-12 06:22:05 [2025-02-12 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457207', 'tblTempUsageDetail_20' ) start [2025-02-12 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457207', 'tblTempUsageDetail_20' ) end [2025-02-12 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457207', 'tblTempVendorCDR_20' ) start [2025-02-12 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457207', 'tblTempVendorCDR_20' ) end [2025-02-12 06:22:19] Production.INFO: ProcessCDR(1,14457207,1,1,2) [2025-02-12 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457207', 'tblTempUsageDetail_20' ) start [2025-02-12 06:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457207', 'tblTempUsageDetail_20' ) end [2025-02-12 06:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:22:23] Production.INFO: ==4879== Releasing lock... [2025-02-12 06:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:22:23] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:23:05 [end_date_ymd] => 2025-02-12 06:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:23:05' and `end` < '2025-02-12 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-12 06:23:19] Production.INFO: count ==158 [2025-02-12 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:23:05 - End Time 2025-02-12 06:23:05 [2025-02-12 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457212', 'tblTempUsageDetail_20' ) start [2025-02-12 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457212', 'tblTempUsageDetail_20' ) end [2025-02-12 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457212', 'tblTempVendorCDR_20' ) start [2025-02-12 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457212', 'tblTempVendorCDR_20' ) end [2025-02-12 06:23:19] Production.INFO: ProcessCDR(1,14457212,1,1,2) [2025-02-12 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457212', 'tblTempUsageDetail_20' ) start [2025-02-12 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457212', 'tblTempUsageDetail_20' ) end [2025-02-12 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:23:22] Production.INFO: ==4961== Releasing lock... [2025-02-12 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:23:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:24:05 [end_date_ymd] => 2025-02-12 06:24:05 [RateCDR] => 1 ) [2025-02-12 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:24:05' and `end` < '2025-02-12 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:24:17] Production.INFO: count ==158 [2025-02-12 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-12 03:24:05 - End Time 2025-02-12 06:24:05 [2025-02-12 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457217', 'tblTempUsageDetail_20' ) start [2025-02-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457217', 'tblTempUsageDetail_20' ) end [2025-02-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457217', 'tblTempVendorCDR_20' ) start [2025-02-12 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457217', 'tblTempVendorCDR_20' ) end [2025-02-12 06:24:17] Production.INFO: ProcessCDR(1,14457217,1,1,2) [2025-02-12 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457217', 'tblTempUsageDetail_20' ) start [2025-02-12 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457217', 'tblTempUsageDetail_20' ) end [2025-02-12 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:24:21] Production.INFO: ==5047== Releasing lock... [2025-02-12 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:25:05 [end_date_ymd] => 2025-02-12 06:25:05 [RateCDR] => 1 ) [2025-02-12 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:25:05' and `end` < '2025-02-12 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:25:18] Production.INFO: count ==158 [2025-02-12 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:25:05 - End Time 2025-02-12 06:25:05 [2025-02-12 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457222', 'tblTempUsageDetail_20' ) start [2025-02-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457222', 'tblTempUsageDetail_20' ) end [2025-02-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457222', 'tblTempVendorCDR_20' ) start [2025-02-12 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457222', 'tblTempVendorCDR_20' ) end [2025-02-12 06:25:18] Production.INFO: ProcessCDR(1,14457222,1,1,2) [2025-02-12 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457222', 'tblTempUsageDetail_20' ) start [2025-02-12 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457222', 'tblTempUsageDetail_20' ) end [2025-02-12 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:25:21] Production.INFO: ==5131== Releasing lock... [2025-02-12 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:26:05 [end_date_ymd] => 2025-02-12 06:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:26:05' and `end` < '2025-02-12 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-12 06:26:18] Production.INFO: count ==158 [2025-02-12 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:26:05 - End Time 2025-02-12 06:26:05 [2025-02-12 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457227', 'tblTempUsageDetail_20' ) start [2025-02-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457227', 'tblTempUsageDetail_20' ) end [2025-02-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457227', 'tblTempVendorCDR_20' ) start [2025-02-12 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457227', 'tblTempVendorCDR_20' ) end [2025-02-12 06:26:18] Production.INFO: ProcessCDR(1,14457227,1,1,2) [2025-02-12 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457227', 'tblTempUsageDetail_20' ) start [2025-02-12 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457227', 'tblTempUsageDetail_20' ) end [2025-02-12 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:26:21] Production.INFO: ==5224== Releasing lock... [2025-02-12 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:27:05 [end_date_ymd] => 2025-02-12 06:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:27:05' and `end` < '2025-02-12 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-12 06:27:19] Production.INFO: count ==158 [2025-02-12 06:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:27:05 - End Time 2025-02-12 06:27:05 [2025-02-12 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457232', 'tblTempUsageDetail_20' ) start [2025-02-12 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457232', 'tblTempUsageDetail_20' ) end [2025-02-12 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457232', 'tblTempVendorCDR_20' ) start [2025-02-12 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457232', 'tblTempVendorCDR_20' ) end [2025-02-12 06:27:19] Production.INFO: ProcessCDR(1,14457232,1,1,2) [2025-02-12 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457232', 'tblTempUsageDetail_20' ) start [2025-02-12 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457232', 'tblTempUsageDetail_20' ) end [2025-02-12 06:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:27:23] Production.INFO: ==5316== Releasing lock... [2025-02-12 06:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:27:23] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:28:05 [end_date_ymd] => 2025-02-12 06:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:28:05' and `end` < '2025-02-12 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-12 06:28:18] Production.INFO: count ==158 [2025-02-12 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:28:05 - End Time 2025-02-12 06:28:05 [2025-02-12 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457237', 'tblTempUsageDetail_20' ) start [2025-02-12 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457237', 'tblTempUsageDetail_20' ) end [2025-02-12 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457237', 'tblTempVendorCDR_20' ) start [2025-02-12 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457237', 'tblTempVendorCDR_20' ) end [2025-02-12 06:28:19] Production.INFO: ProcessCDR(1,14457237,1,1,2) [2025-02-12 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457237', 'tblTempUsageDetail_20' ) start [2025-02-12 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457237', 'tblTempUsageDetail_20' ) end [2025-02-12 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:28:22] Production.INFO: ==5404== Releasing lock... [2025-02-12 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:28:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:29:06 [end_date_ymd] => 2025-02-12 06:29:06 [RateCDR] => 1 ) [2025-02-12 06:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:29:06' and `end` < '2025-02-12 06:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:29:19] Production.INFO: count ==158 [2025-02-12 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:29:06 - End Time 2025-02-12 06:29:06 [2025-02-12 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457242', 'tblTempUsageDetail_20' ) start [2025-02-12 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457242', 'tblTempUsageDetail_20' ) end [2025-02-12 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457242', 'tblTempVendorCDR_20' ) start [2025-02-12 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457242', 'tblTempVendorCDR_20' ) end [2025-02-12 06:29:19] Production.INFO: ProcessCDR(1,14457242,1,1,2) [2025-02-12 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457242', 'tblTempUsageDetail_20' ) start [2025-02-12 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457242', 'tblTempUsageDetail_20' ) end [2025-02-12 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:29:22] Production.INFO: ==5488== Releasing lock... [2025-02-12 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:29:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:30:06 [end_date_ymd] => 2025-02-12 06:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 03:30:06' and `end` < '2025-02-12 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-12 06:30:19] Production.INFO: count ==160 [2025-02-12 06:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:30:06 - End Time 2025-02-12 06:30:06 [2025-02-12 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457248', 'tblTempUsageDetail_20' ) start [2025-02-12 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457248', 'tblTempUsageDetail_20' ) end [2025-02-12 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457248', 'tblTempVendorCDR_20' ) start [2025-02-12 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457248', 'tblTempVendorCDR_20' ) end [2025-02-12 06:30:19] Production.INFO: ProcessCDR(1,14457248,1,1,2) [2025-02-12 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457248', 'tblTempUsageDetail_20' ) start [2025-02-12 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457248', 'tblTempUsageDetail_20' ) end [2025-02-12 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:30:22] Production.INFO: ==5581== Releasing lock... [2025-02-12 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:30:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:31:06 [end_date_ymd] => 2025-02-12 06:31:06 [RateCDR] => 1 ) [2025-02-12 06:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:31:06' and `end` < '2025-02-12 06:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:31:18] Production.INFO: count ==161 [2025-02-12 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:31:06 - End Time 2025-02-12 06:31:06 [2025-02-12 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457253', 'tblTempUsageDetail_20' ) start [2025-02-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457253', 'tblTempUsageDetail_20' ) end [2025-02-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457253', 'tblTempVendorCDR_20' ) start [2025-02-12 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457253', 'tblTempVendorCDR_20' ) end [2025-02-12 06:31:18] Production.INFO: ProcessCDR(1,14457253,1,1,2) [2025-02-12 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457253', 'tblTempUsageDetail_20' ) start [2025-02-12 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457253', 'tblTempUsageDetail_20' ) end [2025-02-12 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:31:22] Production.INFO: ==5671== Releasing lock... [2025-02-12 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:31:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:32:06 [end_date_ymd] => 2025-02-12 06:32:06 [RateCDR] => 1 ) [2025-02-12 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:32:06' and `end` < '2025-02-12 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:32:18] Production.INFO: count ==161 [2025-02-12 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:32:06 - End Time 2025-02-12 06:32:06 [2025-02-12 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457258', 'tblTempUsageDetail_20' ) start [2025-02-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457258', 'tblTempUsageDetail_20' ) end [2025-02-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457258', 'tblTempVendorCDR_20' ) start [2025-02-12 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457258', 'tblTempVendorCDR_20' ) end [2025-02-12 06:32:18] Production.INFO: ProcessCDR(1,14457258,1,1,2) [2025-02-12 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457258', 'tblTempUsageDetail_20' ) start [2025-02-12 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457258', 'tblTempUsageDetail_20' ) end [2025-02-12 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:32:22] Production.INFO: ==5758== Releasing lock... [2025-02-12 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:32:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:33:05 [end_date_ymd] => 2025-02-12 06:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:33:05' and `end` < '2025-02-12 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-12 06:33:19] Production.INFO: count ==161 [2025-02-12 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:33:05 - End Time 2025-02-12 06:33:05 [2025-02-12 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457263', 'tblTempUsageDetail_20' ) start [2025-02-12 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457263', 'tblTempUsageDetail_20' ) end [2025-02-12 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457263', 'tblTempVendorCDR_20' ) start [2025-02-12 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457263', 'tblTempVendorCDR_20' ) end [2025-02-12 06:33:19] Production.INFO: ProcessCDR(1,14457263,1,1,2) [2025-02-12 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457263', 'tblTempUsageDetail_20' ) start [2025-02-12 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457263', 'tblTempUsageDetail_20' ) end [2025-02-12 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:33:23] Production.INFO: ==5843== Releasing lock... [2025-02-12 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:33:23] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:34:05 [end_date_ymd] => 2025-02-12 06:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:34:05' and `end` < '2025-02-12 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-12 06:34:18] Production.INFO: count ==161 [2025-02-12 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:34:05 - End Time 2025-02-12 06:34:05 [2025-02-12 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457268', 'tblTempUsageDetail_20' ) start [2025-02-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457268', 'tblTempUsageDetail_20' ) end [2025-02-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457268', 'tblTempVendorCDR_20' ) start [2025-02-12 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457268', 'tblTempVendorCDR_20' ) end [2025-02-12 06:34:18] Production.INFO: ProcessCDR(1,14457268,1,1,2) [2025-02-12 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457268', 'tblTempUsageDetail_20' ) start [2025-02-12 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457268', 'tblTempUsageDetail_20' ) end [2025-02-12 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:34:22] Production.INFO: ==5966== Releasing lock... [2025-02-12 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:34:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:35:05 [end_date_ymd] => 2025-02-12 06:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:35:05' and `end` < '2025-02-12 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-12 06:35:18] Production.INFO: count ==169 [2025-02-12 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:35:05 - End Time 2025-02-12 06:35:05 [2025-02-12 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457273', 'tblTempUsageDetail_20' ) start [2025-02-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457273', 'tblTempUsageDetail_20' ) end [2025-02-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457273', 'tblTempVendorCDR_20' ) start [2025-02-12 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457273', 'tblTempVendorCDR_20' ) end [2025-02-12 06:35:18] Production.INFO: ProcessCDR(1,14457273,1,1,2) [2025-02-12 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457273', 'tblTempUsageDetail_20' ) start [2025-02-12 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457273', 'tblTempUsageDetail_20' ) end [2025-02-12 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:35:21] Production.INFO: ==6050== Releasing lock... [2025-02-12 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:35:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:36:04 [end_date_ymd] => 2025-02-12 06:36:04 [RateCDR] => 1 ) [2025-02-12 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-12 03:36:04' and `end` < '2025-02-12 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-12 06:36:18] Production.INFO: count ==169 [2025-02-12 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:36:04 - End Time 2025-02-12 06:36:04 [2025-02-12 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457278', 'tblTempUsageDetail_20' ) start [2025-02-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457278', 'tblTempUsageDetail_20' ) end [2025-02-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457278', 'tblTempVendorCDR_20' ) start [2025-02-12 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457278', 'tblTempVendorCDR_20' ) end [2025-02-12 06:36:18] Production.INFO: ProcessCDR(1,14457278,1,1,2) [2025-02-12 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457278', 'tblTempUsageDetail_20' ) start [2025-02-12 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457278', 'tblTempUsageDetail_20' ) end [2025-02-12 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:36:21] Production.INFO: ==6136== Releasing lock... [2025-02-12 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:36:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:37:05 [end_date_ymd] => 2025-02-12 06:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:37:05' and `end` < '2025-02-12 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-12 06:37:18] Production.INFO: count ==169 [2025-02-12 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:37:05 - End Time 2025-02-12 06:37:05 [2025-02-12 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457283', 'tblTempUsageDetail_20' ) start [2025-02-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457283', 'tblTempUsageDetail_20' ) end [2025-02-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457283', 'tblTempVendorCDR_20' ) start [2025-02-12 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457283', 'tblTempVendorCDR_20' ) end [2025-02-12 06:37:18] Production.INFO: ProcessCDR(1,14457283,1,1,2) [2025-02-12 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457283', 'tblTempUsageDetail_20' ) start [2025-02-12 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457283', 'tblTempUsageDetail_20' ) end [2025-02-12 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:37:21] Production.INFO: ==6216== Releasing lock... [2025-02-12 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:37:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:38:05 [end_date_ymd] => 2025-02-12 06:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:38:05' and `end` < '2025-02-12 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-12 06:38:18] Production.INFO: count ==169 [2025-02-12 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:38:05 - End Time 2025-02-12 06:38:05 [2025-02-12 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457288', 'tblTempUsageDetail_20' ) start [2025-02-12 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457288', 'tblTempUsageDetail_20' ) end [2025-02-12 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457288', 'tblTempVendorCDR_20' ) start [2025-02-12 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457288', 'tblTempVendorCDR_20' ) end [2025-02-12 06:38:18] Production.INFO: ProcessCDR(1,14457288,1,1,2) [2025-02-12 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457288', 'tblTempUsageDetail_20' ) start [2025-02-12 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457288', 'tblTempUsageDetail_20' ) end [2025-02-12 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:38:21] Production.INFO: ==6303== Releasing lock... [2025-02-12 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:38:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:39:05 [end_date_ymd] => 2025-02-12 06:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:39:05' and `end` < '2025-02-12 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-12 06:39:18] Production.INFO: count ==169 [2025-02-12 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:39:05 - End Time 2025-02-12 06:39:05 [2025-02-12 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457293', 'tblTempUsageDetail_20' ) start [2025-02-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457293', 'tblTempUsageDetail_20' ) end [2025-02-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457293', 'tblTempVendorCDR_20' ) start [2025-02-12 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457293', 'tblTempVendorCDR_20' ) end [2025-02-12 06:39:18] Production.INFO: ProcessCDR(1,14457293,1,1,2) [2025-02-12 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457293', 'tblTempUsageDetail_20' ) start [2025-02-12 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457293', 'tblTempUsageDetail_20' ) end [2025-02-12 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:39:22] Production.INFO: ==6387== Releasing lock... [2025-02-12 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:39:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:40:06 [end_date_ymd] => 2025-02-12 06:40:06 [RateCDR] => 1 ) [2025-02-12 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:40:06' and `end` < '2025-02-12 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:40:19] Production.INFO: count ==167 [2025-02-12 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:40:06 - End Time 2025-02-12 06:40:06 [2025-02-12 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457299', 'tblTempUsageDetail_20' ) start [2025-02-12 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457299', 'tblTempUsageDetail_20' ) end [2025-02-12 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457299', 'tblTempVendorCDR_20' ) start [2025-02-12 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457299', 'tblTempVendorCDR_20' ) end [2025-02-12 06:40:19] Production.INFO: ProcessCDR(1,14457299,1,1,2) [2025-02-12 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457299', 'tblTempUsageDetail_20' ) start [2025-02-12 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457299', 'tblTempUsageDetail_20' ) end [2025-02-12 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:40:22] Production.INFO: ==6474== Releasing lock... [2025-02-12 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:40:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:41:04 [end_date_ymd] => 2025-02-12 06:41:04 [RateCDR] => 1 ) [2025-02-12 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:41:04' and `end` < '2025-02-12 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:41:18] Production.INFO: count ==172 [2025-02-12 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:41:04 - End Time 2025-02-12 06:41:04 [2025-02-12 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457304', 'tblTempUsageDetail_20' ) start [2025-02-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457304', 'tblTempUsageDetail_20' ) end [2025-02-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457304', 'tblTempVendorCDR_20' ) start [2025-02-12 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457304', 'tblTempVendorCDR_20' ) end [2025-02-12 06:41:18] Production.INFO: ProcessCDR(1,14457304,1,1,2) [2025-02-12 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457304', 'tblTempUsageDetail_20' ) start [2025-02-12 06:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457304', 'tblTempUsageDetail_20' ) end [2025-02-12 06:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:41:23] Production.INFO: ==6563== Releasing lock... [2025-02-12 06:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:41:23] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:42:05 [end_date_ymd] => 2025-02-12 06:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:42:05' and `end` < '2025-02-12 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-12 06:42:18] Production.INFO: count ==172 [2025-02-12 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:42:05 - End Time 2025-02-12 06:42:05 [2025-02-12 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457309', 'tblTempUsageDetail_20' ) start [2025-02-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457309', 'tblTempUsageDetail_20' ) end [2025-02-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457309', 'tblTempVendorCDR_20' ) start [2025-02-12 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457309', 'tblTempVendorCDR_20' ) end [2025-02-12 06:42:18] Production.INFO: ProcessCDR(1,14457309,1,1,2) [2025-02-12 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457309', 'tblTempUsageDetail_20' ) start [2025-02-12 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457309', 'tblTempUsageDetail_20' ) end [2025-02-12 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:42:21] Production.INFO: ==6647== Releasing lock... [2025-02-12 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:42:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:43:04 [end_date_ymd] => 2025-02-12 06:43:04 [RateCDR] => 1 ) [2025-02-12 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-12 03:43:04' and `end` < '2025-02-12 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-12 06:43:17] Production.INFO: count ==173 [2025-02-12 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-12 03:43:04 - End Time 2025-02-12 06:43:04 [2025-02-12 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457314', 'tblTempUsageDetail_20' ) start [2025-02-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457314', 'tblTempUsageDetail_20' ) end [2025-02-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457314', 'tblTempVendorCDR_20' ) start [2025-02-12 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457314', 'tblTempVendorCDR_20' ) end [2025-02-12 06:43:17] Production.INFO: ProcessCDR(1,14457314,1,1,2) [2025-02-12 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457314', 'tblTempUsageDetail_20' ) start [2025-02-12 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457314', 'tblTempUsageDetail_20' ) end [2025-02-12 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:43:22] Production.INFO: ==6732== Releasing lock... [2025-02-12 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:43:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:44:05 [end_date_ymd] => 2025-02-12 06:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:44:05' and `end` < '2025-02-12 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-12 06:44:18] Production.INFO: count ==173 [2025-02-12 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:44:05 - End Time 2025-02-12 06:44:05 [2025-02-12 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457319', 'tblTempUsageDetail_20' ) start [2025-02-12 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457319', 'tblTempUsageDetail_20' ) end [2025-02-12 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457319', 'tblTempVendorCDR_20' ) start [2025-02-12 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457319', 'tblTempVendorCDR_20' ) end [2025-02-12 06:44:18] Production.INFO: ProcessCDR(1,14457319,1,1,2) [2025-02-12 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457319', 'tblTempUsageDetail_20' ) start [2025-02-12 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457319', 'tblTempUsageDetail_20' ) end [2025-02-12 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:44:21] Production.INFO: ==6828== Releasing lock... [2025-02-12 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:45:04 [end_date_ymd] => 2025-02-12 06:45:04 [RateCDR] => 1 ) [2025-02-12 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-12 03:45:04' and `end` < '2025-02-12 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-12 06:45:17] Production.INFO: count ==173 [2025-02-12 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-12 03:45:04 - End Time 2025-02-12 06:45:04 [2025-02-12 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457324', 'tblTempUsageDetail_20' ) start [2025-02-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457324', 'tblTempUsageDetail_20' ) end [2025-02-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457324', 'tblTempVendorCDR_20' ) start [2025-02-12 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457324', 'tblTempVendorCDR_20' ) end [2025-02-12 06:45:17] Production.INFO: ProcessCDR(1,14457324,1,1,2) [2025-02-12 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457324', 'tblTempUsageDetail_20' ) start [2025-02-12 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457324', 'tblTempUsageDetail_20' ) end [2025-02-12 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:45:20] Production.INFO: ==6918== Releasing lock... [2025-02-12 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:45:20] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:46:05 [end_date_ymd] => 2025-02-12 06:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:46:05' and `end` < '2025-02-12 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-12 06:46:19] Production.INFO: count ==173 [2025-02-12 06:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:46:05 - End Time 2025-02-12 06:46:05 [2025-02-12 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457329', 'tblTempUsageDetail_20' ) start [2025-02-12 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457329', 'tblTempUsageDetail_20' ) end [2025-02-12 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457329', 'tblTempVendorCDR_20' ) start [2025-02-12 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457329', 'tblTempVendorCDR_20' ) end [2025-02-12 06:46:19] Production.INFO: ProcessCDR(1,14457329,1,1,2) [2025-02-12 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457329', 'tblTempUsageDetail_20' ) start [2025-02-12 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457329', 'tblTempUsageDetail_20' ) end [2025-02-12 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:46:22] Production.INFO: ==7002== Releasing lock... [2025-02-12 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:46:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:47:05 [end_date_ymd] => 2025-02-12 06:47:05 [RateCDR] => 1 ) [2025-02-12 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:47:05' and `end` < '2025-02-12 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:47:19] Production.INFO: count ==173 [2025-02-12 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:47:05 - End Time 2025-02-12 06:47:05 [2025-02-12 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457334', 'tblTempUsageDetail_20' ) start [2025-02-12 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457334', 'tblTempUsageDetail_20' ) end [2025-02-12 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457334', 'tblTempVendorCDR_20' ) start [2025-02-12 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457334', 'tblTempVendorCDR_20' ) end [2025-02-12 06:47:19] Production.INFO: ProcessCDR(1,14457334,1,1,2) [2025-02-12 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457334', 'tblTempUsageDetail_20' ) start [2025-02-12 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457334', 'tblTempUsageDetail_20' ) end [2025-02-12 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:47:22] Production.INFO: ==7084== Releasing lock... [2025-02-12 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:47:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:48:05 [end_date_ymd] => 2025-02-12 06:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:48:05' and `end` < '2025-02-12 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-12 06:48:18] Production.INFO: count ==173 [2025-02-12 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:48:05 - End Time 2025-02-12 06:48:05 [2025-02-12 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457339', 'tblTempUsageDetail_20' ) start [2025-02-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457339', 'tblTempUsageDetail_20' ) end [2025-02-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457339', 'tblTempVendorCDR_20' ) start [2025-02-12 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457339', 'tblTempVendorCDR_20' ) end [2025-02-12 06:48:18] Production.INFO: ProcessCDR(1,14457339,1,1,2) [2025-02-12 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457339', 'tblTempUsageDetail_20' ) start [2025-02-12 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457339', 'tblTempUsageDetail_20' ) end [2025-02-12 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:48:21] Production.INFO: ==7159== Releasing lock... [2025-02-12 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:48:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:49:05 [end_date_ymd] => 2025-02-12 06:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:49:05' and `end` < '2025-02-12 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-12 06:49:18] Production.INFO: count ==173 [2025-02-12 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:49:05 - End Time 2025-02-12 06:49:05 [2025-02-12 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457344', 'tblTempUsageDetail_20' ) start [2025-02-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457344', 'tblTempUsageDetail_20' ) end [2025-02-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457344', 'tblTempVendorCDR_20' ) start [2025-02-12 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457344', 'tblTempVendorCDR_20' ) end [2025-02-12 06:49:18] Production.INFO: ProcessCDR(1,14457344,1,1,2) [2025-02-12 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457344', 'tblTempUsageDetail_20' ) start [2025-02-12 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457344', 'tblTempUsageDetail_20' ) end [2025-02-12 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:49:21] Production.INFO: ==7275== Releasing lock... [2025-02-12 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:49:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:50:05 [end_date_ymd] => 2025-02-12 06:50:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:50:05' and `end` < '2025-02-12 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-12 06:50:19] Production.INFO: count ==173 [2025-02-12 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:50:05 - End Time 2025-02-12 06:50:05 [2025-02-12 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457350', 'tblTempUsageDetail_20' ) start [2025-02-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457350', 'tblTempUsageDetail_20' ) end [2025-02-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457350', 'tblTempVendorCDR_20' ) start [2025-02-12 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457350', 'tblTempVendorCDR_20' ) end [2025-02-12 06:50:19] Production.INFO: ProcessCDR(1,14457350,1,1,2) [2025-02-12 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457350', 'tblTempUsageDetail_20' ) start [2025-02-12 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457350', 'tblTempUsageDetail_20' ) end [2025-02-12 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:50:22] Production.INFO: ==7353== Releasing lock... [2025-02-12 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:50:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:51:05 [end_date_ymd] => 2025-02-12 06:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:51:05' and `end` < '2025-02-12 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-12 06:51:19] Production.INFO: count ==173 [2025-02-12 06:51:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:51:05 - End Time 2025-02-12 06:51:05 [2025-02-12 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457355', 'tblTempUsageDetail_20' ) start [2025-02-12 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457355', 'tblTempUsageDetail_20' ) end [2025-02-12 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457355', 'tblTempVendorCDR_20' ) start [2025-02-12 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457355', 'tblTempVendorCDR_20' ) end [2025-02-12 06:51:19] Production.INFO: ProcessCDR(1,14457355,1,1,2) [2025-02-12 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457355', 'tblTempUsageDetail_20' ) start [2025-02-12 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457355', 'tblTempUsageDetail_20' ) end [2025-02-12 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:51:22] Production.INFO: ==7433== Releasing lock... [2025-02-12 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:51:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:52:04 [end_date_ymd] => 2025-02-12 06:52:04 [RateCDR] => 1 ) [2025-02-12 06: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-12 03:52:04' and `end` < '2025-02-12 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-12 06:52:17] Production.INFO: count ==173 [2025-02-12 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-12 03:52:04 - End Time 2025-02-12 06:52:04 [2025-02-12 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457360', 'tblTempUsageDetail_20' ) start [2025-02-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457360', 'tblTempUsageDetail_20' ) end [2025-02-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457360', 'tblTempVendorCDR_20' ) start [2025-02-12 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457360', 'tblTempVendorCDR_20' ) end [2025-02-12 06:52:17] Production.INFO: ProcessCDR(1,14457360,1,1,2) [2025-02-12 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457360', 'tblTempUsageDetail_20' ) start [2025-02-12 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457360', 'tblTempUsageDetail_20' ) end [2025-02-12 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:52:21] Production.INFO: ==7506== Releasing lock... [2025-02-12 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:52:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:53:05 [end_date_ymd] => 2025-02-12 06:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:53:05' and `end` < '2025-02-12 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-12 06:53:18] Production.INFO: count ==173 [2025-02-12 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:53:05 - End Time 2025-02-12 06:53:05 [2025-02-12 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457365', 'tblTempUsageDetail_20' ) start [2025-02-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457365', 'tblTempUsageDetail_20' ) end [2025-02-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457365', 'tblTempVendorCDR_20' ) start [2025-02-12 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457365', 'tblTempVendorCDR_20' ) end [2025-02-12 06:53:18] Production.INFO: ProcessCDR(1,14457365,1,1,2) [2025-02-12 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457365', 'tblTempUsageDetail_20' ) start [2025-02-12 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457365', 'tblTempUsageDetail_20' ) end [2025-02-12 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:53:21] Production.INFO: ==7578== Releasing lock... [2025-02-12 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:53:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:54:06 [end_date_ymd] => 2025-02-12 06:54:06 [RateCDR] => 1 ) [2025-02-12 06: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-12 03:54:06' and `end` < '2025-02-12 06: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-12 06:54:19] Production.INFO: count ==173 [2025-02-12 06:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:54:06 - End Time 2025-02-12 06:54:06 [2025-02-12 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457370', 'tblTempUsageDetail_20' ) start [2025-02-12 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457370', 'tblTempUsageDetail_20' ) end [2025-02-12 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457370', 'tblTempVendorCDR_20' ) start [2025-02-12 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457370', 'tblTempVendorCDR_20' ) end [2025-02-12 06:54:19] Production.INFO: ProcessCDR(1,14457370,1,1,2) [2025-02-12 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457370', 'tblTempUsageDetail_20' ) start [2025-02-12 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457370', 'tblTempUsageDetail_20' ) end [2025-02-12 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:54:22] Production.INFO: ==7651== Releasing lock... [2025-02-12 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:54:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:55:05 [end_date_ymd] => 2025-02-12 06:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:55:05' and `end` < '2025-02-12 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-12 06:55:18] Production.INFO: count ==173 [2025-02-12 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:55:05 - End Time 2025-02-12 06:55:05 [2025-02-12 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457375', 'tblTempUsageDetail_20' ) start [2025-02-12 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457375', 'tblTempUsageDetail_20' ) end [2025-02-12 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457375', 'tblTempVendorCDR_20' ) start [2025-02-12 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457375', 'tblTempVendorCDR_20' ) end [2025-02-12 06:55:18] Production.INFO: ProcessCDR(1,14457375,1,1,2) [2025-02-12 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457375', 'tblTempUsageDetail_20' ) start [2025-02-12 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457375', 'tblTempUsageDetail_20' ) end [2025-02-12 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:55:21] Production.INFO: ==7722== Releasing lock... [2025-02-12 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:55:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:56:05 [end_date_ymd] => 2025-02-12 06:56:05 [RateCDR] => 1 ) [2025-02-12 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:56:05' and `end` < '2025-02-12 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:56:18] Production.INFO: count ==172 [2025-02-12 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:56:05 - End Time 2025-02-12 06:56:05 [2025-02-12 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457380', 'tblTempUsageDetail_20' ) start [2025-02-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457380', 'tblTempUsageDetail_20' ) end [2025-02-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457380', 'tblTempVendorCDR_20' ) start [2025-02-12 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457380', 'tblTempVendorCDR_20' ) end [2025-02-12 06:56:18] Production.INFO: ProcessCDR(1,14457380,1,1,2) [2025-02-12 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457380', 'tblTempUsageDetail_20' ) start [2025-02-12 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457380', 'tblTempUsageDetail_20' ) end [2025-02-12 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:56:21] Production.INFO: ==7797== Releasing lock... [2025-02-12 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:56:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:57:04 [end_date_ymd] => 2025-02-12 06:57:04 [RateCDR] => 1 ) [2025-02-12 06:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 03:57:04' and `end` < '2025-02-12 06:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:57:18] Production.INFO: count ==172 [2025-02-12 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:57:04 - End Time 2025-02-12 06:57:04 [2025-02-12 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457385', 'tblTempUsageDetail_20' ) start [2025-02-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457385', 'tblTempUsageDetail_20' ) end [2025-02-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457385', 'tblTempVendorCDR_20' ) start [2025-02-12 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457385', 'tblTempVendorCDR_20' ) end [2025-02-12 06:57:18] Production.INFO: ProcessCDR(1,14457385,1,1,2) [2025-02-12 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457385', 'tblTempUsageDetail_20' ) start [2025-02-12 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457385', 'tblTempUsageDetail_20' ) end [2025-02-12 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:57:22] Production.INFO: ==7871== Releasing lock... [2025-02-12 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:58:05 [end_date_ymd] => 2025-02-12 06:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 03:58:05' and `end` < '2025-02-12 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-12 06:58:18] Production.INFO: count ==172 [2025-02-12 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 03:58:05 - End Time 2025-02-12 06:58:05 [2025-02-12 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457390', 'tblTempUsageDetail_20' ) start [2025-02-12 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457390', 'tblTempUsageDetail_20' ) end [2025-02-12 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457390', 'tblTempVendorCDR_20' ) start [2025-02-12 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457390', 'tblTempVendorCDR_20' ) end [2025-02-12 06:58:18] Production.INFO: ProcessCDR(1,14457390,1,1,2) [2025-02-12 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457390', 'tblTempUsageDetail_20' ) start [2025-02-12 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457390', 'tblTempUsageDetail_20' ) end [2025-02-12 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:58:21] Production.INFO: ==7949== Releasing lock... [2025-02-12 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:58:21] Production.INFO: 29 MB #Memory Used# [2025-02-12 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 03:59:06 [end_date_ymd] => 2025-02-12 06:59:06 [RateCDR] => 1 ) [2025-02-12 06: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-12 03:59:06' and `end` < '2025-02-12 06:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 06:59:19] Production.INFO: count ==172 [2025-02-12 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 03:59:06 - End Time 2025-02-12 06:59:06 [2025-02-12 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457395', 'tblTempUsageDetail_20' ) start [2025-02-12 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457395', 'tblTempUsageDetail_20' ) end [2025-02-12 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457395', 'tblTempVendorCDR_20' ) start [2025-02-12 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457395', 'tblTempVendorCDR_20' ) end [2025-02-12 06:59:19] Production.INFO: ProcessCDR(1,14457395,1,1,2) [2025-02-12 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457395', 'tblTempUsageDetail_20' ) start [2025-02-12 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457395', 'tblTempUsageDetail_20' ) end [2025-02-12 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 06:59:22] Production.INFO: ==8022== Releasing lock... [2025-02-12 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 06:59:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:00:06 [end_date_ymd] => 2025-02-12 07:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 04:00:06' and `end` < '2025-02-12 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-12 07:00:19] Production.INFO: count ==178 [2025-02-12 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:00:06 - End Time 2025-02-12 07:00:06 [2025-02-12 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457401', 'tblTempUsageDetail_20' ) start [2025-02-12 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457401', 'tblTempUsageDetail_20' ) end [2025-02-12 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457401', 'tblTempVendorCDR_20' ) start [2025-02-12 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457401', 'tblTempVendorCDR_20' ) end [2025-02-12 07:00:19] Production.INFO: ProcessCDR(1,14457401,1,1,2) [2025-02-12 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457401', 'tblTempUsageDetail_20' ) start [2025-02-12 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457401', 'tblTempUsageDetail_20' ) end [2025-02-12 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:00:22] Production.INFO: ==8096== Releasing lock... [2025-02-12 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:00:22] Production.INFO: 29 MB #Memory Used# [2025-02-12 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:01:04 [end_date_ymd] => 2025-02-12 07:01:04 [RateCDR] => 1 ) [2025-02-12 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-12 04:01:04' and `end` < '2025-02-12 07: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-12 07:01:22] Production.INFO: count ==174 [2025-02-12 07:01:22] Production.ERROR: pbx CDR StartTime 2025-02-12 04:01:04 - End Time 2025-02-12 07:01:04 [2025-02-12 07:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457406', 'tblTempUsageDetail_20' ) start [2025-02-12 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457406', 'tblTempUsageDetail_20' ) end [2025-02-12 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457406', 'tblTempVendorCDR_20' ) start [2025-02-12 07:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457406', 'tblTempVendorCDR_20' ) end [2025-02-12 07:01:22] Production.INFO: ProcessCDR(1,14457406,1,1,2) [2025-02-12 07:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457406', 'tblTempUsageDetail_20' ) start [2025-02-12 07:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457406', 'tblTempUsageDetail_20' ) end [2025-02-12 07:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:01:25] Production.INFO: ==8261== Releasing lock... [2025-02-12 07:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:01:25] Production.INFO: 29 MB #Memory Used# [2025-02-12 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:02:06 [end_date_ymd] => 2025-02-12 07:02:06 [RateCDR] => 1 ) [2025-02-12 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-12 04:02:06' and `end` < '2025-02-12 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-12 07:02:23] Production.INFO: count ==178 [2025-02-12 07:02:23] Production.ERROR: pbx CDR StartTime 2025-02-12 04:02:06 - End Time 2025-02-12 07:02:06 [2025-02-12 07:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457411', 'tblTempUsageDetail_20' ) start [2025-02-12 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457411', 'tblTempUsageDetail_20' ) end [2025-02-12 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457411', 'tblTempVendorCDR_20' ) start [2025-02-12 07:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457411', 'tblTempVendorCDR_20' ) end [2025-02-12 07:02:23] Production.INFO: ProcessCDR(1,14457411,1,1,2) [2025-02-12 07:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457411', 'tblTempUsageDetail_20' ) start [2025-02-12 07:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457411', 'tblTempUsageDetail_20' ) end [2025-02-12 07:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:02:26] Production.INFO: ==8334== Releasing lock... [2025-02-12 07:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:02:26] Production.INFO: 29 MB #Memory Used# [2025-02-12 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:03:06 [end_date_ymd] => 2025-02-12 07:03:06 [RateCDR] => 1 ) [2025-02-12 07:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:03:06' and `end` < '2025-02-12 07:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:03:21] Production.INFO: count ==180 [2025-02-12 07:03:21] Production.ERROR: pbx CDR StartTime 2025-02-12 04:03:06 - End Time 2025-02-12 07:03:06 [2025-02-12 07:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457416', 'tblTempUsageDetail_20' ) start [2025-02-12 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457416', 'tblTempUsageDetail_20' ) end [2025-02-12 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457416', 'tblTempVendorCDR_20' ) start [2025-02-12 07:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457416', 'tblTempVendorCDR_20' ) end [2025-02-12 07:03:21] Production.INFO: ProcessCDR(1,14457416,1,1,2) [2025-02-12 07:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457416', 'tblTempUsageDetail_20' ) start [2025-02-12 07:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457416', 'tblTempUsageDetail_20' ) end [2025-02-12 07:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:03:25] Production.INFO: ==8406== Releasing lock... [2025-02-12 07:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:03:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:04:05 [end_date_ymd] => 2025-02-12 07:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:04:05' and `end` < '2025-02-12 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-12 07:04:20] Production.INFO: count ==182 [2025-02-12 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:04:05 - End Time 2025-02-12 07:04:05 [2025-02-12 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457421', 'tblTempUsageDetail_20' ) start [2025-02-12 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457421', 'tblTempUsageDetail_20' ) end [2025-02-12 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457421', 'tblTempVendorCDR_20' ) start [2025-02-12 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457421', 'tblTempVendorCDR_20' ) end [2025-02-12 07:04:20] Production.INFO: ProcessCDR(1,14457421,1,1,2) [2025-02-12 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457421', 'tblTempUsageDetail_20' ) start [2025-02-12 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457421', 'tblTempUsageDetail_20' ) end [2025-02-12 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:04:24] Production.INFO: ==8480== Releasing lock... [2025-02-12 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:05:05 [end_date_ymd] => 2025-02-12 07:05:05 [RateCDR] => 1 ) [2025-02-12 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:05:05' and `end` < '2025-02-12 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:05:19] Production.INFO: count ==182 [2025-02-12 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:05:05 - End Time 2025-02-12 07:05:05 [2025-02-12 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457426', 'tblTempUsageDetail_20' ) start [2025-02-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457426', 'tblTempUsageDetail_20' ) end [2025-02-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457426', 'tblTempVendorCDR_20' ) start [2025-02-12 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457426', 'tblTempVendorCDR_20' ) end [2025-02-12 07:05:19] Production.INFO: ProcessCDR(1,14457426,1,1,2) [2025-02-12 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457426', 'tblTempUsageDetail_20' ) start [2025-02-12 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457426', 'tblTempUsageDetail_20' ) end [2025-02-12 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:05:23] Production.INFO: ==8667== Releasing lock... [2025-02-12 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:06:05 [end_date_ymd] => 2025-02-12 07:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:06:05' and `end` < '2025-02-12 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-12 07:06:19] Production.INFO: count ==182 [2025-02-12 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:06:05 - End Time 2025-02-12 07:06:05 [2025-02-12 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457431', 'tblTempUsageDetail_20' ) start [2025-02-12 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457431', 'tblTempUsageDetail_20' ) end [2025-02-12 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457431', 'tblTempVendorCDR_20' ) start [2025-02-12 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457431', 'tblTempVendorCDR_20' ) end [2025-02-12 07:06:19] Production.INFO: ProcessCDR(1,14457431,1,1,2) [2025-02-12 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457431', 'tblTempUsageDetail_20' ) start [2025-02-12 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457431', 'tblTempUsageDetail_20' ) end [2025-02-12 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:06:22] Production.INFO: ==8745== Releasing lock... [2025-02-12 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:07:05 [end_date_ymd] => 2025-02-12 07:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:07:05' and `end` < '2025-02-12 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-12 07:07:20] Production.INFO: count ==182 [2025-02-12 07:07:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:07:05 - End Time 2025-02-12 07:07:05 [2025-02-12 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457436', 'tblTempUsageDetail_20' ) start [2025-02-12 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457436', 'tblTempUsageDetail_20' ) end [2025-02-12 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457436', 'tblTempVendorCDR_20' ) start [2025-02-12 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457436', 'tblTempVendorCDR_20' ) end [2025-02-12 07:07:20] Production.INFO: ProcessCDR(1,14457436,1,1,2) [2025-02-12 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457436', 'tblTempUsageDetail_20' ) start [2025-02-12 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457436', 'tblTempUsageDetail_20' ) end [2025-02-12 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:07:24] Production.INFO: ==8815== Releasing lock... [2025-02-12 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:07:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:08:05 [end_date_ymd] => 2025-02-12 07:08:05 [RateCDR] => 1 ) [2025-02-12 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:08:05' and `end` < '2025-02-12 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:08:19] Production.INFO: count ==182 [2025-02-12 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:08:05 - End Time 2025-02-12 07:08:05 [2025-02-12 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457441', 'tblTempUsageDetail_20' ) start [2025-02-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457441', 'tblTempUsageDetail_20' ) end [2025-02-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457441', 'tblTempVendorCDR_20' ) start [2025-02-12 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457441', 'tblTempVendorCDR_20' ) end [2025-02-12 07:08:19] Production.INFO: ProcessCDR(1,14457441,1,1,2) [2025-02-12 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457441', 'tblTempUsageDetail_20' ) start [2025-02-12 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457441', 'tblTempUsageDetail_20' ) end [2025-02-12 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:08:22] Production.INFO: ==8967== Releasing lock... [2025-02-12 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:09:05 [end_date_ymd] => 2025-02-12 07:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:09:05' and `end` < '2025-02-12 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-12 07:09:19] Production.INFO: count ==182 [2025-02-12 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:09:05 - End Time 2025-02-12 07:09:05 [2025-02-12 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457446', 'tblTempUsageDetail_20' ) start [2025-02-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457446', 'tblTempUsageDetail_20' ) end [2025-02-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457446', 'tblTempVendorCDR_20' ) start [2025-02-12 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457446', 'tblTempVendorCDR_20' ) end [2025-02-12 07:09:19] Production.INFO: ProcessCDR(1,14457446,1,1,2) [2025-02-12 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457446', 'tblTempUsageDetail_20' ) start [2025-02-12 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457446', 'tblTempUsageDetail_20' ) end [2025-02-12 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:09:23] Production.INFO: ==9038== Releasing lock... [2025-02-12 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:10:05 [end_date_ymd] => 2025-02-12 07:10:05 [RateCDR] => 1 ) [2025-02-12 07: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-12 04:10:05' and `end` < '2025-02-12 07: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-12 07:10:19] Production.INFO: count ==180 [2025-02-12 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:10:05 - End Time 2025-02-12 07:10:05 [2025-02-12 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457451', 'tblTempUsageDetail_20' ) start [2025-02-12 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457451', 'tblTempUsageDetail_20' ) end [2025-02-12 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457451', 'tblTempVendorCDR_20' ) start [2025-02-12 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457451', 'tblTempVendorCDR_20' ) end [2025-02-12 07:10:19] Production.INFO: ProcessCDR(1,14457451,1,1,2) [2025-02-12 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457451', 'tblTempUsageDetail_20' ) start [2025-02-12 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457451', 'tblTempUsageDetail_20' ) end [2025-02-12 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:10:22] Production.INFO: ==9111== Releasing lock... [2025-02-12 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:11:05 [end_date_ymd] => 2025-02-12 07:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:11:05' and `end` < '2025-02-12 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-12 07:11:21] Production.INFO: count ==180 [2025-02-12 07:11:21] Production.ERROR: pbx CDR StartTime 2025-02-12 04:11:05 - End Time 2025-02-12 07:11:05 [2025-02-12 07:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457457', 'tblTempUsageDetail_20' ) start [2025-02-12 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457457', 'tblTempUsageDetail_20' ) end [2025-02-12 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457457', 'tblTempVendorCDR_20' ) start [2025-02-12 07:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457457', 'tblTempVendorCDR_20' ) end [2025-02-12 07:11:21] Production.INFO: ProcessCDR(1,14457457,1,1,2) [2025-02-12 07:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457457', 'tblTempUsageDetail_20' ) start [2025-02-12 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457457', 'tblTempUsageDetail_20' ) end [2025-02-12 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:11:24] Production.INFO: ==9190== Releasing lock... [2025-02-12 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:11:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:12:05 [end_date_ymd] => 2025-02-12 07:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:12:05' and `end` < '2025-02-12 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-12 07:12:20] Production.INFO: count ==180 [2025-02-12 07:12:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:12:05 - End Time 2025-02-12 07:12:05 [2025-02-12 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457462', 'tblTempUsageDetail_20' ) start [2025-02-12 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457462', 'tblTempUsageDetail_20' ) end [2025-02-12 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457462', 'tblTempVendorCDR_20' ) start [2025-02-12 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457462', 'tblTempVendorCDR_20' ) end [2025-02-12 07:12:20] Production.INFO: ProcessCDR(1,14457462,1,1,2) [2025-02-12 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457462', 'tblTempUsageDetail_20' ) start [2025-02-12 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457462', 'tblTempUsageDetail_20' ) end [2025-02-12 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:12:23] Production.INFO: ==9343== Releasing lock... [2025-02-12 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:13:05 [end_date_ymd] => 2025-02-12 07:13:05 [RateCDR] => 1 ) [2025-02-12 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:13:05' and `end` < '2025-02-12 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:13:19] Production.INFO: count ==185 [2025-02-12 07:13:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:13:05 - End Time 2025-02-12 07:13:05 [2025-02-12 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457467', 'tblTempUsageDetail_20' ) start [2025-02-12 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457467', 'tblTempUsageDetail_20' ) end [2025-02-12 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457467', 'tblTempVendorCDR_20' ) start [2025-02-12 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457467', 'tblTempVendorCDR_20' ) end [2025-02-12 07:13:19] Production.INFO: ProcessCDR(1,14457467,1,1,2) [2025-02-12 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457467', 'tblTempUsageDetail_20' ) start [2025-02-12 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457467', 'tblTempUsageDetail_20' ) end [2025-02-12 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:13:22] Production.INFO: ==9418== Releasing lock... [2025-02-12 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:14:05 [end_date_ymd] => 2025-02-12 07:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:14:05' and `end` < '2025-02-12 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-12 07:14:19] Production.INFO: count ==185 [2025-02-12 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:14:05 - End Time 2025-02-12 07:14:05 [2025-02-12 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457472', 'tblTempUsageDetail_20' ) start [2025-02-12 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457472', 'tblTempUsageDetail_20' ) end [2025-02-12 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457472', 'tblTempVendorCDR_20' ) start [2025-02-12 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457472', 'tblTempVendorCDR_20' ) end [2025-02-12 07:14:19] Production.INFO: ProcessCDR(1,14457472,1,1,2) [2025-02-12 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457472', 'tblTempUsageDetail_20' ) start [2025-02-12 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457472', 'tblTempUsageDetail_20' ) end [2025-02-12 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:14:22] Production.INFO: ==9489== Releasing lock... [2025-02-12 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:15:05 [end_date_ymd] => 2025-02-12 07:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:15:05' and `end` < '2025-02-12 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-12 07:15:19] Production.INFO: count ==185 [2025-02-12 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:15:05 - End Time 2025-02-12 07:15:05 [2025-02-12 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457477', 'tblTempUsageDetail_20' ) start [2025-02-12 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457477', 'tblTempUsageDetail_20' ) end [2025-02-12 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457477', 'tblTempVendorCDR_20' ) start [2025-02-12 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457477', 'tblTempVendorCDR_20' ) end [2025-02-12 07:15:19] Production.INFO: ProcessCDR(1,14457477,1,1,2) [2025-02-12 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457477', 'tblTempUsageDetail_20' ) start [2025-02-12 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457477', 'tblTempUsageDetail_20' ) end [2025-02-12 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:15:22] Production.INFO: ==9639== Releasing lock... [2025-02-12 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:15:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:16:06 [end_date_ymd] => 2025-02-12 07:16:06 [RateCDR] => 1 ) [2025-02-12 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:16:06' and `end` < '2025-02-12 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:16:21] Production.INFO: count ==185 [2025-02-12 07:16:21] Production.ERROR: pbx CDR StartTime 2025-02-12 04:16:06 - End Time 2025-02-12 07:16:06 [2025-02-12 07:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457482', 'tblTempUsageDetail_20' ) start [2025-02-12 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457482', 'tblTempUsageDetail_20' ) end [2025-02-12 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457482', 'tblTempVendorCDR_20' ) start [2025-02-12 07:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457482', 'tblTempVendorCDR_20' ) end [2025-02-12 07:16:21] Production.INFO: ProcessCDR(1,14457482,1,1,2) [2025-02-12 07:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457482', 'tblTempUsageDetail_20' ) start [2025-02-12 07:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457482', 'tblTempUsageDetail_20' ) end [2025-02-12 07:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:16:24] Production.INFO: ==9709== Releasing lock... [2025-02-12 07:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:16:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:17:06 [end_date_ymd] => 2025-02-12 07:17:06 [RateCDR] => 1 ) [2025-02-12 07: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-12 04:17:06' and `end` < '2025-02-12 07: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-12 07:17:21] Production.INFO: count ==185 [2025-02-12 07:17:21] Production.ERROR: pbx CDR StartTime 2025-02-12 04:17:06 - End Time 2025-02-12 07:17:06 [2025-02-12 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457487', 'tblTempUsageDetail_20' ) start [2025-02-12 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457487', 'tblTempUsageDetail_20' ) end [2025-02-12 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457487', 'tblTempVendorCDR_20' ) start [2025-02-12 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457487', 'tblTempVendorCDR_20' ) end [2025-02-12 07:17:21] Production.INFO: ProcessCDR(1,14457487,1,1,2) [2025-02-12 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457487', 'tblTempUsageDetail_20' ) start [2025-02-12 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457487', 'tblTempUsageDetail_20' ) end [2025-02-12 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:17:24] Production.INFO: ==9780== Releasing lock... [2025-02-12 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:17:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:18:05 [end_date_ymd] => 2025-02-12 07:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:18:05' and `end` < '2025-02-12 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-12 07:18:21] Production.INFO: count ==185 [2025-02-12 07:18:21] Production.ERROR: pbx CDR StartTime 2025-02-12 04:18:05 - End Time 2025-02-12 07:18:05 [2025-02-12 07:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457492', 'tblTempUsageDetail_20' ) start [2025-02-12 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457492', 'tblTempUsageDetail_20' ) end [2025-02-12 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457492', 'tblTempVendorCDR_20' ) start [2025-02-12 07:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457492', 'tblTempVendorCDR_20' ) end [2025-02-12 07:18:21] Production.INFO: ProcessCDR(1,14457492,1,1,2) [2025-02-12 07:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457492', 'tblTempUsageDetail_20' ) start [2025-02-12 07:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457492', 'tblTempUsageDetail_20' ) end [2025-02-12 07:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:18:25] Production.INFO: ==9855== Releasing lock... [2025-02-12 07:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:18:25] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:19:05 [end_date_ymd] => 2025-02-12 07:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:19:05' and `end` < '2025-02-12 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-12 07:19:19] Production.INFO: count ==185 [2025-02-12 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:19:05 - End Time 2025-02-12 07:19:05 [2025-02-12 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457497', 'tblTempUsageDetail_20' ) start [2025-02-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457497', 'tblTempUsageDetail_20' ) end [2025-02-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457497', 'tblTempVendorCDR_20' ) start [2025-02-12 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457497', 'tblTempVendorCDR_20' ) end [2025-02-12 07:19:19] Production.INFO: ProcessCDR(1,14457497,1,1,2) [2025-02-12 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457497', 'tblTempUsageDetail_20' ) start [2025-02-12 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457497', 'tblTempUsageDetail_20' ) end [2025-02-12 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:19:22] Production.INFO: ==9943== Releasing lock... [2025-02-12 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:20:06 [end_date_ymd] => 2025-02-12 07:20:06 [RateCDR] => 1 ) [2025-02-12 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:20:06' and `end` < '2025-02-12 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:20:20] Production.INFO: count ==189 [2025-02-12 07:20:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:20:06 - End Time 2025-02-12 07:20:06 [2025-02-12 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457503', 'tblTempUsageDetail_20' ) start [2025-02-12 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457503', 'tblTempUsageDetail_20' ) end [2025-02-12 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457503', 'tblTempVendorCDR_20' ) start [2025-02-12 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457503', 'tblTempVendorCDR_20' ) end [2025-02-12 07:20:20] Production.INFO: ProcessCDR(1,14457503,1,1,2) [2025-02-12 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457503', 'tblTempUsageDetail_20' ) start [2025-02-12 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457503', 'tblTempUsageDetail_20' ) end [2025-02-12 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:20:23] Production.INFO: ==10073== Releasing lock... [2025-02-12 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-12 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:21:05 [end_date_ymd] => 2025-02-12 07:21:05 [RateCDR] => 1 ) [2025-02-12 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:21:05' and `end` < '2025-02-12 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:21:19] Production.INFO: count ==195 [2025-02-12 07:21:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:21:05 - End Time 2025-02-12 07:21:05 [2025-02-12 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457508', 'tblTempUsageDetail_20' ) start [2025-02-12 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457508', 'tblTempUsageDetail_20' ) end [2025-02-12 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457508', 'tblTempVendorCDR_20' ) start [2025-02-12 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457508', 'tblTempVendorCDR_20' ) end [2025-02-12 07:21:19] Production.INFO: ProcessCDR(1,14457508,1,1,2) [2025-02-12 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457508', 'tblTempUsageDetail_20' ) start [2025-02-12 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457508', 'tblTempUsageDetail_20' ) end [2025-02-12 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:21:23] Production.INFO: ==10161== Releasing lock... [2025-02-12 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:21:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:22:05 [end_date_ymd] => 2025-02-12 07:22:05 [RateCDR] => 1 ) [2025-02-12 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:22:05' and `end` < '2025-02-12 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:22:18] Production.INFO: count ==197 [2025-02-12 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:22:05 - End Time 2025-02-12 07:22:05 [2025-02-12 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457513', 'tblTempUsageDetail_20' ) start [2025-02-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457513', 'tblTempUsageDetail_20' ) end [2025-02-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457513', 'tblTempVendorCDR_20' ) start [2025-02-12 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457513', 'tblTempVendorCDR_20' ) end [2025-02-12 07:22:18] Production.INFO: ProcessCDR(1,14457513,1,1,2) [2025-02-12 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457513', 'tblTempUsageDetail_20' ) start [2025-02-12 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457513', 'tblTempUsageDetail_20' ) end [2025-02-12 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:22:22] Production.INFO: ==10245== Releasing lock... [2025-02-12 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:23:05 [end_date_ymd] => 2025-02-12 07:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:23:05' and `end` < '2025-02-12 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-12 07:23:18] Production.INFO: count ==203 [2025-02-12 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:23:05 - End Time 2025-02-12 07:23:05 [2025-02-12 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457518', 'tblTempUsageDetail_20' ) start [2025-02-12 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457518', 'tblTempUsageDetail_20' ) end [2025-02-12 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457518', 'tblTempVendorCDR_20' ) start [2025-02-12 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457518', 'tblTempVendorCDR_20' ) end [2025-02-12 07:23:18] Production.INFO: ProcessCDR(1,14457518,1,1,2) [2025-02-12 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457518', 'tblTempUsageDetail_20' ) start [2025-02-12 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457518', 'tblTempUsageDetail_20' ) end [2025-02-12 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:23:22] Production.INFO: ==10331== Releasing lock... [2025-02-12 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:23:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:24:05 [end_date_ymd] => 2025-02-12 07:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:24:05' and `end` < '2025-02-12 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-12 07:24:18] Production.INFO: count ==203 [2025-02-12 07:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:24:05 - End Time 2025-02-12 07:24:05 [2025-02-12 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457523', 'tblTempUsageDetail_20' ) start [2025-02-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457523', 'tblTempUsageDetail_20' ) end [2025-02-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457523', 'tblTempVendorCDR_20' ) start [2025-02-12 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457523', 'tblTempVendorCDR_20' ) end [2025-02-12 07:24:18] Production.INFO: ProcessCDR(1,14457523,1,1,2) [2025-02-12 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457523', 'tblTempUsageDetail_20' ) start [2025-02-12 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457523', 'tblTempUsageDetail_20' ) end [2025-02-12 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:24:22] Production.INFO: ==10414== Releasing lock... [2025-02-12 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:25:06 [end_date_ymd] => 2025-02-12 07:25:06 [RateCDR] => 1 ) [2025-02-12 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-12 04:25:06' and `end` < '2025-02-12 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-12 07:25:19] Production.INFO: count ==208 [2025-02-12 07:25:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:25:06 - End Time 2025-02-12 07:25:06 [2025-02-12 07:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457528', 'tblTempUsageDetail_20' ) start [2025-02-12 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457528', 'tblTempUsageDetail_20' ) end [2025-02-12 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457528', 'tblTempVendorCDR_20' ) start [2025-02-12 07:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457528', 'tblTempVendorCDR_20' ) end [2025-02-12 07:25:19] Production.INFO: ProcessCDR(1,14457528,1,1,2) [2025-02-12 07:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457528', 'tblTempUsageDetail_20' ) start [2025-02-12 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457528', 'tblTempUsageDetail_20' ) end [2025-02-12 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:25:24] Production.INFO: ==10511== Releasing lock... [2025-02-12 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:26:05 [end_date_ymd] => 2025-02-12 07:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:26:05' and `end` < '2025-02-12 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-12 07:26:18] Production.INFO: count ==208 [2025-02-12 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:26:05 - End Time 2025-02-12 07:26:05 [2025-02-12 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457533', 'tblTempUsageDetail_20' ) start [2025-02-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457533', 'tblTempUsageDetail_20' ) end [2025-02-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457533', 'tblTempVendorCDR_20' ) start [2025-02-12 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457533', 'tblTempVendorCDR_20' ) end [2025-02-12 07:26:18] Production.INFO: ProcessCDR(1,14457533,1,1,2) [2025-02-12 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457533', 'tblTempUsageDetail_20' ) start [2025-02-12 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457533', 'tblTempUsageDetail_20' ) end [2025-02-12 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:26:21] Production.INFO: ==10596== Releasing lock... [2025-02-12 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:27:06 [end_date_ymd] => 2025-02-12 07:27:06 [RateCDR] => 1 ) [2025-02-12 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:27:06' and `end` < '2025-02-12 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:27:19] Production.INFO: count ==208 [2025-02-12 07:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:27:06 - End Time 2025-02-12 07:27:06 [2025-02-12 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457538', 'tblTempUsageDetail_20' ) start [2025-02-12 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457538', 'tblTempUsageDetail_20' ) end [2025-02-12 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457538', 'tblTempVendorCDR_20' ) start [2025-02-12 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457538', 'tblTempVendorCDR_20' ) end [2025-02-12 07:27:19] Production.INFO: ProcessCDR(1,14457538,1,1,2) [2025-02-12 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457538', 'tblTempUsageDetail_20' ) start [2025-02-12 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457538', 'tblTempUsageDetail_20' ) end [2025-02-12 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:27:23] Production.INFO: ==10679== Releasing lock... [2025-02-12 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:27:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:28:05 [end_date_ymd] => 2025-02-12 07:28:05 [RateCDR] => 1 ) [2025-02-12 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:28:05' and `end` < '2025-02-12 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:28:18] Production.INFO: count ==208 [2025-02-12 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:28:05 - End Time 2025-02-12 07:28:05 [2025-02-12 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457543', 'tblTempUsageDetail_20' ) start [2025-02-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457543', 'tblTempUsageDetail_20' ) end [2025-02-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457543', 'tblTempVendorCDR_20' ) start [2025-02-12 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457543', 'tblTempVendorCDR_20' ) end [2025-02-12 07:28:18] Production.INFO: ProcessCDR(1,14457543,1,1,2) [2025-02-12 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457543', 'tblTempUsageDetail_20' ) start [2025-02-12 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457543', 'tblTempUsageDetail_20' ) end [2025-02-12 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:28:22] Production.INFO: ==10772== Releasing lock... [2025-02-12 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:29:06 [end_date_ymd] => 2025-02-12 07:29:06 [RateCDR] => 1 ) [2025-02-12 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-12 04:29:06' and `end` < '2025-02-12 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-12 07:29:20] Production.INFO: count ==208 [2025-02-12 07:29:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:29:06 - End Time 2025-02-12 07:29:06 [2025-02-12 07:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457548', 'tblTempUsageDetail_20' ) start [2025-02-12 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457548', 'tblTempUsageDetail_20' ) end [2025-02-12 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457548', 'tblTempVendorCDR_20' ) start [2025-02-12 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457548', 'tblTempVendorCDR_20' ) end [2025-02-12 07:29:20] Production.INFO: ProcessCDR(1,14457548,1,1,2) [2025-02-12 07:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457548', 'tblTempUsageDetail_20' ) start [2025-02-12 07:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457548', 'tblTempUsageDetail_20' ) end [2025-02-12 07:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:29:24] Production.INFO: ==10856== Releasing lock... [2025-02-12 07:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:29:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:30:06 [end_date_ymd] => 2025-02-12 07:30:06 [RateCDR] => 1 ) [2025-02-12 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:30:06' and `end` < '2025-02-12 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:30:19] Production.INFO: count ==209 [2025-02-12 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:30:06 - End Time 2025-02-12 07:30:06 [2025-02-12 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457553', 'tblTempUsageDetail_20' ) start [2025-02-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457553', 'tblTempUsageDetail_20' ) end [2025-02-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457553', 'tblTempVendorCDR_20' ) start [2025-02-12 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457553', 'tblTempVendorCDR_20' ) end [2025-02-12 07:30:19] Production.INFO: ProcessCDR(1,14457553,1,1,2) [2025-02-12 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457553', 'tblTempUsageDetail_20' ) start [2025-02-12 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457553', 'tblTempUsageDetail_20' ) end [2025-02-12 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:30:22] Production.INFO: ==10944== Releasing lock... [2025-02-12 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:31:06 [end_date_ymd] => 2025-02-12 07:31:06 [RateCDR] => 1 ) [2025-02-12 07:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:31:06' and `end` < '2025-02-12 07:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:31:19] Production.INFO: count ==223 [2025-02-12 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:31:06 - End Time 2025-02-12 07:31:06 [2025-02-12 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457559', 'tblTempUsageDetail_20' ) start [2025-02-12 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457559', 'tblTempUsageDetail_20' ) end [2025-02-12 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457559', 'tblTempVendorCDR_20' ) start [2025-02-12 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457559', 'tblTempVendorCDR_20' ) end [2025-02-12 07:31:19] Production.INFO: ProcessCDR(1,14457559,1,1,2) [2025-02-12 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457559', 'tblTempUsageDetail_20' ) start [2025-02-12 07:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457559', 'tblTempUsageDetail_20' ) end [2025-02-12 07:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:31:24] Production.INFO: ==11030== Releasing lock... [2025-02-12 07:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:31:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:32:05 [end_date_ymd] => 2025-02-12 07:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:32:05' and `end` < '2025-02-12 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:32:20] Production.INFO: count ==223 [2025-02-12 07:32:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:32:05 - End Time 2025-02-12 07:32:05 [2025-02-12 07:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457564', 'tblTempUsageDetail_20' ) start [2025-02-12 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457564', 'tblTempUsageDetail_20' ) end [2025-02-12 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457564', 'tblTempVendorCDR_20' ) start [2025-02-12 07:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457564', 'tblTempVendorCDR_20' ) end [2025-02-12 07:32:20] Production.INFO: ProcessCDR(1,14457564,1,1,2) [2025-02-12 07:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457564', 'tblTempUsageDetail_20' ) start [2025-02-12 07:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457564', 'tblTempUsageDetail_20' ) end [2025-02-12 07:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:32:23] Production.INFO: ==11115== Releasing lock... [2025-02-12 07:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:32:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:33:05 [end_date_ymd] => 2025-02-12 07:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:33:05' and `end` < '2025-02-12 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-12 07:33:18] Production.INFO: count ==223 [2025-02-12 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:33:05 - End Time 2025-02-12 07:33:05 [2025-02-12 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457569', 'tblTempUsageDetail_20' ) start [2025-02-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457569', 'tblTempUsageDetail_20' ) end [2025-02-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457569', 'tblTempVendorCDR_20' ) start [2025-02-12 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457569', 'tblTempVendorCDR_20' ) end [2025-02-12 07:33:18] Production.INFO: ProcessCDR(1,14457569,1,1,2) [2025-02-12 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457569', 'tblTempUsageDetail_20' ) start [2025-02-12 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457569', 'tblTempUsageDetail_20' ) end [2025-02-12 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:33:21] Production.INFO: ==11198== Releasing lock... [2025-02-12 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:34:05 [end_date_ymd] => 2025-02-12 07:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:34:05' and `end` < '2025-02-12 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-12 07:34:18] Production.INFO: count ==227 [2025-02-12 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:34:05 - End Time 2025-02-12 07:34:05 [2025-02-12 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457574', 'tblTempUsageDetail_20' ) start [2025-02-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457574', 'tblTempUsageDetail_20' ) end [2025-02-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457574', 'tblTempVendorCDR_20' ) start [2025-02-12 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457574', 'tblTempVendorCDR_20' ) end [2025-02-12 07:34:18] Production.INFO: ProcessCDR(1,14457574,1,1,2) [2025-02-12 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457574', 'tblTempUsageDetail_20' ) start [2025-02-12 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457574', 'tblTempUsageDetail_20' ) end [2025-02-12 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:34:21] Production.INFO: ==11336== Releasing lock... [2025-02-12 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:35:05 [end_date_ymd] => 2025-02-12 07:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:35:05' and `end` < '2025-02-12 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-12 07:35:18] Production.INFO: count ==227 [2025-02-12 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:35:05 - End Time 2025-02-12 07:35:05 [2025-02-12 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457579', 'tblTempUsageDetail_20' ) start [2025-02-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457579', 'tblTempUsageDetail_20' ) end [2025-02-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457579', 'tblTempVendorCDR_20' ) start [2025-02-12 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457579', 'tblTempVendorCDR_20' ) end [2025-02-12 07:35:18] Production.INFO: ProcessCDR(1,14457579,1,1,2) [2025-02-12 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457579', 'tblTempUsageDetail_20' ) start [2025-02-12 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457579', 'tblTempUsageDetail_20' ) end [2025-02-12 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:35:21] Production.INFO: ==11487== Releasing lock... [2025-02-12 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:36:05 [end_date_ymd] => 2025-02-12 07:36:05 [RateCDR] => 1 ) [2025-02-12 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:36:05' and `end` < '2025-02-12 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:36:18] Production.INFO: count ==227 [2025-02-12 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:36:05 - End Time 2025-02-12 07:36:05 [2025-02-12 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457584', 'tblTempUsageDetail_20' ) start [2025-02-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457584', 'tblTempUsageDetail_20' ) end [2025-02-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457584', 'tblTempVendorCDR_20' ) start [2025-02-12 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457584', 'tblTempVendorCDR_20' ) end [2025-02-12 07:36:18] Production.INFO: ProcessCDR(1,14457584,1,1,2) [2025-02-12 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457584', 'tblTempUsageDetail_20' ) start [2025-02-12 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457584', 'tblTempUsageDetail_20' ) end [2025-02-12 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:36:21] Production.INFO: ==11613== Releasing lock... [2025-02-12 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:37:05 [end_date_ymd] => 2025-02-12 07:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:37:05' and `end` < '2025-02-12 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-12 07:37:18] Production.INFO: count ==227 [2025-02-12 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:37:05 - End Time 2025-02-12 07:37:05 [2025-02-12 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457589', 'tblTempUsageDetail_20' ) start [2025-02-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457589', 'tblTempUsageDetail_20' ) end [2025-02-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457589', 'tblTempVendorCDR_20' ) start [2025-02-12 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457589', 'tblTempVendorCDR_20' ) end [2025-02-12 07:37:18] Production.INFO: ProcessCDR(1,14457589,1,1,2) [2025-02-12 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457589', 'tblTempUsageDetail_20' ) start [2025-02-12 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457589', 'tblTempUsageDetail_20' ) end [2025-02-12 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:37:21] Production.INFO: ==11697== Releasing lock... [2025-02-12 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:38:05 [end_date_ymd] => 2025-02-12 07:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:38:05' and `end` < '2025-02-12 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-12 07:38:18] Production.INFO: count ==227 [2025-02-12 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:38:05 - End Time 2025-02-12 07:38:05 [2025-02-12 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457594', 'tblTempUsageDetail_20' ) start [2025-02-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457594', 'tblTempUsageDetail_20' ) end [2025-02-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457594', 'tblTempVendorCDR_20' ) start [2025-02-12 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457594', 'tblTempVendorCDR_20' ) end [2025-02-12 07:38:18] Production.INFO: ProcessCDR(1,14457594,1,1,2) [2025-02-12 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457594', 'tblTempUsageDetail_20' ) start [2025-02-12 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457594', 'tblTempUsageDetail_20' ) end [2025-02-12 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:38:21] Production.INFO: ==11785== Releasing lock... [2025-02-12 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:39:05 [end_date_ymd] => 2025-02-12 07:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:39:05' and `end` < '2025-02-12 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-12 07:39:18] Production.INFO: count ==227 [2025-02-12 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:39:05 - End Time 2025-02-12 07:39:05 [2025-02-12 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457599', 'tblTempUsageDetail_20' ) start [2025-02-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457599', 'tblTempUsageDetail_20' ) end [2025-02-12 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457599', 'tblTempVendorCDR_20' ) start [2025-02-12 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457599', 'tblTempVendorCDR_20' ) end [2025-02-12 07:39:19] Production.INFO: ProcessCDR(1,14457599,1,1,2) [2025-02-12 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457599', 'tblTempUsageDetail_20' ) start [2025-02-12 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457599', 'tblTempUsageDetail_20' ) end [2025-02-12 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:39:22] Production.INFO: ==11871== Releasing lock... [2025-02-12 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:40:05 [end_date_ymd] => 2025-02-12 07:40:05 [RateCDR] => 1 ) [2025-02-12 07: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-12 04:40:05' and `end` < '2025-02-12 07: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-12 07:40:18] Production.INFO: count ==227 [2025-02-12 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:40:05 - End Time 2025-02-12 07:40:05 [2025-02-12 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457605', 'tblTempUsageDetail_20' ) start [2025-02-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457605', 'tblTempUsageDetail_20' ) end [2025-02-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457605', 'tblTempVendorCDR_20' ) start [2025-02-12 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457605', 'tblTempVendorCDR_20' ) end [2025-02-12 07:40:18] Production.INFO: ProcessCDR(1,14457605,1,1,2) [2025-02-12 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457605', 'tblTempUsageDetail_20' ) start [2025-02-12 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457605', 'tblTempUsageDetail_20' ) end [2025-02-12 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:40:22] Production.INFO: ==11955== Releasing lock... [2025-02-12 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:41:05 [end_date_ymd] => 2025-02-12 07:41:05 [RateCDR] => 1 ) [2025-02-12 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:41:05' and `end` < '2025-02-12 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:41:19] Production.INFO: count ==228 [2025-02-12 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:41:05 - End Time 2025-02-12 07:41:05 [2025-02-12 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457610', 'tblTempUsageDetail_20' ) start [2025-02-12 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457610', 'tblTempUsageDetail_20' ) end [2025-02-12 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457610', 'tblTempVendorCDR_20' ) start [2025-02-12 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457610', 'tblTempVendorCDR_20' ) end [2025-02-12 07:41:19] Production.INFO: ProcessCDR(1,14457610,1,1,2) [2025-02-12 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457610', 'tblTempUsageDetail_20' ) start [2025-02-12 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457610', 'tblTempUsageDetail_20' ) end [2025-02-12 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:41:22] Production.INFO: ==12039== Releasing lock... [2025-02-12 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:42:05 [end_date_ymd] => 2025-02-12 07:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:42:05' and `end` < '2025-02-12 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-12 07:42:18] Production.INFO: count ==232 [2025-02-12 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:42:05 - End Time 2025-02-12 07:42:05 [2025-02-12 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457615', 'tblTempUsageDetail_20' ) start [2025-02-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457615', 'tblTempUsageDetail_20' ) end [2025-02-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457615', 'tblTempVendorCDR_20' ) start [2025-02-12 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457615', 'tblTempVendorCDR_20' ) end [2025-02-12 07:42:18] Production.INFO: ProcessCDR(1,14457615,1,1,2) [2025-02-12 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457615', 'tblTempUsageDetail_20' ) start [2025-02-12 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457615', 'tblTempUsageDetail_20' ) end [2025-02-12 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:42:21] Production.INFO: ==12122== Releasing lock... [2025-02-12 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:43:05 [end_date_ymd] => 2025-02-12 07:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:43:05' and `end` < '2025-02-12 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-12 07:43:18] Production.INFO: count ==232 [2025-02-12 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:43:05 - End Time 2025-02-12 07:43:05 [2025-02-12 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457620', 'tblTempUsageDetail_20' ) start [2025-02-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457620', 'tblTempUsageDetail_20' ) end [2025-02-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457620', 'tblTempVendorCDR_20' ) start [2025-02-12 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457620', 'tblTempVendorCDR_20' ) end [2025-02-12 07:43:18] Production.INFO: ProcessCDR(1,14457620,1,1,2) [2025-02-12 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457620', 'tblTempUsageDetail_20' ) start [2025-02-12 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457620', 'tblTempUsageDetail_20' ) end [2025-02-12 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:43:22] Production.INFO: ==12209== Releasing lock... [2025-02-12 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:43:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:44:04 [end_date_ymd] => 2025-02-12 07:44:04 [RateCDR] => 1 ) [2025-02-12 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-12 04:44:04' and `end` < '2025-02-12 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-12 07:44:18] Production.INFO: count ==232 [2025-02-12 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:44:04 - End Time 2025-02-12 07:44:04 [2025-02-12 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457625', 'tblTempUsageDetail_20' ) start [2025-02-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457625', 'tblTempUsageDetail_20' ) end [2025-02-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457625', 'tblTempVendorCDR_20' ) start [2025-02-12 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457625', 'tblTempVendorCDR_20' ) end [2025-02-12 07:44:18] Production.INFO: ProcessCDR(1,14457625,1,1,2) [2025-02-12 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457625', 'tblTempUsageDetail_20' ) start [2025-02-12 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457625', 'tblTempUsageDetail_20' ) end [2025-02-12 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:44:21] Production.INFO: ==12299== Releasing lock... [2025-02-12 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:45:05 [end_date_ymd] => 2025-02-12 07:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:45:05' and `end` < '2025-02-12 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-12 07:45:18] Production.INFO: count ==232 [2025-02-12 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:45:05 - End Time 2025-02-12 07:45:05 [2025-02-12 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457630', 'tblTempUsageDetail_20' ) start [2025-02-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457630', 'tblTempUsageDetail_20' ) end [2025-02-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457630', 'tblTempVendorCDR_20' ) start [2025-02-12 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457630', 'tblTempVendorCDR_20' ) end [2025-02-12 07:45:18] Production.INFO: ProcessCDR(1,14457630,1,1,2) [2025-02-12 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457630', 'tblTempUsageDetail_20' ) start [2025-02-12 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457630', 'tblTempUsageDetail_20' ) end [2025-02-12 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:45:22] Production.INFO: ==12388== Releasing lock... [2025-02-12 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:46:05 [end_date_ymd] => 2025-02-12 07:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:46:05' and `end` < '2025-02-12 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-12 07:46:19] Production.INFO: count ==236 [2025-02-12 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:46:05 - End Time 2025-02-12 07:46:05 [2025-02-12 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457635', 'tblTempUsageDetail_20' ) start [2025-02-12 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457635', 'tblTempUsageDetail_20' ) end [2025-02-12 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457635', 'tblTempVendorCDR_20' ) start [2025-02-12 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457635', 'tblTempVendorCDR_20' ) end [2025-02-12 07:46:19] Production.INFO: ProcessCDR(1,14457635,1,1,2) [2025-02-12 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457635', 'tblTempUsageDetail_20' ) start [2025-02-12 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457635', 'tblTempUsageDetail_20' ) end [2025-02-12 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:46:22] Production.INFO: ==12468== Releasing lock... [2025-02-12 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:47:05 [end_date_ymd] => 2025-02-12 07:47:05 [RateCDR] => 1 ) [2025-02-12 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:47:05' and `end` < '2025-02-12 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:47:20] Production.INFO: count ==237 [2025-02-12 07:47:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:47:05 - End Time 2025-02-12 07:47:05 [2025-02-12 07:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457636', 'tblTempUsageDetail_20' ) start [2025-02-12 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457636', 'tblTempUsageDetail_20' ) end [2025-02-12 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457636', 'tblTempVendorCDR_20' ) start [2025-02-12 07:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457636', 'tblTempVendorCDR_20' ) end [2025-02-12 07:47:20] Production.INFO: ProcessCDR(1,14457636,1,1,2) [2025-02-12 07:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457636', 'tblTempUsageDetail_20' ) start [2025-02-12 07:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457636', 'tblTempUsageDetail_20' ) end [2025-02-12 07:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:47:25] Production.INFO: ==12551== Releasing lock... [2025-02-12 07:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:47:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:48:04 [end_date_ymd] => 2025-02-12 07:48:04 [RateCDR] => 1 ) [2025-02-12 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:48:04' and `end` < '2025-02-12 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:48:17] Production.INFO: count ==237 [2025-02-12 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-12 04:48:04 - End Time 2025-02-12 07:48:04 [2025-02-12 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457645', 'tblTempUsageDetail_20' ) start [2025-02-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457645', 'tblTempUsageDetail_20' ) end [2025-02-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457645', 'tblTempVendorCDR_20' ) start [2025-02-12 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457645', 'tblTempVendorCDR_20' ) end [2025-02-12 07:48:17] Production.INFO: ProcessCDR(1,14457645,1,1,2) [2025-02-12 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457645', 'tblTempUsageDetail_20' ) start [2025-02-12 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457645', 'tblTempUsageDetail_20' ) end [2025-02-12 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:48:21] Production.INFO: ==12634== Releasing lock... [2025-02-12 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:49:05 [end_date_ymd] => 2025-02-12 07:49:05 [RateCDR] => 1 ) [2025-02-12 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:49:05' and `end` < '2025-02-12 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:49:19] Production.INFO: count ==237 [2025-02-12 07:49:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:49:05 - End Time 2025-02-12 07:49:05 [2025-02-12 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457650', 'tblTempUsageDetail_20' ) start [2025-02-12 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457650', 'tblTempUsageDetail_20' ) end [2025-02-12 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457650', 'tblTempVendorCDR_20' ) start [2025-02-12 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457650', 'tblTempVendorCDR_20' ) end [2025-02-12 07:49:19] Production.INFO: ProcessCDR(1,14457650,1,1,2) [2025-02-12 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457650', 'tblTempUsageDetail_20' ) start [2025-02-12 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457650', 'tblTempUsageDetail_20' ) end [2025-02-12 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:49:22] Production.INFO: ==12720== Releasing lock... [2025-02-12 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:49:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:50:06 [end_date_ymd] => 2025-02-12 07:50:06 [RateCDR] => 1 ) [2025-02-12 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:50:06' and `end` < '2025-02-12 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:50:19] Production.INFO: count ==239 [2025-02-12 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:50:06 - End Time 2025-02-12 07:50:06 [2025-02-12 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457656', 'tblTempUsageDetail_20' ) start [2025-02-12 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457656', 'tblTempUsageDetail_20' ) end [2025-02-12 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457656', 'tblTempVendorCDR_20' ) start [2025-02-12 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457656', 'tblTempVendorCDR_20' ) end [2025-02-12 07:50:19] Production.INFO: ProcessCDR(1,14457656,1,1,2) [2025-02-12 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457656', 'tblTempUsageDetail_20' ) start [2025-02-12 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457656', 'tblTempUsageDetail_20' ) end [2025-02-12 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:50:22] Production.INFO: ==12807== Releasing lock... [2025-02-12 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:51:05 [end_date_ymd] => 2025-02-12 07:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:51:05' and `end` < '2025-02-12 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-12 07:51:18] Production.INFO: count ==239 [2025-02-12 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:51:05 - End Time 2025-02-12 07:51:05 [2025-02-12 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457661', 'tblTempUsageDetail_20' ) start [2025-02-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457661', 'tblTempUsageDetail_20' ) end [2025-02-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457661', 'tblTempVendorCDR_20' ) start [2025-02-12 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457661', 'tblTempVendorCDR_20' ) end [2025-02-12 07:51:18] Production.INFO: ProcessCDR(1,14457661,1,1,2) [2025-02-12 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457661', 'tblTempUsageDetail_20' ) start [2025-02-12 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457661', 'tblTempUsageDetail_20' ) end [2025-02-12 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:51:21] Production.INFO: ==12940== Releasing lock... [2025-02-12 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:52:06 [end_date_ymd] => 2025-02-12 07:52:06 [RateCDR] => 1 ) [2025-02-12 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:52:06' and `end` < '2025-02-12 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:52:19] Production.INFO: count ==239 [2025-02-12 07:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:52:06 - End Time 2025-02-12 07:52:06 [2025-02-12 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457666', 'tblTempUsageDetail_20' ) start [2025-02-12 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457666', 'tblTempUsageDetail_20' ) end [2025-02-12 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457666', 'tblTempVendorCDR_20' ) start [2025-02-12 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457666', 'tblTempVendorCDR_20' ) end [2025-02-12 07:52:19] Production.INFO: ProcessCDR(1,14457666,1,1,2) [2025-02-12 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457666', 'tblTempUsageDetail_20' ) start [2025-02-12 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457666', 'tblTempUsageDetail_20' ) end [2025-02-12 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:52:22] Production.INFO: ==13030== Releasing lock... [2025-02-12 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:53:05 [end_date_ymd] => 2025-02-12 07:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:53:05' and `end` < '2025-02-12 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-12 07:53:19] Production.INFO: count ==239 [2025-02-12 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 04:53:05 - End Time 2025-02-12 07:53:05 [2025-02-12 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457671', 'tblTempUsageDetail_20' ) start [2025-02-12 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457671', 'tblTempUsageDetail_20' ) end [2025-02-12 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457671', 'tblTempVendorCDR_20' ) start [2025-02-12 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457671', 'tblTempVendorCDR_20' ) end [2025-02-12 07:53:19] Production.INFO: ProcessCDR(1,14457671,1,1,2) [2025-02-12 07:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457671', 'tblTempUsageDetail_20' ) start [2025-02-12 07:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457671', 'tblTempUsageDetail_20' ) end [2025-02-12 07:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:53:22] Production.INFO: ==13112== Releasing lock... [2025-02-12 07:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:53:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:54:05 [end_date_ymd] => 2025-02-12 07:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:54:05' and `end` < '2025-02-12 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-12 07:54:18] Production.INFO: count ==240 [2025-02-12 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:54:05 - End Time 2025-02-12 07:54:05 [2025-02-12 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457676', 'tblTempUsageDetail_20' ) start [2025-02-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457676', 'tblTempUsageDetail_20' ) end [2025-02-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457676', 'tblTempVendorCDR_20' ) start [2025-02-12 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457676', 'tblTempVendorCDR_20' ) end [2025-02-12 07:54:18] Production.INFO: ProcessCDR(1,14457676,1,1,2) [2025-02-12 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457676', 'tblTempUsageDetail_20' ) start [2025-02-12 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457676', 'tblTempUsageDetail_20' ) end [2025-02-12 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:54:21] Production.INFO: ==13200== Releasing lock... [2025-02-12 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:55:05 [end_date_ymd] => 2025-02-12 07:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:55:05' and `end` < '2025-02-12 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-12 07:55:18] Production.INFO: count ==240 [2025-02-12 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:55:05 - End Time 2025-02-12 07:55:05 [2025-02-12 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457681', 'tblTempUsageDetail_20' ) start [2025-02-12 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457681', 'tblTempUsageDetail_20' ) end [2025-02-12 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457681', 'tblTempVendorCDR_20' ) start [2025-02-12 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457681', 'tblTempVendorCDR_20' ) end [2025-02-12 07:55:18] Production.INFO: ProcessCDR(1,14457681,1,1,2) [2025-02-12 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457681', 'tblTempUsageDetail_20' ) start [2025-02-12 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457681', 'tblTempUsageDetail_20' ) end [2025-02-12 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:55:21] Production.INFO: ==13284== Releasing lock... [2025-02-12 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:56:06 [end_date_ymd] => 2025-02-12 07:56:06 [RateCDR] => 1 ) [2025-02-12 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 04:56:06' and `end` < '2025-02-12 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 07:56:20] Production.INFO: count ==240 [2025-02-12 07:56:20] Production.ERROR: pbx CDR StartTime 2025-02-12 04:56:06 - End Time 2025-02-12 07:56:06 [2025-02-12 07:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457686', 'tblTempUsageDetail_20' ) start [2025-02-12 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457686', 'tblTempUsageDetail_20' ) end [2025-02-12 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457686', 'tblTempVendorCDR_20' ) start [2025-02-12 07:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457686', 'tblTempVendorCDR_20' ) end [2025-02-12 07:56:20] Production.INFO: ProcessCDR(1,14457686,1,1,2) [2025-02-12 07:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457686', 'tblTempUsageDetail_20' ) start [2025-02-12 07:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457686', 'tblTempUsageDetail_20' ) end [2025-02-12 07:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:56:23] Production.INFO: ==13369== Releasing lock... [2025-02-12 07:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:56:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:57:05 [end_date_ymd] => 2025-02-12 07:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:57:05' and `end` < '2025-02-12 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-12 07:57:18] Production.INFO: count ==240 [2025-02-12 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:57:05 - End Time 2025-02-12 07:57:05 [2025-02-12 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457691', 'tblTempUsageDetail_20' ) start [2025-02-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457691', 'tblTempUsageDetail_20' ) end [2025-02-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457691', 'tblTempVendorCDR_20' ) start [2025-02-12 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457691', 'tblTempVendorCDR_20' ) end [2025-02-12 07:57:18] Production.INFO: ProcessCDR(1,14457691,1,1,2) [2025-02-12 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457691', 'tblTempUsageDetail_20' ) start [2025-02-12 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457691', 'tblTempUsageDetail_20' ) end [2025-02-12 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:57:21] Production.INFO: ==13458== Releasing lock... [2025-02-12 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:58:05 [end_date_ymd] => 2025-02-12 07:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 04:58:05' and `end` < '2025-02-12 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-12 07:58:18] Production.INFO: count ==240 [2025-02-12 07:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:58:05 - End Time 2025-02-12 07:58:05 [2025-02-12 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457696', 'tblTempUsageDetail_20' ) start [2025-02-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457696', 'tblTempUsageDetail_20' ) end [2025-02-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457696', 'tblTempVendorCDR_20' ) start [2025-02-12 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457696', 'tblTempVendorCDR_20' ) end [2025-02-12 07:58:18] Production.INFO: ProcessCDR(1,14457696,1,1,2) [2025-02-12 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457696', 'tblTempUsageDetail_20' ) start [2025-02-12 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457696', 'tblTempUsageDetail_20' ) end [2025-02-12 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:58:22] Production.INFO: ==13548== Releasing lock... [2025-02-12 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-12 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 04:59:04 [end_date_ymd] => 2025-02-12 07:59:04 [RateCDR] => 1 ) [2025-02-12 07: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-12 04:59:04' and `end` < '2025-02-12 07: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-12 07:59:18] Production.INFO: count ==245 [2025-02-12 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-12 04:59:04 - End Time 2025-02-12 07:59:04 [2025-02-12 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457701', 'tblTempUsageDetail_20' ) start [2025-02-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457701', 'tblTempUsageDetail_20' ) end [2025-02-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457701', 'tblTempVendorCDR_20' ) start [2025-02-12 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457701', 'tblTempVendorCDR_20' ) end [2025-02-12 07:59:18] Production.INFO: ProcessCDR(1,14457701,1,1,2) [2025-02-12 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457701', 'tblTempUsageDetail_20' ) start [2025-02-12 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457701', 'tblTempUsageDetail_20' ) end [2025-02-12 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 07:59:21] Production.INFO: ==13629== Releasing lock... [2025-02-12 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 07:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:00:06 [end_date_ymd] => 2025-02-12 08:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:00:06' and `end` < '2025-02-12 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-12 08:00:19] Production.INFO: count ==246 [2025-02-12 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:00:06 - End Time 2025-02-12 08:00:06 [2025-02-12 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457707', 'tblTempUsageDetail_20' ) start [2025-02-12 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457707', 'tblTempUsageDetail_20' ) end [2025-02-12 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457707', 'tblTempVendorCDR_20' ) start [2025-02-12 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457707', 'tblTempVendorCDR_20' ) end [2025-02-12 08:00:19] Production.INFO: ProcessCDR(1,14457707,1,1,2) [2025-02-12 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457707', 'tblTempUsageDetail_20' ) start [2025-02-12 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457707', 'tblTempUsageDetail_20' ) end [2025-02-12 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:00:23] Production.INFO: ==13719== Releasing lock... [2025-02-12 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:00:23] Production.INFO: 30 MB #Memory Used# [2025-02-12 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:01:06 [end_date_ymd] => 2025-02-12 08:01:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:01:06' and `end` < '2025-02-12 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-12 08:01:19] Production.INFO: count ==242 [2025-02-12 08:01:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:01:06 - End Time 2025-02-12 08:01:06 [2025-02-12 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457712', 'tblTempUsageDetail_20' ) start [2025-02-12 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457712', 'tblTempUsageDetail_20' ) end [2025-02-12 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457712', 'tblTempVendorCDR_20' ) start [2025-02-12 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457712', 'tblTempVendorCDR_20' ) end [2025-02-12 08:01:19] Production.INFO: ProcessCDR(1,14457712,1,1,2) [2025-02-12 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457712', 'tblTempUsageDetail_20' ) start [2025-02-12 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457712', 'tblTempUsageDetail_20' ) end [2025-02-12 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:01:22] Production.INFO: ==13815== Releasing lock... [2025-02-12 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:01:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:02:05 [end_date_ymd] => 2025-02-12 08:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:02:05' and `end` < '2025-02-12 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-12 08:02:18] Production.INFO: count ==242 [2025-02-12 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:02:05 - End Time 2025-02-12 08:02:05 [2025-02-12 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457717', 'tblTempUsageDetail_20' ) start [2025-02-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457717', 'tblTempUsageDetail_20' ) end [2025-02-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457717', 'tblTempVendorCDR_20' ) start [2025-02-12 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457717', 'tblTempVendorCDR_20' ) end [2025-02-12 08:02:18] Production.INFO: ProcessCDR(1,14457717,1,1,2) [2025-02-12 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457717', 'tblTempUsageDetail_20' ) start [2025-02-12 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457717', 'tblTempUsageDetail_20' ) end [2025-02-12 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:02:21] Production.INFO: ==13899== Releasing lock... [2025-02-12 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:02:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:03:06 [end_date_ymd] => 2025-02-12 08:03:06 [RateCDR] => 1 ) [2025-02-12 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:03:06' and `end` < '2025-02-12 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:03:19] Production.INFO: count ==243 [2025-02-12 08:03:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:03:06 - End Time 2025-02-12 08:03:06 [2025-02-12 08:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457722', 'tblTempUsageDetail_20' ) start [2025-02-12 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457722', 'tblTempUsageDetail_20' ) end [2025-02-12 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457722', 'tblTempVendorCDR_20' ) start [2025-02-12 08:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457722', 'tblTempVendorCDR_20' ) end [2025-02-12 08:03:19] Production.INFO: ProcessCDR(1,14457722,1,1,2) [2025-02-12 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457722', 'tblTempUsageDetail_20' ) start [2025-02-12 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457722', 'tblTempUsageDetail_20' ) end [2025-02-12 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:03:23] Production.INFO: ==13987== Releasing lock... [2025-02-12 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:03:23] Production.INFO: 30 MB #Memory Used# [2025-02-12 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:04:05 [end_date_ymd] => 2025-02-12 08:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:04:05' and `end` < '2025-02-12 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-12 08:04:18] Production.INFO: count ==249 [2025-02-12 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:04:05 - End Time 2025-02-12 08:04:05 [2025-02-12 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457727', 'tblTempUsageDetail_20' ) start [2025-02-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457727', 'tblTempUsageDetail_20' ) end [2025-02-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457727', 'tblTempVendorCDR_20' ) start [2025-02-12 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457727', 'tblTempVendorCDR_20' ) end [2025-02-12 08:04:18] Production.INFO: ProcessCDR(1,14457727,1,1,2) [2025-02-12 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457727', 'tblTempUsageDetail_20' ) start [2025-02-12 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457727', 'tblTempUsageDetail_20' ) end [2025-02-12 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:04:21] Production.INFO: ==14085== Releasing lock... [2025-02-12 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-12 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:05:05 [end_date_ymd] => 2025-02-12 08:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:05:05' and `end` < '2025-02-12 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-12 08:05:18] Production.INFO: count ==261 [2025-02-12 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:05:05 - End Time 2025-02-12 08:05:05 [2025-02-12 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457732', 'tblTempUsageDetail_20' ) start [2025-02-12 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457732', 'tblTempUsageDetail_20' ) end [2025-02-12 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457732', 'tblTempVendorCDR_20' ) start [2025-02-12 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457732', 'tblTempVendorCDR_20' ) end [2025-02-12 08:05:19] Production.INFO: ProcessCDR(1,14457732,1,1,2) [2025-02-12 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457732', 'tblTempUsageDetail_20' ) start [2025-02-12 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457732', 'tblTempUsageDetail_20' ) end [2025-02-12 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:05:23] Production.INFO: ==14172== Releasing lock... [2025-02-12 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:06:05 [end_date_ymd] => 2025-02-12 08:06:05 [RateCDR] => 1 ) [2025-02-12 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:06:05' and `end` < '2025-02-12 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:06:18] Production.INFO: count ==269 [2025-02-12 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:06:05 - End Time 2025-02-12 08:06:05 [2025-02-12 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457737', 'tblTempUsageDetail_20' ) start [2025-02-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457737', 'tblTempUsageDetail_20' ) end [2025-02-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457737', 'tblTempVendorCDR_20' ) start [2025-02-12 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457737', 'tblTempVendorCDR_20' ) end [2025-02-12 08:06:18] Production.INFO: ProcessCDR(1,14457737,1,1,2) [2025-02-12 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457737', 'tblTempUsageDetail_20' ) start [2025-02-12 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457737', 'tblTempUsageDetail_20' ) end [2025-02-12 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:06:21] Production.INFO: ==14295== Releasing lock... [2025-02-12 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:07:06 [end_date_ymd] => 2025-02-12 08:07:06 [RateCDR] => 1 ) [2025-02-12 08: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-12 05:07:06' and `end` < '2025-02-12 08: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-12 08:07:19] Production.INFO: count ==279 [2025-02-12 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:07:06 - End Time 2025-02-12 08:07:06 [2025-02-12 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457742', 'tblTempUsageDetail_20' ) start [2025-02-12 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457742', 'tblTempUsageDetail_20' ) end [2025-02-12 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457742', 'tblTempVendorCDR_20' ) start [2025-02-12 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457742', 'tblTempVendorCDR_20' ) end [2025-02-12 08:07:19] Production.INFO: ProcessCDR(1,14457742,1,1,2) [2025-02-12 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457742', 'tblTempUsageDetail_20' ) start [2025-02-12 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457742', 'tblTempUsageDetail_20' ) end [2025-02-12 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:07:22] Production.INFO: ==14378== Releasing lock... [2025-02-12 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:08:05 [end_date_ymd] => 2025-02-12 08:08:05 [RateCDR] => 1 ) [2025-02-12 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:08:05' and `end` < '2025-02-12 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:08:19] Production.INFO: count ==280 [2025-02-12 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:08:05 - End Time 2025-02-12 08:08:05 [2025-02-12 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457747', 'tblTempUsageDetail_20' ) start [2025-02-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457747', 'tblTempUsageDetail_20' ) end [2025-02-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457747', 'tblTempVendorCDR_20' ) start [2025-02-12 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457747', 'tblTempVendorCDR_20' ) end [2025-02-12 08:08:19] Production.INFO: ProcessCDR(1,14457747,1,1,2) [2025-02-12 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457747', 'tblTempUsageDetail_20' ) start [2025-02-12 08:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457747', 'tblTempUsageDetail_20' ) end [2025-02-12 08:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:08:24] Production.INFO: ==14458== Releasing lock... [2025-02-12 08:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:08:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-12 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:09:05 [end_date_ymd] => 2025-02-12 08:09:05 [RateCDR] => 1 ) [2025-02-12 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:09:05' and `end` < '2025-02-12 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:09:18] Production.INFO: count ==285 [2025-02-12 08:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:09:05 - End Time 2025-02-12 08:09:05 [2025-02-12 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457752', 'tblTempUsageDetail_20' ) start [2025-02-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457752', 'tblTempUsageDetail_20' ) end [2025-02-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457752', 'tblTempVendorCDR_20' ) start [2025-02-12 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457752', 'tblTempVendorCDR_20' ) end [2025-02-12 08:09:18] Production.INFO: ProcessCDR(1,14457752,1,1,2) [2025-02-12 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457752', 'tblTempUsageDetail_20' ) start [2025-02-12 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457752', 'tblTempUsageDetail_20' ) end [2025-02-12 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:09:21] Production.INFO: ==14528== Releasing lock... [2025-02-12 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:10:05 [end_date_ymd] => 2025-02-12 08:10:05 [RateCDR] => 1 ) [2025-02-12 08:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:10:05' and `end` < '2025-02-12 08:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:10:19] Production.INFO: count ==287 [2025-02-12 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:10:05 - End Time 2025-02-12 08:10:05 [2025-02-12 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457757', 'tblTempUsageDetail_20' ) start [2025-02-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457757', 'tblTempUsageDetail_20' ) end [2025-02-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457757', 'tblTempVendorCDR_20' ) start [2025-02-12 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457757', 'tblTempVendorCDR_20' ) end [2025-02-12 08:10:19] Production.INFO: ProcessCDR(1,14457757,1,1,2) [2025-02-12 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457757', 'tblTempUsageDetail_20' ) start [2025-02-12 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457757', 'tblTempUsageDetail_20' ) end [2025-02-12 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:10:22] Production.INFO: ==14602== Releasing lock... [2025-02-12 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-12 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:11:05 [end_date_ymd] => 2025-02-12 08:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:11:05' and `end` < '2025-02-12 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-12 08:11:19] Production.INFO: count ==310 [2025-02-12 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:11:05 - End Time 2025-02-12 08:11:05 [2025-02-12 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457763', 'tblTempUsageDetail_20' ) start [2025-02-12 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457763', 'tblTempUsageDetail_20' ) end [2025-02-12 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457763', 'tblTempVendorCDR_20' ) start [2025-02-12 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457763', 'tblTempVendorCDR_20' ) end [2025-02-12 08:11:19] Production.INFO: ProcessCDR(1,14457763,1,1,2) [2025-02-12 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457763', 'tblTempUsageDetail_20' ) start [2025-02-12 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457763', 'tblTempUsageDetail_20' ) end [2025-02-12 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:11:23] Production.INFO: ==14681== Releasing lock... [2025-02-12 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-12 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:12:05 [end_date_ymd] => 2025-02-12 08:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:12:05' and `end` < '2025-02-12 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-12 08:12:18] Production.INFO: count ==319 [2025-02-12 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:12:05 - End Time 2025-02-12 08:12:05 [2025-02-12 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457768', 'tblTempUsageDetail_20' ) start [2025-02-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457768', 'tblTempUsageDetail_20' ) end [2025-02-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457768', 'tblTempVendorCDR_20' ) start [2025-02-12 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457768', 'tblTempVendorCDR_20' ) end [2025-02-12 08:12:18] Production.INFO: ProcessCDR(1,14457768,1,1,2) [2025-02-12 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457768', 'tblTempUsageDetail_20' ) start [2025-02-12 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457768', 'tblTempUsageDetail_20' ) end [2025-02-12 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:12:21] Production.INFO: ==14752== Releasing lock... [2025-02-12 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:12:21] Production.INFO: 31 MB #Memory Used# [2025-02-12 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:13:05 [end_date_ymd] => 2025-02-12 08:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:13:05' and `end` < '2025-02-12 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:13:18] Production.INFO: count ==325 [2025-02-12 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:13:05 - End Time 2025-02-12 08:13:05 [2025-02-12 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457773', 'tblTempUsageDetail_20' ) start [2025-02-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457773', 'tblTempUsageDetail_20' ) end [2025-02-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457773', 'tblTempVendorCDR_20' ) start [2025-02-12 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457773', 'tblTempVendorCDR_20' ) end [2025-02-12 08:13:18] Production.INFO: ProcessCDR(1,14457773,1,1,2) [2025-02-12 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457773', 'tblTempUsageDetail_20' ) start [2025-02-12 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457773', 'tblTempUsageDetail_20' ) end [2025-02-12 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:13:21] Production.INFO: ==14828== Releasing lock... [2025-02-12 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-12 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:14:05 [end_date_ymd] => 2025-02-12 08:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:14:05' and `end` < '2025-02-12 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-12 08:14:18] Production.INFO: count ==344 [2025-02-12 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:14:05 - End Time 2025-02-12 08:14:05 [2025-02-12 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457778', 'tblTempUsageDetail_20' ) start [2025-02-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457778', 'tblTempUsageDetail_20' ) end [2025-02-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457778', 'tblTempVendorCDR_20' ) start [2025-02-12 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457778', 'tblTempVendorCDR_20' ) end [2025-02-12 08:14:18] Production.INFO: ProcessCDR(1,14457778,1,1,2) [2025-02-12 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457778', 'tblTempUsageDetail_20' ) start [2025-02-12 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457778', 'tblTempUsageDetail_20' ) end [2025-02-12 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:14:22] Production.INFO: ==14899== Releasing lock... [2025-02-12 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:15:05 [end_date_ymd] => 2025-02-12 08:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:15:05' and `end` < '2025-02-12 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-12 08:15:18] Production.INFO: count ==365 [2025-02-12 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:15:05 - End Time 2025-02-12 08:15:05 [2025-02-12 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457783', 'tblTempUsageDetail_20' ) start [2025-02-12 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457783', 'tblTempUsageDetail_20' ) end [2025-02-12 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457783', 'tblTempVendorCDR_20' ) start [2025-02-12 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457783', 'tblTempVendorCDR_20' ) end [2025-02-12 08:15:18] Production.INFO: ProcessCDR(1,14457783,1,1,2) [2025-02-12 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457783', 'tblTempUsageDetail_20' ) start [2025-02-12 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457783', 'tblTempUsageDetail_20' ) end [2025-02-12 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:15:23] Production.INFO: ==14970== Releasing lock... [2025-02-12 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:15:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 08:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:16:04 [end_date_ymd] => 2025-02-12 08:16:04 [RateCDR] => 1 ) [2025-02-12 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-12 05:16:04' and `end` < '2025-02-12 08:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:16:17] Production.INFO: count ==377 [2025-02-12 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:16:04 - End Time 2025-02-12 08:16:04 [2025-02-12 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457788', 'tblTempUsageDetail_20' ) start [2025-02-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457788', 'tblTempUsageDetail_20' ) end [2025-02-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457788', 'tblTempVendorCDR_20' ) start [2025-02-12 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457788', 'tblTempVendorCDR_20' ) end [2025-02-12 08:16:18] Production.INFO: ProcessCDR(1,14457788,1,1,2) [2025-02-12 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457788', 'tblTempUsageDetail_20' ) start [2025-02-12 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457788', 'tblTempUsageDetail_20' ) end [2025-02-12 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:16:22] Production.INFO: ==15045== Releasing lock... [2025-02-12 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:16:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:17:05 [end_date_ymd] => 2025-02-12 08:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:17:05' and `end` < '2025-02-12 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-12 08:17:18] Production.INFO: count ==382 [2025-02-12 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:17:05 - End Time 2025-02-12 08:17:05 [2025-02-12 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457793', 'tblTempUsageDetail_20' ) start [2025-02-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457793', 'tblTempUsageDetail_20' ) end [2025-02-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457793', 'tblTempVendorCDR_20' ) start [2025-02-12 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457793', 'tblTempVendorCDR_20' ) end [2025-02-12 08:17:18] Production.INFO: ProcessCDR(1,14457793,1,1,2) [2025-02-12 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457793', 'tblTempUsageDetail_20' ) start [2025-02-12 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457793', 'tblTempUsageDetail_20' ) end [2025-02-12 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:17:21] Production.INFO: ==15120== Releasing lock... [2025-02-12 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:18:05 [end_date_ymd] => 2025-02-12 08:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:18:05' and `end` < '2025-02-12 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-12 08:18:18] Production.INFO: count ==390 [2025-02-12 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:18:05 - End Time 2025-02-12 08:18:05 [2025-02-12 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457798', 'tblTempUsageDetail_20' ) start [2025-02-12 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457798', 'tblTempUsageDetail_20' ) end [2025-02-12 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457798', 'tblTempVendorCDR_20' ) start [2025-02-12 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457798', 'tblTempVendorCDR_20' ) end [2025-02-12 08:18:18] Production.INFO: ProcessCDR(1,14457798,1,1,2) [2025-02-12 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457798', 'tblTempUsageDetail_20' ) start [2025-02-12 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457798', 'tblTempUsageDetail_20' ) end [2025-02-12 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:18:23] Production.INFO: ==15208== Releasing lock... [2025-02-12 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:19:05 [end_date_ymd] => 2025-02-12 08:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:19:05' and `end` < '2025-02-12 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-12 08:19:18] Production.INFO: count ==396 [2025-02-12 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:19:05 - End Time 2025-02-12 08:19:05 [2025-02-12 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457803', 'tblTempUsageDetail_20' ) start [2025-02-12 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457803', 'tblTempUsageDetail_20' ) end [2025-02-12 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457803', 'tblTempVendorCDR_20' ) start [2025-02-12 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457803', 'tblTempVendorCDR_20' ) end [2025-02-12 08:19:18] Production.INFO: ProcessCDR(1,14457803,1,1,2) [2025-02-12 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457803', 'tblTempUsageDetail_20' ) start [2025-02-12 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457803', 'tblTempUsageDetail_20' ) end [2025-02-12 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:19:22] Production.INFO: ==15283== Releasing lock... [2025-02-12 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-12 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:20:05 [end_date_ymd] => 2025-02-12 08:20:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:20:05' and `end` < '2025-02-12 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-12 08:20:18] Production.INFO: count ==408 [2025-02-12 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:20:05 - End Time 2025-02-12 08:20:05 [2025-02-12 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457809', 'tblTempUsageDetail_20' ) start [2025-02-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457809', 'tblTempUsageDetail_20' ) end [2025-02-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457809', 'tblTempVendorCDR_20' ) start [2025-02-12 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457809', 'tblTempVendorCDR_20' ) end [2025-02-12 08:20:18] Production.INFO: ProcessCDR(1,14457809,1,1,2) [2025-02-12 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457809', 'tblTempUsageDetail_20' ) start [2025-02-12 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457809', 'tblTempUsageDetail_20' ) end [2025-02-12 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:20:23] Production.INFO: ==15360== Releasing lock... [2025-02-12 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:20:23] Production.INFO: 31 MB #Memory Used# [2025-02-12 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:21:04 [end_date_ymd] => 2025-02-12 08:21:04 [RateCDR] => 1 ) [2025-02-12 08: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-12 05:21:04' and `end` < '2025-02-12 08: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-12 08:21:17] Production.INFO: count ==422 [2025-02-12 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-12 05:21:04 - End Time 2025-02-12 08:21:04 [2025-02-12 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457814', 'tblTempUsageDetail_20' ) start [2025-02-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457814', 'tblTempUsageDetail_20' ) end [2025-02-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457814', 'tblTempVendorCDR_20' ) start [2025-02-12 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457814', 'tblTempVendorCDR_20' ) end [2025-02-12 08:21:17] Production.INFO: ProcessCDR(1,14457814,1,1,2) [2025-02-12 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457814', 'tblTempUsageDetail_20' ) start [2025-02-12 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457814', 'tblTempUsageDetail_20' ) end [2025-02-12 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:21:21] Production.INFO: ==15441== Releasing lock... [2025-02-12 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:22:05 [end_date_ymd] => 2025-02-12 08:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:22:05' and `end` < '2025-02-12 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-12 08:22:19] Production.INFO: count ==425 [2025-02-12 08:22:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:22:05 - End Time 2025-02-12 08:22:05 [2025-02-12 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457819', 'tblTempUsageDetail_20' ) start [2025-02-12 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457819', 'tblTempUsageDetail_20' ) end [2025-02-12 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457819', 'tblTempVendorCDR_20' ) start [2025-02-12 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457819', 'tblTempVendorCDR_20' ) end [2025-02-12 08:22:19] Production.INFO: ProcessCDR(1,14457819,1,1,2) [2025-02-12 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457819', 'tblTempUsageDetail_20' ) start [2025-02-12 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457819', 'tblTempUsageDetail_20' ) end [2025-02-12 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:22:22] Production.INFO: ==15550== Releasing lock... [2025-02-12 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:22:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-12 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:23:05 [end_date_ymd] => 2025-02-12 08:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:23:05' and `end` < '2025-02-12 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-12 08:23:18] Production.INFO: count ==433 [2025-02-12 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:23:05 - End Time 2025-02-12 08:23:05 [2025-02-12 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457824', 'tblTempUsageDetail_20' ) start [2025-02-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457824', 'tblTempUsageDetail_20' ) end [2025-02-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457824', 'tblTempVendorCDR_20' ) start [2025-02-12 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457824', 'tblTempVendorCDR_20' ) end [2025-02-12 08:23:18] Production.INFO: ProcessCDR(1,14457824,1,1,2) [2025-02-12 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457824', 'tblTempUsageDetail_20' ) start [2025-02-12 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457824', 'tblTempUsageDetail_20' ) end [2025-02-12 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:23:23] Production.INFO: ==15628== Releasing lock... [2025-02-12 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:23:23] Production.INFO: 32 MB #Memory Used# [2025-02-12 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:24:06 [end_date_ymd] => 2025-02-12 08:24:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:24:06' and `end` < '2025-02-12 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-12 08:24:20] Production.INFO: count ==434 [2025-02-12 08:24:20] Production.ERROR: pbx CDR StartTime 2025-02-12 05:24:06 - End Time 2025-02-12 08:24:06 [2025-02-12 08:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457829', 'tblTempUsageDetail_20' ) start [2025-02-12 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457829', 'tblTempUsageDetail_20' ) end [2025-02-12 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457829', 'tblTempVendorCDR_20' ) start [2025-02-12 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457829', 'tblTempVendorCDR_20' ) end [2025-02-12 08:24:20] Production.INFO: ProcessCDR(1,14457829,1,1,2) [2025-02-12 08:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457829', 'tblTempUsageDetail_20' ) start [2025-02-12 08:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457829', 'tblTempUsageDetail_20' ) end [2025-02-12 08:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:24:25] Production.INFO: ==15707== Releasing lock... [2025-02-12 08:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:24:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:25:05 [end_date_ymd] => 2025-02-12 08:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:25:05' and `end` < '2025-02-12 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-12 08:25:18] Production.INFO: count ==435 [2025-02-12 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:25:05 - End Time 2025-02-12 08:25:05 [2025-02-12 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457834', 'tblTempUsageDetail_20' ) start [2025-02-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457834', 'tblTempUsageDetail_20' ) end [2025-02-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457834', 'tblTempVendorCDR_20' ) start [2025-02-12 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457834', 'tblTempVendorCDR_20' ) end [2025-02-12 08:25:18] Production.INFO: ProcessCDR(1,14457834,1,1,2) [2025-02-12 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457834', 'tblTempUsageDetail_20' ) start [2025-02-12 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457834', 'tblTempUsageDetail_20' ) end [2025-02-12 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:25:23] Production.INFO: ==15784== Releasing lock... [2025-02-12 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:25:23] Production.INFO: 32 MB #Memory Used# [2025-02-12 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:26:05 [end_date_ymd] => 2025-02-12 08:26:05 [RateCDR] => 1 ) [2025-02-12 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:26:05' and `end` < '2025-02-12 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:26:19] Production.INFO: count ==441 [2025-02-12 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:26:05 - End Time 2025-02-12 08:26:05 [2025-02-12 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457839', 'tblTempUsageDetail_20' ) start [2025-02-12 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457839', 'tblTempUsageDetail_20' ) end [2025-02-12 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457839', 'tblTempVendorCDR_20' ) start [2025-02-12 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457839', 'tblTempVendorCDR_20' ) end [2025-02-12 08:26:19] Production.INFO: ProcessCDR(1,14457839,1,1,2) [2025-02-12 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457839', 'tblTempUsageDetail_20' ) start [2025-02-12 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457839', 'tblTempUsageDetail_20' ) end [2025-02-12 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:26:23] Production.INFO: ==15857== Releasing lock... [2025-02-12 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:26:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-12 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:27:05 [end_date_ymd] => 2025-02-12 08:27:05 [RateCDR] => 1 ) [2025-02-12 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:27:05' and `end` < '2025-02-12 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:27:18] Production.INFO: count ==452 [2025-02-12 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:27:05 - End Time 2025-02-12 08:27:05 [2025-02-12 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457844', 'tblTempUsageDetail_20' ) start [2025-02-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457844', 'tblTempUsageDetail_20' ) end [2025-02-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457844', 'tblTempVendorCDR_20' ) start [2025-02-12 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457844', 'tblTempVendorCDR_20' ) end [2025-02-12 08:27:18] Production.INFO: ProcessCDR(1,14457844,1,1,2) [2025-02-12 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457844', 'tblTempUsageDetail_20' ) start [2025-02-12 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457844', 'tblTempUsageDetail_20' ) end [2025-02-12 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:27:23] Production.INFO: ==15934== Releasing lock... [2025-02-12 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:27:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:28:05 [end_date_ymd] => 2025-02-12 08:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:28:05' and `end` < '2025-02-12 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-12 08:28:18] Production.INFO: count ==460 [2025-02-12 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:28:05 - End Time 2025-02-12 08:28:05 [2025-02-12 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457849', 'tblTempUsageDetail_20' ) start [2025-02-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457849', 'tblTempUsageDetail_20' ) end [2025-02-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457849', 'tblTempVendorCDR_20' ) start [2025-02-12 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457849', 'tblTempVendorCDR_20' ) end [2025-02-12 08:28:18] Production.INFO: ProcessCDR(1,14457849,1,1,2) [2025-02-12 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457849', 'tblTempUsageDetail_20' ) start [2025-02-12 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457849', 'tblTempUsageDetail_20' ) end [2025-02-12 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:28:22] Production.INFO: ==16012== Releasing lock... [2025-02-12 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:29:05 [end_date_ymd] => 2025-02-12 08:29:05 [RateCDR] => 1 ) [2025-02-12 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:29:05' and `end` < '2025-02-12 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:29:18] Production.INFO: count ==478 [2025-02-12 08:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:29:05 - End Time 2025-02-12 08:29:05 [2025-02-12 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457854', 'tblTempUsageDetail_20' ) start [2025-02-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457854', 'tblTempUsageDetail_20' ) end [2025-02-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457854', 'tblTempVendorCDR_20' ) start [2025-02-12 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457854', 'tblTempVendorCDR_20' ) end [2025-02-12 08:29:19] Production.INFO: ProcessCDR(1,14457854,1,1,2) [2025-02-12 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457854', 'tblTempUsageDetail_20' ) start [2025-02-12 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457854', 'tblTempUsageDetail_20' ) end [2025-02-12 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:29:23] Production.INFO: ==16087== Releasing lock... [2025-02-12 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:29:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-12 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:30:06 [end_date_ymd] => 2025-02-12 08:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:30:06' and `end` < '2025-02-12 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-12 08:30:19] Production.INFO: count ==485 [2025-02-12 08:30:20] Production.ERROR: pbx CDR StartTime 2025-02-12 05:30:06 - End Time 2025-02-12 08:30:06 [2025-02-12 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457860', 'tblTempUsageDetail_20' ) start [2025-02-12 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457860', 'tblTempUsageDetail_20' ) end [2025-02-12 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457860', 'tblTempVendorCDR_20' ) start [2025-02-12 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457860', 'tblTempVendorCDR_20' ) end [2025-02-12 08:30:20] Production.INFO: ProcessCDR(1,14457860,1,1,2) [2025-02-12 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457860', 'tblTempUsageDetail_20' ) start [2025-02-12 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457860', 'tblTempUsageDetail_20' ) end [2025-02-12 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:30:24] Production.INFO: ==16164== Releasing lock... [2025-02-12 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:30:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:31:05 [end_date_ymd] => 2025-02-12 08:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:31:05' and `end` < '2025-02-12 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-12 08:31:18] Production.INFO: count ==509 [2025-02-12 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:31:05 - End Time 2025-02-12 08:31:05 [2025-02-12 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457865', 'tblTempUsageDetail_20' ) start [2025-02-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457865', 'tblTempUsageDetail_20' ) end [2025-02-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457865', 'tblTempVendorCDR_20' ) start [2025-02-12 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457865', 'tblTempVendorCDR_20' ) end [2025-02-12 08:31:18] Production.INFO: ProcessCDR(1,14457865,1,1,2) [2025-02-12 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457865', 'tblTempUsageDetail_20' ) start [2025-02-12 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457865', 'tblTempUsageDetail_20' ) end [2025-02-12 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:31:23] Production.INFO: ==16241== Releasing lock... [2025-02-12 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:31:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:32:06 [end_date_ymd] => 2025-02-12 08:32:06 [RateCDR] => 1 ) [2025-02-12 08: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-12 05:32:06' and `end` < '2025-02-12 08: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-12 08:32:19] Production.INFO: count ==513 [2025-02-12 08:32:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:32:06 - End Time 2025-02-12 08:32:06 [2025-02-12 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457870', 'tblTempUsageDetail_20' ) start [2025-02-12 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457870', 'tblTempUsageDetail_20' ) end [2025-02-12 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457870', 'tblTempVendorCDR_20' ) start [2025-02-12 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457870', 'tblTempVendorCDR_20' ) end [2025-02-12 08:32:19] Production.INFO: ProcessCDR(1,14457870,1,1,2) [2025-02-12 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457870', 'tblTempUsageDetail_20' ) start [2025-02-12 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457870', 'tblTempUsageDetail_20' ) end [2025-02-12 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:32:22] Production.INFO: ==16324== Releasing lock... [2025-02-12 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:32:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-12 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:33:05 [end_date_ymd] => 2025-02-12 08:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:33:05' and `end` < '2025-02-12 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-12 08:33:18] Production.INFO: count ==513 [2025-02-12 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:33:05 - End Time 2025-02-12 08:33:05 [2025-02-12 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457875', 'tblTempUsageDetail_20' ) start [2025-02-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457875', 'tblTempUsageDetail_20' ) end [2025-02-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457875', 'tblTempVendorCDR_20' ) start [2025-02-12 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457875', 'tblTempVendorCDR_20' ) end [2025-02-12 08:33:18] Production.INFO: ProcessCDR(1,14457875,1,1,2) [2025-02-12 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457875', 'tblTempUsageDetail_20' ) start [2025-02-12 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457875', 'tblTempUsageDetail_20' ) end [2025-02-12 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:33:21] Production.INFO: ==16400== Releasing lock... [2025-02-12 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-12 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:34:05 [end_date_ymd] => 2025-02-12 08:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:34:05' and `end` < '2025-02-12 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-12 08:34:18] Production.INFO: count ==523 [2025-02-12 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:34:05 - End Time 2025-02-12 08:34:05 [2025-02-12 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457880', 'tblTempUsageDetail_20' ) start [2025-02-12 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457880', 'tblTempUsageDetail_20' ) end [2025-02-12 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457880', 'tblTempVendorCDR_20' ) start [2025-02-12 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457880', 'tblTempVendorCDR_20' ) end [2025-02-12 08:34:19] Production.INFO: ProcessCDR(1,14457880,1,1,2) [2025-02-12 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457880', 'tblTempUsageDetail_20' ) start [2025-02-12 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457880', 'tblTempUsageDetail_20' ) end [2025-02-12 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:34:23] Production.INFO: ==16474== Releasing lock... [2025-02-12 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:34:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:35:04 [end_date_ymd] => 2025-02-12 08:35:04 [RateCDR] => 1 ) [2025-02-12 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:35:04' and `end` < '2025-02-12 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:35:17] Production.INFO: count ==529 [2025-02-12 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:35:04 - End Time 2025-02-12 08:35:04 [2025-02-12 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457885', 'tblTempUsageDetail_20' ) start [2025-02-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457885', 'tblTempUsageDetail_20' ) end [2025-02-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457885', 'tblTempVendorCDR_20' ) start [2025-02-12 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457885', 'tblTempVendorCDR_20' ) end [2025-02-12 08:35:18] Production.INFO: ProcessCDR(1,14457885,1,1,2) [2025-02-12 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457885', 'tblTempUsageDetail_20' ) start [2025-02-12 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457885', 'tblTempUsageDetail_20' ) end [2025-02-12 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:35:22] Production.INFO: ==16559== Releasing lock... [2025-02-12 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-12 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:36:05 [end_date_ymd] => 2025-02-12 08:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:36:05' and `end` < '2025-02-12 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-12 08:36:18] Production.INFO: count ==542 [2025-02-12 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:36:05 - End Time 2025-02-12 08:36:05 [2025-02-12 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457890', 'tblTempUsageDetail_20' ) start [2025-02-12 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457890', 'tblTempUsageDetail_20' ) end [2025-02-12 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457890', 'tblTempVendorCDR_20' ) start [2025-02-12 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457890', 'tblTempVendorCDR_20' ) end [2025-02-12 08:36:19] Production.INFO: ProcessCDR(1,14457890,1,1,2) [2025-02-12 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457890', 'tblTempUsageDetail_20' ) start [2025-02-12 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457890', 'tblTempUsageDetail_20' ) end [2025-02-12 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:36:22] Production.INFO: ==16640== Releasing lock... [2025-02-12 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:36:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:37:05 [end_date_ymd] => 2025-02-12 08:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:37:05' and `end` < '2025-02-12 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-12 08:37:18] Production.INFO: count ==542 [2025-02-12 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:37:05 - End Time 2025-02-12 08:37:05 [2025-02-12 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457895', 'tblTempUsageDetail_20' ) start [2025-02-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457895', 'tblTempUsageDetail_20' ) end [2025-02-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457895', 'tblTempVendorCDR_20' ) start [2025-02-12 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457895', 'tblTempVendorCDR_20' ) end [2025-02-12 08:37:18] Production.INFO: ProcessCDR(1,14457895,1,1,2) [2025-02-12 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457895', 'tblTempUsageDetail_20' ) start [2025-02-12 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457895', 'tblTempUsageDetail_20' ) end [2025-02-12 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:37:21] Production.INFO: ==16756== Releasing lock... [2025-02-12 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:37:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:38:05 [end_date_ymd] => 2025-02-12 08:38:05 [RateCDR] => 1 ) [2025-02-12 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:38:05' and `end` < '2025-02-12 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:38:19] Production.INFO: count ==544 [2025-02-12 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:38:05 - End Time 2025-02-12 08:38:05 [2025-02-12 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457900', 'tblTempUsageDetail_20' ) start [2025-02-12 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457900', 'tblTempUsageDetail_20' ) end [2025-02-12 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457900', 'tblTempVendorCDR_20' ) start [2025-02-12 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457900', 'tblTempVendorCDR_20' ) end [2025-02-12 08:38:19] Production.INFO: ProcessCDR(1,14457900,1,1,2) [2025-02-12 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457900', 'tblTempUsageDetail_20' ) start [2025-02-12 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457900', 'tblTempUsageDetail_20' ) end [2025-02-12 08:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:38:24] Production.INFO: ==16837== Releasing lock... [2025-02-12 08:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:38:24] Production.INFO: 33 MB #Memory Used# [2025-02-12 08:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:39:04 [end_date_ymd] => 2025-02-12 08:39:04 [RateCDR] => 1 ) [2025-02-12 08: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-12 05:39:04' and `end` < '2025-02-12 08: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-12 08:39:17] Production.INFO: count ==550 [2025-02-12 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-12 05:39:04 - End Time 2025-02-12 08:39:04 [2025-02-12 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457905', 'tblTempUsageDetail_20' ) start [2025-02-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457905', 'tblTempUsageDetail_20' ) end [2025-02-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457905', 'tblTempVendorCDR_20' ) start [2025-02-12 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457905', 'tblTempVendorCDR_20' ) end [2025-02-12 08:39:18] Production.INFO: ProcessCDR(1,14457905,1,1,2) [2025-02-12 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457905', 'tblTempUsageDetail_20' ) start [2025-02-12 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457905', 'tblTempUsageDetail_20' ) end [2025-02-12 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:39:21] Production.INFO: ==16917== Releasing lock... [2025-02-12 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:40:06 [end_date_ymd] => 2025-02-12 08:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:40:06' and `end` < '2025-02-12 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-12 08:40:19] Production.INFO: count ==554 [2025-02-12 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:40:06 - End Time 2025-02-12 08:40:06 [2025-02-12 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457911', 'tblTempUsageDetail_20' ) start [2025-02-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457911', 'tblTempUsageDetail_20' ) end [2025-02-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457911', 'tblTempVendorCDR_20' ) start [2025-02-12 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457911', 'tblTempVendorCDR_20' ) end [2025-02-12 08:40:19] Production.INFO: ProcessCDR(1,14457911,1,1,2) [2025-02-12 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457911', 'tblTempUsageDetail_20' ) start [2025-02-12 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457911', 'tblTempUsageDetail_20' ) end [2025-02-12 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:40:24] Production.INFO: ==17003== Releasing lock... [2025-02-12 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:40:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-12 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:41:05 [end_date_ymd] => 2025-02-12 08:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:41:05' and `end` < '2025-02-12 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-12 08:41:18] Production.INFO: count ==583 [2025-02-12 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:41:05 - End Time 2025-02-12 08:41:05 [2025-02-12 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457916', 'tblTempUsageDetail_20' ) start [2025-02-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457916', 'tblTempUsageDetail_20' ) end [2025-02-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457916', 'tblTempVendorCDR_20' ) start [2025-02-12 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457916', 'tblTempVendorCDR_20' ) end [2025-02-12 08:41:18] Production.INFO: ProcessCDR(1,14457916,1,1,2) [2025-02-12 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457916', 'tblTempUsageDetail_20' ) start [2025-02-12 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457916', 'tblTempUsageDetail_20' ) end [2025-02-12 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:41:23] Production.INFO: ==17089== Releasing lock... [2025-02-12 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:41:23] Production.INFO: 33 MB #Memory Used# [2025-02-12 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:42:05 [end_date_ymd] => 2025-02-12 08:42:05 [RateCDR] => 1 ) [2025-02-12 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:42:05' and `end` < '2025-02-12 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:42:18] Production.INFO: count ==591 [2025-02-12 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:42:05 - End Time 2025-02-12 08:42:05 [2025-02-12 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457921', 'tblTempUsageDetail_20' ) start [2025-02-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457921', 'tblTempUsageDetail_20' ) end [2025-02-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457921', 'tblTempVendorCDR_20' ) start [2025-02-12 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457921', 'tblTempVendorCDR_20' ) end [2025-02-12 08:42:18] Production.INFO: ProcessCDR(1,14457921,1,1,2) [2025-02-12 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457921', 'tblTempUsageDetail_20' ) start [2025-02-12 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457921', 'tblTempUsageDetail_20' ) end [2025-02-12 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:42:22] Production.INFO: ==17173== Releasing lock... [2025-02-12 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:43:05 [end_date_ymd] => 2025-02-12 08:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:43:05' and `end` < '2025-02-12 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-12 08:43:18] Production.INFO: count ==615 [2025-02-12 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:43:05 - End Time 2025-02-12 08:43:05 [2025-02-12 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457926', 'tblTempUsageDetail_20' ) start [2025-02-12 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457926', 'tblTempUsageDetail_20' ) end [2025-02-12 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457926', 'tblTempVendorCDR_20' ) start [2025-02-12 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457926', 'tblTempVendorCDR_20' ) end [2025-02-12 08:43:18] Production.INFO: ProcessCDR(1,14457926,1,1,2) [2025-02-12 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457926', 'tblTempUsageDetail_20' ) start [2025-02-12 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457926', 'tblTempUsageDetail_20' ) end [2025-02-12 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:43:23] Production.INFO: ==17253== Releasing lock... [2025-02-12 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:43:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:44:05 [end_date_ymd] => 2025-02-12 08:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:44:05' and `end` < '2025-02-12 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-12 08:44:18] Production.INFO: count ==617 [2025-02-12 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:44:05 - End Time 2025-02-12 08:44:05 [2025-02-12 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457931', 'tblTempUsageDetail_20' ) start [2025-02-12 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457931', 'tblTempUsageDetail_20' ) end [2025-02-12 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457931', 'tblTempVendorCDR_20' ) start [2025-02-12 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457931', 'tblTempVendorCDR_20' ) end [2025-02-12 08:44:19] Production.INFO: ProcessCDR(1,14457931,1,1,2) [2025-02-12 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457931', 'tblTempUsageDetail_20' ) start [2025-02-12 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457931', 'tblTempUsageDetail_20' ) end [2025-02-12 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:44:23] Production.INFO: ==17340== Releasing lock... [2025-02-12 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:44:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:45:05 [end_date_ymd] => 2025-02-12 08:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:45:05' and `end` < '2025-02-12 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-12 08:45:18] Production.INFO: count ==626 [2025-02-12 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:45:05 - End Time 2025-02-12 08:45:05 [2025-02-12 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457936', 'tblTempUsageDetail_20' ) start [2025-02-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457936', 'tblTempUsageDetail_20' ) end [2025-02-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457936', 'tblTempVendorCDR_20' ) start [2025-02-12 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457936', 'tblTempVendorCDR_20' ) end [2025-02-12 08:45:18] Production.INFO: ProcessCDR(1,14457936,1,1,2) [2025-02-12 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457936', 'tblTempUsageDetail_20' ) start [2025-02-12 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457936', 'tblTempUsageDetail_20' ) end [2025-02-12 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:45:23] Production.INFO: ==17426== Releasing lock... [2025-02-12 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:45:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:46:05 [end_date_ymd] => 2025-02-12 08:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:46:05' and `end` < '2025-02-12 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-12 08:46:18] Production.INFO: count ==645 [2025-02-12 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:46:05 - End Time 2025-02-12 08:46:05 [2025-02-12 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457941', 'tblTempUsageDetail_20' ) start [2025-02-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457941', 'tblTempUsageDetail_20' ) end [2025-02-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457941', 'tblTempVendorCDR_20' ) start [2025-02-12 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457941', 'tblTempVendorCDR_20' ) end [2025-02-12 08:46:18] Production.INFO: ProcessCDR(1,14457941,1,1,2) [2025-02-12 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457941', 'tblTempUsageDetail_20' ) start [2025-02-12 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457941', 'tblTempUsageDetail_20' ) end [2025-02-12 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:46:23] Production.INFO: ==17511== Releasing lock... [2025-02-12 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:46:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:47:05 [end_date_ymd] => 2025-02-12 08:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:47:05' and `end` < '2025-02-12 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-12 08:47:19] Production.INFO: count ==659 [2025-02-12 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:47:05 - End Time 2025-02-12 08:47:05 [2025-02-12 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457946', 'tblTempUsageDetail_20' ) start [2025-02-12 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457946', 'tblTempUsageDetail_20' ) end [2025-02-12 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457946', 'tblTempVendorCDR_20' ) start [2025-02-12 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457946', 'tblTempVendorCDR_20' ) end [2025-02-12 08:47:19] Production.INFO: ProcessCDR(1,14457946,1,1,2) [2025-02-12 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457946', 'tblTempUsageDetail_20' ) start [2025-02-12 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457946', 'tblTempUsageDetail_20' ) end [2025-02-12 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:47:24] Production.INFO: ==17591== Releasing lock... [2025-02-12 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:47:24] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 08:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:48:04 [end_date_ymd] => 2025-02-12 08:48:04 [RateCDR] => 1 ) [2025-02-12 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-12 05:48:04' and `end` < '2025-02-12 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-12 08:48:18] Production.INFO: count ==666 [2025-02-12 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:48:04 - End Time 2025-02-12 08:48:04 [2025-02-12 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457951', 'tblTempUsageDetail_20' ) start [2025-02-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457951', 'tblTempUsageDetail_20' ) end [2025-02-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457951', 'tblTempVendorCDR_20' ) start [2025-02-12 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457951', 'tblTempVendorCDR_20' ) end [2025-02-12 08:48:18] Production.INFO: ProcessCDR(1,14457951,1,1,2) [2025-02-12 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457951', 'tblTempUsageDetail_20' ) start [2025-02-12 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457951', 'tblTempUsageDetail_20' ) end [2025-02-12 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:48:22] Production.INFO: ==17665== Releasing lock... [2025-02-12 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:48:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:49:05 [end_date_ymd] => 2025-02-12 08:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:49:05' and `end` < '2025-02-12 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-12 08:49:19] Production.INFO: count ==668 [2025-02-12 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:49:05 - End Time 2025-02-12 08:49:05 [2025-02-12 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457956', 'tblTempUsageDetail_20' ) start [2025-02-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457956', 'tblTempUsageDetail_20' ) end [2025-02-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457956', 'tblTempVendorCDR_20' ) start [2025-02-12 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457956', 'tblTempVendorCDR_20' ) end [2025-02-12 08:49:19] Production.INFO: ProcessCDR(1,14457956,1,1,2) [2025-02-12 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457956', 'tblTempUsageDetail_20' ) start [2025-02-12 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457956', 'tblTempUsageDetail_20' ) end [2025-02-12 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:49:23] Production.INFO: ==17739== Releasing lock... [2025-02-12 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:49:23] Production.INFO: 34 MB #Memory Used# [2025-02-12 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:50:06 [end_date_ymd] => 2025-02-12 08:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 05:50:06' and `end` < '2025-02-12 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-12 08:50:19] Production.INFO: count ==677 [2025-02-12 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:50:06 - End Time 2025-02-12 08:50:06 [2025-02-12 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457962', 'tblTempUsageDetail_20' ) start [2025-02-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457962', 'tblTempUsageDetail_20' ) end [2025-02-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457962', 'tblTempVendorCDR_20' ) start [2025-02-12 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457962', 'tblTempVendorCDR_20' ) end [2025-02-12 08:50:19] Production.INFO: ProcessCDR(1,14457962,1,1,2) [2025-02-12 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457962', 'tblTempUsageDetail_20' ) start [2025-02-12 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457962', 'tblTempUsageDetail_20' ) end [2025-02-12 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:50:22] Production.INFO: ==17816== Releasing lock... [2025-02-12 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:51:05 [end_date_ymd] => 2025-02-12 08:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:51:05' and `end` < '2025-02-12 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-12 08:51:18] Production.INFO: count ==728 [2025-02-12 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:51:05 - End Time 2025-02-12 08:51:05 [2025-02-12 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457967', 'tblTempUsageDetail_20' ) start [2025-02-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457967', 'tblTempUsageDetail_20' ) end [2025-02-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457967', 'tblTempVendorCDR_20' ) start [2025-02-12 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457967', 'tblTempVendorCDR_20' ) end [2025-02-12 08:51:18] Production.INFO: ProcessCDR(1,14457967,1,1,2) [2025-02-12 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457967', 'tblTempUsageDetail_20' ) start [2025-02-12 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457967', 'tblTempUsageDetail_20' ) end [2025-02-12 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:51:23] Production.INFO: ==17892== Releasing lock... [2025-02-12 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:51:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:52:05 [end_date_ymd] => 2025-02-12 08:52:05 [RateCDR] => 1 ) [2025-02-12 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:52:05' and `end` < '2025-02-12 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:52:18] Production.INFO: count ==741 [2025-02-12 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:52:05 - End Time 2025-02-12 08:52:05 [2025-02-12 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457972', 'tblTempUsageDetail_20' ) start [2025-02-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457972', 'tblTempUsageDetail_20' ) end [2025-02-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457972', 'tblTempVendorCDR_20' ) start [2025-02-12 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457972', 'tblTempVendorCDR_20' ) end [2025-02-12 08:52:18] Production.INFO: ProcessCDR(1,14457972,1,1,2) [2025-02-12 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457972', 'tblTempUsageDetail_20' ) start [2025-02-12 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457972', 'tblTempUsageDetail_20' ) end [2025-02-12 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:52:23] Production.INFO: ==17965== Releasing lock... [2025-02-12 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:52:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:53:05 [end_date_ymd] => 2025-02-12 08:53:05 [RateCDR] => 1 ) [2025-02-12 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:53:05' and `end` < '2025-02-12 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:53:20] Production.INFO: count ==742 [2025-02-12 08:53:20] Production.ERROR: pbx CDR StartTime 2025-02-12 05:53:05 - End Time 2025-02-12 08:53:05 [2025-02-12 08:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457977', 'tblTempUsageDetail_20' ) start [2025-02-12 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457977', 'tblTempUsageDetail_20' ) end [2025-02-12 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457977', 'tblTempVendorCDR_20' ) start [2025-02-12 08:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457977', 'tblTempVendorCDR_20' ) end [2025-02-12 08:53:20] Production.INFO: ProcessCDR(1,14457977,1,1,2) [2025-02-12 08:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457977', 'tblTempUsageDetail_20' ) start [2025-02-12 08:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457977', 'tblTempUsageDetail_20' ) end [2025-02-12 08:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:53:25] Production.INFO: ==18079== Releasing lock... [2025-02-12 08:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:53:25] Production.INFO: 34 MB #Memory Used# [2025-02-12 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:54:05 [end_date_ymd] => 2025-02-12 08:54:05 [RateCDR] => 1 ) [2025-02-12 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:54:05' and `end` < '2025-02-12 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:54:19] Production.INFO: count ==746 [2025-02-12 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:54:05 - End Time 2025-02-12 08:54:05 [2025-02-12 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457982', 'tblTempUsageDetail_20' ) start [2025-02-12 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457982', 'tblTempUsageDetail_20' ) end [2025-02-12 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457982', 'tblTempVendorCDR_20' ) start [2025-02-12 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457982', 'tblTempVendorCDR_20' ) end [2025-02-12 08:54:19] Production.INFO: ProcessCDR(1,14457982,1,1,2) [2025-02-12 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457982', 'tblTempUsageDetail_20' ) start [2025-02-12 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457982', 'tblTempUsageDetail_20' ) end [2025-02-12 08:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:54:24] Production.INFO: ==18158== Releasing lock... [2025-02-12 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:54:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:55:05 [end_date_ymd] => 2025-02-12 08:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:55:05' and `end` < '2025-02-12 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-12 08:55:18] Production.INFO: count ==753 [2025-02-12 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:55:05 - End Time 2025-02-12 08:55:05 [2025-02-12 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457987', 'tblTempUsageDetail_20' ) start [2025-02-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457987', 'tblTempUsageDetail_20' ) end [2025-02-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457987', 'tblTempVendorCDR_20' ) start [2025-02-12 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457987', 'tblTempVendorCDR_20' ) end [2025-02-12 08:55:18] Production.INFO: ProcessCDR(1,14457987,1,1,2) [2025-02-12 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457987', 'tblTempUsageDetail_20' ) start [2025-02-12 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457987', 'tblTempUsageDetail_20' ) end [2025-02-12 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:55:23] Production.INFO: ==18228== Releasing lock... [2025-02-12 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:55:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:56:06 [end_date_ymd] => 2025-02-12 08:56:06 [RateCDR] => 1 ) [2025-02-12 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:56:06' and `end` < '2025-02-12 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:56:19] Production.INFO: count ==754 [2025-02-12 08:56:20] Production.ERROR: pbx CDR StartTime 2025-02-12 05:56:06 - End Time 2025-02-12 08:56:06 [2025-02-12 08:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457992', 'tblTempUsageDetail_20' ) start [2025-02-12 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457992', 'tblTempUsageDetail_20' ) end [2025-02-12 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457992', 'tblTempVendorCDR_20' ) start [2025-02-12 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457992', 'tblTempVendorCDR_20' ) end [2025-02-12 08:56:20] Production.INFO: ProcessCDR(1,14457992,1,1,2) [2025-02-12 08:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457992', 'tblTempUsageDetail_20' ) start [2025-02-12 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457992', 'tblTempUsageDetail_20' ) end [2025-02-12 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:56:23] Production.INFO: ==18306== Releasing lock... [2025-02-12 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:57:05 [end_date_ymd] => 2025-02-12 08:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:57:05' and `end` < '2025-02-12 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-12 08:57:18] Production.INFO: count ==759 [2025-02-12 08:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 05:57:05 - End Time 2025-02-12 08:57:05 [2025-02-12 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457997', 'tblTempUsageDetail_20' ) start [2025-02-12 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14457997', 'tblTempUsageDetail_20' ) end [2025-02-12 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457997', 'tblTempVendorCDR_20' ) start [2025-02-12 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14457997', 'tblTempVendorCDR_20' ) end [2025-02-12 08:57:18] Production.INFO: ProcessCDR(1,14457997,1,1,2) [2025-02-12 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14457997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14457997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14457997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14457997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457997', 'tblTempUsageDetail_20' ) start [2025-02-12 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14457997', 'tblTempUsageDetail_20' ) end [2025-02-12 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:57:23] Production.INFO: ==18384== Releasing lock... [2025-02-12 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:58:05 [end_date_ymd] => 2025-02-12 08:58:05 [RateCDR] => 1 ) [2025-02-12 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 05:58:05' and `end` < '2025-02-12 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 08:58:19] Production.INFO: count ==760 [2025-02-12 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:58:05 - End Time 2025-02-12 08:58:05 [2025-02-12 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458002', 'tblTempUsageDetail_20' ) start [2025-02-12 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458002', 'tblTempUsageDetail_20' ) end [2025-02-12 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458002', 'tblTempVendorCDR_20' ) start [2025-02-12 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458002', 'tblTempVendorCDR_20' ) end [2025-02-12 08:58:19] Production.INFO: ProcessCDR(1,14458002,1,1,2) [2025-02-12 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458002', 'tblTempUsageDetail_20' ) start [2025-02-12 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458002', 'tblTempUsageDetail_20' ) end [2025-02-12 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:58:22] Production.INFO: ==18461== Releasing lock... [2025-02-12 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:58:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 05:59:05 [end_date_ymd] => 2025-02-12 08:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 05:59:05' and `end` < '2025-02-12 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-12 08:59:18] Production.INFO: count ==763 [2025-02-12 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 05:59:05 - End Time 2025-02-12 08:59:05 [2025-02-12 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458007', 'tblTempUsageDetail_20' ) start [2025-02-12 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458007', 'tblTempUsageDetail_20' ) end [2025-02-12 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458007', 'tblTempVendorCDR_20' ) start [2025-02-12 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458007', 'tblTempVendorCDR_20' ) end [2025-02-12 08:59:19] Production.INFO: ProcessCDR(1,14458007,1,1,2) [2025-02-12 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458007', 'tblTempUsageDetail_20' ) start [2025-02-12 08:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458007', 'tblTempUsageDetail_20' ) end [2025-02-12 08:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 08:59:24] Production.INFO: ==18532== Releasing lock... [2025-02-12 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 08:59:24] Production.INFO: 34 MB #Memory Used# [2025-02-12 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:00:06 [end_date_ymd] => 2025-02-12 09:00:06 [RateCDR] => 1 ) [2025-02-12 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:00:06' and `end` < '2025-02-12 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:00:19] Production.INFO: count ==767 [2025-02-12 09:00:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:00:06 - End Time 2025-02-12 09:00:06 [2025-02-12 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458013', 'tblTempUsageDetail_20' ) start [2025-02-12 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458013', 'tblTempUsageDetail_20' ) end [2025-02-12 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458013', 'tblTempVendorCDR_20' ) start [2025-02-12 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458013', 'tblTempVendorCDR_20' ) end [2025-02-12 09:00:20] Production.INFO: ProcessCDR(1,14458013,1,1,2) [2025-02-12 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458013', 'tblTempUsageDetail_20' ) start [2025-02-12 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458013', 'tblTempUsageDetail_20' ) end [2025-02-12 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:00:23] Production.INFO: ==18613== Releasing lock... [2025-02-12 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:00:23] Production.INFO: 34 MB #Memory Used# [2025-02-12 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:01:05 [end_date_ymd] => 2025-02-12 09:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:01:05' and `end` < '2025-02-12 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-12 09:01:18] Production.INFO: count ==804 [2025-02-12 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:01:05 - End Time 2025-02-12 09:01:05 [2025-02-12 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458018', 'tblTempUsageDetail_20' ) start [2025-02-12 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458018', 'tblTempUsageDetail_20' ) end [2025-02-12 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458018', 'tblTempVendorCDR_20' ) start [2025-02-12 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458018', 'tblTempVendorCDR_20' ) end [2025-02-12 09:01:19] Production.INFO: ProcessCDR(1,14458018,1,1,2) [2025-02-12 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458018', 'tblTempUsageDetail_20' ) start [2025-02-12 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458018', 'tblTempUsageDetail_20' ) end [2025-02-12 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:01:22] Production.INFO: ==18701== Releasing lock... [2025-02-12 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:01:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:02:05 [end_date_ymd] => 2025-02-12 09:02:05 [RateCDR] => 1 ) [2025-02-12 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:02:05' and `end` < '2025-02-12 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:02:19] Production.INFO: count ==819 [2025-02-12 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:02:05 - End Time 2025-02-12 09:02:05 [2025-02-12 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458023', 'tblTempUsageDetail_20' ) start [2025-02-12 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458023', 'tblTempUsageDetail_20' ) end [2025-02-12 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458023', 'tblTempVendorCDR_20' ) start [2025-02-12 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458023', 'tblTempVendorCDR_20' ) end [2025-02-12 09:02:19] Production.INFO: ProcessCDR(1,14458023,1,1,2) [2025-02-12 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458023', 'tblTempUsageDetail_20' ) start [2025-02-12 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458023', 'tblTempUsageDetail_20' ) end [2025-02-12 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:02:24] Production.INFO: ==18780== Releasing lock... [2025-02-12 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:02:24] Production.INFO: 34 MB #Memory Used# [2025-02-12 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:03:05 [end_date_ymd] => 2025-02-12 09:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:03:05' and `end` < '2025-02-12 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-12 09:03:19] Production.INFO: count ==831 [2025-02-12 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:03:05 - End Time 2025-02-12 09:03:05 [2025-02-12 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458028', 'tblTempUsageDetail_20' ) start [2025-02-12 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458028', 'tblTempUsageDetail_20' ) end [2025-02-12 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458028', 'tblTempVendorCDR_20' ) start [2025-02-12 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458028', 'tblTempVendorCDR_20' ) end [2025-02-12 09:03:19] Production.INFO: ProcessCDR(1,14458028,1,1,2) [2025-02-12 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458028', 'tblTempUsageDetail_20' ) start [2025-02-12 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458028', 'tblTempUsageDetail_20' ) end [2025-02-12 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:03:24] Production.INFO: ==18849== Releasing lock... [2025-02-12 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:03:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-12 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:04:05 [end_date_ymd] => 2025-02-12 09:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:04:05' and `end` < '2025-02-12 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-12 09:04:19] Production.INFO: count ==839 [2025-02-12 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:04:05 - End Time 2025-02-12 09:04:05 [2025-02-12 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458033', 'tblTempUsageDetail_20' ) start [2025-02-12 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458033', 'tblTempUsageDetail_20' ) end [2025-02-12 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458033', 'tblTempVendorCDR_20' ) start [2025-02-12 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458033', 'tblTempVendorCDR_20' ) end [2025-02-12 09:04:19] Production.INFO: ProcessCDR(1,14458033,1,1,2) [2025-02-12 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458033', 'tblTempUsageDetail_20' ) start [2025-02-12 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458033', 'tblTempUsageDetail_20' ) end [2025-02-12 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:04:24] Production.INFO: ==18924== Releasing lock... [2025-02-12 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:05:04 [end_date_ymd] => 2025-02-12 09:05:04 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:05:04' and `end` < '2025-02-12 09: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-12 09:05:17] Production.INFO: count ==853 [2025-02-12 09:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 06:05:04 - End Time 2025-02-12 09:05:04 [2025-02-12 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458038', 'tblTempUsageDetail_20' ) start [2025-02-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458038', 'tblTempUsageDetail_20' ) end [2025-02-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458038', 'tblTempVendorCDR_20' ) start [2025-02-12 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458038', 'tblTempVendorCDR_20' ) end [2025-02-12 09:05:18] Production.INFO: ProcessCDR(1,14458038,1,1,2) [2025-02-12 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458038', 'tblTempUsageDetail_20' ) start [2025-02-12 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458038', 'tblTempUsageDetail_20' ) end [2025-02-12 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:05:23] Production.INFO: ==18996== Releasing lock... [2025-02-12 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-12 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:06:05 [end_date_ymd] => 2025-02-12 09:06:05 [RateCDR] => 1 ) [2025-02-12 09:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:06:05' and `end` < '2025-02-12 09:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:06:18] Production.INFO: count ==881 [2025-02-12 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 06:06:05 - End Time 2025-02-12 09:06:05 [2025-02-12 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458043', 'tblTempUsageDetail_20' ) start [2025-02-12 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458043', 'tblTempUsageDetail_20' ) end [2025-02-12 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458043', 'tblTempVendorCDR_20' ) start [2025-02-12 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458043', 'tblTempVendorCDR_20' ) end [2025-02-12 09:06:19] Production.INFO: ProcessCDR(1,14458043,1,1,2) [2025-02-12 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458043', 'tblTempUsageDetail_20' ) start [2025-02-12 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458043', 'tblTempUsageDetail_20' ) end [2025-02-12 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:06:24] Production.INFO: ==19065== Releasing lock... [2025-02-12 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:06:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-12 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:07:05 [end_date_ymd] => 2025-02-12 09:07:05 [RateCDR] => 1 ) [2025-02-12 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:07:05' and `end` < '2025-02-12 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:07:19] Production.INFO: count ==910 [2025-02-12 09:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:07:05 - End Time 2025-02-12 09:07:05 [2025-02-12 09:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458048', 'tblTempUsageDetail_20' ) start [2025-02-12 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458048', 'tblTempUsageDetail_20' ) end [2025-02-12 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458048', 'tblTempVendorCDR_20' ) start [2025-02-12 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458048', 'tblTempVendorCDR_20' ) end [2025-02-12 09:07:19] Production.INFO: ProcessCDR(1,14458048,1,1,2) [2025-02-12 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458048', 'tblTempUsageDetail_20' ) start [2025-02-12 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458048', 'tblTempUsageDetail_20' ) end [2025-02-12 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:07:24] Production.INFO: ==19144== Releasing lock... [2025-02-12 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:07:24] Production.INFO: 35 MB #Memory Used# [2025-02-12 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:08:05 [end_date_ymd] => 2025-02-12 09:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:08:05' and `end` < '2025-02-12 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-12 09:08:19] Production.INFO: count ==931 [2025-02-12 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:08:05 - End Time 2025-02-12 09:08:05 [2025-02-12 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458053', 'tblTempUsageDetail_20' ) start [2025-02-12 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458053', 'tblTempUsageDetail_20' ) end [2025-02-12 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458053', 'tblTempVendorCDR_20' ) start [2025-02-12 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458053', 'tblTempVendorCDR_20' ) end [2025-02-12 09:08:19] Production.INFO: ProcessCDR(1,14458053,1,1,2) [2025-02-12 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458053', 'tblTempUsageDetail_20' ) start [2025-02-12 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458053', 'tblTempUsageDetail_20' ) end [2025-02-12 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:08:24] Production.INFO: ==19254== Releasing lock... [2025-02-12 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:08:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:09:05 [end_date_ymd] => 2025-02-12 09:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:09:05' and `end` < '2025-02-12 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-12 09:09:19] Production.INFO: count ==946 [2025-02-12 09:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:09:05 - End Time 2025-02-12 09:09:05 [2025-02-12 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458058', 'tblTempUsageDetail_20' ) start [2025-02-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458058', 'tblTempUsageDetail_20' ) end [2025-02-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458058', 'tblTempVendorCDR_20' ) start [2025-02-12 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458058', 'tblTempVendorCDR_20' ) end [2025-02-12 09:09:19] Production.INFO: ProcessCDR(1,14458058,1,1,2) [2025-02-12 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458058', 'tblTempUsageDetail_20' ) start [2025-02-12 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458058', 'tblTempUsageDetail_20' ) end [2025-02-12 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:09:22] Production.INFO: ==19328== Releasing lock... [2025-02-12 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:09:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:10:06 [end_date_ymd] => 2025-02-12 09:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 06:10:06' and `end` < '2025-02-12 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-12 09:10:19] Production.INFO: count ==970 [2025-02-12 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:10:06 - End Time 2025-02-12 09:10:06 [2025-02-12 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458064', 'tblTempUsageDetail_20' ) start [2025-02-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458064', 'tblTempUsageDetail_20' ) end [2025-02-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458064', 'tblTempVendorCDR_20' ) start [2025-02-12 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458064', 'tblTempVendorCDR_20' ) end [2025-02-12 09:10:19] Production.INFO: ProcessCDR(1,14458064,1,1,2) [2025-02-12 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458064', 'tblTempUsageDetail_20' ) start [2025-02-12 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458064', 'tblTempUsageDetail_20' ) end [2025-02-12 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:10:25] Production.INFO: ==19400== Releasing lock... [2025-02-12 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:10:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:11:05 [end_date_ymd] => 2025-02-12 09:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:11:05' and `end` < '2025-02-12 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-12 09:11:19] Production.INFO: count ==1056 [2025-02-12 09:11:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:11:05 - End Time 2025-02-12 09:11:05 [2025-02-12 09:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458069', 'tblTempUsageDetail_20' ) start [2025-02-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458069', 'tblTempUsageDetail_20' ) end [2025-02-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458069', 'tblTempVendorCDR_20' ) start [2025-02-12 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458069', 'tblTempVendorCDR_20' ) end [2025-02-12 09:11:19] Production.INFO: ProcessCDR(1,14458069,1,1,2) [2025-02-12 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458069', 'tblTempUsageDetail_20' ) start [2025-02-12 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458069', 'tblTempUsageDetail_20' ) end [2025-02-12 09:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:11:24] Production.INFO: ==19474== Releasing lock... [2025-02-12 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:11:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:12:06 [end_date_ymd] => 2025-02-12 09:12:06 [RateCDR] => 1 ) [2025-02-12 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:12:06' and `end` < '2025-02-12 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:12:19] Production.INFO: count ==1065 [2025-02-12 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:12:06 - End Time 2025-02-12 09:12:06 [2025-02-12 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458074', 'tblTempUsageDetail_20' ) start [2025-02-12 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458074', 'tblTempUsageDetail_20' ) end [2025-02-12 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458074', 'tblTempVendorCDR_20' ) start [2025-02-12 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458074', 'tblTempVendorCDR_20' ) end [2025-02-12 09:12:19] Production.INFO: ProcessCDR(1,14458074,1,1,2) [2025-02-12 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458074', 'tblTempUsageDetail_20' ) start [2025-02-12 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458074', 'tblTempUsageDetail_20' ) end [2025-02-12 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:12:24] Production.INFO: ==19547== Releasing lock... [2025-02-12 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:12:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-12 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:13:06 [end_date_ymd] => 2025-02-12 09:13:06 [RateCDR] => 1 ) [2025-02-12 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:13:06' and `end` < '2025-02-12 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:13:19] Production.INFO: count ==1077 [2025-02-12 09:13:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:13:06 - End Time 2025-02-12 09:13:06 [2025-02-12 09:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458079', 'tblTempUsageDetail_20' ) start [2025-02-12 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458079', 'tblTempUsageDetail_20' ) end [2025-02-12 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458079', 'tblTempVendorCDR_20' ) start [2025-02-12 09:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458079', 'tblTempVendorCDR_20' ) end [2025-02-12 09:13:20] Production.INFO: ProcessCDR(1,14458079,1,1,2) [2025-02-12 09:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458079', 'tblTempUsageDetail_20' ) start [2025-02-12 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458079', 'tblTempUsageDetail_20' ) end [2025-02-12 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:13:24] Production.INFO: ==19623== Releasing lock... [2025-02-12 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:13:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:14:05 [end_date_ymd] => 2025-02-12 09:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:14:05' and `end` < '2025-02-12 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-12 09:14:18] Production.INFO: count ==1090 [2025-02-12 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-12 06:14:05 - End Time 2025-02-12 09:14:05 [2025-02-12 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458084', 'tblTempUsageDetail_20' ) start [2025-02-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458084', 'tblTempUsageDetail_20' ) end [2025-02-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458084', 'tblTempVendorCDR_20' ) start [2025-02-12 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458084', 'tblTempVendorCDR_20' ) end [2025-02-12 09:14:18] Production.INFO: ProcessCDR(1,14458084,1,1,2) [2025-02-12 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458084', 'tblTempUsageDetail_20' ) start [2025-02-12 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458084', 'tblTempUsageDetail_20' ) end [2025-02-12 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:14:23] Production.INFO: ==19698== Releasing lock... [2025-02-12 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:14:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:15:06 [end_date_ymd] => 2025-02-12 09:15:06 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:15:06' and `end` < '2025-02-12 09: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-12 09:15:20] Production.INFO: count ==1112 [2025-02-12 09:15:21] Production.ERROR: pbx CDR StartTime 2025-02-12 06:15:06 - End Time 2025-02-12 09:15:06 [2025-02-12 09:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458089', 'tblTempUsageDetail_20' ) start [2025-02-12 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458089', 'tblTempUsageDetail_20' ) end [2025-02-12 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458089', 'tblTempVendorCDR_20' ) start [2025-02-12 09:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458089', 'tblTempVendorCDR_20' ) end [2025-02-12 09:15:21] Production.INFO: ProcessCDR(1,14458089,1,1,2) [2025-02-12 09:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458089', 'tblTempUsageDetail_20' ) start [2025-02-12 09:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458089', 'tblTempUsageDetail_20' ) end [2025-02-12 09:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:15:26] Production.INFO: ==19769== Releasing lock... [2025-02-12 09:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:15:26] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:16:05 [end_date_ymd] => 2025-02-12 09:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:16:05' and `end` < '2025-02-12 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-12 09:16:20] Production.INFO: count ==1123 [2025-02-12 09:16:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:16:05 - End Time 2025-02-12 09:16:05 [2025-02-12 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458094', 'tblTempUsageDetail_20' ) start [2025-02-12 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458094', 'tblTempUsageDetail_20' ) end [2025-02-12 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458094', 'tblTempVendorCDR_20' ) start [2025-02-12 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458094', 'tblTempVendorCDR_20' ) end [2025-02-12 09:16:20] Production.INFO: ProcessCDR(1,14458094,1,1,2) [2025-02-12 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458094', 'tblTempUsageDetail_20' ) start [2025-02-12 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458094', 'tblTempUsageDetail_20' ) end [2025-02-12 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:16:25] Production.INFO: ==19841== Releasing lock... [2025-02-12 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:16:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:17:05 [end_date_ymd] => 2025-02-12 09:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:17:05' and `end` < '2025-02-12 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-12 09:17:30] Production.INFO: count ==1155 [2025-02-12 09:17:31] Production.ERROR: pbx CDR StartTime 2025-02-12 06:17:05 - End Time 2025-02-12 09:17:05 [2025-02-12 09:17:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458099', 'tblTempUsageDetail_20' ) start [2025-02-12 09:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458099', 'tblTempUsageDetail_20' ) end [2025-02-12 09:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458099', 'tblTempVendorCDR_20' ) start [2025-02-12 09:17:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458099', 'tblTempVendorCDR_20' ) end [2025-02-12 09:17:31] Production.INFO: ProcessCDR(1,14458099,1,1,2) [2025-02-12 09:17:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458099', 'tblTempUsageDetail_20' ) start [2025-02-12 09:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458099', 'tblTempUsageDetail_20' ) end [2025-02-12 09:17:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:17:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:17:35] Production.INFO: ==19911== Releasing lock... [2025-02-12 09:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:17:35] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:18:05 [end_date_ymd] => 2025-02-12 09:18:05 [RateCDR] => 1 ) [2025-02-12 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:18:05' and `end` < '2025-02-12 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:18:20] Production.INFO: count ==1157 [2025-02-12 09:18:21] Production.ERROR: pbx CDR StartTime 2025-02-12 06:18:05 - End Time 2025-02-12 09:18:05 [2025-02-12 09:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458104', 'tblTempUsageDetail_20' ) start [2025-02-12 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458104', 'tblTempUsageDetail_20' ) end [2025-02-12 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458104', 'tblTempVendorCDR_20' ) start [2025-02-12 09:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458104', 'tblTempVendorCDR_20' ) end [2025-02-12 09:18:21] Production.INFO: ProcessCDR(1,14458104,1,1,2) [2025-02-12 09:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458104', 'tblTempUsageDetail_20' ) start [2025-02-12 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458104', 'tblTempUsageDetail_20' ) end [2025-02-12 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:18:25] Production.INFO: ==19983== Releasing lock... [2025-02-12 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:18:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:19:05 [end_date_ymd] => 2025-02-12 09:19:05 [RateCDR] => 1 ) [2025-02-12 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:19:05' and `end` < '2025-02-12 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:19:19] Production.INFO: count ==1163 [2025-02-12 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:19:05 - End Time 2025-02-12 09:19:05 [2025-02-12 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458109', 'tblTempUsageDetail_20' ) start [2025-02-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458109', 'tblTempUsageDetail_20' ) end [2025-02-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458109', 'tblTempVendorCDR_20' ) start [2025-02-12 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458109', 'tblTempVendorCDR_20' ) end [2025-02-12 09:19:19] Production.INFO: ProcessCDR(1,14458109,1,1,2) [2025-02-12 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458109', 'tblTempUsageDetail_20' ) start [2025-02-12 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458109', 'tblTempUsageDetail_20' ) end [2025-02-12 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:19:24] Production.INFO: ==20056== Releasing lock... [2025-02-12 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:19:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:20:05 [end_date_ymd] => 2025-02-12 09:20:05 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:20:05' and `end` < '2025-02-12 09: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-12 09:20:20] Production.INFO: count ==1175 [2025-02-12 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:20:05 - End Time 2025-02-12 09:20:05 [2025-02-12 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458114', 'tblTempUsageDetail_20' ) start [2025-02-12 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458114', 'tblTempUsageDetail_20' ) end [2025-02-12 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458114', 'tblTempVendorCDR_20' ) start [2025-02-12 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458114', 'tblTempVendorCDR_20' ) end [2025-02-12 09:20:20] Production.INFO: ProcessCDR(1,14458114,1,1,2) [2025-02-12 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458114', 'tblTempUsageDetail_20' ) start [2025-02-12 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458114', 'tblTempUsageDetail_20' ) end [2025-02-12 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:20:25] Production.INFO: ==20131== Releasing lock... [2025-02-12 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:20:25] Production.INFO: 37 MB #Memory Used# [2025-02-12 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:21:05 [end_date_ymd] => 2025-02-12 09:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:21:05' and `end` < '2025-02-12 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:21:24] Production.INFO: count ==1256 [2025-02-12 09:21:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:21:05 - End Time 2025-02-12 09:21:05 [2025-02-12 09:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458120', 'tblTempUsageDetail_20' ) start [2025-02-12 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458120', 'tblTempUsageDetail_20' ) end [2025-02-12 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458120', 'tblTempVendorCDR_20' ) start [2025-02-12 09:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458120', 'tblTempVendorCDR_20' ) end [2025-02-12 09:21:24] Production.INFO: ProcessCDR(1,14458120,1,1,2) [2025-02-12 09:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458120', 'tblTempUsageDetail_20' ) start [2025-02-12 09:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458120', 'tblTempUsageDetail_20' ) end [2025-02-12 09:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:21:29] Production.INFO: ==20208== Releasing lock... [2025-02-12 09:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:21:29] Production.INFO: 37.75 MB #Memory Used# [2025-02-12 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:22:05 [end_date_ymd] => 2025-02-12 09:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:22:05' and `end` < '2025-02-12 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-12 09:22:20] Production.INFO: count ==1284 [2025-02-12 09:22:21] Production.ERROR: pbx CDR StartTime 2025-02-12 06:22:05 - End Time 2025-02-12 09:22:05 [2025-02-12 09:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458125', 'tblTempUsageDetail_20' ) start [2025-02-12 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458125', 'tblTempUsageDetail_20' ) end [2025-02-12 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458125', 'tblTempVendorCDR_20' ) start [2025-02-12 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458125', 'tblTempVendorCDR_20' ) end [2025-02-12 09:22:21] Production.INFO: ProcessCDR(1,14458125,1,1,2) [2025-02-12 09:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458125', 'tblTempUsageDetail_20' ) start [2025-02-12 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458125', 'tblTempUsageDetail_20' ) end [2025-02-12 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:22:26] Production.INFO: ==20279== Releasing lock... [2025-02-12 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:22:26] Production.INFO: 37.75 MB #Memory Used# [2025-02-12 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:23:05 [end_date_ymd] => 2025-02-12 09:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:23:05' and `end` < '2025-02-12 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-12 09:23:22] Production.INFO: count ==1309 [2025-02-12 09:23:22] Production.ERROR: pbx CDR StartTime 2025-02-12 06:23:05 - End Time 2025-02-12 09:23:05 [2025-02-12 09:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458130', 'tblTempUsageDetail_20' ) start [2025-02-12 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458130', 'tblTempUsageDetail_20' ) end [2025-02-12 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458130', 'tblTempVendorCDR_20' ) start [2025-02-12 09:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458130', 'tblTempVendorCDR_20' ) end [2025-02-12 09:23:22] Production.INFO: ProcessCDR(1,14458130,1,1,2) [2025-02-12 09:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458130', 'tblTempUsageDetail_20' ) start [2025-02-12 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458130', 'tblTempUsageDetail_20' ) end [2025-02-12 09:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:23:28] Production.INFO: ==20352== Releasing lock... [2025-02-12 09:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:23:28] Production.INFO: 38 MB #Memory Used# [2025-02-12 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:24:06 [end_date_ymd] => 2025-02-12 09:24:06 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:24:06' and `end` < '2025-02-12 09: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-12 09:24:23] Production.INFO: count ==1328 [2025-02-12 09:24:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:24:06 - End Time 2025-02-12 09:24:06 [2025-02-12 09:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458135', 'tblTempUsageDetail_20' ) start [2025-02-12 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458135', 'tblTempUsageDetail_20' ) end [2025-02-12 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458135', 'tblTempVendorCDR_20' ) start [2025-02-12 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458135', 'tblTempVendorCDR_20' ) end [2025-02-12 09:24:24] Production.INFO: ProcessCDR(1,14458135,1,1,2) [2025-02-12 09:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458135', 'tblTempUsageDetail_20' ) start [2025-02-12 09:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458135', 'tblTempUsageDetail_20' ) end [2025-02-12 09:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:24:29] Production.INFO: ==20462== Releasing lock... [2025-02-12 09:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:24:29] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:25:05 [end_date_ymd] => 2025-02-12 09:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:25:05' and `end` < '2025-02-12 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-12 09:25:22] Production.INFO: count ==1343 [2025-02-12 09:25:23] Production.ERROR: pbx CDR StartTime 2025-02-12 06:25:05 - End Time 2025-02-12 09:25:05 [2025-02-12 09:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458140', 'tblTempUsageDetail_20' ) start [2025-02-12 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458140', 'tblTempUsageDetail_20' ) end [2025-02-12 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458140', 'tblTempVendorCDR_20' ) start [2025-02-12 09:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458140', 'tblTempVendorCDR_20' ) end [2025-02-12 09:25:23] Production.INFO: ProcessCDR(1,14458140,1,1,2) [2025-02-12 09:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458140', 'tblTempUsageDetail_20' ) start [2025-02-12 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458140', 'tblTempUsageDetail_20' ) end [2025-02-12 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:25:28] Production.INFO: ==20531== Releasing lock... [2025-02-12 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:25:28] Production.INFO: 38 MB #Memory Used# [2025-02-12 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:26:05 [end_date_ymd] => 2025-02-12 09:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:26:05' and `end` < '2025-02-12 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-12 09:26:19] Production.INFO: count ==1353 [2025-02-12 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:26:05 - End Time 2025-02-12 09:26:05 [2025-02-12 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458145', 'tblTempUsageDetail_20' ) start [2025-02-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458145', 'tblTempUsageDetail_20' ) end [2025-02-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458145', 'tblTempVendorCDR_20' ) start [2025-02-12 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458145', 'tblTempVendorCDR_20' ) end [2025-02-12 09:26:19] Production.INFO: ProcessCDR(1,14458145,1,1,2) [2025-02-12 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458145', 'tblTempUsageDetail_20' ) start [2025-02-12 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458145', 'tblTempUsageDetail_20' ) end [2025-02-12 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:26:24] Production.INFO: ==20603== Releasing lock... [2025-02-12 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:26:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:27:05 [end_date_ymd] => 2025-02-12 09:27:05 [RateCDR] => 1 ) [2025-02-12 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:27:05' and `end` < '2025-02-12 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:27:18] Production.INFO: count ==1376 [2025-02-12 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:27:05 - End Time 2025-02-12 09:27:05 [2025-02-12 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458150', 'tblTempUsageDetail_20' ) start [2025-02-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458150', 'tblTempUsageDetail_20' ) end [2025-02-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458150', 'tblTempVendorCDR_20' ) start [2025-02-12 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458150', 'tblTempVendorCDR_20' ) end [2025-02-12 09:27:19] Production.INFO: ProcessCDR(1,14458150,1,1,2) [2025-02-12 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458150', 'tblTempUsageDetail_20' ) start [2025-02-12 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458150', 'tblTempUsageDetail_20' ) end [2025-02-12 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:27:24] Production.INFO: ==20679== Releasing lock... [2025-02-12 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:27:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:28:05 [end_date_ymd] => 2025-02-12 09:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:28:05' and `end` < '2025-02-12 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-12 09:28:20] Production.INFO: count ==1401 [2025-02-12 09:28:21] Production.ERROR: pbx CDR StartTime 2025-02-12 06:28:05 - End Time 2025-02-12 09:28:05 [2025-02-12 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458155', 'tblTempUsageDetail_20' ) start [2025-02-12 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458155', 'tblTempUsageDetail_20' ) end [2025-02-12 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458155', 'tblTempVendorCDR_20' ) start [2025-02-12 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458155', 'tblTempVendorCDR_20' ) end [2025-02-12 09:28:21] Production.INFO: ProcessCDR(1,14458155,1,1,2) [2025-02-12 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458155', 'tblTempUsageDetail_20' ) start [2025-02-12 09:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458155', 'tblTempUsageDetail_20' ) end [2025-02-12 09:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:28:25] Production.INFO: ==20752== Releasing lock... [2025-02-12 09:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:28:25] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:29:05 [end_date_ymd] => 2025-02-12 09:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:29:05' and `end` < '2025-02-12 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-12 09:29:21] Production.INFO: count ==1409 [2025-02-12 09:29:22] Production.ERROR: pbx CDR StartTime 2025-02-12 06:29:05 - End Time 2025-02-12 09:29:05 [2025-02-12 09:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458160', 'tblTempUsageDetail_20' ) start [2025-02-12 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458160', 'tblTempUsageDetail_20' ) end [2025-02-12 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458160', 'tblTempVendorCDR_20' ) start [2025-02-12 09:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458160', 'tblTempVendorCDR_20' ) end [2025-02-12 09:29:22] Production.INFO: ProcessCDR(1,14458160,1,1,2) [2025-02-12 09:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458160', 'tblTempUsageDetail_20' ) start [2025-02-12 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458160', 'tblTempUsageDetail_20' ) end [2025-02-12 09:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:29:27] Production.INFO: ==20822== Releasing lock... [2025-02-12 09:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:29:27] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:30:06 [end_date_ymd] => 2025-02-12 09:30:06 [RateCDR] => 1 ) [2025-02-12 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:30:06' and `end` < '2025-02-12 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-12 09:30:24] Production.INFO: count ==1443 [2025-02-12 09:30:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:30:06 - End Time 2025-02-12 09:30:06 [2025-02-12 09:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458166', 'tblTempUsageDetail_20' ) start [2025-02-12 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458166', 'tblTempUsageDetail_20' ) end [2025-02-12 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458166', 'tblTempVendorCDR_20' ) start [2025-02-12 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458166', 'tblTempVendorCDR_20' ) end [2025-02-12 09:30:24] Production.INFO: ProcessCDR(1,14458166,1,1,2) [2025-02-12 09:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458166', 'tblTempUsageDetail_20' ) start [2025-02-12 09:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458166', 'tblTempUsageDetail_20' ) end [2025-02-12 09:30:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:30:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:30:29] Production.INFO: ==20901== Releasing lock... [2025-02-12 09:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:30:29] Production.INFO: 39 MB #Memory Used# [2025-02-12 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:31:05 [end_date_ymd] => 2025-02-12 09:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:31:05' and `end` < '2025-02-12 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-12 09:31:19] Production.INFO: count ==1518 [2025-02-12 09:31:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:31:05 - End Time 2025-02-12 09:31:05 [2025-02-12 09:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458171', 'tblTempUsageDetail_20' ) start [2025-02-12 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458171', 'tblTempUsageDetail_20' ) end [2025-02-12 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458171', 'tblTempVendorCDR_20' ) start [2025-02-12 09:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458171', 'tblTempVendorCDR_20' ) end [2025-02-12 09:31:20] Production.INFO: ProcessCDR(1,14458171,1,1,2) [2025-02-12 09:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458171', 'tblTempUsageDetail_20' ) start [2025-02-12 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458171', 'tblTempUsageDetail_20' ) end [2025-02-12 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:31:24] Production.INFO: ==20973== Releasing lock... [2025-02-12 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:31:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:32:06 [end_date_ymd] => 2025-02-12 09:32:06 [RateCDR] => 1 ) [2025-02-12 09:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:32:06' and `end` < '2025-02-12 09:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:32:24] Production.INFO: count ==1560 [2025-02-12 09:32:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:32:06 - End Time 2025-02-12 09:32:06 [2025-02-12 09:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458176', 'tblTempUsageDetail_20' ) start [2025-02-12 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458176', 'tblTempUsageDetail_20' ) end [2025-02-12 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458176', 'tblTempVendorCDR_20' ) start [2025-02-12 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458176', 'tblTempVendorCDR_20' ) end [2025-02-12 09:32:24] Production.INFO: ProcessCDR(1,14458176,1,1,2) [2025-02-12 09:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458176', 'tblTempUsageDetail_20' ) start [2025-02-12 09:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458176', 'tblTempUsageDetail_20' ) end [2025-02-12 09:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:32:29] Production.INFO: ==21043== Releasing lock... [2025-02-12 09:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:32:29] Production.INFO: 40 MB #Memory Used# [2025-02-12 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:33:05 [end_date_ymd] => 2025-02-12 09:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:33:05' and `end` < '2025-02-12 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-12 09:33:23] Production.INFO: count ==1585 [2025-02-12 09:33:23] Production.ERROR: pbx CDR StartTime 2025-02-12 06:33:05 - End Time 2025-02-12 09:33:05 [2025-02-12 09:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458181', 'tblTempUsageDetail_20' ) start [2025-02-12 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458181', 'tblTempUsageDetail_20' ) end [2025-02-12 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458181', 'tblTempVendorCDR_20' ) start [2025-02-12 09:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458181', 'tblTempVendorCDR_20' ) end [2025-02-12 09:33:23] Production.INFO: ProcessCDR(1,14458181,1,1,2) [2025-02-12 09:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458181', 'tblTempUsageDetail_20' ) start [2025-02-12 09:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458181', 'tblTempUsageDetail_20' ) end [2025-02-12 09:33:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:33:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:33:28] Production.INFO: ==21112== Releasing lock... [2025-02-12 09:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:33:28] Production.INFO: 40 MB #Memory Used# [2025-02-12 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:34:06 [end_date_ymd] => 2025-02-12 09:34:06 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:34:06' and `end` < '2025-02-12 09: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-12 09:34:26] Production.INFO: count ==1605 [2025-02-12 09:34:27] Production.ERROR: pbx CDR StartTime 2025-02-12 06:34:06 - End Time 2025-02-12 09:34:06 [2025-02-12 09:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458186', 'tblTempUsageDetail_20' ) start [2025-02-12 09:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458186', 'tblTempUsageDetail_20' ) end [2025-02-12 09:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458186', 'tblTempVendorCDR_20' ) start [2025-02-12 09:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458186', 'tblTempVendorCDR_20' ) end [2025-02-12 09:34:27] Production.INFO: ProcessCDR(1,14458186,1,1,2) [2025-02-12 09:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458186', 'tblTempUsageDetail_20' ) start [2025-02-12 09:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458186', 'tblTempUsageDetail_20' ) end [2025-02-12 09:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:34:33] Production.INFO: ==21187== Releasing lock... [2025-02-12 09:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:34:33] Production.INFO: 40 MB #Memory Used# [2025-02-12 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:35:05 [end_date_ymd] => 2025-02-12 09:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:35:05' and `end` < '2025-02-12 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-12 09:35:23] Production.INFO: count ==1610 [2025-02-12 09:35:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:35:05 - End Time 2025-02-12 09:35:05 [2025-02-12 09:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458191', 'tblTempUsageDetail_20' ) start [2025-02-12 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458191', 'tblTempUsageDetail_20' ) end [2025-02-12 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458191', 'tblTempVendorCDR_20' ) start [2025-02-12 09:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458191', 'tblTempVendorCDR_20' ) end [2025-02-12 09:35:24] Production.INFO: ProcessCDR(1,14458191,1,1,2) [2025-02-12 09:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458191', 'tblTempUsageDetail_20' ) start [2025-02-12 09:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458191', 'tblTempUsageDetail_20' ) end [2025-02-12 09:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:35:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:35:29] Production.INFO: ==21259== Releasing lock... [2025-02-12 09:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:35:29] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:36:05 [end_date_ymd] => 2025-02-12 09:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:36:05' and `end` < '2025-02-12 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-12 09:36:23] Production.INFO: count ==1622 [2025-02-12 09:36:24] Production.ERROR: pbx CDR StartTime 2025-02-12 06:36:05 - End Time 2025-02-12 09:36:05 [2025-02-12 09:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458196', 'tblTempUsageDetail_20' ) start [2025-02-12 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458196', 'tblTempUsageDetail_20' ) end [2025-02-12 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458196', 'tblTempVendorCDR_20' ) start [2025-02-12 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458196', 'tblTempVendorCDR_20' ) end [2025-02-12 09:36:24] Production.INFO: ProcessCDR(1,14458196,1,1,2) [2025-02-12 09:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458196', 'tblTempUsageDetail_20' ) start [2025-02-12 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458196', 'tblTempUsageDetail_20' ) end [2025-02-12 09:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:36:29] Production.INFO: ==21334== Releasing lock... [2025-02-12 09:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:36:29] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:37:05 [end_date_ymd] => 2025-02-12 09:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:37:05' and `end` < '2025-02-12 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-12 09:37:19] Production.INFO: count ==1633 [2025-02-12 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:37:05 - End Time 2025-02-12 09:37:05 [2025-02-12 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458201', 'tblTempUsageDetail_20' ) start [2025-02-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458201', 'tblTempUsageDetail_20' ) end [2025-02-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458201', 'tblTempVendorCDR_20' ) start [2025-02-12 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458201', 'tblTempVendorCDR_20' ) end [2025-02-12 09:37:20] Production.INFO: ProcessCDR(1,14458201,1,1,2) [2025-02-12 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458201', 'tblTempUsageDetail_20' ) start [2025-02-12 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458201', 'tblTempUsageDetail_20' ) end [2025-02-12 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:37:25] Production.INFO: ==21404== Releasing lock... [2025-02-12 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:37:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:38:05 [end_date_ymd] => 2025-02-12 09:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:38:05' and `end` < '2025-02-12 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-12 09:38:19] Production.INFO: count ==1646 [2025-02-12 09:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:38:05 - End Time 2025-02-12 09:38:05 [2025-02-12 09:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458206', 'tblTempUsageDetail_20' ) start [2025-02-12 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458206', 'tblTempUsageDetail_20' ) end [2025-02-12 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458206', 'tblTempVendorCDR_20' ) start [2025-02-12 09:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458206', 'tblTempVendorCDR_20' ) end [2025-02-12 09:38:20] Production.INFO: ProcessCDR(1,14458206,1,1,2) [2025-02-12 09:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458206', 'tblTempUsageDetail_20' ) start [2025-02-12 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458206', 'tblTempUsageDetail_20' ) end [2025-02-12 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:38:25] Production.INFO: ==21476== Releasing lock... [2025-02-12 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:38:25] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:39:05 [end_date_ymd] => 2025-02-12 09:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:39:05' and `end` < '2025-02-12 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-12 09:39:18] Production.INFO: count ==1654 [2025-02-12 09:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:39:05 - End Time 2025-02-12 09:39:05 [2025-02-12 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458211', 'tblTempUsageDetail_20' ) start [2025-02-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458211', 'tblTempUsageDetail_20' ) end [2025-02-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458211', 'tblTempVendorCDR_20' ) start [2025-02-12 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458211', 'tblTempVendorCDR_20' ) end [2025-02-12 09:39:19] Production.INFO: ProcessCDR(1,14458211,1,1,2) [2025-02-12 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458211', 'tblTempUsageDetail_20' ) start [2025-02-12 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458211', 'tblTempUsageDetail_20' ) end [2025-02-12 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:39:22] Production.INFO: ==21587== Releasing lock... [2025-02-12 09:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:39:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:40:06 [end_date_ymd] => 2025-02-12 09:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 06:40:06' and `end` < '2025-02-12 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-12 09:40:20] Production.INFO: count ==1678 [2025-02-12 09:40:21] Production.ERROR: pbx CDR StartTime 2025-02-12 06:40:06 - End Time 2025-02-12 09:40:06 [2025-02-12 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458216', 'tblTempUsageDetail_20' ) start [2025-02-12 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458216', 'tblTempUsageDetail_20' ) end [2025-02-12 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458216', 'tblTempVendorCDR_20' ) start [2025-02-12 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458216', 'tblTempVendorCDR_20' ) end [2025-02-12 09:40:21] Production.INFO: ProcessCDR(1,14458216,1,1,2) [2025-02-12 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458216', 'tblTempUsageDetail_20' ) start [2025-02-12 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458216', 'tblTempUsageDetail_20' ) end [2025-02-12 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:40:26] Production.INFO: ==21662== Releasing lock... [2025-02-12 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:40:26] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:41:05 [end_date_ymd] => 2025-02-12 09:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:41:05' and `end` < '2025-02-12 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-12 09:41:20] Production.INFO: count ==1752 [2025-02-12 09:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:41:05 - End Time 2025-02-12 09:41:05 [2025-02-12 09:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458222', 'tblTempUsageDetail_20' ) start [2025-02-12 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458222', 'tblTempUsageDetail_20' ) end [2025-02-12 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458222', 'tblTempVendorCDR_20' ) start [2025-02-12 09:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458222', 'tblTempVendorCDR_20' ) end [2025-02-12 09:41:20] Production.INFO: ProcessCDR(1,14458222,1,1,2) [2025-02-12 09:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458222', 'tblTempUsageDetail_20' ) start [2025-02-12 09:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458222', 'tblTempUsageDetail_20' ) end [2025-02-12 09:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:41:26] Production.INFO: ==21743== Releasing lock... [2025-02-12 09:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:41:26] Production.INFO: 41.25 MB #Memory Used# [2025-02-12 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:42:05 [end_date_ymd] => 2025-02-12 09:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:42:05' and `end` < '2025-02-12 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-12 09:42:22] Production.INFO: count ==1758 [2025-02-12 09:42:22] Production.ERROR: pbx CDR StartTime 2025-02-12 06:42:05 - End Time 2025-02-12 09:42:05 [2025-02-12 09:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458227', 'tblTempUsageDetail_20' ) start [2025-02-12 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458227', 'tblTempUsageDetail_20' ) end [2025-02-12 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458227', 'tblTempVendorCDR_20' ) start [2025-02-12 09:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458227', 'tblTempVendorCDR_20' ) end [2025-02-12 09:42:22] Production.INFO: ProcessCDR(1,14458227,1,1,2) [2025-02-12 09:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458227', 'tblTempUsageDetail_20' ) start [2025-02-12 09:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458227', 'tblTempUsageDetail_20' ) end [2025-02-12 09:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:42:27] Production.INFO: ==21814== Releasing lock... [2025-02-12 09:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:42:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:43:05 [end_date_ymd] => 2025-02-12 09:43:05 [RateCDR] => 1 ) [2025-02-12 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:43:05' and `end` < '2025-02-12 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:43:25] Production.INFO: count ==1762 [2025-02-12 09:43:25] Production.ERROR: pbx CDR StartTime 2025-02-12 06:43:05 - End Time 2025-02-12 09:43:05 [2025-02-12 09:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458232', 'tblTempUsageDetail_20' ) start [2025-02-12 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458232', 'tblTempUsageDetail_20' ) end [2025-02-12 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458232', 'tblTempVendorCDR_20' ) start [2025-02-12 09:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458232', 'tblTempVendorCDR_20' ) end [2025-02-12 09:43:25] Production.INFO: ProcessCDR(1,14458232,1,1,2) [2025-02-12 09:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458232', 'tblTempUsageDetail_20' ) start [2025-02-12 09:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458232', 'tblTempUsageDetail_20' ) end [2025-02-12 09:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:43:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:43:30] Production.INFO: ==21886== Releasing lock... [2025-02-12 09:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:43:30] Production.INFO: 41.25 MB #Memory Used# [2025-02-12 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:44:05 [end_date_ymd] => 2025-02-12 09:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:44:05' and `end` < '2025-02-12 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-12 09:44:22] Production.INFO: count ==1773 [2025-02-12 09:44:22] Production.ERROR: pbx CDR StartTime 2025-02-12 06:44:05 - End Time 2025-02-12 09:44:05 [2025-02-12 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458237', 'tblTempUsageDetail_20' ) start [2025-02-12 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458237', 'tblTempUsageDetail_20' ) end [2025-02-12 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458237', 'tblTempVendorCDR_20' ) start [2025-02-12 09:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458237', 'tblTempVendorCDR_20' ) end [2025-02-12 09:44:23] Production.INFO: ProcessCDR(1,14458237,1,1,2) [2025-02-12 09:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458237', 'tblTempUsageDetail_20' ) start [2025-02-12 09:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458237', 'tblTempUsageDetail_20' ) end [2025-02-12 09:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:44:27] Production.INFO: ==21959== Releasing lock... [2025-02-12 09:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:44:27] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:45:05 [end_date_ymd] => 2025-02-12 09:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:45:05' and `end` < '2025-02-12 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-12 09:45:19] Production.INFO: count ==1779 [2025-02-12 09:45:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:45:05 - End Time 2025-02-12 09:45:05 [2025-02-12 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458242', 'tblTempUsageDetail_20' ) start [2025-02-12 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458242', 'tblTempUsageDetail_20' ) end [2025-02-12 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458242', 'tblTempVendorCDR_20' ) start [2025-02-12 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458242', 'tblTempVendorCDR_20' ) end [2025-02-12 09:45:20] Production.INFO: ProcessCDR(1,14458242,1,1,2) [2025-02-12 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458242', 'tblTempUsageDetail_20' ) start [2025-02-12 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458242', 'tblTempUsageDetail_20' ) end [2025-02-12 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:45:23] Production.INFO: ==22030== Releasing lock... [2025-02-12 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:45:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:46:05 [end_date_ymd] => 2025-02-12 09:46:05 [RateCDR] => 1 ) [2025-02-12 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:46:05' and `end` < '2025-02-12 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:46:18] Production.INFO: count ==1796 [2025-02-12 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:46:05 - End Time 2025-02-12 09:46:05 [2025-02-12 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458247', 'tblTempUsageDetail_20' ) start [2025-02-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458247', 'tblTempUsageDetail_20' ) end [2025-02-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458247', 'tblTempVendorCDR_20' ) start [2025-02-12 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458247', 'tblTempVendorCDR_20' ) end [2025-02-12 09:46:19] Production.INFO: ProcessCDR(1,14458247,1,1,2) [2025-02-12 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458247', 'tblTempUsageDetail_20' ) start [2025-02-12 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458247', 'tblTempUsageDetail_20' ) end [2025-02-12 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:46:24] Production.INFO: ==22101== Releasing lock... [2025-02-12 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:46:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:47:06 [end_date_ymd] => 2025-02-12 09:47:06 [RateCDR] => 1 ) [2025-02-12 09: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-12 06:47:06' and `end` < '2025-02-12 09: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-12 09:47:32] Production.INFO: count ==1827 [2025-02-12 09:47:33] Production.ERROR: pbx CDR StartTime 2025-02-12 06:47:06 - End Time 2025-02-12 09:47:06 [2025-02-12 09:47:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458252', 'tblTempUsageDetail_20' ) start [2025-02-12 09:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458252', 'tblTempUsageDetail_20' ) end [2025-02-12 09:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458252', 'tblTempVendorCDR_20' ) start [2025-02-12 09:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458252', 'tblTempVendorCDR_20' ) end [2025-02-12 09:47:33] Production.INFO: ProcessCDR(1,14458252,1,1,2) [2025-02-12 09:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:47:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:47:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458252', 'tblTempUsageDetail_20' ) start [2025-02-12 09:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458252', 'tblTempUsageDetail_20' ) end [2025-02-12 09:47:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:47:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:47:39] Production.INFO: ==22175== Releasing lock... [2025-02-12 09:47:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:47:39] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:48:06 [end_date_ymd] => 2025-02-12 09:48:06 [RateCDR] => 1 ) [2025-02-12 09:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:48:06' and `end` < '2025-02-12 09:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:48:22] Production.INFO: count ==1832 [2025-02-12 09:48:23] Production.ERROR: pbx CDR StartTime 2025-02-12 06:48:06 - End Time 2025-02-12 09:48:06 [2025-02-12 09:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458257', 'tblTempUsageDetail_20' ) start [2025-02-12 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458257', 'tblTempUsageDetail_20' ) end [2025-02-12 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458257', 'tblTempVendorCDR_20' ) start [2025-02-12 09:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458257', 'tblTempVendorCDR_20' ) end [2025-02-12 09:48:23] Production.INFO: ProcessCDR(1,14458257,1,1,2) [2025-02-12 09:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458257', 'tblTempUsageDetail_20' ) start [2025-02-12 09:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458257', 'tblTempUsageDetail_20' ) end [2025-02-12 09:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:48:28] Production.INFO: ==22244== Releasing lock... [2025-02-12 09:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:48:28] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:49:06 [end_date_ymd] => 2025-02-12 09:49:06 [RateCDR] => 1 ) [2025-02-12 09:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:49:06' and `end` < '2025-02-12 09:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:49:20] Production.INFO: count ==1849 [2025-02-12 09:49:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:49:06 - End Time 2025-02-12 09:49:06 [2025-02-12 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458262', 'tblTempUsageDetail_20' ) start [2025-02-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458262', 'tblTempUsageDetail_20' ) end [2025-02-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458262', 'tblTempVendorCDR_20' ) start [2025-02-12 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458262', 'tblTempVendorCDR_20' ) end [2025-02-12 09:49:20] Production.INFO: ProcessCDR(1,14458262,1,1,2) [2025-02-12 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458262', 'tblTempUsageDetail_20' ) start [2025-02-12 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458262', 'tblTempUsageDetail_20' ) end [2025-02-12 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:49:26] Production.INFO: ==22320== Releasing lock... [2025-02-12 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:49:26] Production.INFO: 42 MB #Memory Used# [2025-02-12 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:50:06 [end_date_ymd] => 2025-02-12 09:50:06 [RateCDR] => 1 ) [2025-02-12 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:50:06' and `end` < '2025-02-12 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:50:19] Production.INFO: count ==1855 [2025-02-12 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:50:06 - End Time 2025-02-12 09:50:06 [2025-02-12 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458268', 'tblTempUsageDetail_20' ) start [2025-02-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458268', 'tblTempUsageDetail_20' ) end [2025-02-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458268', 'tblTempVendorCDR_20' ) start [2025-02-12 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458268', 'tblTempVendorCDR_20' ) end [2025-02-12 09:50:20] Production.INFO: ProcessCDR(1,14458268,1,1,2) [2025-02-12 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458268', 'tblTempUsageDetail_20' ) start [2025-02-12 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458268', 'tblTempUsageDetail_20' ) end [2025-02-12 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:50:23] Production.INFO: ==22394== Releasing lock... [2025-02-12 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:50:23] Production.INFO: 42 MB #Memory Used# [2025-02-12 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:51:05 [end_date_ymd] => 2025-02-12 09:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:51:05' and `end` < '2025-02-12 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-12 09:51:19] Production.INFO: count ==1931 [2025-02-12 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:51:05 - End Time 2025-02-12 09:51:05 [2025-02-12 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458273', 'tblTempUsageDetail_20' ) start [2025-02-12 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458273', 'tblTempUsageDetail_20' ) end [2025-02-12 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458273', 'tblTempVendorCDR_20' ) start [2025-02-12 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458273', 'tblTempVendorCDR_20' ) end [2025-02-12 09:51:20] Production.INFO: ProcessCDR(1,14458273,1,1,2) [2025-02-12 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458273', 'tblTempUsageDetail_20' ) start [2025-02-12 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458273', 'tblTempUsageDetail_20' ) end [2025-02-12 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:51:23] Production.INFO: ==22466== Releasing lock... [2025-02-12 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:51:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:52:05 [end_date_ymd] => 2025-02-12 09:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:52:05' and `end` < '2025-02-12 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-12 09:52:19] Production.INFO: count ==1942 [2025-02-12 09:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:52:05 - End Time 2025-02-12 09:52:05 [2025-02-12 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458278', 'tblTempUsageDetail_20' ) start [2025-02-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458278', 'tblTempUsageDetail_20' ) end [2025-02-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458278', 'tblTempVendorCDR_20' ) start [2025-02-12 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458278', 'tblTempVendorCDR_20' ) end [2025-02-12 09:52:19] Production.INFO: ProcessCDR(1,14458278,1,1,2) [2025-02-12 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458278', 'tblTempUsageDetail_20' ) start [2025-02-12 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458278', 'tblTempUsageDetail_20' ) end [2025-02-12 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:52:24] Production.INFO: ==22539== Releasing lock... [2025-02-12 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:52:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-12 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:53:05 [end_date_ymd] => 2025-02-12 09:53:05 [RateCDR] => 1 ) [2025-02-12 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:53:05' and `end` < '2025-02-12 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:53:19] Production.INFO: count ==1969 [2025-02-12 09:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:53:05 - End Time 2025-02-12 09:53:05 [2025-02-12 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458283', 'tblTempUsageDetail_20' ) start [2025-02-12 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458283', 'tblTempUsageDetail_20' ) end [2025-02-12 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458283', 'tblTempVendorCDR_20' ) start [2025-02-12 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458283', 'tblTempVendorCDR_20' ) end [2025-02-12 09:53:19] Production.INFO: ProcessCDR(1,14458283,1,1,2) [2025-02-12 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458283', 'tblTempUsageDetail_20' ) start [2025-02-12 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458283', 'tblTempUsageDetail_20' ) end [2025-02-12 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:53:24] Production.INFO: ==22609== Releasing lock... [2025-02-12 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:53:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-12 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:54:05 [end_date_ymd] => 2025-02-12 09:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:54:05' and `end` < '2025-02-12 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-12 09:54:22] Production.INFO: count ==1987 [2025-02-12 09:54:22] Production.ERROR: pbx CDR StartTime 2025-02-12 06:54:05 - End Time 2025-02-12 09:54:05 [2025-02-12 09:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458288', 'tblTempUsageDetail_20' ) start [2025-02-12 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458288', 'tblTempUsageDetail_20' ) end [2025-02-12 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458288', 'tblTempVendorCDR_20' ) start [2025-02-12 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458288', 'tblTempVendorCDR_20' ) end [2025-02-12 09:54:22] Production.INFO: ProcessCDR(1,14458288,1,1,2) [2025-02-12 09:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458288', 'tblTempUsageDetail_20' ) start [2025-02-12 09:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458288', 'tblTempUsageDetail_20' ) end [2025-02-12 09:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:54:27] Production.INFO: ==22685== Releasing lock... [2025-02-12 09:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:54:27] Production.INFO: 43 MB #Memory Used# [2025-02-12 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:55:05 [end_date_ymd] => 2025-02-12 09:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:55:05' and `end` < '2025-02-12 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-12 09:55:18] Production.INFO: count ==2012 [2025-02-12 09:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:55:05 - End Time 2025-02-12 09:55:05 [2025-02-12 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458293', 'tblTempUsageDetail_20' ) start [2025-02-12 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458293', 'tblTempUsageDetail_20' ) end [2025-02-12 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458293', 'tblTempVendorCDR_20' ) start [2025-02-12 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458293', 'tblTempVendorCDR_20' ) end [2025-02-12 09:55:19] Production.INFO: ProcessCDR(1,14458293,1,1,2) [2025-02-12 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458293', 'tblTempUsageDetail_20' ) start [2025-02-12 09:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458293', 'tblTempUsageDetail_20' ) end [2025-02-12 09:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:55:22] Production.INFO: ==22796== Releasing lock... [2025-02-12 09:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:55:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:56:05 [end_date_ymd] => 2025-02-12 09:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:56:05' and `end` < '2025-02-12 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-12 09:56:22] Production.INFO: count ==2029 [2025-02-12 09:56:23] Production.ERROR: pbx CDR StartTime 2025-02-12 06:56:05 - End Time 2025-02-12 09:56:05 [2025-02-12 09:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458298', 'tblTempUsageDetail_20' ) start [2025-02-12 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458298', 'tblTempUsageDetail_20' ) end [2025-02-12 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458298', 'tblTempVendorCDR_20' ) start [2025-02-12 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458298', 'tblTempVendorCDR_20' ) end [2025-02-12 09:56:23] Production.INFO: ProcessCDR(1,14458298,1,1,2) [2025-02-12 09:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458298', 'tblTempUsageDetail_20' ) start [2025-02-12 09:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458298', 'tblTempUsageDetail_20' ) end [2025-02-12 09:56:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:56:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:56:28] Production.INFO: ==22871== Releasing lock... [2025-02-12 09:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:56:28] Production.INFO: 43.5 MB #Memory Used# [2025-02-12 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:57:05 [end_date_ymd] => 2025-02-12 09:57:05 [RateCDR] => 1 ) [2025-02-12 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 06:57:05' and `end` < '2025-02-12 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 09:57:19] Production.INFO: count ==2048 [2025-02-12 09:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 06:57:05 - End Time 2025-02-12 09:57:05 [2025-02-12 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458303', 'tblTempUsageDetail_20' ) start [2025-02-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458303', 'tblTempUsageDetail_20' ) end [2025-02-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458303', 'tblTempVendorCDR_20' ) start [2025-02-12 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458303', 'tblTempVendorCDR_20' ) end [2025-02-12 09:57:19] Production.INFO: ProcessCDR(1,14458303,1,1,2) [2025-02-12 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458303', 'tblTempUsageDetail_20' ) start [2025-02-12 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458303', 'tblTempUsageDetail_20' ) end [2025-02-12 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:57:24] Production.INFO: ==22943== Releasing lock... [2025-02-12 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:57:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-12 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:58:05 [end_date_ymd] => 2025-02-12 09:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:58:05' and `end` < '2025-02-12 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-12 09:58:19] Production.INFO: count ==2052 [2025-02-12 09:58:20] Production.ERROR: pbx CDR StartTime 2025-02-12 06:58:05 - End Time 2025-02-12 09:58:05 [2025-02-12 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458308', 'tblTempUsageDetail_20' ) start [2025-02-12 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458308', 'tblTempUsageDetail_20' ) end [2025-02-12 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458308', 'tblTempVendorCDR_20' ) start [2025-02-12 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458308', 'tblTempVendorCDR_20' ) end [2025-02-12 09:58:20] Production.INFO: ProcessCDR(1,14458308,1,1,2) [2025-02-12 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458308', 'tblTempUsageDetail_20' ) start [2025-02-12 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458308', 'tblTempUsageDetail_20' ) end [2025-02-12 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:58:24] Production.INFO: ==23012== Releasing lock... [2025-02-12 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:58:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-12 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 06:59:05 [end_date_ymd] => 2025-02-12 09:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 06:59:05' and `end` < '2025-02-12 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-12 09:59:24] Production.INFO: count ==2086 [2025-02-12 09:59:25] Production.ERROR: pbx CDR StartTime 2025-02-12 06:59:05 - End Time 2025-02-12 09:59:05 [2025-02-12 09:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458313', 'tblTempUsageDetail_20' ) start [2025-02-12 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458313', 'tblTempUsageDetail_20' ) end [2025-02-12 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458313', 'tblTempVendorCDR_20' ) start [2025-02-12 09:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458313', 'tblTempVendorCDR_20' ) end [2025-02-12 09:59:25] Production.INFO: ProcessCDR(1,14458313,1,1,2) [2025-02-12 09:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 09:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 09:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458313', 'tblTempUsageDetail_20' ) start [2025-02-12 09:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458313', 'tblTempUsageDetail_20' ) end [2025-02-12 09:59:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 09:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 09:59:30] Production.INFO: ==23085== Releasing lock... [2025-02-12 09:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 09:59:30] Production.INFO: 43.75 MB #Memory Used# [2025-02-12 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:00:06 [end_date_ymd] => 2025-02-12 10:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 07:00:06' and `end` < '2025-02-12 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-12 10:00:30] Production.INFO: count ==2105 [2025-02-12 10:00:30] Production.ERROR: pbx CDR StartTime 2025-02-12 07:00:06 - End Time 2025-02-12 10:00:06 [2025-02-12 10:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458319', 'tblTempUsageDetail_20' ) start [2025-02-12 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458319', 'tblTempUsageDetail_20' ) end [2025-02-12 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458319', 'tblTempVendorCDR_20' ) start [2025-02-12 10:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458319', 'tblTempVendorCDR_20' ) end [2025-02-12 10:00:30] Production.INFO: ProcessCDR(1,14458319,1,1,2) [2025-02-12 10:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458319', 'tblTempUsageDetail_20' ) start [2025-02-12 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458319', 'tblTempUsageDetail_20' ) end [2025-02-12 10:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:00:35] Production.INFO: ==23166== Releasing lock... [2025-02-12 10:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:00:35] Production.INFO: 44 MB #Memory Used# [2025-02-12 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:01:05 [end_date_ymd] => 2025-02-12 10:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:01:05' and `end` < '2025-02-12 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-12 10:01:22] Production.INFO: count ==2180 [2025-02-12 10:01:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:01:05 - End Time 2025-02-12 10:01:05 [2025-02-12 10:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458324', 'tblTempUsageDetail_20' ) start [2025-02-12 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458324', 'tblTempUsageDetail_20' ) end [2025-02-12 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458324', 'tblTempVendorCDR_20' ) start [2025-02-12 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458324', 'tblTempVendorCDR_20' ) end [2025-02-12 10:01:23] Production.INFO: ProcessCDR(1,14458324,1,1,2) [2025-02-12 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458324', 'tblTempUsageDetail_20' ) start [2025-02-12 10:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458324', 'tblTempUsageDetail_20' ) end [2025-02-12 10:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:01:29] Production.INFO: ==23255== Releasing lock... [2025-02-12 10:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:01:29] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:02:05 [end_date_ymd] => 2025-02-12 10:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:02:05' and `end` < '2025-02-12 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-12 10:02:19] Production.INFO: count ==2193 [2025-02-12 10:02:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:02:05 - End Time 2025-02-12 10:02:05 [2025-02-12 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458329', 'tblTempUsageDetail_20' ) start [2025-02-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458329', 'tblTempUsageDetail_20' ) end [2025-02-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458329', 'tblTempVendorCDR_20' ) start [2025-02-12 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458329', 'tblTempVendorCDR_20' ) end [2025-02-12 10:02:20] Production.INFO: ProcessCDR(1,14458329,1,1,2) [2025-02-12 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458329', 'tblTempUsageDetail_20' ) start [2025-02-12 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458329', 'tblTempUsageDetail_20' ) end [2025-02-12 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:02:25] Production.INFO: ==23329== Releasing lock... [2025-02-12 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:02:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:03:05 [end_date_ymd] => 2025-02-12 10:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:03:05' and `end` < '2025-02-12 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-12 10:03:25] Production.INFO: count ==2199 [2025-02-12 10:03:26] Production.ERROR: pbx CDR StartTime 2025-02-12 07:03:05 - End Time 2025-02-12 10:03:05 [2025-02-12 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458334', 'tblTempUsageDetail_20' ) start [2025-02-12 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458334', 'tblTempUsageDetail_20' ) end [2025-02-12 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458334', 'tblTempVendorCDR_20' ) start [2025-02-12 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458334', 'tblTempVendorCDR_20' ) end [2025-02-12 10:03:26] Production.INFO: ProcessCDR(1,14458334,1,1,2) [2025-02-12 10:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458334', 'tblTempUsageDetail_20' ) start [2025-02-12 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458334', 'tblTempUsageDetail_20' ) end [2025-02-12 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:03:31] Production.INFO: ==23405== Releasing lock... [2025-02-12 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:03:31] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:04:05 [end_date_ymd] => 2025-02-12 10:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:04:05' and `end` < '2025-02-12 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-12 10:04:21] Production.INFO: count ==2210 [2025-02-12 10:04:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:04:05 - End Time 2025-02-12 10:04:05 [2025-02-12 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458339', 'tblTempUsageDetail_20' ) start [2025-02-12 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458339', 'tblTempUsageDetail_20' ) end [2025-02-12 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458339', 'tblTempVendorCDR_20' ) start [2025-02-12 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458339', 'tblTempVendorCDR_20' ) end [2025-02-12 10:04:22] Production.INFO: ProcessCDR(1,14458339,1,1,2) [2025-02-12 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458339', 'tblTempUsageDetail_20' ) start [2025-02-12 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458339', 'tblTempUsageDetail_20' ) end [2025-02-12 10:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:04:27] Production.INFO: ==23476== Releasing lock... [2025-02-12 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:04:27] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:05:06 [end_date_ymd] => 2025-02-12 10:05:06 [RateCDR] => 1 ) [2025-02-12 10:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:05:06' and `end` < '2025-02-12 10:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:05:27] Production.INFO: count ==2222 [2025-02-12 10:05:28] Production.ERROR: pbx CDR StartTime 2025-02-12 07:05:06 - End Time 2025-02-12 10:05:06 [2025-02-12 10:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458344', 'tblTempUsageDetail_20' ) start [2025-02-12 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458344', 'tblTempUsageDetail_20' ) end [2025-02-12 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458344', 'tblTempVendorCDR_20' ) start [2025-02-12 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458344', 'tblTempVendorCDR_20' ) end [2025-02-12 10:05:28] Production.INFO: ProcessCDR(1,14458344,1,1,2) [2025-02-12 10:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458344', 'tblTempUsageDetail_20' ) start [2025-02-12 10:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458344', 'tblTempUsageDetail_20' ) end [2025-02-12 10:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:05:33] Production.INFO: ==23549== Releasing lock... [2025-02-12 10:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:05:33] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:06:05 [end_date_ymd] => 2025-02-12 10:06:05 [RateCDR] => 1 ) [2025-02-12 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:06:05' and `end` < '2025-02-12 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:06:22] Production.INFO: count ==2229 [2025-02-12 10:06:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:06:05 - End Time 2025-02-12 10:06:05 [2025-02-12 10:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458349', 'tblTempUsageDetail_20' ) start [2025-02-12 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458349', 'tblTempUsageDetail_20' ) end [2025-02-12 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458349', 'tblTempVendorCDR_20' ) start [2025-02-12 10:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458349', 'tblTempVendorCDR_20' ) end [2025-02-12 10:06:23] Production.INFO: ProcessCDR(1,14458349,1,1,2) [2025-02-12 10:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458349', 'tblTempUsageDetail_20' ) start [2025-02-12 10:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458349', 'tblTempUsageDetail_20' ) end [2025-02-12 10:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:06:28] Production.INFO: ==23617== Releasing lock... [2025-02-12 10:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:06:28] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:07:06 [end_date_ymd] => 2025-02-12 10:07:06 [RateCDR] => 1 ) [2025-02-12 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:07:06' and `end` < '2025-02-12 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:07:19] Production.INFO: count ==2241 [2025-02-12 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:07:06 - End Time 2025-02-12 10:07:06 [2025-02-12 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458354', 'tblTempUsageDetail_20' ) start [2025-02-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458354', 'tblTempUsageDetail_20' ) end [2025-02-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458354', 'tblTempVendorCDR_20' ) start [2025-02-12 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458354', 'tblTempVendorCDR_20' ) end [2025-02-12 10:07:20] Production.INFO: ProcessCDR(1,14458354,1,1,2) [2025-02-12 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458354', 'tblTempUsageDetail_20' ) start [2025-02-12 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458354', 'tblTempUsageDetail_20' ) end [2025-02-12 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:07:25] Production.INFO: ==23691== Releasing lock... [2025-02-12 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:07:25] Production.INFO: 45 MB #Memory Used# [2025-02-12 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:08:05 [end_date_ymd] => 2025-02-12 10:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:08:05' and `end` < '2025-02-12 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-12 10:08:24] Production.INFO: count ==2248 [2025-02-12 10:08:25] Production.ERROR: pbx CDR StartTime 2025-02-12 07:08:05 - End Time 2025-02-12 10:08:05 [2025-02-12 10:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458359', 'tblTempUsageDetail_20' ) start [2025-02-12 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458359', 'tblTempUsageDetail_20' ) end [2025-02-12 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458359', 'tblTempVendorCDR_20' ) start [2025-02-12 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458359', 'tblTempVendorCDR_20' ) end [2025-02-12 10:08:25] Production.INFO: ProcessCDR(1,14458359,1,1,2) [2025-02-12 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458359', 'tblTempUsageDetail_20' ) start [2025-02-12 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458359', 'tblTempUsageDetail_20' ) end [2025-02-12 10:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:08:30] Production.INFO: ==23765== Releasing lock... [2025-02-12 10:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:08:30] Production.INFO: 45 MB #Memory Used# [2025-02-12 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:09:05 [end_date_ymd] => 2025-02-12 10:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:09:05' and `end` < '2025-02-12 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-12 10:09:21] Production.INFO: count ==2271 [2025-02-12 10:09:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:09:05 - End Time 2025-02-12 10:09:05 [2025-02-12 10:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458364', 'tblTempUsageDetail_20' ) start [2025-02-12 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458364', 'tblTempUsageDetail_20' ) end [2025-02-12 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458364', 'tblTempVendorCDR_20' ) start [2025-02-12 10:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458364', 'tblTempVendorCDR_20' ) end [2025-02-12 10:09:22] Production.INFO: ProcessCDR(1,14458364,1,1,2) [2025-02-12 10:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458364', 'tblTempUsageDetail_20' ) start [2025-02-12 10:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458364', 'tblTempUsageDetail_20' ) end [2025-02-12 10:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:09:27] Production.INFO: ==23835== Releasing lock... [2025-02-12 10:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:09:27] Production.INFO: 45 MB #Memory Used# [2025-02-12 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:10:06 [end_date_ymd] => 2025-02-12 10:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 07:10:06' and `end` < '2025-02-12 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-12 10:10:21] Production.INFO: count ==2303 [2025-02-12 10:10:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:10:06 - End Time 2025-02-12 10:10:06 [2025-02-12 10:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458370', 'tblTempUsageDetail_20' ) start [2025-02-12 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458370', 'tblTempUsageDetail_20' ) end [2025-02-12 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458370', 'tblTempVendorCDR_20' ) start [2025-02-12 10:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458370', 'tblTempVendorCDR_20' ) end [2025-02-12 10:10:22] Production.INFO: ProcessCDR(1,14458370,1,1,2) [2025-02-12 10:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458370', 'tblTempUsageDetail_20' ) start [2025-02-12 10:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458370', 'tblTempUsageDetail_20' ) end [2025-02-12 10:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:10:27] Production.INFO: ==23951== Releasing lock... [2025-02-12 10:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:10:27] Production.INFO: 45.25 MB #Memory Used# [2025-02-12 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:11:05 [end_date_ymd] => 2025-02-12 10:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:11:05' and `end` < '2025-02-12 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-12 10:11:23] Production.INFO: count ==2396 [2025-02-12 10:11:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:11:05 - End Time 2025-02-12 10:11:05 [2025-02-12 10:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458375', 'tblTempUsageDetail_20' ) start [2025-02-12 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458375', 'tblTempUsageDetail_20' ) end [2025-02-12 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458375', 'tblTempVendorCDR_20' ) start [2025-02-12 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458375', 'tblTempVendorCDR_20' ) end [2025-02-12 10:11:24] Production.INFO: ProcessCDR(1,14458375,1,1,2) [2025-02-12 10:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458375', 'tblTempUsageDetail_20' ) start [2025-02-12 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458375', 'tblTempUsageDetail_20' ) end [2025-02-12 10:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:11:29] Production.INFO: ==24025== Releasing lock... [2025-02-12 10:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:11:29] Production.INFO: 46 MB #Memory Used# [2025-02-12 10:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:12:04 [end_date_ymd] => 2025-02-12 10:12:04 [RateCDR] => 1 ) [2025-02-12 10:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:12:04' and `end` < '2025-02-12 10:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:12:22] Production.INFO: count ==2395 [2025-02-12 10:12:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:12:04 - End Time 2025-02-12 10:12:04 [2025-02-12 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458380', 'tblTempUsageDetail_20' ) start [2025-02-12 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458380', 'tblTempUsageDetail_20' ) end [2025-02-12 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458380', 'tblTempVendorCDR_20' ) start [2025-02-12 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458380', 'tblTempVendorCDR_20' ) end [2025-02-12 10:12:23] Production.INFO: ProcessCDR(1,14458380,1,1,2) [2025-02-12 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458380', 'tblTempUsageDetail_20' ) start [2025-02-12 10:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458380', 'tblTempUsageDetail_20' ) end [2025-02-12 10:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:12:27] Production.INFO: ==24095== Releasing lock... [2025-02-12 10:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:12:27] Production.INFO: 46 MB #Memory Used# [2025-02-12 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:13:06 [end_date_ymd] => 2025-02-12 10:13:06 [RateCDR] => 1 ) [2025-02-12 10:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:13:06' and `end` < '2025-02-12 10:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:13:23] Production.INFO: count ==2411 [2025-02-12 10:13:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:13:06 - End Time 2025-02-12 10:13:06 [2025-02-12 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458385', 'tblTempUsageDetail_20' ) start [2025-02-12 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458385', 'tblTempUsageDetail_20' ) end [2025-02-12 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458385', 'tblTempVendorCDR_20' ) start [2025-02-12 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458385', 'tblTempVendorCDR_20' ) end [2025-02-12 10:13:24] Production.INFO: ProcessCDR(1,14458385,1,1,2) [2025-02-12 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458385', 'tblTempUsageDetail_20' ) start [2025-02-12 10:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458385', 'tblTempUsageDetail_20' ) end [2025-02-12 10:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:13:27] Production.INFO: ==24166== Releasing lock... [2025-02-12 10:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:13:27] Production.INFO: 46.25 MB #Memory Used# [2025-02-12 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:14:05 [end_date_ymd] => 2025-02-12 10:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:14:05' and `end` < '2025-02-12 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-12 10:14:20] Production.INFO: count ==2435 [2025-02-12 10:14:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:14:05 - End Time 2025-02-12 10:14:05 [2025-02-12 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458390', 'tblTempUsageDetail_20' ) start [2025-02-12 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458390', 'tblTempUsageDetail_20' ) end [2025-02-12 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458390', 'tblTempVendorCDR_20' ) start [2025-02-12 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458390', 'tblTempVendorCDR_20' ) end [2025-02-12 10:14:21] Production.INFO: ProcessCDR(1,14458390,1,1,2) [2025-02-12 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458390', 'tblTempUsageDetail_20' ) start [2025-02-12 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458390', 'tblTempUsageDetail_20' ) end [2025-02-12 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:14:26] Production.INFO: ==24234== Releasing lock... [2025-02-12 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:14:26] Production.INFO: 46.25 MB #Memory Used# [2025-02-12 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:15:06 [end_date_ymd] => 2025-02-12 10:15:06 [RateCDR] => 1 ) [2025-02-12 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-12 07:15:06' and `end` < '2025-02-12 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-12 10:15:24] Production.INFO: count ==2440 [2025-02-12 10:15:25] Production.ERROR: pbx CDR StartTime 2025-02-12 07:15:06 - End Time 2025-02-12 10:15:06 [2025-02-12 10:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458395', 'tblTempUsageDetail_20' ) start [2025-02-12 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458395', 'tblTempUsageDetail_20' ) end [2025-02-12 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458395', 'tblTempVendorCDR_20' ) start [2025-02-12 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458395', 'tblTempVendorCDR_20' ) end [2025-02-12 10:15:25] Production.INFO: ProcessCDR(1,14458395,1,1,2) [2025-02-12 10:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458395', 'tblTempUsageDetail_20' ) start [2025-02-12 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458395', 'tblTempUsageDetail_20' ) end [2025-02-12 10:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:15:30] Production.INFO: ==24309== Releasing lock... [2025-02-12 10:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:15:30] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:16:05 [end_date_ymd] => 2025-02-12 10:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:16:05' and `end` < '2025-02-12 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-12 10:16:18] Production.INFO: count ==2473 [2025-02-12 10:16:19] Production.ERROR: pbx CDR StartTime 2025-02-12 07:16:05 - End Time 2025-02-12 10:16:05 [2025-02-12 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458400', 'tblTempUsageDetail_20' ) start [2025-02-12 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458400', 'tblTempUsageDetail_20' ) end [2025-02-12 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458400', 'tblTempVendorCDR_20' ) start [2025-02-12 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458400', 'tblTempVendorCDR_20' ) end [2025-02-12 10:16:19] Production.INFO: ProcessCDR(1,14458400,1,1,2) [2025-02-12 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458400', 'tblTempUsageDetail_20' ) start [2025-02-12 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458400', 'tblTempUsageDetail_20' ) end [2025-02-12 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:16:25] Production.INFO: ==24383== Releasing lock... [2025-02-12 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:16:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:17:05 [end_date_ymd] => 2025-02-12 10:17:05 [RateCDR] => 1 ) [2025-02-12 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:17:05' and `end` < '2025-02-12 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:17:22] Production.INFO: count ==2494 [2025-02-12 10:17:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:17:05 - End Time 2025-02-12 10:17:05 [2025-02-12 10:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458405', 'tblTempUsageDetail_20' ) start [2025-02-12 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458405', 'tblTempUsageDetail_20' ) end [2025-02-12 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458405', 'tblTempVendorCDR_20' ) start [2025-02-12 10:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458405', 'tblTempVendorCDR_20' ) end [2025-02-12 10:17:23] Production.INFO: ProcessCDR(1,14458405,1,1,2) [2025-02-12 10:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458405', 'tblTempUsageDetail_20' ) start [2025-02-12 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458405', 'tblTempUsageDetail_20' ) end [2025-02-12 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:17:29] Production.INFO: ==24454== Releasing lock... [2025-02-12 10:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:17:29] Production.INFO: 46.75 MB #Memory Used# [2025-02-12 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:18:05 [end_date_ymd] => 2025-02-12 10:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:18:05' and `end` < '2025-02-12 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-12 10:18:23] Production.INFO: count ==2520 [2025-02-12 10:18:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:18:05 - End Time 2025-02-12 10:18:05 [2025-02-12 10:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458410', 'tblTempUsageDetail_20' ) start [2025-02-12 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458410', 'tblTempUsageDetail_20' ) end [2025-02-12 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458410', 'tblTempVendorCDR_20' ) start [2025-02-12 10:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458410', 'tblTempVendorCDR_20' ) end [2025-02-12 10:18:24] Production.INFO: ProcessCDR(1,14458410,1,1,2) [2025-02-12 10:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458410', 'tblTempUsageDetail_20' ) start [2025-02-12 10:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458410', 'tblTempUsageDetail_20' ) end [2025-02-12 10:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:18:29] Production.INFO: ==24527== Releasing lock... [2025-02-12 10:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:18:29] Production.INFO: 47 MB #Memory Used# [2025-02-12 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:19:06 [end_date_ymd] => 2025-02-12 10:19:06 [RateCDR] => 1 ) [2025-02-12 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-12 07:19:06' and `end` < '2025-02-12 10:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:19:23] Production.INFO: count ==2530 [2025-02-12 10:19:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:19:06 - End Time 2025-02-12 10:19:06 [2025-02-12 10:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458415', 'tblTempUsageDetail_20' ) start [2025-02-12 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458415', 'tblTempUsageDetail_20' ) end [2025-02-12 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458415', 'tblTempVendorCDR_20' ) start [2025-02-12 10:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458415', 'tblTempVendorCDR_20' ) end [2025-02-12 10:19:25] Production.INFO: ProcessCDR(1,14458415,1,1,2) [2025-02-12 10:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458415', 'tblTempUsageDetail_20' ) start [2025-02-12 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458415', 'tblTempUsageDetail_20' ) end [2025-02-12 10:19:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:19:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:19:30] Production.INFO: ==24602== Releasing lock... [2025-02-12 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:19:30] Production.INFO: 47 MB #Memory Used# [2025-02-12 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:20:06 [end_date_ymd] => 2025-02-12 10:20:06 [RateCDR] => 1 ) [2025-02-12 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:20:06' and `end` < '2025-02-12 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:20:25] Production.INFO: count ==2551 [2025-02-12 10:20:26] Production.ERROR: pbx CDR StartTime 2025-02-12 07:20:06 - End Time 2025-02-12 10:20:06 [2025-02-12 10:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458421', 'tblTempUsageDetail_20' ) start [2025-02-12 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458421', 'tblTempUsageDetail_20' ) end [2025-02-12 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458421', 'tblTempVendorCDR_20' ) start [2025-02-12 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458421', 'tblTempVendorCDR_20' ) end [2025-02-12 10:20:26] Production.INFO: ProcessCDR(1,14458421,1,1,2) [2025-02-12 10:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458421', 'tblTempUsageDetail_20' ) start [2025-02-12 10:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458421', 'tblTempUsageDetail_20' ) end [2025-02-12 10:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:20:31] Production.INFO: ==24682== Releasing lock... [2025-02-12 10:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:20:31] Production.INFO: 47.25 MB #Memory Used# [2025-02-12 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:21:06 [end_date_ymd] => 2025-02-12 10:21:06 [RateCDR] => 1 ) [2025-02-12 10:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:21:06' and `end` < '2025-02-12 10:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:21:20] Production.INFO: count ==2623 [2025-02-12 10:21:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:21:06 - End Time 2025-02-12 10:21:06 [2025-02-12 10:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458426', 'tblTempUsageDetail_20' ) start [2025-02-12 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458426', 'tblTempUsageDetail_20' ) end [2025-02-12 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458426', 'tblTempVendorCDR_20' ) start [2025-02-12 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458426', 'tblTempVendorCDR_20' ) end [2025-02-12 10:21:21] Production.INFO: ProcessCDR(1,14458426,1,1,2) [2025-02-12 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458426', 'tblTempUsageDetail_20' ) start [2025-02-12 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458426', 'tblTempUsageDetail_20' ) end [2025-02-12 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:21:26] Production.INFO: ==24763== Releasing lock... [2025-02-12 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:21:26] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:22:05 [end_date_ymd] => 2025-02-12 10:22:05 [RateCDR] => 1 ) [2025-02-12 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:22:05' and `end` < '2025-02-12 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:22:19] Production.INFO: count ==2620 [2025-02-12 10:22:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:22:05 - End Time 2025-02-12 10:22:05 [2025-02-12 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458431', 'tblTempUsageDetail_20' ) start [2025-02-12 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458431', 'tblTempUsageDetail_20' ) end [2025-02-12 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458431', 'tblTempVendorCDR_20' ) start [2025-02-12 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458431', 'tblTempVendorCDR_20' ) end [2025-02-12 10:22:20] Production.INFO: ProcessCDR(1,14458431,1,1,2) [2025-02-12 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458431', 'tblTempUsageDetail_20' ) start [2025-02-12 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458431', 'tblTempUsageDetail_20' ) end [2025-02-12 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:22:25] Production.INFO: ==24835== Releasing lock... [2025-02-12 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:22:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-12 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:23:06 [end_date_ymd] => 2025-02-12 10:23:06 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:23:06' and `end` < '2025-02-12 10: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-12 10:23:20] Production.INFO: count ==2625 [2025-02-12 10:23:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:23:06 - End Time 2025-02-12 10:23:06 [2025-02-12 10:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458436', 'tblTempUsageDetail_20' ) start [2025-02-12 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458436', 'tblTempUsageDetail_20' ) end [2025-02-12 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458436', 'tblTempVendorCDR_20' ) start [2025-02-12 10:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458436', 'tblTempVendorCDR_20' ) end [2025-02-12 10:23:21] Production.INFO: ProcessCDR(1,14458436,1,1,2) [2025-02-12 10:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458436', 'tblTempUsageDetail_20' ) start [2025-02-12 10:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458436', 'tblTempUsageDetail_20' ) end [2025-02-12 10:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:23:26] Production.INFO: ==24909== Releasing lock... [2025-02-12 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:23:26] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:24:06 [end_date_ymd] => 2025-02-12 10:24:06 [RateCDR] => 1 ) [2025-02-12 10:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:24:06' and `end` < '2025-02-12 10:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:24:23] Production.INFO: count ==2637 [2025-02-12 10:24:25] Production.ERROR: pbx CDR StartTime 2025-02-12 07:24:06 - End Time 2025-02-12 10:24:06 [2025-02-12 10:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458441', 'tblTempUsageDetail_20' ) start [2025-02-12 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458441', 'tblTempUsageDetail_20' ) end [2025-02-12 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458441', 'tblTempVendorCDR_20' ) start [2025-02-12 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458441', 'tblTempVendorCDR_20' ) end [2025-02-12 10:24:25] Production.INFO: ProcessCDR(1,14458441,1,1,2) [2025-02-12 10:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458441', 'tblTempUsageDetail_20' ) start [2025-02-12 10:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458441', 'tblTempUsageDetail_20' ) end [2025-02-12 10:24:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:24:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:24:30] Production.INFO: ==24985== Releasing lock... [2025-02-12 10:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:24:30] Production.INFO: 47.75 MB #Memory Used# [2025-02-12 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:25:05 [end_date_ymd] => 2025-02-12 10:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:25:05' and `end` < '2025-02-12 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-12 10:25:19] Production.INFO: count ==2656 [2025-02-12 10:25:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:25:05 - End Time 2025-02-12 10:25:05 [2025-02-12 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458446', 'tblTempUsageDetail_20' ) start [2025-02-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458446', 'tblTempUsageDetail_20' ) end [2025-02-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458446', 'tblTempVendorCDR_20' ) start [2025-02-12 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458446', 'tblTempVendorCDR_20' ) end [2025-02-12 10:25:20] Production.INFO: ProcessCDR(1,14458446,1,1,2) [2025-02-12 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458446', 'tblTempUsageDetail_20' ) start [2025-02-12 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458446', 'tblTempUsageDetail_20' ) end [2025-02-12 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:25:25] Production.INFO: ==25063== Releasing lock... [2025-02-12 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:25:25] Production.INFO: 48 MB #Memory Used# [2025-02-12 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:26:05 [end_date_ymd] => 2025-02-12 10:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:26:05' and `end` < '2025-02-12 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-12 10:26:24] Production.INFO: count ==2674 [2025-02-12 10:26:25] Production.ERROR: pbx CDR StartTime 2025-02-12 07:26:05 - End Time 2025-02-12 10:26:05 [2025-02-12 10:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458451', 'tblTempUsageDetail_20' ) start [2025-02-12 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458451', 'tblTempUsageDetail_20' ) end [2025-02-12 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458451', 'tblTempVendorCDR_20' ) start [2025-02-12 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458451', 'tblTempVendorCDR_20' ) end [2025-02-12 10:26:25] Production.INFO: ProcessCDR(1,14458451,1,1,2) [2025-02-12 10:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458451', 'tblTempUsageDetail_20' ) start [2025-02-12 10:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458451', 'tblTempUsageDetail_20' ) end [2025-02-12 10:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:26:30] Production.INFO: ==25182== Releasing lock... [2025-02-12 10:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:26:30] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:27:04 [end_date_ymd] => 2025-02-12 10:27:04 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:27:04' and `end` < '2025-02-12 10: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-12 10:27:22] Production.INFO: count ==2677 [2025-02-12 10:27:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:27:04 - End Time 2025-02-12 10:27:04 [2025-02-12 10:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458456', 'tblTempUsageDetail_20' ) start [2025-02-12 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458456', 'tblTempUsageDetail_20' ) end [2025-02-12 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458456', 'tblTempVendorCDR_20' ) start [2025-02-12 10:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458456', 'tblTempVendorCDR_20' ) end [2025-02-12 10:27:23] Production.INFO: ProcessCDR(1,14458456,1,1,2) [2025-02-12 10:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458456', 'tblTempUsageDetail_20' ) start [2025-02-12 10:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458456', 'tblTempUsageDetail_20' ) end [2025-02-12 10:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:27:28] Production.INFO: ==25263== Releasing lock... [2025-02-12 10:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:27:28] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:28:05 [end_date_ymd] => 2025-02-12 10:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:28:05' and `end` < '2025-02-12 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-12 10:28:22] Production.INFO: count ==2688 [2025-02-12 10:28:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:28:05 - End Time 2025-02-12 10:28:05 [2025-02-12 10:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458461', 'tblTempUsageDetail_20' ) start [2025-02-12 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458461', 'tblTempUsageDetail_20' ) end [2025-02-12 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458461', 'tblTempVendorCDR_20' ) start [2025-02-12 10:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458461', 'tblTempVendorCDR_20' ) end [2025-02-12 10:28:23] Production.INFO: ProcessCDR(1,14458461,1,1,2) [2025-02-12 10:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458461', 'tblTempUsageDetail_20' ) start [2025-02-12 10:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458461', 'tblTempUsageDetail_20' ) end [2025-02-12 10:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:28:27] Production.INFO: ==25348== Releasing lock... [2025-02-12 10:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:28:27] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:29:05 [end_date_ymd] => 2025-02-12 10:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:29:05' and `end` < '2025-02-12 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-12 10:29:20] Production.INFO: count ==2705 [2025-02-12 10:29:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:29:05 - End Time 2025-02-12 10:29:05 [2025-02-12 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458466', 'tblTempUsageDetail_20' ) start [2025-02-12 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458466', 'tblTempUsageDetail_20' ) end [2025-02-12 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458466', 'tblTempVendorCDR_20' ) start [2025-02-12 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458466', 'tblTempVendorCDR_20' ) end [2025-02-12 10:29:21] Production.INFO: ProcessCDR(1,14458466,1,1,2) [2025-02-12 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458466', 'tblTempUsageDetail_20' ) start [2025-02-12 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458466', 'tblTempUsageDetail_20' ) end [2025-02-12 10:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:29:27] Production.INFO: ==25427== Releasing lock... [2025-02-12 10:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:29:27] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:30:06 [end_date_ymd] => 2025-02-12 10:30:06 [RateCDR] => 1 ) [2025-02-12 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:30:06' and `end` < '2025-02-12 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:30:25] Production.INFO: count ==2724 [2025-02-12 10:30:26] Production.ERROR: pbx CDR StartTime 2025-02-12 07:30:06 - End Time 2025-02-12 10:30:06 [2025-02-12 10:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458472', 'tblTempUsageDetail_20' ) start [2025-02-12 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458472', 'tblTempUsageDetail_20' ) end [2025-02-12 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458472', 'tblTempVendorCDR_20' ) start [2025-02-12 10:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458472', 'tblTempVendorCDR_20' ) end [2025-02-12 10:30:26] Production.INFO: ProcessCDR(1,14458472,1,1,2) [2025-02-12 10:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458472', 'tblTempUsageDetail_20' ) start [2025-02-12 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458472', 'tblTempUsageDetail_20' ) end [2025-02-12 10:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:30:32] Production.INFO: ==25511== Releasing lock... [2025-02-12 10:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:30:32] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:31:05 [end_date_ymd] => 2025-02-12 10:31:05 [RateCDR] => 1 ) [2025-02-12 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:31:05' and `end` < '2025-02-12 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:31:21] Production.INFO: count ==2836 [2025-02-12 10:31:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:31:05 - End Time 2025-02-12 10:31:05 [2025-02-12 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458477', 'tblTempUsageDetail_20' ) start [2025-02-12 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458477', 'tblTempUsageDetail_20' ) end [2025-02-12 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458477', 'tblTempVendorCDR_20' ) start [2025-02-12 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458477', 'tblTempVendorCDR_20' ) end [2025-02-12 10:31:23] Production.INFO: ProcessCDR(1,14458477,1,1,2) [2025-02-12 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458477', 'tblTempUsageDetail_20' ) start [2025-02-12 10:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458477', 'tblTempUsageDetail_20' ) end [2025-02-12 10:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:31:27] Production.INFO: ==25592== Releasing lock... [2025-02-12 10:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:31:27] Production.INFO: 49.25 MB #Memory Used# [2025-02-12 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:32:05 [end_date_ymd] => 2025-02-12 10:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:32:05' and `end` < '2025-02-12 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-12 10:32:21] Production.INFO: count ==2876 [2025-02-12 10:32:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:32:05 - End Time 2025-02-12 10:32:05 [2025-02-12 10:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458482', 'tblTempUsageDetail_20' ) start [2025-02-12 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458482', 'tblTempUsageDetail_20' ) end [2025-02-12 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458482', 'tblTempVendorCDR_20' ) start [2025-02-12 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458482', 'tblTempVendorCDR_20' ) end [2025-02-12 10:32:23] Production.INFO: ProcessCDR(1,14458482,1,1,2) [2025-02-12 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458482', 'tblTempUsageDetail_20' ) start [2025-02-12 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458482', 'tblTempUsageDetail_20' ) end [2025-02-12 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:32:27] Production.INFO: ==25682== Releasing lock... [2025-02-12 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:32:27] Production.INFO: 49.25 MB #Memory Used# [2025-02-12 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:33:05 [end_date_ymd] => 2025-02-12 10:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:33:05' and `end` < '2025-02-12 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-12 10:33:26] Production.INFO: count ==2893 [2025-02-12 10:33:27] Production.ERROR: pbx CDR StartTime 2025-02-12 07:33:05 - End Time 2025-02-12 10:33:05 [2025-02-12 10:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458487', 'tblTempUsageDetail_20' ) start [2025-02-12 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458487', 'tblTempUsageDetail_20' ) end [2025-02-12 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458487', 'tblTempVendorCDR_20' ) start [2025-02-12 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458487', 'tblTempVendorCDR_20' ) end [2025-02-12 10:33:27] Production.INFO: ProcessCDR(1,14458487,1,1,2) [2025-02-12 10:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458487', 'tblTempUsageDetail_20' ) start [2025-02-12 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458487', 'tblTempUsageDetail_20' ) end [2025-02-12 10:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:33:32] Production.INFO: ==25771== Releasing lock... [2025-02-12 10:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:33:32] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:34:05 [end_date_ymd] => 2025-02-12 10:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:34:05' and `end` < '2025-02-12 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-12 10:34:21] Production.INFO: count ==2912 [2025-02-12 10:34:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:34:05 - End Time 2025-02-12 10:34:05 [2025-02-12 10:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458492', 'tblTempUsageDetail_20' ) start [2025-02-12 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458492', 'tblTempUsageDetail_20' ) end [2025-02-12 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458492', 'tblTempVendorCDR_20' ) start [2025-02-12 10:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458492', 'tblTempVendorCDR_20' ) end [2025-02-12 10:34:23] Production.INFO: ProcessCDR(1,14458492,1,1,2) [2025-02-12 10:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458492', 'tblTempUsageDetail_20' ) start [2025-02-12 10:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458492', 'tblTempUsageDetail_20' ) end [2025-02-12 10:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:34:28] Production.INFO: ==25863== Releasing lock... [2025-02-12 10:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:34:28] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:35:05 [end_date_ymd] => 2025-02-12 10:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:35:05' and `end` < '2025-02-12 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-12 10:35:23] Production.INFO: count ==2941 [2025-02-12 10:35:25] Production.ERROR: pbx CDR StartTime 2025-02-12 07:35:05 - End Time 2025-02-12 10:35:05 [2025-02-12 10:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458497', 'tblTempUsageDetail_20' ) start [2025-02-12 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458497', 'tblTempUsageDetail_20' ) end [2025-02-12 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458497', 'tblTempVendorCDR_20' ) start [2025-02-12 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458497', 'tblTempVendorCDR_20' ) end [2025-02-12 10:35:25] Production.INFO: ProcessCDR(1,14458497,1,1,2) [2025-02-12 10:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458497', 'tblTempUsageDetail_20' ) start [2025-02-12 10:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458497', 'tblTempUsageDetail_20' ) end [2025-02-12 10:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:35:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:35:29] Production.INFO: ==25956== Releasing lock... [2025-02-12 10:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:35:29] Production.INFO: 50 MB #Memory Used# [2025-02-12 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:36:06 [end_date_ymd] => 2025-02-12 10:36:06 [RateCDR] => 1 ) [2025-02-12 10:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:36:06' and `end` < '2025-02-12 10:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:36:22] Production.INFO: count ==2949 [2025-02-12 10:36:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:36:06 - End Time 2025-02-12 10:36:06 [2025-02-12 10:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458502', 'tblTempUsageDetail_20' ) start [2025-02-12 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458502', 'tblTempUsageDetail_20' ) end [2025-02-12 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458502', 'tblTempVendorCDR_20' ) start [2025-02-12 10:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458502', 'tblTempVendorCDR_20' ) end [2025-02-12 10:36:23] Production.INFO: ProcessCDR(1,14458502,1,1,2) [2025-02-12 10:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458502', 'tblTempUsageDetail_20' ) start [2025-02-12 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458502', 'tblTempUsageDetail_20' ) end [2025-02-12 10:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:36:28] Production.INFO: ==26047== Releasing lock... [2025-02-12 10:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:36:28] Production.INFO: 50.5 MB #Memory Used# [2025-02-12 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:37:05 [end_date_ymd] => 2025-02-12 10:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:37:05' and `end` < '2025-02-12 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-12 10:37:21] Production.INFO: count ==2967 [2025-02-12 10:37:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:37:05 - End Time 2025-02-12 10:37:05 [2025-02-12 10:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458507', 'tblTempUsageDetail_20' ) start [2025-02-12 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458507', 'tblTempUsageDetail_20' ) end [2025-02-12 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458507', 'tblTempVendorCDR_20' ) start [2025-02-12 10:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458507', 'tblTempVendorCDR_20' ) end [2025-02-12 10:37:22] Production.INFO: ProcessCDR(1,14458507,1,1,2) [2025-02-12 10:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458507', 'tblTempUsageDetail_20' ) start [2025-02-12 10:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458507', 'tblTempUsageDetail_20' ) end [2025-02-12 10:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:37:27] Production.INFO: ==26130== Releasing lock... [2025-02-12 10:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:37:27] Production.INFO: 50.25 MB #Memory Used# [2025-02-12 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:38:05 [end_date_ymd] => 2025-02-12 10:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:38:05' and `end` < '2025-02-12 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-12 10:38:22] Production.INFO: count ==2980 [2025-02-12 10:38:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:38:05 - End Time 2025-02-12 10:38:05 [2025-02-12 10:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458512', 'tblTempUsageDetail_20' ) start [2025-02-12 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458512', 'tblTempUsageDetail_20' ) end [2025-02-12 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458512', 'tblTempVendorCDR_20' ) start [2025-02-12 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458512', 'tblTempVendorCDR_20' ) end [2025-02-12 10:38:23] Production.INFO: ProcessCDR(1,14458512,1,1,2) [2025-02-12 10:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458512', 'tblTempUsageDetail_20' ) start [2025-02-12 10:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458512', 'tblTempUsageDetail_20' ) end [2025-02-12 10:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:38:28] Production.INFO: ==26223== Releasing lock... [2025-02-12 10:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:38:28] Production.INFO: 51.25 MB #Memory Used# [2025-02-12 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:39:04 [end_date_ymd] => 2025-02-12 10:39:04 [RateCDR] => 1 ) [2025-02-12 10:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:39:04' and `end` < '2025-02-12 10:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:39:18] Production.INFO: count ==3019 [2025-02-12 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 07:39:04 - End Time 2025-02-12 10:39:04 [2025-02-12 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458517', 'tblTempUsageDetail_20' ) start [2025-02-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458517', 'tblTempUsageDetail_20' ) end [2025-02-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458517', 'tblTempVendorCDR_20' ) start [2025-02-12 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458517', 'tblTempVendorCDR_20' ) end [2025-02-12 10:39:20] Production.INFO: ProcessCDR(1,14458517,1,1,2) [2025-02-12 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458517', 'tblTempUsageDetail_20' ) start [2025-02-12 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458517', 'tblTempUsageDetail_20' ) end [2025-02-12 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:39:25] Production.INFO: ==26317== Releasing lock... [2025-02-12 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:39:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-12 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:40:05 [end_date_ymd] => 2025-02-12 10:40:05 [RateCDR] => 1 ) [2025-02-12 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:40:05' and `end` < '2025-02-12 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:40:25] Production.INFO: count ==3089 [2025-02-12 10:40:27] Production.ERROR: pbx CDR StartTime 2025-02-12 07:40:05 - End Time 2025-02-12 10:40:05 [2025-02-12 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458522', 'tblTempUsageDetail_20' ) start [2025-02-12 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458522', 'tblTempUsageDetail_20' ) end [2025-02-12 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458522', 'tblTempVendorCDR_20' ) start [2025-02-12 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458522', 'tblTempVendorCDR_20' ) end [2025-02-12 10:40:27] Production.INFO: ProcessCDR(1,14458522,1,1,2) [2025-02-12 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458522', 'tblTempUsageDetail_20' ) start [2025-02-12 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458522', 'tblTempUsageDetail_20' ) end [2025-02-12 10:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:40:32] Production.INFO: ==26415== Releasing lock... [2025-02-12 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:40:32] Production.INFO: 51.5 MB #Memory Used# [2025-02-12 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:41:06 [end_date_ymd] => 2025-02-12 10:41:06 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:41:06' and `end` < '2025-02-12 10: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-12 10:41:22] Production.INFO: count ==3180 [2025-02-12 10:41:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:41:06 - End Time 2025-02-12 10:41:06 [2025-02-12 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458528', 'tblTempUsageDetail_20' ) start [2025-02-12 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458528', 'tblTempUsageDetail_20' ) end [2025-02-12 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458528', 'tblTempVendorCDR_20' ) start [2025-02-12 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458528', 'tblTempVendorCDR_20' ) end [2025-02-12 10:41:24] Production.INFO: ProcessCDR(1,14458528,1,1,2) [2025-02-12 10:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458528', 'tblTempUsageDetail_20' ) start [2025-02-12 10:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458528', 'tblTempUsageDetail_20' ) end [2025-02-12 10:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:41:28] Production.INFO: ==26558== Releasing lock... [2025-02-12 10:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:41:28] Production.INFO: 52 MB #Memory Used# [2025-02-12 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:42:05 [end_date_ymd] => 2025-02-12 10:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:42:05' and `end` < '2025-02-12 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-12 10:42:22] Production.INFO: count ==3199 [2025-02-12 10:42:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:42:05 - End Time 2025-02-12 10:42:05 [2025-02-12 10:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458533', 'tblTempUsageDetail_20' ) start [2025-02-12 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458533', 'tblTempUsageDetail_20' ) end [2025-02-12 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458533', 'tblTempVendorCDR_20' ) start [2025-02-12 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458533', 'tblTempVendorCDR_20' ) end [2025-02-12 10:42:24] Production.INFO: ProcessCDR(1,14458533,1,1,2) [2025-02-12 10:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458533', 'tblTempUsageDetail_20' ) start [2025-02-12 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458533', 'tblTempUsageDetail_20' ) end [2025-02-12 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:42:29] Production.INFO: ==26652== Releasing lock... [2025-02-12 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:42:29] Production.INFO: 52.25 MB #Memory Used# [2025-02-12 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:43:06 [end_date_ymd] => 2025-02-12 10:43:06 [RateCDR] => 1 ) [2025-02-12 10:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:43:06' and `end` < '2025-02-12 10:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:43:20] Production.INFO: count ==3269 [2025-02-12 10:43:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:43:06 - End Time 2025-02-12 10:43:06 [2025-02-12 10:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458538', 'tblTempUsageDetail_20' ) start [2025-02-12 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458538', 'tblTempUsageDetail_20' ) end [2025-02-12 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458538', 'tblTempVendorCDR_20' ) start [2025-02-12 10:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458538', 'tblTempVendorCDR_20' ) end [2025-02-12 10:43:22] Production.INFO: ProcessCDR(1,14458538,1,1,2) [2025-02-12 10:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458538', 'tblTempUsageDetail_20' ) start [2025-02-12 10:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458538', 'tblTempUsageDetail_20' ) end [2025-02-12 10:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:43:27] Production.INFO: ==26742== Releasing lock... [2025-02-12 10:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:43:27] Production.INFO: 52.5 MB #Memory Used# [2025-02-12 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:44:05 [end_date_ymd] => 2025-02-12 10:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:44:05' and `end` < '2025-02-12 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-12 10:44:20] Production.INFO: count ==3285 [2025-02-12 10:44:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:44:05 - End Time 2025-02-12 10:44:05 [2025-02-12 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458543', 'tblTempUsageDetail_20' ) start [2025-02-12 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458543', 'tblTempUsageDetail_20' ) end [2025-02-12 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458543', 'tblTempVendorCDR_20' ) start [2025-02-12 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458543', 'tblTempVendorCDR_20' ) end [2025-02-12 10:44:22] Production.INFO: ProcessCDR(1,14458543,1,1,2) [2025-02-12 10:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458543', 'tblTempUsageDetail_20' ) start [2025-02-12 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458543', 'tblTempUsageDetail_20' ) end [2025-02-12 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:44:27] Production.INFO: ==26835== Releasing lock... [2025-02-12 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:44:27] Production.INFO: 52.75 MB #Memory Used# [2025-02-12 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:45:05 [end_date_ymd] => 2025-02-12 10:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:45:05' and `end` < '2025-02-12 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-12 10:45:29] Production.INFO: count ==3304 [2025-02-12 10:45:31] Production.ERROR: pbx CDR StartTime 2025-02-12 07:45:05 - End Time 2025-02-12 10:45:05 [2025-02-12 10:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458548', 'tblTempUsageDetail_20' ) start [2025-02-12 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458548', 'tblTempUsageDetail_20' ) end [2025-02-12 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458548', 'tblTempVendorCDR_20' ) start [2025-02-12 10:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458548', 'tblTempVendorCDR_20' ) end [2025-02-12 10:45:31] Production.INFO: ProcessCDR(1,14458548,1,1,2) [2025-02-12 10:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458548', 'tblTempUsageDetail_20' ) start [2025-02-12 10:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458548', 'tblTempUsageDetail_20' ) end [2025-02-12 10:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:45:36] Production.INFO: ==26932== Releasing lock... [2025-02-12 10:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:45:36] Production.INFO: 52.75 MB #Memory Used# [2025-02-12 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:46:04 [end_date_ymd] => 2025-02-12 10:46:04 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:46:04' and `end` < '2025-02-12 10: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-12 10:46:23] Production.INFO: count ==3307 [2025-02-12 10:46:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:46:04 - End Time 2025-02-12 10:46:04 [2025-02-12 10:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458553', 'tblTempUsageDetail_20' ) start [2025-02-12 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458553', 'tblTempUsageDetail_20' ) end [2025-02-12 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458553', 'tblTempVendorCDR_20' ) start [2025-02-12 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458553', 'tblTempVendorCDR_20' ) end [2025-02-12 10:46:24] Production.INFO: ProcessCDR(1,14458553,1,1,2) [2025-02-12 10:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458553', 'tblTempUsageDetail_20' ) start [2025-02-12 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458553', 'tblTempUsageDetail_20' ) end [2025-02-12 10:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:46:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:46:29] Production.INFO: ==27029== Releasing lock... [2025-02-12 10:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:46:29] Production.INFO: 53 MB #Memory Used# [2025-02-12 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:47:06 [end_date_ymd] => 2025-02-12 10:47:06 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:47:06' and `end` < '2025-02-12 10: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-12 10:47:21] Production.INFO: count ==3336 [2025-02-12 10:47:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:47:06 - End Time 2025-02-12 10:47:06 [2025-02-12 10:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458558', 'tblTempUsageDetail_20' ) start [2025-02-12 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458558', 'tblTempUsageDetail_20' ) end [2025-02-12 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458558', 'tblTempVendorCDR_20' ) start [2025-02-12 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458558', 'tblTempVendorCDR_20' ) end [2025-02-12 10:47:22] Production.INFO: ProcessCDR(1,14458558,1,1,2) [2025-02-12 10:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458558', 'tblTempUsageDetail_20' ) start [2025-02-12 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458558', 'tblTempUsageDetail_20' ) end [2025-02-12 10:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:47:27] Production.INFO: ==27123== Releasing lock... [2025-02-12 10:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:47:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-12 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:48:05 [end_date_ymd] => 2025-02-12 10:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:48:05' and `end` < '2025-02-12 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-12 10:48:22] Production.INFO: count ==3350 [2025-02-12 10:48:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:48:05 - End Time 2025-02-12 10:48:05 [2025-02-12 10:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458563', 'tblTempUsageDetail_20' ) start [2025-02-12 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458563', 'tblTempUsageDetail_20' ) end [2025-02-12 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458563', 'tblTempVendorCDR_20' ) start [2025-02-12 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458563', 'tblTempVendorCDR_20' ) end [2025-02-12 10:48:23] Production.INFO: ProcessCDR(1,14458563,1,1,2) [2025-02-12 10:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458563', 'tblTempUsageDetail_20' ) start [2025-02-12 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458563', 'tblTempUsageDetail_20' ) end [2025-02-12 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:48:28] Production.INFO: ==27222== Releasing lock... [2025-02-12 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:48:28] Production.INFO: 54.75 MB #Memory Used# [2025-02-12 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:49:06 [end_date_ymd] => 2025-02-12 10:49:06 [RateCDR] => 1 ) [2025-02-12 10: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-12 07:49:06' and `end` < '2025-02-12 10: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-12 10:49:20] Production.INFO: count ==3365 [2025-02-12 10:49:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:49:06 - End Time 2025-02-12 10:49:06 [2025-02-12 10:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458568', 'tblTempUsageDetail_20' ) start [2025-02-12 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458568', 'tblTempUsageDetail_20' ) end [2025-02-12 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458568', 'tblTempVendorCDR_20' ) start [2025-02-12 10:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458568', 'tblTempVendorCDR_20' ) end [2025-02-12 10:49:22] Production.INFO: ProcessCDR(1,14458568,1,1,2) [2025-02-12 10:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458568', 'tblTempUsageDetail_20' ) start [2025-02-12 10:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458568', 'tblTempUsageDetail_20' ) end [2025-02-12 10:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:49:27] Production.INFO: ==27319== Releasing lock... [2025-02-12 10:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:49:27] Production.INFO: 55 MB #Memory Used# [2025-02-12 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:50:06 [end_date_ymd] => 2025-02-12 10:50:06 [RateCDR] => 1 ) [2025-02-12 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:50:06' and `end` < '2025-02-12 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:50:20] Production.INFO: count ==3388 [2025-02-12 10:50:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:50:06 - End Time 2025-02-12 10:50:06 [2025-02-12 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458574', 'tblTempUsageDetail_20' ) start [2025-02-12 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458574', 'tblTempUsageDetail_20' ) end [2025-02-12 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458574', 'tblTempVendorCDR_20' ) start [2025-02-12 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458574', 'tblTempVendorCDR_20' ) end [2025-02-12 10:50:21] Production.INFO: ProcessCDR(1,14458574,1,1,2) [2025-02-12 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458574', 'tblTempUsageDetail_20' ) start [2025-02-12 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458574', 'tblTempUsageDetail_20' ) end [2025-02-12 10:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:50:27] Production.INFO: ==27410== Releasing lock... [2025-02-12 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:50:27] Production.INFO: 55 MB #Memory Used# [2025-02-12 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:51:06 [end_date_ymd] => 2025-02-12 10:51:06 [RateCDR] => 1 ) [2025-02-12 10:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:51:06' and `end` < '2025-02-12 10:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:51:23] Production.INFO: count ==3498 [2025-02-12 10:51:24] Production.ERROR: pbx CDR StartTime 2025-02-12 07:51:06 - End Time 2025-02-12 10:51:06 [2025-02-12 10:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458579', 'tblTempUsageDetail_20' ) start [2025-02-12 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458579', 'tblTempUsageDetail_20' ) end [2025-02-12 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458579', 'tblTempVendorCDR_20' ) start [2025-02-12 10:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458579', 'tblTempVendorCDR_20' ) end [2025-02-12 10:51:24] Production.INFO: ProcessCDR(1,14458579,1,1,2) [2025-02-12 10:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458579', 'tblTempUsageDetail_20' ) start [2025-02-12 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458579', 'tblTempUsageDetail_20' ) end [2025-02-12 10:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:51:30] Production.INFO: ==27511== Releasing lock... [2025-02-12 10:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:51:30] Production.INFO: 55.5 MB #Memory Used# [2025-02-12 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:52:05 [end_date_ymd] => 2025-02-12 10:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:52:05' and `end` < '2025-02-12 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-12 10:52:19] Production.INFO: count ==3517 [2025-02-12 10:52:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:52:05 - End Time 2025-02-12 10:52:05 [2025-02-12 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458584', 'tblTempUsageDetail_20' ) start [2025-02-12 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458584', 'tblTempUsageDetail_20' ) end [2025-02-12 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458584', 'tblTempVendorCDR_20' ) start [2025-02-12 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458584', 'tblTempVendorCDR_20' ) end [2025-02-12 10:52:20] Production.INFO: ProcessCDR(1,14458584,1,1,2) [2025-02-12 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458584', 'tblTempUsageDetail_20' ) start [2025-02-12 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458584', 'tblTempUsageDetail_20' ) end [2025-02-12 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:52:25] Production.INFO: ==27610== Releasing lock... [2025-02-12 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:52:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-12 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:53:05 [end_date_ymd] => 2025-02-12 10:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:53:05' and `end` < '2025-02-12 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-12 10:53:22] Production.INFO: count ==3533 [2025-02-12 10:53:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:53:05 - End Time 2025-02-12 10:53:05 [2025-02-12 10:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458589', 'tblTempUsageDetail_20' ) start [2025-02-12 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458589', 'tblTempUsageDetail_20' ) end [2025-02-12 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458589', 'tblTempVendorCDR_20' ) start [2025-02-12 10:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458589', 'tblTempVendorCDR_20' ) end [2025-02-12 10:53:23] Production.INFO: ProcessCDR(1,14458589,1,1,2) [2025-02-12 10:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458589', 'tblTempUsageDetail_20' ) start [2025-02-12 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458589', 'tblTempUsageDetail_20' ) end [2025-02-12 10:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:53:28] Production.INFO: ==27708== Releasing lock... [2025-02-12 10:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:53:28] Production.INFO: 54.75 MB #Memory Used# [2025-02-12 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:54:05 [end_date_ymd] => 2025-02-12 10:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:54:05' and `end` < '2025-02-12 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-12 10:54:21] Production.INFO: count ==3546 [2025-02-12 10:54:22] Production.ERROR: pbx CDR StartTime 2025-02-12 07:54:05 - End Time 2025-02-12 10:54:05 [2025-02-12 10:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458594', 'tblTempUsageDetail_20' ) start [2025-02-12 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458594', 'tblTempUsageDetail_20' ) end [2025-02-12 10:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458594', 'tblTempVendorCDR_20' ) start [2025-02-12 10:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458594', 'tblTempVendorCDR_20' ) end [2025-02-12 10:54:23] Production.INFO: ProcessCDR(1,14458594,1,1,2) [2025-02-12 10:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458594', 'tblTempUsageDetail_20' ) start [2025-02-12 10:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458594', 'tblTempUsageDetail_20' ) end [2025-02-12 10:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:54:27] Production.INFO: ==27803== Releasing lock... [2025-02-12 10:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:54:27] Production.INFO: 55 MB #Memory Used# [2025-02-12 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:55:05 [end_date_ymd] => 2025-02-12 10:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:55:05' and `end` < '2025-02-12 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-12 10:55:19] Production.INFO: count ==3592 [2025-02-12 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-12 07:55:05 - End Time 2025-02-12 10:55:05 [2025-02-12 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458599', 'tblTempUsageDetail_20' ) start [2025-02-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458599', 'tblTempUsageDetail_20' ) end [2025-02-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458599', 'tblTempVendorCDR_20' ) start [2025-02-12 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458599', 'tblTempVendorCDR_20' ) end [2025-02-12 10:55:20] Production.INFO: ProcessCDR(1,14458599,1,1,2) [2025-02-12 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458599', 'tblTempUsageDetail_20' ) start [2025-02-12 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458599', 'tblTempUsageDetail_20' ) end [2025-02-12 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:55:25] Production.INFO: ==27900== Releasing lock... [2025-02-12 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:55:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-12 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:56:05 [end_date_ymd] => 2025-02-12 10:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:56:05' and `end` < '2025-02-12 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-12 10:56:20] Production.INFO: count ==3599 [2025-02-12 10:56:21] Production.ERROR: pbx CDR StartTime 2025-02-12 07:56:05 - End Time 2025-02-12 10:56:05 [2025-02-12 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458604', 'tblTempUsageDetail_20' ) start [2025-02-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458604', 'tblTempUsageDetail_20' ) end [2025-02-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458604', 'tblTempVendorCDR_20' ) start [2025-02-12 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458604', 'tblTempVendorCDR_20' ) end [2025-02-12 10:56:21] Production.INFO: ProcessCDR(1,14458604,1,1,2) [2025-02-12 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458604', 'tblTempUsageDetail_20' ) start [2025-02-12 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458604', 'tblTempUsageDetail_20' ) end [2025-02-12 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:56:26] Production.INFO: ==28029== Releasing lock... [2025-02-12 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:56:26] Production.INFO: 55.25 MB #Memory Used# [2025-02-12 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:57:05 [end_date_ymd] => 2025-02-12 10:57:05 [RateCDR] => 1 ) [2025-02-12 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:57:05' and `end` < '2025-02-12 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:57:35] Production.INFO: count ==3621 [2025-02-12 10:57:37] Production.ERROR: pbx CDR StartTime 2025-02-12 07:57:05 - End Time 2025-02-12 10:57:05 [2025-02-12 10:57:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458609', 'tblTempUsageDetail_20' ) start [2025-02-12 10:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458609', 'tblTempUsageDetail_20' ) end [2025-02-12 10:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458609', 'tblTempVendorCDR_20' ) start [2025-02-12 10:57:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458609', 'tblTempVendorCDR_20' ) end [2025-02-12 10:57:37] Production.INFO: ProcessCDR(1,14458609,1,1,2) [2025-02-12 10:57:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:57:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:57:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:57:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458609', 'tblTempUsageDetail_20' ) start [2025-02-12 10:57:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458609', 'tblTempUsageDetail_20' ) end [2025-02-12 10:57:42] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:57:42] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:57:42] Production.INFO: ==28130== Releasing lock... [2025-02-12 10:57:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:57:42] Production.INFO: 55.5 MB #Memory Used# [2025-02-12 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:58:05 [end_date_ymd] => 2025-02-12 10:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 07:58:05' and `end` < '2025-02-12 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-12 10:58:22] Production.INFO: count ==3626 [2025-02-12 10:58:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:58:05 - End Time 2025-02-12 10:58:05 [2025-02-12 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458614', 'tblTempUsageDetail_20' ) start [2025-02-12 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458614', 'tblTempUsageDetail_20' ) end [2025-02-12 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458614', 'tblTempVendorCDR_20' ) start [2025-02-12 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458614', 'tblTempVendorCDR_20' ) end [2025-02-12 10:58:23] Production.INFO: ProcessCDR(1,14458614,1,1,2) [2025-02-12 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458614', 'tblTempUsageDetail_20' ) start [2025-02-12 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458614', 'tblTempUsageDetail_20' ) end [2025-02-12 10:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:58:28] Production.INFO: ==28230== Releasing lock... [2025-02-12 10:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:58:28] Production.INFO: 55 MB #Memory Used# [2025-02-12 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 07:59:05 [end_date_ymd] => 2025-02-12 10:59:05 [RateCDR] => 1 ) [2025-02-12 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 07:59:05' and `end` < '2025-02-12 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 10:59:21] Production.INFO: count ==3645 [2025-02-12 10:59:23] Production.ERROR: pbx CDR StartTime 2025-02-12 07:59:05 - End Time 2025-02-12 10:59:05 [2025-02-12 10:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458619', 'tblTempUsageDetail_20' ) start [2025-02-12 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458619', 'tblTempUsageDetail_20' ) end [2025-02-12 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458619', 'tblTempVendorCDR_20' ) start [2025-02-12 10:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458619', 'tblTempVendorCDR_20' ) end [2025-02-12 10:59:23] Production.INFO: ProcessCDR(1,14458619,1,1,2) [2025-02-12 10:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 10:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458619', 'tblTempUsageDetail_20' ) start [2025-02-12 10:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458619', 'tblTempUsageDetail_20' ) end [2025-02-12 10:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 10:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 10:59:28] Production.INFO: ==28314== Releasing lock... [2025-02-12 10:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 10:59:28] Production.INFO: 55.75 MB #Memory Used# [2025-02-12 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:00:05 [end_date_ymd] => 2025-02-12 11:00:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:00:05' and `end` < '2025-02-12 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-12 11:00:32] Production.INFO: count ==3662 [2025-02-12 11:00:34] Production.ERROR: pbx CDR StartTime 2025-02-12 08:00:05 - End Time 2025-02-12 11:00:05 [2025-02-12 11:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458625', 'tblTempUsageDetail_20' ) start [2025-02-12 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458625', 'tblTempUsageDetail_20' ) end [2025-02-12 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458625', 'tblTempVendorCDR_20' ) start [2025-02-12 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458625', 'tblTempVendorCDR_20' ) end [2025-02-12 11:00:34] Production.INFO: ProcessCDR(1,14458625,1,1,2) [2025-02-12 11:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458625', 'tblTempUsageDetail_20' ) start [2025-02-12 11:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458625', 'tblTempUsageDetail_20' ) end [2025-02-12 11:00:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:00:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:00:39] Production.INFO: ==28409== Releasing lock... [2025-02-12 11:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:00:39] Production.INFO: 55.25 MB #Memory Used# [2025-02-12 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:01:05 [end_date_ymd] => 2025-02-12 11:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:01:05' and `end` < '2025-02-12 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-12 11:01:24] Production.INFO: count ==3763 [2025-02-12 11:01:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:01:05 - End Time 2025-02-12 11:01:05 [2025-02-12 11:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458630', 'tblTempUsageDetail_20' ) start [2025-02-12 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458630', 'tblTempUsageDetail_20' ) end [2025-02-12 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458630', 'tblTempVendorCDR_20' ) start [2025-02-12 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458630', 'tblTempVendorCDR_20' ) end [2025-02-12 11:01:26] Production.INFO: ProcessCDR(1,14458630,1,1,2) [2025-02-12 11:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458630', 'tblTempUsageDetail_20' ) start [2025-02-12 11:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458630', 'tblTempUsageDetail_20' ) end [2025-02-12 11:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:01:31] Production.INFO: ==28553== Releasing lock... [2025-02-12 11:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:01:31] Production.INFO: 56.25 MB #Memory Used# [2025-02-12 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:02:05 [end_date_ymd] => 2025-02-12 11:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:02:05' and `end` < '2025-02-12 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-12 11:02:23] Production.INFO: count ==3790 [2025-02-12 11:02:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:02:05 - End Time 2025-02-12 11:02:05 [2025-02-12 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458635', 'tblTempUsageDetail_20' ) start [2025-02-12 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458635', 'tblTempUsageDetail_20' ) end [2025-02-12 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458635', 'tblTempVendorCDR_20' ) start [2025-02-12 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458635', 'tblTempVendorCDR_20' ) end [2025-02-12 11:02:25] Production.INFO: ProcessCDR(1,14458635,1,1,2) [2025-02-12 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458635', 'tblTempUsageDetail_20' ) start [2025-02-12 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458635', 'tblTempUsageDetail_20' ) end [2025-02-12 11:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:02:30] Production.INFO: ==28684== Releasing lock... [2025-02-12 11:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:02:30] Production.INFO: 56.5 MB #Memory Used# [2025-02-12 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:03:05 [end_date_ymd] => 2025-02-12 11:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:03:05' and `end` < '2025-02-12 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-12 11:03:24] Production.INFO: count ==3802 [2025-02-12 11:03:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:03:05 - End Time 2025-02-12 11:03:05 [2025-02-12 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458640', 'tblTempUsageDetail_20' ) start [2025-02-12 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458640', 'tblTempUsageDetail_20' ) end [2025-02-12 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458640', 'tblTempVendorCDR_20' ) start [2025-02-12 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458640', 'tblTempVendorCDR_20' ) end [2025-02-12 11:03:26] Production.INFO: ProcessCDR(1,14458640,1,1,2) [2025-02-12 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458640', 'tblTempUsageDetail_20' ) start [2025-02-12 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458640', 'tblTempUsageDetail_20' ) end [2025-02-12 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:03:32] Production.INFO: ==28773== Releasing lock... [2025-02-12 11:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:03:32] Production.INFO: 56.5 MB #Memory Used# [2025-02-12 11:04:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:04:07 [end_date_ymd] => 2025-02-12 11:04:07 [RateCDR] => 1 ) [2025-02-12 11:04:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:04:07' and `end` < '2025-02-12 11:04:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:04:25] Production.INFO: count ==3808 [2025-02-12 11:04:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:04:07 - End Time 2025-02-12 11:04:07 [2025-02-12 11:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458645', 'tblTempUsageDetail_20' ) start [2025-02-12 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458645', 'tblTempUsageDetail_20' ) end [2025-02-12 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458645', 'tblTempVendorCDR_20' ) start [2025-02-12 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458645', 'tblTempVendorCDR_20' ) end [2025-02-12 11:04:27] Production.INFO: ProcessCDR(1,14458645,1,1,2) [2025-02-12 11:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458645', 'tblTempUsageDetail_20' ) start [2025-02-12 11:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458645', 'tblTempUsageDetail_20' ) end [2025-02-12 11:04:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:04:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:04:33] Production.INFO: ==28861== Releasing lock... [2025-02-12 11:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:04:33] Production.INFO: 56.5 MB #Memory Used# [2025-02-12 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:05:06 [end_date_ymd] => 2025-02-12 11:05:06 [RateCDR] => 1 ) [2025-02-12 11:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:05:06' and `end` < '2025-02-12 11:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:05:24] Production.INFO: count ==3809 [2025-02-12 11:05:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:05:06 - End Time 2025-02-12 11:05:06 [2025-02-12 11:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458650', 'tblTempUsageDetail_20' ) start [2025-02-12 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458650', 'tblTempUsageDetail_20' ) end [2025-02-12 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458650', 'tblTempVendorCDR_20' ) start [2025-02-12 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458650', 'tblTempVendorCDR_20' ) end [2025-02-12 11:05:26] Production.INFO: ProcessCDR(1,14458650,1,1,2) [2025-02-12 11:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458650', 'tblTempUsageDetail_20' ) start [2025-02-12 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458650', 'tblTempUsageDetail_20' ) end [2025-02-12 11:05:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:05:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:05:32] Production.INFO: ==29021== Releasing lock... [2025-02-12 11:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:05:32] Production.INFO: 57 MB #Memory Used# [2025-02-12 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:06:05 [end_date_ymd] => 2025-02-12 11:06:05 [RateCDR] => 1 ) [2025-02-12 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:06:05' and `end` < '2025-02-12 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:06:21] Production.INFO: count ==3817 [2025-02-12 11:06:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:06:05 - End Time 2025-02-12 11:06:05 [2025-02-12 11:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458655', 'tblTempUsageDetail_20' ) start [2025-02-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458655', 'tblTempUsageDetail_20' ) end [2025-02-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458655', 'tblTempVendorCDR_20' ) start [2025-02-12 11:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458655', 'tblTempVendorCDR_20' ) end [2025-02-12 11:06:23] Production.INFO: ProcessCDR(1,14458655,1,1,2) [2025-02-12 11:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458655', 'tblTempUsageDetail_20' ) start [2025-02-12 11:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458655', 'tblTempUsageDetail_20' ) end [2025-02-12 11:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:06:28] Production.INFO: ==29104== Releasing lock... [2025-02-12 11:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:06:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-12 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:07:05 [end_date_ymd] => 2025-02-12 11:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:07:05' and `end` < '2025-02-12 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-12 11:07:20] Production.INFO: count ==3819 [2025-02-12 11:07:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:07:05 - End Time 2025-02-12 11:07:05 [2025-02-12 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458660', 'tblTempUsageDetail_20' ) start [2025-02-12 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458660', 'tblTempUsageDetail_20' ) end [2025-02-12 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458660', 'tblTempVendorCDR_20' ) start [2025-02-12 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458660', 'tblTempVendorCDR_20' ) end [2025-02-12 11:07:22] Production.INFO: ProcessCDR(1,14458660,1,1,2) [2025-02-12 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458660', 'tblTempUsageDetail_20' ) start [2025-02-12 11:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458660', 'tblTempUsageDetail_20' ) end [2025-02-12 11:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:07:28] Production.INFO: ==29189== Releasing lock... [2025-02-12 11:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:07:28] Production.INFO: 56.75 MB #Memory Used# [2025-02-12 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:08:05 [end_date_ymd] => 2025-02-12 11:08:05 [RateCDR] => 1 ) [2025-02-12 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:08:05' and `end` < '2025-02-12 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:08:24] Production.INFO: count ==3832 [2025-02-12 11:08:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:08:05 - End Time 2025-02-12 11:08:05 [2025-02-12 11:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458665', 'tblTempUsageDetail_20' ) start [2025-02-12 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458665', 'tblTempUsageDetail_20' ) end [2025-02-12 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458665', 'tblTempVendorCDR_20' ) start [2025-02-12 11:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458665', 'tblTempVendorCDR_20' ) end [2025-02-12 11:08:26] Production.INFO: ProcessCDR(1,14458665,1,1,2) [2025-02-12 11:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458665', 'tblTempUsageDetail_20' ) start [2025-02-12 11:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458665', 'tblTempUsageDetail_20' ) end [2025-02-12 11:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:08:31] Production.INFO: ==29359== Releasing lock... [2025-02-12 11:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:08:31] Production.INFO: 56.5 MB #Memory Used# [2025-02-12 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:09:05 [end_date_ymd] => 2025-02-12 11:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:09:05' and `end` < '2025-02-12 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-12 11:09:22] Production.INFO: count ==3864 [2025-02-12 11:09:24] Production.ERROR: pbx CDR StartTime 2025-02-12 08:09:05 - End Time 2025-02-12 11:09:05 [2025-02-12 11:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458670', 'tblTempUsageDetail_20' ) start [2025-02-12 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458670', 'tblTempUsageDetail_20' ) end [2025-02-12 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458670', 'tblTempVendorCDR_20' ) start [2025-02-12 11:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458670', 'tblTempVendorCDR_20' ) end [2025-02-12 11:09:24] Production.INFO: ProcessCDR(1,14458670,1,1,2) [2025-02-12 11:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458670', 'tblTempUsageDetail_20' ) start [2025-02-12 11:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458670', 'tblTempUsageDetail_20' ) end [2025-02-12 11:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:09:30] Production.INFO: ==29446== Releasing lock... [2025-02-12 11:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:09:30] Production.INFO: 56.75 MB #Memory Used# [2025-02-12 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:10:06 [end_date_ymd] => 2025-02-12 11:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 08:10:06' and `end` < '2025-02-12 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-12 11:10:24] Production.INFO: count ==3883 [2025-02-12 11:10:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:10:06 - End Time 2025-02-12 11:10:06 [2025-02-12 11:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458676', 'tblTempUsageDetail_20' ) start [2025-02-12 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458676', 'tblTempUsageDetail_20' ) end [2025-02-12 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458676', 'tblTempVendorCDR_20' ) start [2025-02-12 11:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458676', 'tblTempVendorCDR_20' ) end [2025-02-12 11:10:26] Production.INFO: ProcessCDR(1,14458676,1,1,2) [2025-02-12 11:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458676', 'tblTempUsageDetail_20' ) start [2025-02-12 11:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458676', 'tblTempUsageDetail_20' ) end [2025-02-12 11:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:10:32] Production.INFO: ==29531== Releasing lock... [2025-02-12 11:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:10:32] Production.INFO: 57 MB #Memory Used# [2025-02-12 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:11:05 [end_date_ymd] => 2025-02-12 11:11:05 [RateCDR] => 1 ) [2025-02-12 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:11:05' and `end` < '2025-02-12 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:11:23] Production.INFO: count ==3963 [2025-02-12 11:11:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:11:05 - End Time 2025-02-12 11:11:05 [2025-02-12 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458681', 'tblTempUsageDetail_20' ) start [2025-02-12 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458681', 'tblTempUsageDetail_20' ) end [2025-02-12 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458681', 'tblTempVendorCDR_20' ) start [2025-02-12 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458681', 'tblTempVendorCDR_20' ) end [2025-02-12 11:11:25] Production.INFO: ProcessCDR(1,14458681,1,1,2) [2025-02-12 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458681', 'tblTempUsageDetail_20' ) start [2025-02-12 11:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458681', 'tblTempUsageDetail_20' ) end [2025-02-12 11:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:11:31] Production.INFO: ==29620== Releasing lock... [2025-02-12 11:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:11:31] Production.INFO: 57.5 MB #Memory Used# [2025-02-12 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:12:06 [end_date_ymd] => 2025-02-12 11:12:06 [RateCDR] => 1 ) [2025-02-12 11: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-12 08:12:06' and `end` < '2025-02-12 11: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-12 11:12:24] Production.INFO: count ==3962 [2025-02-12 11:12:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:12:06 - End Time 2025-02-12 11:12:06 [2025-02-12 11:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458686', 'tblTempUsageDetail_20' ) start [2025-02-12 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458686', 'tblTempUsageDetail_20' ) end [2025-02-12 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458686', 'tblTempVendorCDR_20' ) start [2025-02-12 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458686', 'tblTempVendorCDR_20' ) end [2025-02-12 11:12:26] Production.INFO: ProcessCDR(1,14458686,1,1,2) [2025-02-12 11:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458686', 'tblTempUsageDetail_20' ) start [2025-02-12 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458686', 'tblTempUsageDetail_20' ) end [2025-02-12 11:12:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:12:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:12:31] Production.INFO: ==29815== Releasing lock... [2025-02-12 11:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:12:31] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:13:05 [end_date_ymd] => 2025-02-12 11:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:13:05' and `end` < '2025-02-12 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-12 11:13:19] Production.INFO: count ==3961 [2025-02-12 11:13:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:13:05 - End Time 2025-02-12 11:13:05 [2025-02-12 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458691', 'tblTempUsageDetail_20' ) start [2025-02-12 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458691', 'tblTempUsageDetail_20' ) end [2025-02-12 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458691', 'tblTempVendorCDR_20' ) start [2025-02-12 11:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458691', 'tblTempVendorCDR_20' ) end [2025-02-12 11:13:22] Production.INFO: ProcessCDR(1,14458691,1,1,2) [2025-02-12 11:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458691', 'tblTempUsageDetail_20' ) start [2025-02-12 11:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458691', 'tblTempUsageDetail_20' ) end [2025-02-12 11:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:13:27] Production.INFO: ==29897== Releasing lock... [2025-02-12 11:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:13:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:14:05 [end_date_ymd] => 2025-02-12 11:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:14:05' and `end` < '2025-02-12 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-12 11:14:20] Production.INFO: count ==3962 [2025-02-12 11:14:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:14:05 - End Time 2025-02-12 11:14:05 [2025-02-12 11:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458696', 'tblTempUsageDetail_20' ) start [2025-02-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458696', 'tblTempUsageDetail_20' ) end [2025-02-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458696', 'tblTempVendorCDR_20' ) start [2025-02-12 11:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458696', 'tblTempVendorCDR_20' ) end [2025-02-12 11:14:22] Production.INFO: ProcessCDR(1,14458696,1,1,2) [2025-02-12 11:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458696', 'tblTempUsageDetail_20' ) start [2025-02-12 11:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458696', 'tblTempUsageDetail_20' ) end [2025-02-12 11:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:14:28] Production.INFO: ==29978== Releasing lock... [2025-02-12 11:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:14:28] Production.INFO: 57.5 MB #Memory Used# [2025-02-12 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:15:05 [end_date_ymd] => 2025-02-12 11:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:15:05' and `end` < '2025-02-12 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-12 11:15:19] Production.INFO: count ==3971 [2025-02-12 11:15:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:15:05 - End Time 2025-02-12 11:15:05 [2025-02-12 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458701', 'tblTempUsageDetail_20' ) start [2025-02-12 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458701', 'tblTempUsageDetail_20' ) end [2025-02-12 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458701', 'tblTempVendorCDR_20' ) start [2025-02-12 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458701', 'tblTempVendorCDR_20' ) end [2025-02-12 11:15:21] Production.INFO: ProcessCDR(1,14458701,1,1,2) [2025-02-12 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458701', 'tblTempUsageDetail_20' ) start [2025-02-12 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458701', 'tblTempUsageDetail_20' ) end [2025-02-12 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:15:26] Production.INFO: ==30129== Releasing lock... [2025-02-12 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:15:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:16:06 [end_date_ymd] => 2025-02-12 11:16:06 [RateCDR] => 1 ) [2025-02-12 11:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:16:06' and `end` < '2025-02-12 11:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:16:26] Production.INFO: count ==3979 [2025-02-12 11:16:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:16:06 - End Time 2025-02-12 11:16:06 [2025-02-12 11:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458706', 'tblTempUsageDetail_20' ) start [2025-02-12 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458706', 'tblTempUsageDetail_20' ) end [2025-02-12 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458706', 'tblTempVendorCDR_20' ) start [2025-02-12 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458706', 'tblTempVendorCDR_20' ) end [2025-02-12 11:16:28] Production.INFO: ProcessCDR(1,14458706,1,1,2) [2025-02-12 11:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458706', 'tblTempUsageDetail_20' ) start [2025-02-12 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458706', 'tblTempUsageDetail_20' ) end [2025-02-12 11:16:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:16:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:16:33] Production.INFO: ==30209== Releasing lock... [2025-02-12 11:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:16:33] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:17:05 [end_date_ymd] => 2025-02-12 11:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:17:05' and `end` < '2025-02-12 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-12 11:17:24] Production.INFO: count ==4002 [2025-02-12 11:17:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:17:05 - End Time 2025-02-12 11:17:05 [2025-02-12 11:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458711', 'tblTempUsageDetail_20' ) start [2025-02-12 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458711', 'tblTempUsageDetail_20' ) end [2025-02-12 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458711', 'tblTempVendorCDR_20' ) start [2025-02-12 11:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458711', 'tblTempVendorCDR_20' ) end [2025-02-12 11:17:26] Production.INFO: ProcessCDR(1,14458711,1,1,2) [2025-02-12 11:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458711', 'tblTempUsageDetail_20' ) start [2025-02-12 11:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458711', 'tblTempUsageDetail_20' ) end [2025-02-12 11:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:17:32] Production.INFO: ==30290== Releasing lock... [2025-02-12 11:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:17:32] Production.INFO: 58 MB #Memory Used# [2025-02-12 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:18:06 [end_date_ymd] => 2025-02-12 11:18:06 [RateCDR] => 1 ) [2025-02-12 11:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:18:06' and `end` < '2025-02-12 11:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:18:20] Production.INFO: count ==3998 [2025-02-12 11:18:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:18:06 - End Time 2025-02-12 11:18:06 [2025-02-12 11:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458716', 'tblTempUsageDetail_20' ) start [2025-02-12 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458716', 'tblTempUsageDetail_20' ) end [2025-02-12 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458716', 'tblTempVendorCDR_20' ) start [2025-02-12 11:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458716', 'tblTempVendorCDR_20' ) end [2025-02-12 11:18:22] Production.INFO: ProcessCDR(1,14458716,1,1,2) [2025-02-12 11:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458716', 'tblTempUsageDetail_20' ) start [2025-02-12 11:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458716', 'tblTempUsageDetail_20' ) end [2025-02-12 11:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:18:27] Production.INFO: ==30365== Releasing lock... [2025-02-12 11:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:18:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:19:05 [end_date_ymd] => 2025-02-12 11:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:19:05' and `end` < '2025-02-12 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-12 11:19:19] Production.INFO: count ==4005 [2025-02-12 11:19:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:19:05 - End Time 2025-02-12 11:19:05 [2025-02-12 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458721', 'tblTempUsageDetail_20' ) start [2025-02-12 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458721', 'tblTempUsageDetail_20' ) end [2025-02-12 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458721', 'tblTempVendorCDR_20' ) start [2025-02-12 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458721', 'tblTempVendorCDR_20' ) end [2025-02-12 11:19:21] Production.INFO: ProcessCDR(1,14458721,1,1,2) [2025-02-12 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458721', 'tblTempUsageDetail_20' ) start [2025-02-12 11:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458721', 'tblTempUsageDetail_20' ) end [2025-02-12 11:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:19:27] Production.INFO: ==30443== Releasing lock... [2025-02-12 11:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:19:27] Production.INFO: 58 MB #Memory Used# [2025-02-12 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:20:06 [end_date_ymd] => 2025-02-12 11:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 08:20:06' and `end` < '2025-02-12 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-12 11:20:23] Production.INFO: count ==4012 [2025-02-12 11:20:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:20:06 - End Time 2025-02-12 11:20:06 [2025-02-12 11:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458726', 'tblTempUsageDetail_20' ) start [2025-02-12 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458726', 'tblTempUsageDetail_20' ) end [2025-02-12 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458726', 'tblTempVendorCDR_20' ) start [2025-02-12 11:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458726', 'tblTempVendorCDR_20' ) end [2025-02-12 11:20:25] Production.INFO: ProcessCDR(1,14458726,1,1,2) [2025-02-12 11:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458726', 'tblTempUsageDetail_20' ) start [2025-02-12 11:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458726', 'tblTempUsageDetail_20' ) end [2025-02-12 11:20:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:20:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:20:30] Production.INFO: ==30524== Releasing lock... [2025-02-12 11:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:20:30] Production.INFO: 58 MB #Memory Used# [2025-02-12 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:21:05 [end_date_ymd] => 2025-02-12 11:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:21:05' and `end` < '2025-02-12 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-12 11:21:19] Production.INFO: count ==4144 [2025-02-12 11:21:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:21:05 - End Time 2025-02-12 11:21:05 [2025-02-12 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458732', 'tblTempUsageDetail_20' ) start [2025-02-12 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458732', 'tblTempUsageDetail_20' ) end [2025-02-12 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458732', 'tblTempVendorCDR_20' ) start [2025-02-12 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458732', 'tblTempVendorCDR_20' ) end [2025-02-12 11:21:21] Production.INFO: ProcessCDR(1,14458732,1,1,2) [2025-02-12 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458732', 'tblTempUsageDetail_20' ) start [2025-02-12 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458732', 'tblTempUsageDetail_20' ) end [2025-02-12 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:21:26] Production.INFO: ==30604== Releasing lock... [2025-02-12 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:21:26] Production.INFO: 59 MB #Memory Used# [2025-02-12 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:22:05 [end_date_ymd] => 2025-02-12 11:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:22:05' and `end` < '2025-02-12 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-12 11:22:19] Production.INFO: count ==4163 [2025-02-12 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:22:05 - End Time 2025-02-12 11:22:05 [2025-02-12 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458737', 'tblTempUsageDetail_20' ) start [2025-02-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458737', 'tblTempUsageDetail_20' ) end [2025-02-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458737', 'tblTempVendorCDR_20' ) start [2025-02-12 11:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458737', 'tblTempVendorCDR_20' ) end [2025-02-12 11:22:22] Production.INFO: ProcessCDR(1,14458737,1,1,2) [2025-02-12 11:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458737', 'tblTempUsageDetail_20' ) start [2025-02-12 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458737', 'tblTempUsageDetail_20' ) end [2025-02-12 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:22:27] Production.INFO: ==30680== Releasing lock... [2025-02-12 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:22:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-12 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:23:05 [end_date_ymd] => 2025-02-12 11:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:23:05' and `end` < '2025-02-12 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-12 11:23:20] Production.INFO: count ==4188 [2025-02-12 11:23:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:23:05 - End Time 2025-02-12 11:23:05 [2025-02-12 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458742', 'tblTempUsageDetail_20' ) start [2025-02-12 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458742', 'tblTempUsageDetail_20' ) end [2025-02-12 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458742', 'tblTempVendorCDR_20' ) start [2025-02-12 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458742', 'tblTempVendorCDR_20' ) end [2025-02-12 11:23:22] Production.INFO: ProcessCDR(1,14458742,1,1,2) [2025-02-12 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458742', 'tblTempUsageDetail_20' ) start [2025-02-12 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458742', 'tblTempUsageDetail_20' ) end [2025-02-12 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:23:27] Production.INFO: ==30759== Releasing lock... [2025-02-12 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:23:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-12 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:24:06 [end_date_ymd] => 2025-02-12 11:24:06 [RateCDR] => 1 ) [2025-02-12 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:24:06' and `end` < '2025-02-12 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:24:26] Production.INFO: count ==4237 [2025-02-12 11:24:28] Production.ERROR: pbx CDR StartTime 2025-02-12 08:24:06 - End Time 2025-02-12 11:24:06 [2025-02-12 11:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458747', 'tblTempUsageDetail_20' ) start [2025-02-12 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458747', 'tblTempUsageDetail_20' ) end [2025-02-12 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458747', 'tblTempVendorCDR_20' ) start [2025-02-12 11:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458747', 'tblTempVendorCDR_20' ) end [2025-02-12 11:24:28] Production.INFO: ProcessCDR(1,14458747,1,1,2) [2025-02-12 11:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458747', 'tblTempUsageDetail_20' ) start [2025-02-12 11:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458747', 'tblTempUsageDetail_20' ) end [2025-02-12 11:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:24:33] Production.INFO: ==30834== Releasing lock... [2025-02-12 11:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:24:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:25:05 [end_date_ymd] => 2025-02-12 11:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:25:05' and `end` < '2025-02-12 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-12 11:25:24] Production.INFO: count ==4250 [2025-02-12 11:25:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:25:05 - End Time 2025-02-12 11:25:05 [2025-02-12 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458752', 'tblTempUsageDetail_20' ) start [2025-02-12 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458752', 'tblTempUsageDetail_20' ) end [2025-02-12 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458752', 'tblTempVendorCDR_20' ) start [2025-02-12 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458752', 'tblTempVendorCDR_20' ) end [2025-02-12 11:25:26] Production.INFO: ProcessCDR(1,14458752,1,1,2) [2025-02-12 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458752', 'tblTempUsageDetail_20' ) start [2025-02-12 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458752', 'tblTempUsageDetail_20' ) end [2025-02-12 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:25:31] Production.INFO: ==30912== Releasing lock... [2025-02-12 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:25:31] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:26:05 [end_date_ymd] => 2025-02-12 11:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:26:05' and `end` < '2025-02-12 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-12 11:26:19] Production.INFO: count ==4251 [2025-02-12 11:26:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:26:05 - End Time 2025-02-12 11:26:05 [2025-02-12 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458757', 'tblTempUsageDetail_20' ) start [2025-02-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458757', 'tblTempUsageDetail_20' ) end [2025-02-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458757', 'tblTempVendorCDR_20' ) start [2025-02-12 11:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458757', 'tblTempVendorCDR_20' ) end [2025-02-12 11:26:22] Production.INFO: ProcessCDR(1,14458757,1,1,2) [2025-02-12 11:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458757', 'tblTempUsageDetail_20' ) start [2025-02-12 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458757', 'tblTempUsageDetail_20' ) end [2025-02-12 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:26:27] Production.INFO: ==30987== Releasing lock... [2025-02-12 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:26:27] Production.INFO: 60 MB #Memory Used# [2025-02-12 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:27:05 [end_date_ymd] => 2025-02-12 11:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:27:05' and `end` < '2025-02-12 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-12 11:27:19] Production.INFO: count ==4244 [2025-02-12 11:27:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:27:05 - End Time 2025-02-12 11:27:05 [2025-02-12 11:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458762', 'tblTempUsageDetail_20' ) start [2025-02-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458762', 'tblTempUsageDetail_20' ) end [2025-02-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458762', 'tblTempVendorCDR_20' ) start [2025-02-12 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458762', 'tblTempVendorCDR_20' ) end [2025-02-12 11:27:21] Production.INFO: ProcessCDR(1,14458762,1,1,2) [2025-02-12 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458762', 'tblTempUsageDetail_20' ) start [2025-02-12 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458762', 'tblTempUsageDetail_20' ) end [2025-02-12 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:27:26] Production.INFO: ==31105== Releasing lock... [2025-02-12 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:27:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:28:05 [end_date_ymd] => 2025-02-12 11:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:28:05' and `end` < '2025-02-12 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:28:25] Production.INFO: count ==4250 [2025-02-12 11:28:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:28:05 - End Time 2025-02-12 11:28:05 [2025-02-12 11:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458767', 'tblTempUsageDetail_20' ) start [2025-02-12 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458767', 'tblTempUsageDetail_20' ) end [2025-02-12 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458767', 'tblTempVendorCDR_20' ) start [2025-02-12 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458767', 'tblTempVendorCDR_20' ) end [2025-02-12 11:28:27] Production.INFO: ProcessCDR(1,14458767,1,1,2) [2025-02-12 11:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458767', 'tblTempUsageDetail_20' ) start [2025-02-12 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458767', 'tblTempUsageDetail_20' ) end [2025-02-12 11:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:28:33] Production.INFO: ==31184== Releasing lock... [2025-02-12 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:28:33] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:29:05 [end_date_ymd] => 2025-02-12 11:29:05 [RateCDR] => 1 ) [2025-02-12 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:29:05' and `end` < '2025-02-12 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-12 11:29:27] Production.INFO: count ==4269 [2025-02-12 11:29:30] Production.ERROR: pbx CDR StartTime 2025-02-12 08:29:05 - End Time 2025-02-12 11:29:05 [2025-02-12 11:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458772', 'tblTempUsageDetail_20' ) start [2025-02-12 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458772', 'tblTempUsageDetail_20' ) end [2025-02-12 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458772', 'tblTempVendorCDR_20' ) start [2025-02-12 11:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458772', 'tblTempVendorCDR_20' ) end [2025-02-12 11:29:30] Production.INFO: ProcessCDR(1,14458772,1,1,2) [2025-02-12 11:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458772', 'tblTempUsageDetail_20' ) start [2025-02-12 11:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458772', 'tblTempUsageDetail_20' ) end [2025-02-12 11:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:29:35] Production.INFO: ==31269== Releasing lock... [2025-02-12 11:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:29:35] Production.INFO: 60 MB #Memory Used# [2025-02-12 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:30:06 [end_date_ymd] => 2025-02-12 11:30:06 [RateCDR] => 1 ) [2025-02-12 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:30:06' and `end` < '2025-02-12 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:30:28] Production.INFO: count ==4277 [2025-02-12 11:30:30] Production.ERROR: pbx CDR StartTime 2025-02-12 08:30:06 - End Time 2025-02-12 11:30:06 [2025-02-12 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458778', 'tblTempUsageDetail_20' ) start [2025-02-12 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458778', 'tblTempUsageDetail_20' ) end [2025-02-12 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458778', 'tblTempVendorCDR_20' ) start [2025-02-12 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458778', 'tblTempVendorCDR_20' ) end [2025-02-12 11:30:30] Production.INFO: ProcessCDR(1,14458778,1,1,2) [2025-02-12 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458778', 'tblTempUsageDetail_20' ) start [2025-02-12 11:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458778', 'tblTempUsageDetail_20' ) end [2025-02-12 11:30:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:30:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:30:36] Production.INFO: ==31354== Releasing lock... [2025-02-12 11:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:30:36] Production.INFO: 60 MB #Memory Used# [2025-02-12 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:31:05 [end_date_ymd] => 2025-02-12 11:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:31:05' and `end` < '2025-02-12 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-12 11:31:25] Production.INFO: count ==4383 [2025-02-12 11:31:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:31:05 - End Time 2025-02-12 11:31:05 [2025-02-12 11:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458783', 'tblTempUsageDetail_20' ) start [2025-02-12 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458783', 'tblTempUsageDetail_20' ) end [2025-02-12 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458783', 'tblTempVendorCDR_20' ) start [2025-02-12 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458783', 'tblTempVendorCDR_20' ) end [2025-02-12 11:31:27] Production.INFO: ProcessCDR(1,14458783,1,1,2) [2025-02-12 11:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458783', 'tblTempUsageDetail_20' ) start [2025-02-12 11:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458783', 'tblTempUsageDetail_20' ) end [2025-02-12 11:31:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:31:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:31:32] Production.INFO: ==31437== Releasing lock... [2025-02-12 11:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:31:32] Production.INFO: 60.75 MB #Memory Used# [2025-02-12 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:32:05 [end_date_ymd] => 2025-02-12 11:32:05 [RateCDR] => 1 ) [2025-02-12 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:32:05' and `end` < '2025-02-12 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:32:25] Production.INFO: count ==4415 [2025-02-12 11:32:28] Production.ERROR: pbx CDR StartTime 2025-02-12 08:32:05 - End Time 2025-02-12 11:32:05 [2025-02-12 11:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458788', 'tblTempUsageDetail_20' ) start [2025-02-12 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458788', 'tblTempUsageDetail_20' ) end [2025-02-12 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458788', 'tblTempVendorCDR_20' ) start [2025-02-12 11:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458788', 'tblTempVendorCDR_20' ) end [2025-02-12 11:32:28] Production.INFO: ProcessCDR(1,14458788,1,1,2) [2025-02-12 11:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458788', 'tblTempUsageDetail_20' ) start [2025-02-12 11:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458788', 'tblTempUsageDetail_20' ) end [2025-02-12 11:32:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:32:34] Production.INFO: ==31547== Releasing lock... [2025-02-12 11:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:32:34] Production.INFO: 61 MB #Memory Used# [2025-02-12 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:33:05 [end_date_ymd] => 2025-02-12 11:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:33:05' and `end` < '2025-02-12 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-12 11:33:23] Production.INFO: count ==4427 [2025-02-12 11:33:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:33:05 - End Time 2025-02-12 11:33:05 [2025-02-12 11:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458793', 'tblTempUsageDetail_20' ) start [2025-02-12 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458793', 'tblTempUsageDetail_20' ) end [2025-02-12 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458793', 'tblTempVendorCDR_20' ) start [2025-02-12 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458793', 'tblTempVendorCDR_20' ) end [2025-02-12 11:33:25] Production.INFO: ProcessCDR(1,14458793,1,1,2) [2025-02-12 11:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458793', 'tblTempUsageDetail_20' ) start [2025-02-12 11:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458793', 'tblTempUsageDetail_20' ) end [2025-02-12 11:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:33:31] Production.INFO: ==31653== Releasing lock... [2025-02-12 11:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:33:31] Production.INFO: 61 MB #Memory Used# [2025-02-12 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:34:06 [end_date_ymd] => 2025-02-12 11:34:06 [RateCDR] => 1 ) [2025-02-12 11: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-12 08:34:06' and `end` < '2025-02-12 11: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-12 11:34:29] Production.INFO: count ==4449 [2025-02-12 11:34:31] Production.ERROR: pbx CDR StartTime 2025-02-12 08:34:06 - End Time 2025-02-12 11:34:06 [2025-02-12 11:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458798', 'tblTempUsageDetail_20' ) start [2025-02-12 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458798', 'tblTempUsageDetail_20' ) end [2025-02-12 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458798', 'tblTempVendorCDR_20' ) start [2025-02-12 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458798', 'tblTempVendorCDR_20' ) end [2025-02-12 11:34:31] Production.INFO: ProcessCDR(1,14458798,1,1,2) [2025-02-12 11:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:34:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:34:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458798', 'tblTempUsageDetail_20' ) start [2025-02-12 11:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458798', 'tblTempUsageDetail_20' ) end [2025-02-12 11:34:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:34:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:34:37] Production.INFO: ==31764== Releasing lock... [2025-02-12 11:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:34:37] Production.INFO: 61.25 MB #Memory Used# [2025-02-12 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:35:05 [end_date_ymd] => 2025-02-12 11:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:35:05' and `end` < '2025-02-12 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-12 11:35:27] Production.INFO: count ==4472 [2025-02-12 11:35:30] Production.ERROR: pbx CDR StartTime 2025-02-12 08:35:05 - End Time 2025-02-12 11:35:05 [2025-02-12 11:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458803', 'tblTempUsageDetail_20' ) start [2025-02-12 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458803', 'tblTempUsageDetail_20' ) end [2025-02-12 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458803', 'tblTempVendorCDR_20' ) start [2025-02-12 11:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458803', 'tblTempVendorCDR_20' ) end [2025-02-12 11:35:30] Production.INFO: ProcessCDR(1,14458803,1,1,2) [2025-02-12 11:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458803', 'tblTempUsageDetail_20' ) start [2025-02-12 11:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458803', 'tblTempUsageDetail_20' ) end [2025-02-12 11:35:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:35:36] Production.INFO: ==31872== Releasing lock... [2025-02-12 11:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:35:36] Production.INFO: 61.5 MB #Memory Used# [2025-02-12 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:36:06 [end_date_ymd] => 2025-02-12 11:36:06 [RateCDR] => 1 ) [2025-02-12 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:36:06' and `end` < '2025-02-12 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:36:23] Production.INFO: count ==4499 [2025-02-12 11:36:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:36:06 - End Time 2025-02-12 11:36:06 [2025-02-12 11:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458808', 'tblTempUsageDetail_20' ) start [2025-02-12 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458808', 'tblTempUsageDetail_20' ) end [2025-02-12 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458808', 'tblTempVendorCDR_20' ) start [2025-02-12 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458808', 'tblTempVendorCDR_20' ) end [2025-02-12 11:36:26] Production.INFO: ProcessCDR(1,14458808,1,1,2) [2025-02-12 11:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458808', 'tblTempUsageDetail_20' ) start [2025-02-12 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458808', 'tblTempUsageDetail_20' ) end [2025-02-12 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:36:31] Production.INFO: ==31977== Releasing lock... [2025-02-12 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:36:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-12 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:37:05 [end_date_ymd] => 2025-02-12 11:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:37:05' and `end` < '2025-02-12 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-12 11:37:23] Production.INFO: count ==4507 [2025-02-12 11:37:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:37:05 - End Time 2025-02-12 11:37:05 [2025-02-12 11:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458813', 'tblTempUsageDetail_20' ) start [2025-02-12 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458813', 'tblTempUsageDetail_20' ) end [2025-02-12 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458813', 'tblTempVendorCDR_20' ) start [2025-02-12 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458813', 'tblTempVendorCDR_20' ) end [2025-02-12 11:37:26] Production.INFO: ProcessCDR(1,14458813,1,1,2) [2025-02-12 11:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458813', 'tblTempUsageDetail_20' ) start [2025-02-12 11:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458813', 'tblTempUsageDetail_20' ) end [2025-02-12 11:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:37:32] Production.INFO: ==32090== Releasing lock... [2025-02-12 11:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:37:32] Production.INFO: 61.75 MB #Memory Used# [2025-02-12 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:38:06 [end_date_ymd] => 2025-02-12 11:38:06 [RateCDR] => 1 ) [2025-02-12 11:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:38:06' and `end` < '2025-02-12 11:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:38:22] Production.INFO: count ==4517 [2025-02-12 11:38:24] Production.ERROR: pbx CDR StartTime 2025-02-12 08:38:06 - End Time 2025-02-12 11:38:06 [2025-02-12 11:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458818', 'tblTempUsageDetail_20' ) start [2025-02-12 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458818', 'tblTempUsageDetail_20' ) end [2025-02-12 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458818', 'tblTempVendorCDR_20' ) start [2025-02-12 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458818', 'tblTempVendorCDR_20' ) end [2025-02-12 11:38:25] Production.INFO: ProcessCDR(1,14458818,1,1,2) [2025-02-12 11:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458818', 'tblTempUsageDetail_20' ) start [2025-02-12 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458818', 'tblTempUsageDetail_20' ) end [2025-02-12 11:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:38:30] Production.INFO: ==32200== Releasing lock... [2025-02-12 11:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:38:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-12 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:39:05 [end_date_ymd] => 2025-02-12 11:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:39:05' and `end` < '2025-02-12 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-12 11:39:21] Production.INFO: count ==4529 [2025-02-12 11:39:23] Production.ERROR: pbx CDR StartTime 2025-02-12 08:39:05 - End Time 2025-02-12 11:39:05 [2025-02-12 11:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458823', 'tblTempUsageDetail_20' ) start [2025-02-12 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458823', 'tblTempUsageDetail_20' ) end [2025-02-12 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458823', 'tblTempVendorCDR_20' ) start [2025-02-12 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458823', 'tblTempVendorCDR_20' ) end [2025-02-12 11:39:24] Production.INFO: ProcessCDR(1,14458823,1,1,2) [2025-02-12 11:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458823', 'tblTempUsageDetail_20' ) start [2025-02-12 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458823', 'tblTempUsageDetail_20' ) end [2025-02-12 11:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:39:30] Production.INFO: ==32306== Releasing lock... [2025-02-12 11:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:39:30] Production.INFO: 62 MB #Memory Used# [2025-02-12 11:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:40:07 [end_date_ymd] => 2025-02-12 11:40:07 [RateCDR] => 1 ) [2025-02-12 11:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:40:07' and `end` < '2025-02-12 11:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:40:30] Production.INFO: count ==4555 [2025-02-12 11:40:32] Production.ERROR: pbx CDR StartTime 2025-02-12 08:40:07 - End Time 2025-02-12 11:40:07 [2025-02-12 11:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458829', 'tblTempUsageDetail_20' ) start [2025-02-12 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458829', 'tblTempUsageDetail_20' ) end [2025-02-12 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458829', 'tblTempVendorCDR_20' ) start [2025-02-12 11:40:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458829', 'tblTempVendorCDR_20' ) end [2025-02-12 11:40:33] Production.INFO: ProcessCDR(1,14458829,1,1,2) [2025-02-12 11:40:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:40:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:40:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:40:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458829', 'tblTempUsageDetail_20' ) start [2025-02-12 11:40:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458829', 'tblTempUsageDetail_20' ) end [2025-02-12 11:40:38] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:40:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:40:38] Production.INFO: ==32417== Releasing lock... [2025-02-12 11:40:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:40:38] Production.INFO: 62 MB #Memory Used# [2025-02-12 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:41:05 [end_date_ymd] => 2025-02-12 11:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:41:05' and `end` < '2025-02-12 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-12 11:41:23] Production.INFO: count ==4621 [2025-02-12 11:41:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:41:05 - End Time 2025-02-12 11:41:05 [2025-02-12 11:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458834', 'tblTempUsageDetail_20' ) start [2025-02-12 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458834', 'tblTempUsageDetail_20' ) end [2025-02-12 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458834', 'tblTempVendorCDR_20' ) start [2025-02-12 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458834', 'tblTempVendorCDR_20' ) end [2025-02-12 11:41:25] Production.INFO: ProcessCDR(1,14458834,1,1,2) [2025-02-12 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458834', 'tblTempUsageDetail_20' ) start [2025-02-12 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458834', 'tblTempUsageDetail_20' ) end [2025-02-12 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:41:30] Production.INFO: ==32526== Releasing lock... [2025-02-12 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:41:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-12 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:42:05 [end_date_ymd] => 2025-02-12 11:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:42:05' and `end` < '2025-02-12 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-12 11:42:23] Production.INFO: count ==4632 [2025-02-12 11:42:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:42:05 - End Time 2025-02-12 11:42:05 [2025-02-12 11:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458839', 'tblTempUsageDetail_20' ) start [2025-02-12 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458839', 'tblTempUsageDetail_20' ) end [2025-02-12 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458839', 'tblTempVendorCDR_20' ) start [2025-02-12 11:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458839', 'tblTempVendorCDR_20' ) end [2025-02-12 11:42:25] Production.INFO: ProcessCDR(1,14458839,1,1,2) [2025-02-12 11:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458839', 'tblTempUsageDetail_20' ) start [2025-02-12 11:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458839', 'tblTempUsageDetail_20' ) end [2025-02-12 11:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:42:30] Production.INFO: ==32638== Releasing lock... [2025-02-12 11:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:42:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-12 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:43:05 [end_date_ymd] => 2025-02-12 11:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:43:05' and `end` < '2025-02-12 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-12 11:43:19] Production.INFO: count ==4617 [2025-02-12 11:43:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:43:05 - End Time 2025-02-12 11:43:05 [2025-02-12 11:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458844', 'tblTempUsageDetail_20' ) start [2025-02-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458844', 'tblTempUsageDetail_20' ) end [2025-02-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458844', 'tblTempVendorCDR_20' ) start [2025-02-12 11:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458844', 'tblTempVendorCDR_20' ) end [2025-02-12 11:43:22] Production.INFO: ProcessCDR(1,14458844,1,1,2) [2025-02-12 11:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458844', 'tblTempUsageDetail_20' ) start [2025-02-12 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458844', 'tblTempUsageDetail_20' ) end [2025-02-12 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:43:27] Production.INFO: ==329== Releasing lock... [2025-02-12 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:43:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-12 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:44:05 [end_date_ymd] => 2025-02-12 11:44:05 [RateCDR] => 1 ) [2025-02-12 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:44:05' and `end` < '2025-02-12 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:44:19] Production.INFO: count ==4645 [2025-02-12 11:44:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:44:05 - End Time 2025-02-12 11:44:05 [2025-02-12 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458849', 'tblTempUsageDetail_20' ) start [2025-02-12 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458849', 'tblTempUsageDetail_20' ) end [2025-02-12 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458849', 'tblTempVendorCDR_20' ) start [2025-02-12 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458849', 'tblTempVendorCDR_20' ) end [2025-02-12 11:44:21] Production.INFO: ProcessCDR(1,14458849,1,1,2) [2025-02-12 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458849', 'tblTempUsageDetail_20' ) start [2025-02-12 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458849', 'tblTempUsageDetail_20' ) end [2025-02-12 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:44:26] Production.INFO: ==451== Releasing lock... [2025-02-12 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:44:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-12 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:45:05 [end_date_ymd] => 2025-02-12 11:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:45:05' and `end` < '2025-02-12 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-12 11:45:23] Production.INFO: count ==4645 [2025-02-12 11:45:25] Production.ERROR: pbx CDR StartTime 2025-02-12 08:45:05 - End Time 2025-02-12 11:45:05 [2025-02-12 11:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458854', 'tblTempUsageDetail_20' ) start [2025-02-12 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458854', 'tblTempUsageDetail_20' ) end [2025-02-12 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458854', 'tblTempVendorCDR_20' ) start [2025-02-12 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458854', 'tblTempVendorCDR_20' ) end [2025-02-12 11:45:26] Production.INFO: ProcessCDR(1,14458854,1,1,2) [2025-02-12 11:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458854', 'tblTempUsageDetail_20' ) start [2025-02-12 11:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458854', 'tblTempUsageDetail_20' ) end [2025-02-12 11:45:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:45:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:45:30] Production.INFO: ==566== Releasing lock... [2025-02-12 11:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:45:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-12 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:46:05 [end_date_ymd] => 2025-02-12 11:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:46:05' and `end` < '2025-02-12 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-12 11:46:20] Production.INFO: count ==4640 [2025-02-12 11:46:22] Production.ERROR: pbx CDR StartTime 2025-02-12 08:46:05 - End Time 2025-02-12 11:46:05 [2025-02-12 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458859', 'tblTempUsageDetail_20' ) start [2025-02-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458859', 'tblTempUsageDetail_20' ) end [2025-02-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458859', 'tblTempVendorCDR_20' ) start [2025-02-12 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458859', 'tblTempVendorCDR_20' ) end [2025-02-12 11:46:22] Production.INFO: ProcessCDR(1,14458859,1,1,2) [2025-02-12 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458859', 'tblTempUsageDetail_20' ) start [2025-02-12 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458859', 'tblTempUsageDetail_20' ) end [2025-02-12 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:46:27] Production.INFO: ==699== Releasing lock... [2025-02-12 11:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:46:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-12 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:47:05 [end_date_ymd] => 2025-02-12 11:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:47:05' and `end` < '2025-02-12 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-12 11:47:22] Production.INFO: count ==4662 [2025-02-12 11:47:24] Production.ERROR: pbx CDR StartTime 2025-02-12 08:47:05 - End Time 2025-02-12 11:47:05 [2025-02-12 11:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458864', 'tblTempUsageDetail_20' ) start [2025-02-12 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458864', 'tblTempUsageDetail_20' ) end [2025-02-12 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458864', 'tblTempVendorCDR_20' ) start [2025-02-12 11:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458864', 'tblTempVendorCDR_20' ) end [2025-02-12 11:47:24] Production.INFO: ProcessCDR(1,14458864,1,1,2) [2025-02-12 11:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458864', 'tblTempUsageDetail_20' ) start [2025-02-12 11:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458864', 'tblTempUsageDetail_20' ) end [2025-02-12 11:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:47:29] Production.INFO: ==812== Releasing lock... [2025-02-12 11:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:47:29] Production.INFO: 63 MB #Memory Used# [2025-02-12 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:48:05 [end_date_ymd] => 2025-02-12 11:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:48:05' and `end` < '2025-02-12 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-12 11:48:27] Production.INFO: count ==4668 [2025-02-12 11:48:29] Production.ERROR: pbx CDR StartTime 2025-02-12 08:48:05 - End Time 2025-02-12 11:48:05 [2025-02-12 11:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458869', 'tblTempUsageDetail_20' ) start [2025-02-12 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458869', 'tblTempUsageDetail_20' ) end [2025-02-12 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458869', 'tblTempVendorCDR_20' ) start [2025-02-12 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458869', 'tblTempVendorCDR_20' ) end [2025-02-12 11:48:29] Production.INFO: ProcessCDR(1,14458869,1,1,2) [2025-02-12 11:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458869', 'tblTempUsageDetail_20' ) start [2025-02-12 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458869', 'tblTempUsageDetail_20' ) end [2025-02-12 11:48:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:48:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:48:34] Production.INFO: ==923== Releasing lock... [2025-02-12 11:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:48:34] Production.INFO: 63 MB #Memory Used# [2025-02-12 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:49:05 [end_date_ymd] => 2025-02-12 11:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:49:05' and `end` < '2025-02-12 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-12 11:49:26] Production.INFO: count ==4694 [2025-02-12 11:49:28] Production.ERROR: pbx CDR StartTime 2025-02-12 08:49:05 - End Time 2025-02-12 11:49:05 [2025-02-12 11:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458874', 'tblTempUsageDetail_20' ) start [2025-02-12 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458874', 'tblTempUsageDetail_20' ) end [2025-02-12 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458874', 'tblTempVendorCDR_20' ) start [2025-02-12 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458874', 'tblTempVendorCDR_20' ) end [2025-02-12 11:49:28] Production.INFO: ProcessCDR(1,14458874,1,1,2) [2025-02-12 11:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458874', 'tblTempUsageDetail_20' ) start [2025-02-12 11:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458874', 'tblTempUsageDetail_20' ) end [2025-02-12 11:49:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:49:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:49:33] Production.INFO: ==1012== Releasing lock... [2025-02-12 11:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:49:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-12 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:50:06 [end_date_ymd] => 2025-02-12 11:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 08:50:06' and `end` < '2025-02-12 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-12 11:50:27] Production.INFO: count ==4707 [2025-02-12 11:50:29] Production.ERROR: pbx CDR StartTime 2025-02-12 08:50:06 - End Time 2025-02-12 11:50:06 [2025-02-12 11:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458880', 'tblTempUsageDetail_20' ) start [2025-02-12 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458880', 'tblTempUsageDetail_20' ) end [2025-02-12 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458880', 'tblTempVendorCDR_20' ) start [2025-02-12 11:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458880', 'tblTempVendorCDR_20' ) end [2025-02-12 11:50:29] Production.INFO: ProcessCDR(1,14458880,1,1,2) [2025-02-12 11:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458880', 'tblTempUsageDetail_20' ) start [2025-02-12 11:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458880', 'tblTempUsageDetail_20' ) end [2025-02-12 11:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:50:33] Production.INFO: ==1086== Releasing lock... [2025-02-12 11:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:50:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-12 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:51:05 [end_date_ymd] => 2025-02-12 11:51:05 [RateCDR] => 1 ) [2025-02-12 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:51:05' and `end` < '2025-02-12 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:51:24] Production.INFO: count ==4777 [2025-02-12 11:51:26] Production.ERROR: pbx CDR StartTime 2025-02-12 08:51:05 - End Time 2025-02-12 11:51:05 [2025-02-12 11:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458885', 'tblTempUsageDetail_20' ) start [2025-02-12 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458885', 'tblTempUsageDetail_20' ) end [2025-02-12 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458885', 'tblTempVendorCDR_20' ) start [2025-02-12 11:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458885', 'tblTempVendorCDR_20' ) end [2025-02-12 11:51:26] Production.INFO: ProcessCDR(1,14458885,1,1,2) [2025-02-12 11:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458885', 'tblTempUsageDetail_20' ) start [2025-02-12 11:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458885', 'tblTempUsageDetail_20' ) end [2025-02-12 11:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:51:31] Production.INFO: ==1172== Releasing lock... [2025-02-12 11:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:51:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-12 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:52:05 [end_date_ymd] => 2025-02-12 11:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:52:05' and `end` < '2025-02-12 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-12 11:52:22] Production.INFO: count ==4787 [2025-02-12 11:52:24] Production.ERROR: pbx CDR StartTime 2025-02-12 08:52:05 - End Time 2025-02-12 11:52:05 [2025-02-12 11:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458890', 'tblTempUsageDetail_20' ) start [2025-02-12 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458890', 'tblTempUsageDetail_20' ) end [2025-02-12 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458890', 'tblTempVendorCDR_20' ) start [2025-02-12 11:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458890', 'tblTempVendorCDR_20' ) end [2025-02-12 11:52:24] Production.INFO: ProcessCDR(1,14458890,1,1,2) [2025-02-12 11:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458890', 'tblTempUsageDetail_20' ) start [2025-02-12 11:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458890', 'tblTempUsageDetail_20' ) end [2025-02-12 11:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:52:29] Production.INFO: ==1266== Releasing lock... [2025-02-12 11:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:52:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-12 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:53:05 [end_date_ymd] => 2025-02-12 11:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:53:05' and `end` < '2025-02-12 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-12 11:53:19] Production.INFO: count ==4798 [2025-02-12 11:53:21] Production.ERROR: pbx CDR StartTime 2025-02-12 08:53:05 - End Time 2025-02-12 11:53:05 [2025-02-12 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458895', 'tblTempUsageDetail_20' ) start [2025-02-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458895', 'tblTempUsageDetail_20' ) end [2025-02-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458895', 'tblTempVendorCDR_20' ) start [2025-02-12 11:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458895', 'tblTempVendorCDR_20' ) end [2025-02-12 11:53:22] Production.INFO: ProcessCDR(1,14458895,1,1,2) [2025-02-12 11:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458895', 'tblTempUsageDetail_20' ) start [2025-02-12 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458895', 'tblTempUsageDetail_20' ) end [2025-02-12 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:53:27] Production.INFO: ==1347== Releasing lock... [2025-02-12 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:53:27] Production.INFO: 64 MB #Memory Used# [2025-02-12 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:54:05 [end_date_ymd] => 2025-02-12 11:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:54:05' and `end` < '2025-02-12 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-12 11:54:22] Production.INFO: count ==4814 [2025-02-12 11:54:24] Production.ERROR: pbx CDR StartTime 2025-02-12 08:54:05 - End Time 2025-02-12 11:54:05 [2025-02-12 11:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458900', 'tblTempUsageDetail_20' ) start [2025-02-12 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458900', 'tblTempUsageDetail_20' ) end [2025-02-12 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458900', 'tblTempVendorCDR_20' ) start [2025-02-12 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458900', 'tblTempVendorCDR_20' ) end [2025-02-12 11:54:24] Production.INFO: ProcessCDR(1,14458900,1,1,2) [2025-02-12 11:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458900', 'tblTempUsageDetail_20' ) start [2025-02-12 11:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458900', 'tblTempUsageDetail_20' ) end [2025-02-12 11:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:54:30] Production.INFO: ==1421== Releasing lock... [2025-02-12 11:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:54:30] Production.INFO: 64 MB #Memory Used# [2025-02-12 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:55:06 [end_date_ymd] => 2025-02-12 11:55:06 [RateCDR] => 1 ) [2025-02-12 11: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-12 08:55:06' and `end` < '2025-02-12 11: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-12 11:55:34] Production.INFO: count ==4844 [2025-02-12 11:55:36] Production.ERROR: pbx CDR StartTime 2025-02-12 08:55:06 - End Time 2025-02-12 11:55:06 [2025-02-12 11:55:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458905', 'tblTempUsageDetail_20' ) start [2025-02-12 11:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458905', 'tblTempUsageDetail_20' ) end [2025-02-12 11:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458905', 'tblTempVendorCDR_20' ) start [2025-02-12 11:55:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458905', 'tblTempVendorCDR_20' ) end [2025-02-12 11:55:36] Production.INFO: ProcessCDR(1,14458905,1,1,2) [2025-02-12 11:55:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:55:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:55:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:55:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458905', 'tblTempUsageDetail_20' ) start [2025-02-12 11:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458905', 'tblTempUsageDetail_20' ) end [2025-02-12 11:55:42] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:55:42] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:55:42] Production.INFO: ==1499== Releasing lock... [2025-02-12 11:55:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:55:42] Production.INFO: 64.25 MB #Memory Used# [2025-02-12 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:56:05 [end_date_ymd] => 2025-02-12 11:56:05 [RateCDR] => 1 ) [2025-02-12 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:56:05' and `end` < '2025-02-12 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:56:25] Production.INFO: count ==4852 [2025-02-12 11:56:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:56:05 - End Time 2025-02-12 11:56:05 [2025-02-12 11:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458910', 'tblTempUsageDetail_20' ) start [2025-02-12 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458910', 'tblTempUsageDetail_20' ) end [2025-02-12 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458910', 'tblTempVendorCDR_20' ) start [2025-02-12 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458910', 'tblTempVendorCDR_20' ) end [2025-02-12 11:56:27] Production.INFO: ProcessCDR(1,14458910,1,1,2) [2025-02-12 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458910', 'tblTempUsageDetail_20' ) start [2025-02-12 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458910', 'tblTempUsageDetail_20' ) end [2025-02-12 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:56:32] Production.INFO: ==1631== Releasing lock... [2025-02-12 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:56:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-12 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:57:05 [end_date_ymd] => 2025-02-12 11:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:57:05' and `end` < '2025-02-12 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-12 11:57:26] Production.INFO: count ==4855 [2025-02-12 11:57:28] Production.ERROR: pbx CDR StartTime 2025-02-12 08:57:05 - End Time 2025-02-12 11:57:05 [2025-02-12 11:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458915', 'tblTempUsageDetail_20' ) start [2025-02-12 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458915', 'tblTempUsageDetail_20' ) end [2025-02-12 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458915', 'tblTempVendorCDR_20' ) start [2025-02-12 11:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458915', 'tblTempVendorCDR_20' ) end [2025-02-12 11:57:28] Production.INFO: ProcessCDR(1,14458915,1,1,2) [2025-02-12 11:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458915', 'tblTempUsageDetail_20' ) start [2025-02-12 11:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458915', 'tblTempUsageDetail_20' ) end [2025-02-12 11:57:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:57:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:57:33] Production.INFO: ==1707== Releasing lock... [2025-02-12 11:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:57:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-12 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:58:05 [end_date_ymd] => 2025-02-12 11:58:05 [RateCDR] => 1 ) [2025-02-12 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 08:58:05' and `end` < '2025-02-12 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 11:58:25] Production.INFO: count ==4866 [2025-02-12 11:58:27] Production.ERROR: pbx CDR StartTime 2025-02-12 08:58:05 - End Time 2025-02-12 11:58:05 [2025-02-12 11:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458920', 'tblTempUsageDetail_20' ) start [2025-02-12 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458920', 'tblTempUsageDetail_20' ) end [2025-02-12 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458920', 'tblTempVendorCDR_20' ) start [2025-02-12 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458920', 'tblTempVendorCDR_20' ) end [2025-02-12 11:58:27] Production.INFO: ProcessCDR(1,14458920,1,1,2) [2025-02-12 11:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458920', 'tblTempUsageDetail_20' ) start [2025-02-12 11:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458920', 'tblTempUsageDetail_20' ) end [2025-02-12 11:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:58:32] Production.INFO: ==1823== Releasing lock... [2025-02-12 11:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:58:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 08:59:05 [end_date_ymd] => 2025-02-12 11:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 08:59:05' and `end` < '2025-02-12 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-12 11:59:21] Production.INFO: count ==4883 [2025-02-12 11:59:23] Production.ERROR: pbx CDR StartTime 2025-02-12 08:59:05 - End Time 2025-02-12 11:59:05 [2025-02-12 11:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458925', 'tblTempUsageDetail_20' ) start [2025-02-12 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458925', 'tblTempUsageDetail_20' ) end [2025-02-12 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458925', 'tblTempVendorCDR_20' ) start [2025-02-12 11:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458925', 'tblTempVendorCDR_20' ) end [2025-02-12 11:59:23] Production.INFO: ProcessCDR(1,14458925,1,1,2) [2025-02-12 11:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 11:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458925', 'tblTempUsageDetail_20' ) start [2025-02-12 11:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458925', 'tblTempUsageDetail_20' ) end [2025-02-12 11:59:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 11:59:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 11:59:28] Production.INFO: ==1907== Releasing lock... [2025-02-12 11:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 11:59:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:00:06 [end_date_ymd] => 2025-02-12 12:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 09:00:06' and `end` < '2025-02-12 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-12 12:00:22] Production.INFO: count ==4884 [2025-02-12 12:00:24] Production.ERROR: pbx CDR StartTime 2025-02-12 09:00:06 - End Time 2025-02-12 12:00:06 [2025-02-12 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458931', 'tblTempUsageDetail_20' ) start [2025-02-12 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458931', 'tblTempUsageDetail_20' ) end [2025-02-12 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458931', 'tblTempVendorCDR_20' ) start [2025-02-12 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458931', 'tblTempVendorCDR_20' ) end [2025-02-12 12:00:25] Production.INFO: ProcessCDR(1,14458931,1,1,2) [2025-02-12 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458931', 'tblTempUsageDetail_20' ) start [2025-02-12 12:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458931', 'tblTempUsageDetail_20' ) end [2025-02-12 12:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:00:30] Production.INFO: ==1985== Releasing lock... [2025-02-12 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:00:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:01:06 [end_date_ymd] => 2025-02-12 12:01:06 [RateCDR] => 1 ) [2025-02-12 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:01:06' and `end` < '2025-02-12 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:01:23] Production.INFO: count ==4907 [2025-02-12 12:01:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:01:06 - End Time 2025-02-12 12:01:06 [2025-02-12 12:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458936', 'tblTempUsageDetail_20' ) start [2025-02-12 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458936', 'tblTempUsageDetail_20' ) end [2025-02-12 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458936', 'tblTempVendorCDR_20' ) start [2025-02-12 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458936', 'tblTempVendorCDR_20' ) end [2025-02-12 12:01:26] Production.INFO: ProcessCDR(1,14458936,1,1,2) [2025-02-12 12:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458936', 'tblTempUsageDetail_20' ) start [2025-02-12 12:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458936', 'tblTempUsageDetail_20' ) end [2025-02-12 12:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:01:32] Production.INFO: ==2082== Releasing lock... [2025-02-12 12:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:01:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:02:05 [end_date_ymd] => 2025-02-12 12:02:05 [RateCDR] => 1 ) [2025-02-12 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:02:05' and `end` < '2025-02-12 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:02:20] Production.INFO: count ==4889 [2025-02-12 12:02:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:02:05 - End Time 2025-02-12 12:02:05 [2025-02-12 12:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458941', 'tblTempUsageDetail_20' ) start [2025-02-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458941', 'tblTempUsageDetail_20' ) end [2025-02-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458941', 'tblTempVendorCDR_20' ) start [2025-02-12 12:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458941', 'tblTempVendorCDR_20' ) end [2025-02-12 12:02:22] Production.INFO: ProcessCDR(1,14458941,1,1,2) [2025-02-12 12:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458941', 'tblTempUsageDetail_20' ) start [2025-02-12 12:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458941', 'tblTempUsageDetail_20' ) end [2025-02-12 12:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:02:28] Production.INFO: ==2168== Releasing lock... [2025-02-12 12:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:02:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:03:05 [end_date_ymd] => 2025-02-12 12:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:03:05' and `end` < '2025-02-12 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-12 12:03:25] Production.INFO: count ==4884 [2025-02-12 12:03:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:03:05 - End Time 2025-02-12 12:03:05 [2025-02-12 12:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458946', 'tblTempUsageDetail_20' ) start [2025-02-12 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458946', 'tblTempUsageDetail_20' ) end [2025-02-12 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458946', 'tblTempVendorCDR_20' ) start [2025-02-12 12:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458946', 'tblTempVendorCDR_20' ) end [2025-02-12 12:03:28] Production.INFO: ProcessCDR(1,14458946,1,1,2) [2025-02-12 12:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458946', 'tblTempUsageDetail_20' ) start [2025-02-12 12:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458946', 'tblTempUsageDetail_20' ) end [2025-02-12 12:03:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:03:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:03:34] Production.INFO: ==2278== Releasing lock... [2025-02-12 12:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:03:34] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:04:05 [end_date_ymd] => 2025-02-12 12:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:04:05' and `end` < '2025-02-12 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-12 12:04:24] Production.INFO: count ==4896 [2025-02-12 12:04:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:04:05 - End Time 2025-02-12 12:04:05 [2025-02-12 12:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458951', 'tblTempUsageDetail_20' ) start [2025-02-12 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458951', 'tblTempUsageDetail_20' ) end [2025-02-12 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458951', 'tblTempVendorCDR_20' ) start [2025-02-12 12:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458951', 'tblTempVendorCDR_20' ) end [2025-02-12 12:04:26] Production.INFO: ProcessCDR(1,14458951,1,1,2) [2025-02-12 12:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458951', 'tblTempUsageDetail_20' ) start [2025-02-12 12:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458951', 'tblTempUsageDetail_20' ) end [2025-02-12 12:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:04:32] Production.INFO: ==2393== Releasing lock... [2025-02-12 12:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:04:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:05:05 [end_date_ymd] => 2025-02-12 12:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:05:05' and `end` < '2025-02-12 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-12 12:05:26] Production.INFO: count ==4887 [2025-02-12 12:05:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:05:05 - End Time 2025-02-12 12:05:05 [2025-02-12 12:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458956', 'tblTempUsageDetail_20' ) start [2025-02-12 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458956', 'tblTempUsageDetail_20' ) end [2025-02-12 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458956', 'tblTempVendorCDR_20' ) start [2025-02-12 12:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458956', 'tblTempVendorCDR_20' ) end [2025-02-12 12:05:28] Production.INFO: ProcessCDR(1,14458956,1,1,2) [2025-02-12 12:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458956', 'tblTempUsageDetail_20' ) start [2025-02-12 12:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458956', 'tblTempUsageDetail_20' ) end [2025-02-12 12:05:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:05:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:05:34] Production.INFO: ==2503== Releasing lock... [2025-02-12 12:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:05:34] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:06:05 [end_date_ymd] => 2025-02-12 12:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:06:05' and `end` < '2025-02-12 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-12 12:06:23] Production.INFO: count ==4873 [2025-02-12 12:06:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:06:05 - End Time 2025-02-12 12:06:05 [2025-02-12 12:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458961', 'tblTempUsageDetail_20' ) start [2025-02-12 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458961', 'tblTempUsageDetail_20' ) end [2025-02-12 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458961', 'tblTempVendorCDR_20' ) start [2025-02-12 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458961', 'tblTempVendorCDR_20' ) end [2025-02-12 12:06:26] Production.INFO: ProcessCDR(1,14458961,1,1,2) [2025-02-12 12:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458961', 'tblTempUsageDetail_20' ) start [2025-02-12 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458961', 'tblTempUsageDetail_20' ) end [2025-02-12 12:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:06:31] Production.INFO: ==2615== Releasing lock... [2025-02-12 12:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:06:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:07:05 [end_date_ymd] => 2025-02-12 12:07:05 [RateCDR] => 1 ) [2025-02-12 12: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-12 09:07:05' and `end` < '2025-02-12 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-12 12:07:25] Production.INFO: count ==4868 [2025-02-12 12:07:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:07:05 - End Time 2025-02-12 12:07:05 [2025-02-12 12:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458966', 'tblTempUsageDetail_20' ) start [2025-02-12 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458966', 'tblTempUsageDetail_20' ) end [2025-02-12 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458966', 'tblTempVendorCDR_20' ) start [2025-02-12 12:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458966', 'tblTempVendorCDR_20' ) end [2025-02-12 12:07:28] Production.INFO: ProcessCDR(1,14458966,1,1,2) [2025-02-12 12:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458966', 'tblTempUsageDetail_20' ) start [2025-02-12 12:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458966', 'tblTempUsageDetail_20' ) end [2025-02-12 12:07:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:07:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:07:33] Production.INFO: ==2723== Releasing lock... [2025-02-12 12:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:07:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:08:05 [end_date_ymd] => 2025-02-12 12:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:08:05' and `end` < '2025-02-12 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-12 12:08:23] Production.INFO: count ==4865 [2025-02-12 12:08:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:08:05 - End Time 2025-02-12 12:08:05 [2025-02-12 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458971', 'tblTempUsageDetail_20' ) start [2025-02-12 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458971', 'tblTempUsageDetail_20' ) end [2025-02-12 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458971', 'tblTempVendorCDR_20' ) start [2025-02-12 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458971', 'tblTempVendorCDR_20' ) end [2025-02-12 12:08:26] Production.INFO: ProcessCDR(1,14458971,1,1,2) [2025-02-12 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458971', 'tblTempUsageDetail_20' ) start [2025-02-12 12:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458971', 'tblTempUsageDetail_20' ) end [2025-02-12 12:08:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:08:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:08:32] Production.INFO: ==2835== Releasing lock... [2025-02-12 12:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:08:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:09:06 [end_date_ymd] => 2025-02-12 12:09:06 [RateCDR] => 1 ) [2025-02-12 12: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-12 09:09:06' and `end` < '2025-02-12 12: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-12 12:09:27] Production.INFO: count ==4875 [2025-02-12 12:09:29] Production.ERROR: pbx CDR StartTime 2025-02-12 09:09:06 - End Time 2025-02-12 12:09:06 [2025-02-12 12:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458976', 'tblTempUsageDetail_20' ) start [2025-02-12 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458976', 'tblTempUsageDetail_20' ) end [2025-02-12 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458976', 'tblTempVendorCDR_20' ) start [2025-02-12 12:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458976', 'tblTempVendorCDR_20' ) end [2025-02-12 12:09:30] Production.INFO: ProcessCDR(1,14458976,1,1,2) [2025-02-12 12:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458976', 'tblTempUsageDetail_20' ) start [2025-02-12 12:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458976', 'tblTempUsageDetail_20' ) end [2025-02-12 12:09:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:09:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:09:35] Production.INFO: ==2951== Releasing lock... [2025-02-12 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:09:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:10:06 [end_date_ymd] => 2025-02-12 12:10:06 [RateCDR] => 1 ) [2025-02-12 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:10:06' and `end` < '2025-02-12 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:10:30] Production.INFO: count ==4871 [2025-02-12 12:10:32] Production.ERROR: pbx CDR StartTime 2025-02-12 09:10:06 - End Time 2025-02-12 12:10:06 [2025-02-12 12:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458982', 'tblTempUsageDetail_20' ) start [2025-02-12 12:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458982', 'tblTempUsageDetail_20' ) end [2025-02-12 12:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458982', 'tblTempVendorCDR_20' ) start [2025-02-12 12:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458982', 'tblTempVendorCDR_20' ) end [2025-02-12 12:10:32] Production.INFO: ProcessCDR(1,14458982,1,1,2) [2025-02-12 12:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:10:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:10:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458982', 'tblTempUsageDetail_20' ) start [2025-02-12 12:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458982', 'tblTempUsageDetail_20' ) end [2025-02-12 12:10:38] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:10:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:10:38] Production.INFO: ==3065== Releasing lock... [2025-02-12 12:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:10:38] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:11:05 [end_date_ymd] => 2025-02-12 12:11:05 [RateCDR] => 1 ) [2025-02-12 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:11:05' and `end` < '2025-02-12 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:11:23] Production.INFO: count ==4921 [2025-02-12 12:11:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:11:05 - End Time 2025-02-12 12:11:05 [2025-02-12 12:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458987', 'tblTempUsageDetail_20' ) start [2025-02-12 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458987', 'tblTempUsageDetail_20' ) end [2025-02-12 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458987', 'tblTempVendorCDR_20' ) start [2025-02-12 12:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458987', 'tblTempVendorCDR_20' ) end [2025-02-12 12:11:26] Production.INFO: ProcessCDR(1,14458987,1,1,2) [2025-02-12 12:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458987', 'tblTempUsageDetail_20' ) start [2025-02-12 12:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458987', 'tblTempUsageDetail_20' ) end [2025-02-12 12:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:11:31] Production.INFO: ==3178== Releasing lock... [2025-02-12 12:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:11:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:12:05 [end_date_ymd] => 2025-02-12 12:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:12:05' and `end` < '2025-02-12 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-12 12:12:25] Production.INFO: count ==4915 [2025-02-12 12:12:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:12:05 - End Time 2025-02-12 12:12:05 [2025-02-12 12:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458992', 'tblTempUsageDetail_20' ) start [2025-02-12 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458992', 'tblTempUsageDetail_20' ) end [2025-02-12 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458992', 'tblTempVendorCDR_20' ) start [2025-02-12 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458992', 'tblTempVendorCDR_20' ) end [2025-02-12 12:12:27] Production.INFO: ProcessCDR(1,14458992,1,1,2) [2025-02-12 12:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458992', 'tblTempUsageDetail_20' ) start [2025-02-12 12:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458992', 'tblTempUsageDetail_20' ) end [2025-02-12 12:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:12:33] Production.INFO: ==3300== Releasing lock... [2025-02-12 12:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:12:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:13:05 [end_date_ymd] => 2025-02-12 12:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:13:05' and `end` < '2025-02-12 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-12 12:13:26] Production.INFO: count ==4915 [2025-02-12 12:13:29] Production.ERROR: pbx CDR StartTime 2025-02-12 09:13:05 - End Time 2025-02-12 12:13:05 [2025-02-12 12:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458997', 'tblTempUsageDetail_20' ) start [2025-02-12 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14458997', 'tblTempUsageDetail_20' ) end [2025-02-12 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458997', 'tblTempVendorCDR_20' ) start [2025-02-12 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14458997', 'tblTempVendorCDR_20' ) end [2025-02-12 12:13:29] Production.INFO: ProcessCDR(1,14458997,1,1,2) [2025-02-12 12:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14458997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14458997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14458997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14458997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458997', 'tblTempUsageDetail_20' ) start [2025-02-12 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14458997', 'tblTempUsageDetail_20' ) end [2025-02-12 12:13:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:13:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:13:35] Production.INFO: ==3436== Releasing lock... [2025-02-12 12:13:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:13:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:14:05 [end_date_ymd] => 2025-02-12 12:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:14:05' and `end` < '2025-02-12 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-12 12:14:25] Production.INFO: count ==4927 [2025-02-12 12:14:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:14:05 - End Time 2025-02-12 12:14:05 [2025-02-12 12:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459002', 'tblTempUsageDetail_20' ) start [2025-02-12 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459002', 'tblTempUsageDetail_20' ) end [2025-02-12 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459002', 'tblTempVendorCDR_20' ) start [2025-02-12 12:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459002', 'tblTempVendorCDR_20' ) end [2025-02-12 12:14:27] Production.INFO: ProcessCDR(1,14459002,1,1,2) [2025-02-12 12:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459002', 'tblTempUsageDetail_20' ) start [2025-02-12 12:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459002', 'tblTempUsageDetail_20' ) end [2025-02-12 12:14:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:14:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:14:33] Production.INFO: ==3599== Releasing lock... [2025-02-12 12:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:14:33] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:15:06 [end_date_ymd] => 2025-02-12 12:15:06 [RateCDR] => 1 ) [2025-02-12 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:15:06' and `end` < '2025-02-12 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:15:26] Production.INFO: count ==4912 [2025-02-12 12:15:29] Production.ERROR: pbx CDR StartTime 2025-02-12 09:15:06 - End Time 2025-02-12 12:15:06 [2025-02-12 12:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459007', 'tblTempUsageDetail_20' ) start [2025-02-12 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459007', 'tblTempUsageDetail_20' ) end [2025-02-12 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459007', 'tblTempVendorCDR_20' ) start [2025-02-12 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459007', 'tblTempVendorCDR_20' ) end [2025-02-12 12:15:29] Production.INFO: ProcessCDR(1,14459007,1,1,2) [2025-02-12 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459007', 'tblTempUsageDetail_20' ) start [2025-02-12 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459007', 'tblTempUsageDetail_20' ) end [2025-02-12 12:15:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:15:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:15:34] Production.INFO: ==3732== Releasing lock... [2025-02-12 12:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:15:34] Production.INFO: 64.75 MB #Memory Used# [2025-02-12 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:16:05 [end_date_ymd] => 2025-02-12 12:16:05 [RateCDR] => 1 ) [2025-02-12 12: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-12 09:16:05' and `end` < '2025-02-12 12: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-12 12:16:30] Production.INFO: count ==4933 [2025-02-12 12:16:32] Production.ERROR: pbx CDR StartTime 2025-02-12 09:16:05 - End Time 2025-02-12 12:16:05 [2025-02-12 12:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459012', 'tblTempUsageDetail_20' ) start [2025-02-12 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459012', 'tblTempUsageDetail_20' ) end [2025-02-12 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459012', 'tblTempVendorCDR_20' ) start [2025-02-12 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459012', 'tblTempVendorCDR_20' ) end [2025-02-12 12:16:32] Production.INFO: ProcessCDR(1,14459012,1,1,2) [2025-02-12 12:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459012', 'tblTempUsageDetail_20' ) start [2025-02-12 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459012', 'tblTempUsageDetail_20' ) end [2025-02-12 12:16:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:16:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:16:38] Production.INFO: ==3857== Releasing lock... [2025-02-12 12:16:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:16:38] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:17:06 [end_date_ymd] => 2025-02-12 12:17:06 [RateCDR] => 1 ) [2025-02-12 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:17:06' and `end` < '2025-02-12 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:17:26] Production.INFO: count ==4928 [2025-02-12 12:17:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:17:06 - End Time 2025-02-12 12:17:06 [2025-02-12 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459017', 'tblTempUsageDetail_20' ) start [2025-02-12 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459017', 'tblTempUsageDetail_20' ) end [2025-02-12 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459017', 'tblTempVendorCDR_20' ) start [2025-02-12 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459017', 'tblTempVendorCDR_20' ) end [2025-02-12 12:17:28] Production.INFO: ProcessCDR(1,14459017,1,1,2) [2025-02-12 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459017', 'tblTempUsageDetail_20' ) start [2025-02-12 12:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459017', 'tblTempUsageDetail_20' ) end [2025-02-12 12:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:17:34] Production.INFO: ==3952== Releasing lock... [2025-02-12 12:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:17:34] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:18:05 [end_date_ymd] => 2025-02-12 12:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:18:05' and `end` < '2025-02-12 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-12 12:18:22] Production.INFO: count ==4935 [2025-02-12 12:18:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:18:05 - End Time 2025-02-12 12:18:05 [2025-02-12 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459022', 'tblTempUsageDetail_20' ) start [2025-02-12 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459022', 'tblTempUsageDetail_20' ) end [2025-02-12 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459022', 'tblTempVendorCDR_20' ) start [2025-02-12 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459022', 'tblTempVendorCDR_20' ) end [2025-02-12 12:18:25] Production.INFO: ProcessCDR(1,14459022,1,1,2) [2025-02-12 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459022', 'tblTempUsageDetail_20' ) start [2025-02-12 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459022', 'tblTempUsageDetail_20' ) end [2025-02-12 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:18:30] Production.INFO: ==4037== Releasing lock... [2025-02-12 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:18:30] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:19:05 [end_date_ymd] => 2025-02-12 12:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:19:05' and `end` < '2025-02-12 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-12 12:19:25] Production.INFO: count ==4939 [2025-02-12 12:19:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:19:05 - End Time 2025-02-12 12:19:05 [2025-02-12 12:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459027', 'tblTempUsageDetail_20' ) start [2025-02-12 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459027', 'tblTempUsageDetail_20' ) end [2025-02-12 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459027', 'tblTempVendorCDR_20' ) start [2025-02-12 12:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459027', 'tblTempVendorCDR_20' ) end [2025-02-12 12:19:28] Production.INFO: ProcessCDR(1,14459027,1,1,2) [2025-02-12 12:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459027', 'tblTempUsageDetail_20' ) start [2025-02-12 12:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459027', 'tblTempUsageDetail_20' ) end [2025-02-12 12:19:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:19:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:19:33] Production.INFO: ==4117== Releasing lock... [2025-02-12 12:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:19:33] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:20:07 [end_date_ymd] => 2025-02-12 12:20:07 [RateCDR] => 1 ) [2025-02-12 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:20:07' and `end` < '2025-02-12 12:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:20:25] Production.INFO: count ==4936 [2025-02-12 12:20:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:20:07 - End Time 2025-02-12 12:20:07 [2025-02-12 12:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459033', 'tblTempUsageDetail_20' ) start [2025-02-12 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459033', 'tblTempUsageDetail_20' ) end [2025-02-12 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459033', 'tblTempVendorCDR_20' ) start [2025-02-12 12:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459033', 'tblTempVendorCDR_20' ) end [2025-02-12 12:20:27] Production.INFO: ProcessCDR(1,14459033,1,1,2) [2025-02-12 12:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459033', 'tblTempUsageDetail_20' ) start [2025-02-12 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459033', 'tblTempUsageDetail_20' ) end [2025-02-12 12:20:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:20:33] Production.INFO: ==4195== Releasing lock... [2025-02-12 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:20:33] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:21:05 [end_date_ymd] => 2025-02-12 12:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:21:05' and `end` < '2025-02-12 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-12 12:21:23] Production.INFO: count ==4959 [2025-02-12 12:21:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:21:05 - End Time 2025-02-12 12:21:05 [2025-02-12 12:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459038', 'tblTempUsageDetail_20' ) start [2025-02-12 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459038', 'tblTempUsageDetail_20' ) end [2025-02-12 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459038', 'tblTempVendorCDR_20' ) start [2025-02-12 12:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459038', 'tblTempVendorCDR_20' ) end [2025-02-12 12:21:25] Production.INFO: ProcessCDR(1,14459038,1,1,2) [2025-02-12 12:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459038', 'tblTempUsageDetail_20' ) start [2025-02-12 12:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459038', 'tblTempUsageDetail_20' ) end [2025-02-12 12:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:21:30] Production.INFO: ==4273== Releasing lock... [2025-02-12 12:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:21:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:22:05 [end_date_ymd] => 2025-02-12 12:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:22:05' and `end` < '2025-02-12 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-12 12:22:19] Production.INFO: count ==4950 [2025-02-12 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:22:05 - End Time 2025-02-12 12:22:05 [2025-02-12 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459043', 'tblTempUsageDetail_20' ) start [2025-02-12 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459043', 'tblTempUsageDetail_20' ) end [2025-02-12 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459043', 'tblTempVendorCDR_20' ) start [2025-02-12 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459043', 'tblTempVendorCDR_20' ) end [2025-02-12 12:22:22] Production.INFO: ProcessCDR(1,14459043,1,1,2) [2025-02-12 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459043', 'tblTempUsageDetail_20' ) start [2025-02-12 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459043', 'tblTempUsageDetail_20' ) end [2025-02-12 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:22:27] Production.INFO: ==4351== Releasing lock... [2025-02-12 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:22:27] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:23:05 [end_date_ymd] => 2025-02-12 12:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:23:05' and `end` < '2025-02-12 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-12 12:23:25] Production.INFO: count ==4951 [2025-02-12 12:23:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:23:05 - End Time 2025-02-12 12:23:05 [2025-02-12 12:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459048', 'tblTempUsageDetail_20' ) start [2025-02-12 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459048', 'tblTempUsageDetail_20' ) end [2025-02-12 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459048', 'tblTempVendorCDR_20' ) start [2025-02-12 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459048', 'tblTempVendorCDR_20' ) end [2025-02-12 12:23:28] Production.INFO: ProcessCDR(1,14459048,1,1,2) [2025-02-12 12:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459048', 'tblTempUsageDetail_20' ) start [2025-02-12 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459048', 'tblTempUsageDetail_20' ) end [2025-02-12 12:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:23:34] Production.INFO: ==4437== Releasing lock... [2025-02-12 12:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:23:34] Production.INFO: 65 MB #Memory Used# [2025-02-12 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:24:06 [end_date_ymd] => 2025-02-12 12:24:06 [RateCDR] => 1 ) [2025-02-12 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:24:06' and `end` < '2025-02-12 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:24:24] Production.INFO: count ==4992 [2025-02-12 12:24:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:24:06 - End Time 2025-02-12 12:24:06 [2025-02-12 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459053', 'tblTempUsageDetail_20' ) start [2025-02-12 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459053', 'tblTempUsageDetail_20' ) end [2025-02-12 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459053', 'tblTempVendorCDR_20' ) start [2025-02-12 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459053', 'tblTempVendorCDR_20' ) end [2025-02-12 12:24:27] Production.INFO: ProcessCDR(1,14459053,1,1,2) [2025-02-12 12:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459053', 'tblTempUsageDetail_20' ) start [2025-02-12 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459053', 'tblTempUsageDetail_20' ) end [2025-02-12 12:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:24:32] Production.INFO: ==4514== Releasing lock... [2025-02-12 12:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:24:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:25:05 [end_date_ymd] => 2025-02-12 12:25:05 [RateCDR] => 1 ) [2025-02-12 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:25:05' and `end` < '2025-02-12 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:25:26] Production.INFO: count ==4998 [2025-02-12 12:25:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:25:05 - End Time 2025-02-12 12:25:05 [2025-02-12 12:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459058', 'tblTempUsageDetail_20' ) start [2025-02-12 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459058', 'tblTempUsageDetail_20' ) end [2025-02-12 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459058', 'tblTempVendorCDR_20' ) start [2025-02-12 12:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459058', 'tblTempVendorCDR_20' ) end [2025-02-12 12:25:29] Production.INFO: ProcessCDR(1,14459058,1,1,2) [2025-02-12 12:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459058', 'tblTempUsageDetail_20' ) start [2025-02-12 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459058', 'tblTempUsageDetail_20' ) end [2025-02-12 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:25:34] Production.INFO: ==4598== Releasing lock... [2025-02-12 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:26:06 [end_date_ymd] => 2025-02-12 12:26:06 [RateCDR] => 1 ) [2025-02-12 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:26:06' and `end` < '2025-02-12 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:26:23] Production.INFO: count ==5013 [2025-02-12 12:26:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:26:06 - End Time 2025-02-12 12:26:06 [2025-02-12 12:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459063', 'tblTempUsageDetail_20' ) start [2025-02-12 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459063', 'tblTempUsageDetail_20' ) end [2025-02-12 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459063', 'tblTempVendorCDR_20' ) start [2025-02-12 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459063', 'tblTempVendorCDR_20' ) end [2025-02-12 12:26:26] Production.INFO: ProcessCDR(1,14459063,1,1,2) [2025-02-12 12:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459063', 'tblTempUsageDetail_20' ) start [2025-02-12 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459063', 'tblTempUsageDetail_20' ) end [2025-02-12 12:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:26:31] Production.INFO: ==4677== Releasing lock... [2025-02-12 12:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:26:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:27:05 [end_date_ymd] => 2025-02-12 12:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:27:05' and `end` < '2025-02-12 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-12 12:27:31] Production.INFO: count ==4985 [2025-02-12 12:27:34] Production.ERROR: pbx CDR StartTime 2025-02-12 09:27:05 - End Time 2025-02-12 12:27:05 [2025-02-12 12:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459068', 'tblTempUsageDetail_20' ) start [2025-02-12 12:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459068', 'tblTempUsageDetail_20' ) end [2025-02-12 12:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459068', 'tblTempVendorCDR_20' ) start [2025-02-12 12:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459068', 'tblTempVendorCDR_20' ) end [2025-02-12 12:27:34] Production.INFO: ProcessCDR(1,14459068,1,1,2) [2025-02-12 12:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459068', 'tblTempUsageDetail_20' ) start [2025-02-12 12:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459068', 'tblTempUsageDetail_20' ) end [2025-02-12 12:27:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:27:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:27:39] Production.INFO: ==4748== Releasing lock... [2025-02-12 12:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:27:39] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:28:06 [end_date_ymd] => 2025-02-12 12:28:06 [RateCDR] => 1 ) [2025-02-12 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:28:06' and `end` < '2025-02-12 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:28:26] Production.INFO: count ==4981 [2025-02-12 12:28:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:28:06 - End Time 2025-02-12 12:28:06 [2025-02-12 12:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459073', 'tblTempUsageDetail_20' ) start [2025-02-12 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459073', 'tblTempUsageDetail_20' ) end [2025-02-12 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459073', 'tblTempVendorCDR_20' ) start [2025-02-12 12:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459073', 'tblTempVendorCDR_20' ) end [2025-02-12 12:28:28] Production.INFO: ProcessCDR(1,14459073,1,1,2) [2025-02-12 12:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459073', 'tblTempUsageDetail_20' ) start [2025-02-12 12:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459073', 'tblTempUsageDetail_20' ) end [2025-02-12 12:28:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:28:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:28:33] Production.INFO: ==4825== Releasing lock... [2025-02-12 12:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:28:33] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:29:05 [end_date_ymd] => 2025-02-12 12:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:29:05' and `end` < '2025-02-12 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-12 12:29:23] Production.INFO: count ==4981 [2025-02-12 12:29:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:29:05 - End Time 2025-02-12 12:29:05 [2025-02-12 12:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459078', 'tblTempUsageDetail_20' ) start [2025-02-12 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459078', 'tblTempUsageDetail_20' ) end [2025-02-12 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459078', 'tblTempVendorCDR_20' ) start [2025-02-12 12:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459078', 'tblTempVendorCDR_20' ) end [2025-02-12 12:29:25] Production.INFO: ProcessCDR(1,14459078,1,1,2) [2025-02-12 12:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459078', 'tblTempUsageDetail_20' ) start [2025-02-12 12:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459078', 'tblTempUsageDetail_20' ) end [2025-02-12 12:29:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:29:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:29:30] Production.INFO: ==4942== Releasing lock... [2025-02-12 12:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:29:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:30:07 [end_date_ymd] => 2025-02-12 12:30:07 [RateCDR] => 1 ) [2025-02-12 12:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:30:07' and `end` < '2025-02-12 12:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:30:35] Production.INFO: count ==5003 [2025-02-12 12:30:37] Production.ERROR: pbx CDR StartTime 2025-02-12 09:30:07 - End Time 2025-02-12 12:30:07 [2025-02-12 12:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459084', 'tblTempUsageDetail_20' ) start [2025-02-12 12:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459084', 'tblTempUsageDetail_20' ) end [2025-02-12 12:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459084', 'tblTempVendorCDR_20' ) start [2025-02-12 12:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459084', 'tblTempVendorCDR_20' ) end [2025-02-12 12:30:38] Production.INFO: ProcessCDR(1,14459084,1,1,2) [2025-02-12 12:30:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:30:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:30:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:30:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459084', 'tblTempUsageDetail_20' ) start [2025-02-12 12:30:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459084', 'tblTempUsageDetail_20' ) end [2025-02-12 12:30:43] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:30:43] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:30:43] Production.INFO: ==5018== Releasing lock... [2025-02-12 12:30:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:30:43] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:31:05 [end_date_ymd] => 2025-02-12 12:31:05 [RateCDR] => 1 ) [2025-02-12 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:31:05' and `end` < '2025-02-12 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:31:36] Production.INFO: count ==4993 [2025-02-12 12:31:39] Production.ERROR: pbx CDR StartTime 2025-02-12 09:31:05 - End Time 2025-02-12 12:31:05 [2025-02-12 12:31:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459089', 'tblTempUsageDetail_20' ) start [2025-02-12 12:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459089', 'tblTempUsageDetail_20' ) end [2025-02-12 12:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459089', 'tblTempVendorCDR_20' ) start [2025-02-12 12:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459089', 'tblTempVendorCDR_20' ) end [2025-02-12 12:31:39] Production.INFO: ProcessCDR(1,14459089,1,1,2) [2025-02-12 12:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:31:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459089', 'tblTempUsageDetail_20' ) start [2025-02-12 12:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459089', 'tblTempUsageDetail_20' ) end [2025-02-12 12:31:45] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:31:45] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:31:45] Production.INFO: ==5096== Releasing lock... [2025-02-12 12:31:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:31:45] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:32:06 [end_date_ymd] => 2025-02-12 12:32:06 [RateCDR] => 1 ) [2025-02-12 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:32:06' and `end` < '2025-02-12 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:32:24] Production.INFO: count ==4997 [2025-02-12 12:32:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:32:06 - End Time 2025-02-12 12:32:06 [2025-02-12 12:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459095', 'tblTempUsageDetail_20' ) start [2025-02-12 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459095', 'tblTempUsageDetail_20' ) end [2025-02-12 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459095', 'tblTempVendorCDR_20' ) start [2025-02-12 12:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459095', 'tblTempVendorCDR_20' ) end [2025-02-12 12:32:26] Production.INFO: ProcessCDR(1,14459095,1,1,2) [2025-02-12 12:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459095', 'tblTempUsageDetail_20' ) start [2025-02-12 12:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459095', 'tblTempUsageDetail_20' ) end [2025-02-12 12:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:32:31] Production.INFO: ==5179== Releasing lock... [2025-02-12 12:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:32:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:33:05 [end_date_ymd] => 2025-02-12 12:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:33:05' and `end` < '2025-02-12 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-12 12:33:23] Production.INFO: count ==4985 [2025-02-12 12:33:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:33:05 - End Time 2025-02-12 12:33:05 [2025-02-12 12:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459100', 'tblTempUsageDetail_20' ) start [2025-02-12 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459100', 'tblTempUsageDetail_20' ) end [2025-02-12 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459100', 'tblTempVendorCDR_20' ) start [2025-02-12 12:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459100', 'tblTempVendorCDR_20' ) end [2025-02-12 12:33:26] Production.INFO: ProcessCDR(1,14459100,1,1,2) [2025-02-12 12:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459100', 'tblTempUsageDetail_20' ) start [2025-02-12 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459100', 'tblTempUsageDetail_20' ) end [2025-02-12 12:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:33:31] Production.INFO: ==5272== Releasing lock... [2025-02-12 12:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:33:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:34:05 [end_date_ymd] => 2025-02-12 12:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:34:05' and `end` < '2025-02-12 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-12 12:34:22] Production.INFO: count ==4994 [2025-02-12 12:34:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:34:05 - End Time 2025-02-12 12:34:05 [2025-02-12 12:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459105', 'tblTempUsageDetail_20' ) start [2025-02-12 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459105', 'tblTempUsageDetail_20' ) end [2025-02-12 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459105', 'tblTempVendorCDR_20' ) start [2025-02-12 12:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459105', 'tblTempVendorCDR_20' ) end [2025-02-12 12:34:25] Production.INFO: ProcessCDR(1,14459105,1,1,2) [2025-02-12 12:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459105', 'tblTempUsageDetail_20' ) start [2025-02-12 12:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459105', 'tblTempUsageDetail_20' ) end [2025-02-12 12:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:34:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:34:31] Production.INFO: ==5347== Releasing lock... [2025-02-12 12:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:34:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:35:05 [end_date_ymd] => 2025-02-12 12:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:35:05' and `end` < '2025-02-12 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-12 12:35:23] Production.INFO: count ==4995 [2025-02-12 12:35:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:35:05 - End Time 2025-02-12 12:35:05 [2025-02-12 12:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459110', 'tblTempUsageDetail_20' ) start [2025-02-12 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459110', 'tblTempUsageDetail_20' ) end [2025-02-12 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459110', 'tblTempVendorCDR_20' ) start [2025-02-12 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459110', 'tblTempVendorCDR_20' ) end [2025-02-12 12:35:26] Production.INFO: ProcessCDR(1,14459110,1,1,2) [2025-02-12 12:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459110', 'tblTempUsageDetail_20' ) start [2025-02-12 12:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459110', 'tblTempUsageDetail_20' ) end [2025-02-12 12:35:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:35:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:35:31] Production.INFO: ==5429== Releasing lock... [2025-02-12 12:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:35:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:36:06 [end_date_ymd] => 2025-02-12 12:36:06 [RateCDR] => 1 ) [2025-02-12 12:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:36:06' and `end` < '2025-02-12 12:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:36:20] Production.INFO: count ==4998 [2025-02-12 12:36:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:36:06 - End Time 2025-02-12 12:36:06 [2025-02-12 12:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459115', 'tblTempUsageDetail_20' ) start [2025-02-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459115', 'tblTempUsageDetail_20' ) end [2025-02-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459115', 'tblTempVendorCDR_20' ) start [2025-02-12 12:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459115', 'tblTempVendorCDR_20' ) end [2025-02-12 12:36:22] Production.INFO: ProcessCDR(1,14459115,1,1,2) [2025-02-12 12:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459115', 'tblTempUsageDetail_20' ) start [2025-02-12 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459115', 'tblTempUsageDetail_20' ) end [2025-02-12 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:36:27] Production.INFO: ==5500== Releasing lock... [2025-02-12 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:36:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:37:06 [end_date_ymd] => 2025-02-12 12:37:06 [RateCDR] => 1 ) [2025-02-12 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:37:06' and `end` < '2025-02-12 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:37:21] Production.INFO: count ==4999 [2025-02-12 12:37:23] Production.ERROR: pbx CDR StartTime 2025-02-12 09:37:06 - End Time 2025-02-12 12:37:06 [2025-02-12 12:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459120', 'tblTempUsageDetail_20' ) start [2025-02-12 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459120', 'tblTempUsageDetail_20' ) end [2025-02-12 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459120', 'tblTempVendorCDR_20' ) start [2025-02-12 12:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459120', 'tblTempVendorCDR_20' ) end [2025-02-12 12:37:23] Production.INFO: ProcessCDR(1,14459120,1,1,2) [2025-02-12 12:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459120', 'tblTempUsageDetail_20' ) start [2025-02-12 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459120', 'tblTempUsageDetail_20' ) end [2025-02-12 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:37:28] Production.INFO: ==5575== Releasing lock... [2025-02-12 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:37:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:38:06 [end_date_ymd] => 2025-02-12 12:38:06 [RateCDR] => 1 ) [2025-02-12 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-12 09:38:06' and `end` < '2025-02-12 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-12 12:38:23] Production.INFO: count ==5002 [2025-02-12 12:38:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:38:06 - End Time 2025-02-12 12:38:06 [2025-02-12 12:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459125', 'tblTempUsageDetail_20' ) start [2025-02-12 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459125', 'tblTempUsageDetail_20' ) end [2025-02-12 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459125', 'tblTempVendorCDR_20' ) start [2025-02-12 12:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459125', 'tblTempVendorCDR_20' ) end [2025-02-12 12:38:26] Production.INFO: ProcessCDR(1,14459125,1,1,2) [2025-02-12 12:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459125', 'tblTempUsageDetail_20' ) start [2025-02-12 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459125', 'tblTempUsageDetail_20' ) end [2025-02-12 12:38:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:38:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:38:32] Production.INFO: ==5652== Releasing lock... [2025-02-12 12:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:38:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:39:05 [end_date_ymd] => 2025-02-12 12:39:05 [RateCDR] => 1 ) [2025-02-12 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:39:05' and `end` < '2025-02-12 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:39:22] Production.INFO: count ==5011 [2025-02-12 12:39:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:39:05 - End Time 2025-02-12 12:39:05 [2025-02-12 12:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459130', 'tblTempUsageDetail_20' ) start [2025-02-12 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459130', 'tblTempUsageDetail_20' ) end [2025-02-12 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459130', 'tblTempVendorCDR_20' ) start [2025-02-12 12:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459130', 'tblTempVendorCDR_20' ) end [2025-02-12 12:39:25] Production.INFO: ProcessCDR(1,14459130,1,1,2) [2025-02-12 12:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459130', 'tblTempUsageDetail_20' ) start [2025-02-12 12:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459130', 'tblTempUsageDetail_20' ) end [2025-02-12 12:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:39:30] Production.INFO: ==5741== Releasing lock... [2025-02-12 12:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:39:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:40:08] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:40:08 [end_date_ymd] => 2025-02-12 12:40:08 [RateCDR] => 1 ) [2025-02-12 12:40:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:40:08' and `end` < '2025-02-12 12:40:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:40:22] Production.INFO: count ==5011 [2025-02-12 12:40:24] Production.ERROR: pbx CDR StartTime 2025-02-12 09:40:08 - End Time 2025-02-12 12:40:08 [2025-02-12 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459136', 'tblTempUsageDetail_20' ) start [2025-02-12 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459136', 'tblTempUsageDetail_20' ) end [2025-02-12 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459136', 'tblTempVendorCDR_20' ) start [2025-02-12 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459136', 'tblTempVendorCDR_20' ) end [2025-02-12 12:40:24] Production.INFO: ProcessCDR(1,14459136,1,1,2) [2025-02-12 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459136', 'tblTempUsageDetail_20' ) start [2025-02-12 12:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459136', 'tblTempUsageDetail_20' ) end [2025-02-12 12:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:40:29] Production.INFO: ==5818== Releasing lock... [2025-02-12 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:40:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:41:06 [end_date_ymd] => 2025-02-12 12:41:06 [RateCDR] => 1 ) [2025-02-12 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:41:06' and `end` < '2025-02-12 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:41:20] Production.INFO: count ==4995 [2025-02-12 12:41:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:41:06 - End Time 2025-02-12 12:41:06 [2025-02-12 12:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459141', 'tblTempUsageDetail_20' ) start [2025-02-12 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459141', 'tblTempUsageDetail_20' ) end [2025-02-12 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459141', 'tblTempVendorCDR_20' ) start [2025-02-12 12:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459141', 'tblTempVendorCDR_20' ) end [2025-02-12 12:41:23] Production.INFO: ProcessCDR(1,14459141,1,1,2) [2025-02-12 12:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459141', 'tblTempUsageDetail_20' ) start [2025-02-12 12:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459141', 'tblTempUsageDetail_20' ) end [2025-02-12 12:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:41:29] Production.INFO: ==5912== Releasing lock... [2025-02-12 12:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:41:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:42:05 [end_date_ymd] => 2025-02-12 12:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:42:05' and `end` < '2025-02-12 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-12 12:42:21] Production.INFO: count ==4994 [2025-02-12 12:42:24] Production.ERROR: pbx CDR StartTime 2025-02-12 09:42:05 - End Time 2025-02-12 12:42:05 [2025-02-12 12:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459146', 'tblTempUsageDetail_20' ) start [2025-02-12 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459146', 'tblTempUsageDetail_20' ) end [2025-02-12 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459146', 'tblTempVendorCDR_20' ) start [2025-02-12 12:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459146', 'tblTempVendorCDR_20' ) end [2025-02-12 12:42:24] Production.INFO: ProcessCDR(1,14459146,1,1,2) [2025-02-12 12:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459146', 'tblTempUsageDetail_20' ) start [2025-02-12 12:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459146', 'tblTempUsageDetail_20' ) end [2025-02-12 12:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:42:29] Production.INFO: ==5992== Releasing lock... [2025-02-12 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:42:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:43:05 [end_date_ymd] => 2025-02-12 12:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:43:05' and `end` < '2025-02-12 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-12 12:43:25] Production.INFO: count ==5007 [2025-02-12 12:43:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:43:05 - End Time 2025-02-12 12:43:05 [2025-02-12 12:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459151', 'tblTempUsageDetail_20' ) start [2025-02-12 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459151', 'tblTempUsageDetail_20' ) end [2025-02-12 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459151', 'tblTempVendorCDR_20' ) start [2025-02-12 12:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459151', 'tblTempVendorCDR_20' ) end [2025-02-12 12:43:27] Production.INFO: ProcessCDR(1,14459151,1,1,2) [2025-02-12 12:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459151', 'tblTempUsageDetail_20' ) start [2025-02-12 12:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459151', 'tblTempUsageDetail_20' ) end [2025-02-12 12:43:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:43:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:43:33] Production.INFO: ==6062== Releasing lock... [2025-02-12 12:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:43:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:44:05 [end_date_ymd] => 2025-02-12 12:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:44:05' and `end` < '2025-02-12 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-12 12:44:23] Production.INFO: count ==5019 [2025-02-12 12:44:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:44:05 - End Time 2025-02-12 12:44:05 [2025-02-12 12:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459156', 'tblTempUsageDetail_20' ) start [2025-02-12 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459156', 'tblTempUsageDetail_20' ) end [2025-02-12 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459156', 'tblTempVendorCDR_20' ) start [2025-02-12 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459156', 'tblTempVendorCDR_20' ) end [2025-02-12 12:44:26] Production.INFO: ProcessCDR(1,14459156,1,1,2) [2025-02-12 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459156', 'tblTempUsageDetail_20' ) start [2025-02-12 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459156', 'tblTempUsageDetail_20' ) end [2025-02-12 12:44:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:44:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:44:31] Production.INFO: ==6176== Releasing lock... [2025-02-12 12:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:44:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:45:06 [end_date_ymd] => 2025-02-12 12:45:06 [RateCDR] => 1 ) [2025-02-12 12: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-12 09:45:06' and `end` < '2025-02-12 12: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-12 12:45:26] Production.INFO: count ==5017 [2025-02-12 12:45:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:45:06 - End Time 2025-02-12 12:45:06 [2025-02-12 12:45:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459161', 'tblTempUsageDetail_20' ) start [2025-02-12 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459161', 'tblTempUsageDetail_20' ) end [2025-02-12 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459161', 'tblTempVendorCDR_20' ) start [2025-02-12 12:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459161', 'tblTempVendorCDR_20' ) end [2025-02-12 12:45:28] Production.INFO: ProcessCDR(1,14459161,1,1,2) [2025-02-12 12:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459161', 'tblTempUsageDetail_20' ) start [2025-02-12 12:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459161', 'tblTempUsageDetail_20' ) end [2025-02-12 12:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:45:34] Production.INFO: ==6252== Releasing lock... [2025-02-12 12:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:45:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:46:05 [end_date_ymd] => 2025-02-12 12:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:46:05' and `end` < '2025-02-12 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-12 12:46:22] Production.INFO: count ==5009 [2025-02-12 12:46:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:46:05 - End Time 2025-02-12 12:46:05 [2025-02-12 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459166', 'tblTempUsageDetail_20' ) start [2025-02-12 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459166', 'tblTempUsageDetail_20' ) end [2025-02-12 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459166', 'tblTempVendorCDR_20' ) start [2025-02-12 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459166', 'tblTempVendorCDR_20' ) end [2025-02-12 12:46:25] Production.INFO: ProcessCDR(1,14459166,1,1,2) [2025-02-12 12:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459166', 'tblTempUsageDetail_20' ) start [2025-02-12 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459166', 'tblTempUsageDetail_20' ) end [2025-02-12 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:46:30] Production.INFO: ==6343== Releasing lock... [2025-02-12 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:46:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:47:06 [end_date_ymd] => 2025-02-12 12:47:06 [RateCDR] => 1 ) [2025-02-12 12: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-12 09:47:06' and `end` < '2025-02-12 12: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-12 12:47:20] Production.INFO: count ==5031 [2025-02-12 12:47:23] Production.ERROR: pbx CDR StartTime 2025-02-12 09:47:06 - End Time 2025-02-12 12:47:06 [2025-02-12 12:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459171', 'tblTempUsageDetail_20' ) start [2025-02-12 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459171', 'tblTempUsageDetail_20' ) end [2025-02-12 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459171', 'tblTempVendorCDR_20' ) start [2025-02-12 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459171', 'tblTempVendorCDR_20' ) end [2025-02-12 12:47:23] Production.INFO: ProcessCDR(1,14459171,1,1,2) [2025-02-12 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459171', 'tblTempUsageDetail_20' ) start [2025-02-12 12:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459171', 'tblTempUsageDetail_20' ) end [2025-02-12 12:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:47:28] Production.INFO: ==6420== Releasing lock... [2025-02-12 12:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:47:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:48:05 [end_date_ymd] => 2025-02-12 12:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:48:05' and `end` < '2025-02-12 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-12 12:48:21] Production.INFO: count ==5039 [2025-02-12 12:48:23] Production.ERROR: pbx CDR StartTime 2025-02-12 09:48:05 - End Time 2025-02-12 12:48:05 [2025-02-12 12:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459176', 'tblTempUsageDetail_20' ) start [2025-02-12 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459176', 'tblTempUsageDetail_20' ) end [2025-02-12 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459176', 'tblTempVendorCDR_20' ) start [2025-02-12 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459176', 'tblTempVendorCDR_20' ) end [2025-02-12 12:48:24] Production.INFO: ProcessCDR(1,14459176,1,1,2) [2025-02-12 12:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459176', 'tblTempUsageDetail_20' ) start [2025-02-12 12:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459176', 'tblTempUsageDetail_20' ) end [2025-02-12 12:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:48:29] Production.INFO: ==6489== Releasing lock... [2025-02-12 12:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:48:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:49:05 [end_date_ymd] => 2025-02-12 12:49:05 [RateCDR] => 1 ) [2025-02-12 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:49:05' and `end` < '2025-02-12 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:49:19] Production.INFO: count ==5031 [2025-02-12 12:49:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:49:05 - End Time 2025-02-12 12:49:05 [2025-02-12 12:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459181', 'tblTempUsageDetail_20' ) start [2025-02-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459181', 'tblTempUsageDetail_20' ) end [2025-02-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459181', 'tblTempVendorCDR_20' ) start [2025-02-12 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459181', 'tblTempVendorCDR_20' ) end [2025-02-12 12:49:22] Production.INFO: ProcessCDR(1,14459181,1,1,2) [2025-02-12 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459181', 'tblTempUsageDetail_20' ) start [2025-02-12 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459181', 'tblTempUsageDetail_20' ) end [2025-02-12 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:49:27] Production.INFO: ==6566== Releasing lock... [2025-02-12 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:49:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:50:06 [end_date_ymd] => 2025-02-12 12:50:06 [RateCDR] => 1 ) [2025-02-12 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:50:06' and `end` < '2025-02-12 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:50:21] Production.INFO: count ==5032 [2025-02-12 12:50:24] Production.ERROR: pbx CDR StartTime 2025-02-12 09:50:06 - End Time 2025-02-12 12:50:06 [2025-02-12 12:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459187', 'tblTempUsageDetail_20' ) start [2025-02-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459187', 'tblTempUsageDetail_20' ) end [2025-02-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459187', 'tblTempVendorCDR_20' ) start [2025-02-12 12:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459187', 'tblTempVendorCDR_20' ) end [2025-02-12 12:50:24] Production.INFO: ProcessCDR(1,14459187,1,1,2) [2025-02-12 12:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459187', 'tblTempUsageDetail_20' ) start [2025-02-12 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459187', 'tblTempUsageDetail_20' ) end [2025-02-12 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:50:29] Production.INFO: ==6643== Releasing lock... [2025-02-12 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:50:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:51:06 [end_date_ymd] => 2025-02-12 12:51:06 [RateCDR] => 1 ) [2025-02-12 12:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:51:06' and `end` < '2025-02-12 12:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:51:26] Production.INFO: count ==5076 [2025-02-12 12:51:28] Production.ERROR: pbx CDR StartTime 2025-02-12 09:51:06 - End Time 2025-02-12 12:51:06 [2025-02-12 12:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459192', 'tblTempUsageDetail_20' ) start [2025-02-12 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459192', 'tblTempUsageDetail_20' ) end [2025-02-12 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459192', 'tblTempVendorCDR_20' ) start [2025-02-12 12:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459192', 'tblTempVendorCDR_20' ) end [2025-02-12 12:51:28] Production.INFO: ProcessCDR(1,14459192,1,1,2) [2025-02-12 12:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459192', 'tblTempUsageDetail_20' ) start [2025-02-12 12:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459192', 'tblTempUsageDetail_20' ) end [2025-02-12 12:51:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:51:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:51:34] Production.INFO: ==6719== Releasing lock... [2025-02-12 12:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:51:34] Production.INFO: 66 MB #Memory Used# [2025-02-12 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:52:06 [end_date_ymd] => 2025-02-12 12:52:06 [RateCDR] => 1 ) [2025-02-12 12:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:52:06' and `end` < '2025-02-12 12:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:52:34] Production.INFO: count ==5073 [2025-02-12 12:52:36] Production.ERROR: pbx CDR StartTime 2025-02-12 09:52:06 - End Time 2025-02-12 12:52:06 [2025-02-12 12:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459197', 'tblTempUsageDetail_20' ) start [2025-02-12 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459197', 'tblTempUsageDetail_20' ) end [2025-02-12 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459197', 'tblTempVendorCDR_20' ) start [2025-02-12 12:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459197', 'tblTempVendorCDR_20' ) end [2025-02-12 12:52:36] Production.INFO: ProcessCDR(1,14459197,1,1,2) [2025-02-12 12:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459197', 'tblTempUsageDetail_20' ) start [2025-02-12 12:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459197', 'tblTempUsageDetail_20' ) end [2025-02-12 12:52:42] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:52:42] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:52:42] Production.INFO: ==6791== Releasing lock... [2025-02-12 12:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:52:42] Production.INFO: 66 MB #Memory Used# [2025-02-12 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:53:06 [end_date_ymd] => 2025-02-12 12:53:06 [RateCDR] => 1 ) [2025-02-12 12:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:53:06' and `end` < '2025-02-12 12:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:53:25] Production.INFO: count ==5049 [2025-02-12 12:53:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:53:06 - End Time 2025-02-12 12:53:06 [2025-02-12 12:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459202', 'tblTempUsageDetail_20' ) start [2025-02-12 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459202', 'tblTempUsageDetail_20' ) end [2025-02-12 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459202', 'tblTempVendorCDR_20' ) start [2025-02-12 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459202', 'tblTempVendorCDR_20' ) end [2025-02-12 12:53:27] Production.INFO: ProcessCDR(1,14459202,1,1,2) [2025-02-12 12:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459202', 'tblTempUsageDetail_20' ) start [2025-02-12 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459202', 'tblTempUsageDetail_20' ) end [2025-02-12 12:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:53:32] Production.INFO: ==6870== Releasing lock... [2025-02-12 12:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:53:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:54:06 [end_date_ymd] => 2025-02-12 12:54:06 [RateCDR] => 1 ) [2025-02-12 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:54:06' and `end` < '2025-02-12 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:54:24] Production.INFO: count ==5036 [2025-02-12 12:54:27] Production.ERROR: pbx CDR StartTime 2025-02-12 09:54:06 - End Time 2025-02-12 12:54:06 [2025-02-12 12:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459207', 'tblTempUsageDetail_20' ) start [2025-02-12 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459207', 'tblTempUsageDetail_20' ) end [2025-02-12 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459207', 'tblTempVendorCDR_20' ) start [2025-02-12 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459207', 'tblTempVendorCDR_20' ) end [2025-02-12 12:54:28] Production.INFO: ProcessCDR(1,14459207,1,1,2) [2025-02-12 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459207', 'tblTempUsageDetail_20' ) start [2025-02-12 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459207', 'tblTempUsageDetail_20' ) end [2025-02-12 12:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:54:33] Production.INFO: ==6947== Releasing lock... [2025-02-12 12:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:54:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:55:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:55:07 [end_date_ymd] => 2025-02-12 12:55:07 [RateCDR] => 1 ) [2025-02-12 12:55: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-12 09:55:07' and `end` < '2025-02-12 12:55: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-12 12:55:26] Production.INFO: count ==5034 [2025-02-12 12:55:29] Production.ERROR: pbx CDR StartTime 2025-02-12 09:55:07 - End Time 2025-02-12 12:55:07 [2025-02-12 12:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459212', 'tblTempUsageDetail_20' ) start [2025-02-12 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459212', 'tblTempUsageDetail_20' ) end [2025-02-12 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459212', 'tblTempVendorCDR_20' ) start [2025-02-12 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459212', 'tblTempVendorCDR_20' ) end [2025-02-12 12:55:29] Production.INFO: ProcessCDR(1,14459212,1,1,2) [2025-02-12 12:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459212', 'tblTempUsageDetail_20' ) start [2025-02-12 12:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459212', 'tblTempUsageDetail_20' ) end [2025-02-12 12:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:55:33] Production.INFO: ==7018== Releasing lock... [2025-02-12 12:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:55:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:56:06 [end_date_ymd] => 2025-02-12 12:56:06 [RateCDR] => 1 ) [2025-02-12 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:56:06' and `end` < '2025-02-12 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:56:23] Production.INFO: count ==5045 [2025-02-12 12:56:26] Production.ERROR: pbx CDR StartTime 2025-02-12 09:56:06 - End Time 2025-02-12 12:56:06 [2025-02-12 12:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459217', 'tblTempUsageDetail_20' ) start [2025-02-12 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459217', 'tblTempUsageDetail_20' ) end [2025-02-12 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459217', 'tblTempVendorCDR_20' ) start [2025-02-12 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459217', 'tblTempVendorCDR_20' ) end [2025-02-12 12:56:26] Production.INFO: ProcessCDR(1,14459217,1,1,2) [2025-02-12 12:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459217', 'tblTempUsageDetail_20' ) start [2025-02-12 12:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459217', 'tblTempUsageDetail_20' ) end [2025-02-12 12:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:56:33] Production.INFO: ==7112== Releasing lock... [2025-02-12 12:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:56:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:57:05 [end_date_ymd] => 2025-02-12 12:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 09:57:05' and `end` < '2025-02-12 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-12 12:57:22] Production.INFO: count ==5030 [2025-02-12 12:57:24] Production.ERROR: pbx CDR StartTime 2025-02-12 09:57:05 - End Time 2025-02-12 12:57:05 [2025-02-12 12:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459222', 'tblTempUsageDetail_20' ) start [2025-02-12 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459222', 'tblTempUsageDetail_20' ) end [2025-02-12 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459222', 'tblTempVendorCDR_20' ) start [2025-02-12 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459222', 'tblTempVendorCDR_20' ) end [2025-02-12 12:57:25] Production.INFO: ProcessCDR(1,14459222,1,1,2) [2025-02-12 12:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459222', 'tblTempUsageDetail_20' ) start [2025-02-12 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459222', 'tblTempUsageDetail_20' ) end [2025-02-12 12:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:57:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:57:30] Production.INFO: ==7183== Releasing lock... [2025-02-12 12:57:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:57:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:58:05 [end_date_ymd] => 2025-02-12 12:58:05 [RateCDR] => 1 ) [2025-02-12 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:58:05' and `end` < '2025-02-12 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:58:19] Production.INFO: count ==5025 [2025-02-12 12:58:22] Production.ERROR: pbx CDR StartTime 2025-02-12 09:58:05 - End Time 2025-02-12 12:58:05 [2025-02-12 12:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459227', 'tblTempUsageDetail_20' ) start [2025-02-12 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459227', 'tblTempUsageDetail_20' ) end [2025-02-12 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459227', 'tblTempVendorCDR_20' ) start [2025-02-12 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459227', 'tblTempVendorCDR_20' ) end [2025-02-12 12:58:22] Production.INFO: ProcessCDR(1,14459227,1,1,2) [2025-02-12 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459227', 'tblTempUsageDetail_20' ) start [2025-02-12 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459227', 'tblTempUsageDetail_20' ) end [2025-02-12 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:58:27] Production.INFO: ==7260== Releasing lock... [2025-02-12 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:58:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 09:59:05 [end_date_ymd] => 2025-02-12 12:59:05 [RateCDR] => 1 ) [2025-02-12 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 09:59:05' and `end` < '2025-02-12 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 12:59:23] Production.INFO: count ==5050 [2025-02-12 12:59:25] Production.ERROR: pbx CDR StartTime 2025-02-12 09:59:05 - End Time 2025-02-12 12:59:05 [2025-02-12 12:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459232', 'tblTempUsageDetail_20' ) start [2025-02-12 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459232', 'tblTempUsageDetail_20' ) end [2025-02-12 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459232', 'tblTempVendorCDR_20' ) start [2025-02-12 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459232', 'tblTempVendorCDR_20' ) end [2025-02-12 12:59:25] Production.INFO: ProcessCDR(1,14459232,1,1,2) [2025-02-12 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 12:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459232', 'tblTempUsageDetail_20' ) start [2025-02-12 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459232', 'tblTempUsageDetail_20' ) end [2025-02-12 12:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 12:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 12:59:31] Production.INFO: ==7332== Releasing lock... [2025-02-12 12:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 12:59:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:00:07 [end_date_ymd] => 2025-02-12 13:00:07 [RateCDR] => 1 ) [2025-02-12 13:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:00:07' and `end` < '2025-02-12 13:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:00:22] Production.INFO: count ==5034 [2025-02-12 13:00:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:00:07 - End Time 2025-02-12 13:00:07 [2025-02-12 13:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459238', 'tblTempUsageDetail_20' ) start [2025-02-12 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459238', 'tblTempUsageDetail_20' ) end [2025-02-12 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459238', 'tblTempVendorCDR_20' ) start [2025-02-12 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459238', 'tblTempVendorCDR_20' ) end [2025-02-12 13:00:25] Production.INFO: ProcessCDR(1,14459238,1,1,2) [2025-02-12 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459238', 'tblTempUsageDetail_20' ) start [2025-02-12 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459238', 'tblTempUsageDetail_20' ) end [2025-02-12 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:00:30] Production.INFO: ==7448== Releasing lock... [2025-02-12 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:00:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:01:05 [end_date_ymd] => 2025-02-12 13:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:01:05' and `end` < '2025-02-12 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-12 13:01:22] Production.INFO: count ==5052 [2025-02-12 13:01:24] Production.ERROR: pbx CDR StartTime 2025-02-12 10:01:05 - End Time 2025-02-12 13:01:05 [2025-02-12 13:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459243', 'tblTempUsageDetail_20' ) start [2025-02-12 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459243', 'tblTempUsageDetail_20' ) end [2025-02-12 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459243', 'tblTempVendorCDR_20' ) start [2025-02-12 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459243', 'tblTempVendorCDR_20' ) end [2025-02-12 13:01:25] Production.INFO: ProcessCDR(1,14459243,1,1,2) [2025-02-12 13:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459243', 'tblTempUsageDetail_20' ) start [2025-02-12 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459243', 'tblTempUsageDetail_20' ) end [2025-02-12 13:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:01:30] Production.INFO: ==7553== Releasing lock... [2025-02-12 13:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:01:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:02:06 [end_date_ymd] => 2025-02-12 13:02:06 [RateCDR] => 1 ) [2025-02-12 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:02:06' and `end` < '2025-02-12 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:02:25] Production.INFO: count ==5062 [2025-02-12 13:02:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:02:06 - End Time 2025-02-12 13:02:06 [2025-02-12 13:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459248', 'tblTempUsageDetail_20' ) start [2025-02-12 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459248', 'tblTempUsageDetail_20' ) end [2025-02-12 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459248', 'tblTempVendorCDR_20' ) start [2025-02-12 13:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459248', 'tblTempVendorCDR_20' ) end [2025-02-12 13:02:27] Production.INFO: ProcessCDR(1,14459248,1,1,2) [2025-02-12 13:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459248', 'tblTempUsageDetail_20' ) start [2025-02-12 13:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459248', 'tblTempUsageDetail_20' ) end [2025-02-12 13:02:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:02:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:02:32] Production.INFO: ==7626== Releasing lock... [2025-02-12 13:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:02:32] Production.INFO: 66 MB #Memory Used# [2025-02-12 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:03:06 [end_date_ymd] => 2025-02-12 13:03:06 [RateCDR] => 1 ) [2025-02-12 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:03:06' and `end` < '2025-02-12 13:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:03:25] Production.INFO: count ==5068 [2025-02-12 13:03:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:03:06 - End Time 2025-02-12 13:03:06 [2025-02-12 13:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459253', 'tblTempUsageDetail_20' ) start [2025-02-12 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459253', 'tblTempUsageDetail_20' ) end [2025-02-12 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459253', 'tblTempVendorCDR_20' ) start [2025-02-12 13:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459253', 'tblTempVendorCDR_20' ) end [2025-02-12 13:03:27] Production.INFO: ProcessCDR(1,14459253,1,1,2) [2025-02-12 13:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459253', 'tblTempUsageDetail_20' ) start [2025-02-12 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459253', 'tblTempUsageDetail_20' ) end [2025-02-12 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:03:32] Production.INFO: ==7703== Releasing lock... [2025-02-12 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:03:32] Production.INFO: 66 MB #Memory Used# [2025-02-12 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:04:06 [end_date_ymd] => 2025-02-12 13:04:06 [RateCDR] => 1 ) [2025-02-12 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:04:06' and `end` < '2025-02-12 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:04:24] Production.INFO: count ==5094 [2025-02-12 13:04:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:04:06 - End Time 2025-02-12 13:04:06 [2025-02-12 13:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459258', 'tblTempUsageDetail_20' ) start [2025-02-12 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459258', 'tblTempUsageDetail_20' ) end [2025-02-12 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459258', 'tblTempVendorCDR_20' ) start [2025-02-12 13:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459258', 'tblTempVendorCDR_20' ) end [2025-02-12 13:04:27] Production.INFO: ProcessCDR(1,14459258,1,1,2) [2025-02-12 13:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459258', 'tblTempUsageDetail_20' ) start [2025-02-12 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459258', 'tblTempUsageDetail_20' ) end [2025-02-12 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:04:32] Production.INFO: ==7780== Releasing lock... [2025-02-12 13:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:04:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:05:06 [end_date_ymd] => 2025-02-12 13:05:06 [RateCDR] => 1 ) [2025-02-12 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:05:06' and `end` < '2025-02-12 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:05:26] Production.INFO: count ==5090 [2025-02-12 13:05:28] Production.ERROR: pbx CDR StartTime 2025-02-12 10:05:06 - End Time 2025-02-12 13:05:06 [2025-02-12 13:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459263', 'tblTempUsageDetail_20' ) start [2025-02-12 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459263', 'tblTempUsageDetail_20' ) end [2025-02-12 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459263', 'tblTempVendorCDR_20' ) start [2025-02-12 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459263', 'tblTempVendorCDR_20' ) end [2025-02-12 13:05:28] Production.INFO: ProcessCDR(1,14459263,1,1,2) [2025-02-12 13:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459263', 'tblTempUsageDetail_20' ) start [2025-02-12 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459263', 'tblTempUsageDetail_20' ) end [2025-02-12 13:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:05:34] Production.INFO: ==7868== Releasing lock... [2025-02-12 13:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:05:34] Production.INFO: 66 MB #Memory Used# [2025-02-12 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:06:06 [end_date_ymd] => 2025-02-12 13:06:06 [RateCDR] => 1 ) [2025-02-12 13:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:06:06' and `end` < '2025-02-12 13:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:06:23] Production.INFO: count ==5095 [2025-02-12 13:06:26] Production.ERROR: pbx CDR StartTime 2025-02-12 10:06:06 - End Time 2025-02-12 13:06:06 [2025-02-12 13:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459268', 'tblTempUsageDetail_20' ) start [2025-02-12 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459268', 'tblTempUsageDetail_20' ) end [2025-02-12 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459268', 'tblTempVendorCDR_20' ) start [2025-02-12 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459268', 'tblTempVendorCDR_20' ) end [2025-02-12 13:06:26] Production.INFO: ProcessCDR(1,14459268,1,1,2) [2025-02-12 13:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459268', 'tblTempUsageDetail_20' ) start [2025-02-12 13:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459268', 'tblTempUsageDetail_20' ) end [2025-02-12 13:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:06:31] Production.INFO: ==7942== Releasing lock... [2025-02-12 13:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:06:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:07:06 [end_date_ymd] => 2025-02-12 13:07:06 [RateCDR] => 1 ) [2025-02-12 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:07:06' and `end` < '2025-02-12 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:07:23] Production.INFO: count ==5089 [2025-02-12 13:07:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:07:06 - End Time 2025-02-12 13:07:06 [2025-02-12 13:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459273', 'tblTempUsageDetail_20' ) start [2025-02-12 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459273', 'tblTempUsageDetail_20' ) end [2025-02-12 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459273', 'tblTempVendorCDR_20' ) start [2025-02-12 13:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459273', 'tblTempVendorCDR_20' ) end [2025-02-12 13:07:26] Production.INFO: ProcessCDR(1,14459273,1,1,2) [2025-02-12 13:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459273', 'tblTempUsageDetail_20' ) start [2025-02-12 13:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459273', 'tblTempUsageDetail_20' ) end [2025-02-12 13:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:07:31] Production.INFO: ==8020== Releasing lock... [2025-02-12 13:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:07:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:08:06 [end_date_ymd] => 2025-02-12 13:08:06 [RateCDR] => 1 ) [2025-02-12 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:08:06' and `end` < '2025-02-12 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:08:20] Production.INFO: count ==5075 [2025-02-12 13:08:22] Production.ERROR: pbx CDR StartTime 2025-02-12 10:08:06 - End Time 2025-02-12 13:08:06 [2025-02-12 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459278', 'tblTempUsageDetail_20' ) start [2025-02-12 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459278', 'tblTempUsageDetail_20' ) end [2025-02-12 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459278', 'tblTempVendorCDR_20' ) start [2025-02-12 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459278', 'tblTempVendorCDR_20' ) end [2025-02-12 13:08:23] Production.INFO: ProcessCDR(1,14459278,1,1,2) [2025-02-12 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459278', 'tblTempUsageDetail_20' ) start [2025-02-12 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459278', 'tblTempUsageDetail_20' ) end [2025-02-12 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:08:27] Production.INFO: ==8109== Releasing lock... [2025-02-12 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:08:27] Production.INFO: 66 MB #Memory Used# [2025-02-12 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:09:06 [end_date_ymd] => 2025-02-12 13:09:06 [RateCDR] => 1 ) [2025-02-12 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:09:06' and `end` < '2025-02-12 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:09:24] Production.INFO: count ==5073 [2025-02-12 13:09:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:09:06 - End Time 2025-02-12 13:09:06 [2025-02-12 13:09:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459283', 'tblTempUsageDetail_20' ) start [2025-02-12 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459283', 'tblTempUsageDetail_20' ) end [2025-02-12 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459283', 'tblTempVendorCDR_20' ) start [2025-02-12 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459283', 'tblTempVendorCDR_20' ) end [2025-02-12 13:09:27] Production.INFO: ProcessCDR(1,14459283,1,1,2) [2025-02-12 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459283', 'tblTempUsageDetail_20' ) start [2025-02-12 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459283', 'tblTempUsageDetail_20' ) end [2025-02-12 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:09:32] Production.INFO: ==8184== Releasing lock... [2025-02-12 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:09:32] Production.INFO: 66 MB #Memory Used# [2025-02-12 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:10:07 [end_date_ymd] => 2025-02-12 13:10:07 [RateCDR] => 1 ) [2025-02-12 13:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:10:07' and `end` < '2025-02-12 13:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:10:30] Production.INFO: count ==5091 [2025-02-12 13:10:33] Production.ERROR: pbx CDR StartTime 2025-02-12 10:10:07 - End Time 2025-02-12 13:10:07 [2025-02-12 13:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459289', 'tblTempUsageDetail_20' ) start [2025-02-12 13:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459289', 'tblTempUsageDetail_20' ) end [2025-02-12 13:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459289', 'tblTempVendorCDR_20' ) start [2025-02-12 13:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459289', 'tblTempVendorCDR_20' ) end [2025-02-12 13:10:33] Production.INFO: ProcessCDR(1,14459289,1,1,2) [2025-02-12 13:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459289', 'tblTempUsageDetail_20' ) start [2025-02-12 13:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459289', 'tblTempUsageDetail_20' ) end [2025-02-12 13:10:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:10:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:10:39] Production.INFO: ==8275== Releasing lock... [2025-02-12 13:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:10:39] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:11:05 [end_date_ymd] => 2025-02-12 13:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:11:05' and `end` < '2025-02-12 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-12 13:11:20] Production.INFO: count ==5114 [2025-02-12 13:11:22] Production.ERROR: pbx CDR StartTime 2025-02-12 10:11:05 - End Time 2025-02-12 13:11:05 [2025-02-12 13:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459294', 'tblTempUsageDetail_20' ) start [2025-02-12 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459294', 'tblTempUsageDetail_20' ) end [2025-02-12 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459294', 'tblTempVendorCDR_20' ) start [2025-02-12 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459294', 'tblTempVendorCDR_20' ) end [2025-02-12 13:11:23] Production.INFO: ProcessCDR(1,14459294,1,1,2) [2025-02-12 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459294', 'tblTempUsageDetail_20' ) start [2025-02-12 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459294', 'tblTempUsageDetail_20' ) end [2025-02-12 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:11:28] Production.INFO: ==8351== Releasing lock... [2025-02-12 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:11:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:12:05 [end_date_ymd] => 2025-02-12 13:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:12:05' and `end` < '2025-02-12 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-12 13:12:30] Production.INFO: count ==5121 [2025-02-12 13:12:32] Production.ERROR: pbx CDR StartTime 2025-02-12 10:12:05 - End Time 2025-02-12 13:12:05 [2025-02-12 13:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459299', 'tblTempUsageDetail_20' ) start [2025-02-12 13:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459299', 'tblTempUsageDetail_20' ) end [2025-02-12 13:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459299', 'tblTempVendorCDR_20' ) start [2025-02-12 13:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459299', 'tblTempVendorCDR_20' ) end [2025-02-12 13:12:32] Production.INFO: ProcessCDR(1,14459299,1,1,2) [2025-02-12 13:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:12:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459299', 'tblTempUsageDetail_20' ) start [2025-02-12 13:12:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459299', 'tblTempUsageDetail_20' ) end [2025-02-12 13:12:38] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:12:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:12:38] Production.INFO: ==8422== Releasing lock... [2025-02-12 13:12:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:12:38] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:13:05 [end_date_ymd] => 2025-02-12 13:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:13:05' and `end` < '2025-02-12 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-12 13:13:23] Production.INFO: count ==5133 [2025-02-12 13:13:26] Production.ERROR: pbx CDR StartTime 2025-02-12 10:13:05 - End Time 2025-02-12 13:13:05 [2025-02-12 13:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459304', 'tblTempUsageDetail_20' ) start [2025-02-12 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459304', 'tblTempUsageDetail_20' ) end [2025-02-12 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459304', 'tblTempVendorCDR_20' ) start [2025-02-12 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459304', 'tblTempVendorCDR_20' ) end [2025-02-12 13:13:26] Production.INFO: ProcessCDR(1,14459304,1,1,2) [2025-02-12 13:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459304', 'tblTempUsageDetail_20' ) start [2025-02-12 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459304', 'tblTempUsageDetail_20' ) end [2025-02-12 13:13:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:13:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:13:31] Production.INFO: ==8495== Releasing lock... [2025-02-12 13:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:13:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:14:05 [end_date_ymd] => 2025-02-12 13:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:14:05' and `end` < '2025-02-12 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-12 13:14:19] Production.INFO: count ==5129 [2025-02-12 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-12 10:14:05 - End Time 2025-02-12 13:14:05 [2025-02-12 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459309', 'tblTempUsageDetail_20' ) start [2025-02-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459309', 'tblTempUsageDetail_20' ) end [2025-02-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459309', 'tblTempVendorCDR_20' ) start [2025-02-12 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459309', 'tblTempVendorCDR_20' ) end [2025-02-12 13:14:21] Production.INFO: ProcessCDR(1,14459309,1,1,2) [2025-02-12 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459309', 'tblTempUsageDetail_20' ) start [2025-02-12 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459309', 'tblTempUsageDetail_20' ) end [2025-02-12 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:14:27] Production.INFO: ==8574== Releasing lock... [2025-02-12 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:15:06 [end_date_ymd] => 2025-02-12 13:15:06 [RateCDR] => 1 ) [2025-02-12 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:15:06' and `end` < '2025-02-12 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:15:28] Production.INFO: count ==5136 [2025-02-12 13:15:32] Production.ERROR: pbx CDR StartTime 2025-02-12 10:15:06 - End Time 2025-02-12 13:15:06 [2025-02-12 13:15:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459314', 'tblTempUsageDetail_20' ) start [2025-02-12 13:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459314', 'tblTempUsageDetail_20' ) end [2025-02-12 13:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459314', 'tblTempVendorCDR_20' ) start [2025-02-12 13:15:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459314', 'tblTempVendorCDR_20' ) end [2025-02-12 13:15:32] Production.INFO: ProcessCDR(1,14459314,1,1,2) [2025-02-12 13:15:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:15:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:15:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459314', 'tblTempUsageDetail_20' ) start [2025-02-12 13:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459314', 'tblTempUsageDetail_20' ) end [2025-02-12 13:15:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:15:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:15:37] Production.INFO: ==8717== Releasing lock... [2025-02-12 13:15:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:15:37] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:16:06 [end_date_ymd] => 2025-02-12 13:16:06 [RateCDR] => 1 ) [2025-02-12 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:16:06' and `end` < '2025-02-12 13:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:16:23] Production.INFO: count ==5131 [2025-02-12 13:16:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:16:06 - End Time 2025-02-12 13:16:06 [2025-02-12 13:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459319', 'tblTempUsageDetail_20' ) start [2025-02-12 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459319', 'tblTempUsageDetail_20' ) end [2025-02-12 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459319', 'tblTempVendorCDR_20' ) start [2025-02-12 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459319', 'tblTempVendorCDR_20' ) end [2025-02-12 13:16:26] Production.INFO: ProcessCDR(1,14459319,1,1,2) [2025-02-12 13:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459319', 'tblTempUsageDetail_20' ) start [2025-02-12 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459319', 'tblTempUsageDetail_20' ) end [2025-02-12 13:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:16:31] Production.INFO: ==8788== Releasing lock... [2025-02-12 13:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:16:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:17:06 [end_date_ymd] => 2025-02-12 13:17:06 [RateCDR] => 1 ) [2025-02-12 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:17:06' and `end` < '2025-02-12 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:17:22] Production.INFO: count ==5117 [2025-02-12 13:17:24] Production.ERROR: pbx CDR StartTime 2025-02-12 10:17:06 - End Time 2025-02-12 13:17:06 [2025-02-12 13:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459324', 'tblTempUsageDetail_20' ) start [2025-02-12 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459324', 'tblTempUsageDetail_20' ) end [2025-02-12 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459324', 'tblTempVendorCDR_20' ) start [2025-02-12 13:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459324', 'tblTempVendorCDR_20' ) end [2025-02-12 13:17:24] Production.INFO: ProcessCDR(1,14459324,1,1,2) [2025-02-12 13:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459324', 'tblTempUsageDetail_20' ) start [2025-02-12 13:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459324', 'tblTempUsageDetail_20' ) end [2025-02-12 13:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:17:30] Production.INFO: ==8863== Releasing lock... [2025-02-12 13:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:17:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:18:05 [end_date_ymd] => 2025-02-12 13:18:05 [RateCDR] => 1 ) [2025-02-12 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:18:05' and `end` < '2025-02-12 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:18:21] Production.INFO: count ==5127 [2025-02-12 13:18:23] Production.ERROR: pbx CDR StartTime 2025-02-12 10:18:05 - End Time 2025-02-12 13:18:05 [2025-02-12 13:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459329', 'tblTempUsageDetail_20' ) start [2025-02-12 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459329', 'tblTempUsageDetail_20' ) end [2025-02-12 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459329', 'tblTempVendorCDR_20' ) start [2025-02-12 13:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459329', 'tblTempVendorCDR_20' ) end [2025-02-12 13:18:23] Production.INFO: ProcessCDR(1,14459329,1,1,2) [2025-02-12 13:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459329', 'tblTempUsageDetail_20' ) start [2025-02-12 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459329', 'tblTempUsageDetail_20' ) end [2025-02-12 13:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:18:29] Production.INFO: ==8940== Releasing lock... [2025-02-12 13:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:18:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:19:05 [end_date_ymd] => 2025-02-12 13:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:19:05' and `end` < '2025-02-12 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-12 13:19:20] Production.INFO: count ==5123 [2025-02-12 13:19:23] Production.ERROR: pbx CDR StartTime 2025-02-12 10:19:05 - End Time 2025-02-12 13:19:05 [2025-02-12 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459334', 'tblTempUsageDetail_20' ) start [2025-02-12 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459334', 'tblTempUsageDetail_20' ) end [2025-02-12 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459334', 'tblTempVendorCDR_20' ) start [2025-02-12 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459334', 'tblTempVendorCDR_20' ) end [2025-02-12 13:19:23] Production.INFO: ProcessCDR(1,14459334,1,1,2) [2025-02-12 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459334', 'tblTempUsageDetail_20' ) start [2025-02-12 13:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459334', 'tblTempUsageDetail_20' ) end [2025-02-12 13:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:19:28] Production.INFO: ==9017== Releasing lock... [2025-02-12 13:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:19:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:20:06 [end_date_ymd] => 2025-02-12 13:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 10:20:06' and `end` < '2025-02-12 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-12 13:20:29] Production.INFO: count ==5142 [2025-02-12 13:20:32] Production.ERROR: pbx CDR StartTime 2025-02-12 10:20:06 - End Time 2025-02-12 13:20:06 [2025-02-12 13:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459340', 'tblTempUsageDetail_20' ) start [2025-02-12 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459340', 'tblTempUsageDetail_20' ) end [2025-02-12 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459340', 'tblTempVendorCDR_20' ) start [2025-02-12 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459340', 'tblTempVendorCDR_20' ) end [2025-02-12 13:20:32] Production.INFO: ProcessCDR(1,14459340,1,1,2) [2025-02-12 13:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459340', 'tblTempUsageDetail_20' ) start [2025-02-12 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459340', 'tblTempUsageDetail_20' ) end [2025-02-12 13:20:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:20:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:20:38] Production.INFO: ==9096== Releasing lock... [2025-02-12 13:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:20:38] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:21:05 [end_date_ymd] => 2025-02-12 13:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:21:05' and `end` < '2025-02-12 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-12 13:21:19] Production.INFO: count ==5206 [2025-02-12 13:21:22] Production.ERROR: pbx CDR StartTime 2025-02-12 10:21:05 - End Time 2025-02-12 13:21:05 [2025-02-12 13:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459345', 'tblTempUsageDetail_20' ) start [2025-02-12 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459345', 'tblTempUsageDetail_20' ) end [2025-02-12 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459345', 'tblTempVendorCDR_20' ) start [2025-02-12 13:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459345', 'tblTempVendorCDR_20' ) end [2025-02-12 13:21:22] Production.INFO: ProcessCDR(1,14459345,1,1,2) [2025-02-12 13:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459345', 'tblTempUsageDetail_20' ) start [2025-02-12 13:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459345', 'tblTempUsageDetail_20' ) end [2025-02-12 13:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:21:28] Production.INFO: ==9169== Releasing lock... [2025-02-12 13:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:21:28] Production.INFO: 67 MB #Memory Used# [2025-02-12 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:22:06 [end_date_ymd] => 2025-02-12 13:22:06 [RateCDR] => 1 ) [2025-02-12 13:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:22:06' and `end` < '2025-02-12 13:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:22:27] Production.INFO: count ==5258 [2025-02-12 13:22:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:22:06 - End Time 2025-02-12 13:22:06 [2025-02-12 13:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459350', 'tblTempUsageDetail_20' ) start [2025-02-12 13:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459350', 'tblTempUsageDetail_20' ) end [2025-02-12 13:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459350', 'tblTempVendorCDR_20' ) start [2025-02-12 13:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459350', 'tblTempVendorCDR_20' ) end [2025-02-12 13:22:29] Production.INFO: ProcessCDR(1,14459350,1,1,2) [2025-02-12 13:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459350', 'tblTempUsageDetail_20' ) start [2025-02-12 13:22:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459350', 'tblTempUsageDetail_20' ) end [2025-02-12 13:22:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:22:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:22:35] Production.INFO: ==9241== Releasing lock... [2025-02-12 13:22:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:22:35] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:23:05 [end_date_ymd] => 2025-02-12 13:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:23:05' and `end` < '2025-02-12 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-12 13:23:21] Production.INFO: count ==5265 [2025-02-12 13:23:24] Production.ERROR: pbx CDR StartTime 2025-02-12 10:23:05 - End Time 2025-02-12 13:23:05 [2025-02-12 13:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459355', 'tblTempUsageDetail_20' ) start [2025-02-12 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459355', 'tblTempUsageDetail_20' ) end [2025-02-12 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459355', 'tblTempVendorCDR_20' ) start [2025-02-12 13:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459355', 'tblTempVendorCDR_20' ) end [2025-02-12 13:23:24] Production.INFO: ProcessCDR(1,14459355,1,1,2) [2025-02-12 13:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459355', 'tblTempUsageDetail_20' ) start [2025-02-12 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459355', 'tblTempUsageDetail_20' ) end [2025-02-12 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:23:28] Production.INFO: ==9314== Releasing lock... [2025-02-12 13:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:23:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:24:06 [end_date_ymd] => 2025-02-12 13:24:06 [RateCDR] => 1 ) [2025-02-12 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:24:06' and `end` < '2025-02-12 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:24:23] Production.INFO: count ==5289 [2025-02-12 13:24:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:24:06 - End Time 2025-02-12 13:24:06 [2025-02-12 13:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459360', 'tblTempUsageDetail_20' ) start [2025-02-12 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459360', 'tblTempUsageDetail_20' ) end [2025-02-12 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459360', 'tblTempVendorCDR_20' ) start [2025-02-12 13:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459360', 'tblTempVendorCDR_20' ) end [2025-02-12 13:24:26] Production.INFO: ProcessCDR(1,14459360,1,1,2) [2025-02-12 13:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459360', 'tblTempUsageDetail_20' ) start [2025-02-12 13:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459360', 'tblTempUsageDetail_20' ) end [2025-02-12 13:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:24:31] Production.INFO: ==9386== Releasing lock... [2025-02-12 13:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:24:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:25:05 [end_date_ymd] => 2025-02-12 13:25:05 [RateCDR] => 1 ) [2025-02-12 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:25:05' and `end` < '2025-02-12 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:25:25] Production.INFO: count ==5289 [2025-02-12 13:25:28] Production.ERROR: pbx CDR StartTime 2025-02-12 10:25:05 - End Time 2025-02-12 13:25:05 [2025-02-12 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459365', 'tblTempUsageDetail_20' ) start [2025-02-12 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459365', 'tblTempUsageDetail_20' ) end [2025-02-12 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459365', 'tblTempVendorCDR_20' ) start [2025-02-12 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459365', 'tblTempVendorCDR_20' ) end [2025-02-12 13:25:28] Production.INFO: ProcessCDR(1,14459365,1,1,2) [2025-02-12 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459365', 'tblTempUsageDetail_20' ) start [2025-02-12 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459365', 'tblTempUsageDetail_20' ) end [2025-02-12 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:25:32] Production.INFO: ==9457== Releasing lock... [2025-02-12 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:25:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:26:05 [end_date_ymd] => 2025-02-12 13:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:26:05' and `end` < '2025-02-12 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-12 13:26:23] Production.INFO: count ==5283 [2025-02-12 13:26:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:26:05 - End Time 2025-02-12 13:26:05 [2025-02-12 13:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459370', 'tblTempUsageDetail_20' ) start [2025-02-12 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459370', 'tblTempUsageDetail_20' ) end [2025-02-12 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459370', 'tblTempVendorCDR_20' ) start [2025-02-12 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459370', 'tblTempVendorCDR_20' ) end [2025-02-12 13:26:25] Production.INFO: ProcessCDR(1,14459370,1,1,2) [2025-02-12 13:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459370', 'tblTempUsageDetail_20' ) start [2025-02-12 13:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459370', 'tblTempUsageDetail_20' ) end [2025-02-12 13:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:26:31] Production.INFO: ==9528== Releasing lock... [2025-02-12 13:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:26:31] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:27:05 [end_date_ymd] => 2025-02-12 13:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:27:05' and `end` < '2025-02-12 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-12 13:27:24] Production.INFO: count ==5309 [2025-02-12 13:27:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:27:05 - End Time 2025-02-12 13:27:05 [2025-02-12 13:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459375', 'tblTempUsageDetail_20' ) start [2025-02-12 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459375', 'tblTempUsageDetail_20' ) end [2025-02-12 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459375', 'tblTempVendorCDR_20' ) start [2025-02-12 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459375', 'tblTempVendorCDR_20' ) end [2025-02-12 13:27:27] Production.INFO: ProcessCDR(1,14459375,1,1,2) [2025-02-12 13:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459375', 'tblTempUsageDetail_20' ) start [2025-02-12 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459375', 'tblTempUsageDetail_20' ) end [2025-02-12 13:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:27:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:27:33] Production.INFO: ==9599== Releasing lock... [2025-02-12 13:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:27:33] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:28:05 [end_date_ymd] => 2025-02-12 13:28:05 [RateCDR] => 1 ) [2025-02-12 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:28:05' and `end` < '2025-02-12 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:28:23] Production.INFO: count ==5339 [2025-02-12 13:28:26] Production.ERROR: pbx CDR StartTime 2025-02-12 10:28:05 - End Time 2025-02-12 13:28:05 [2025-02-12 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459380', 'tblTempUsageDetail_20' ) start [2025-02-12 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459380', 'tblTempUsageDetail_20' ) end [2025-02-12 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459380', 'tblTempVendorCDR_20' ) start [2025-02-12 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459380', 'tblTempVendorCDR_20' ) end [2025-02-12 13:28:26] Production.INFO: ProcessCDR(1,14459380,1,1,2) [2025-02-12 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459380', 'tblTempUsageDetail_20' ) start [2025-02-12 13:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459380', 'tblTempUsageDetail_20' ) end [2025-02-12 13:28:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:28:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:28:32] Production.INFO: ==9671== Releasing lock... [2025-02-12 13:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:28:32] Production.INFO: 68 MB #Memory Used# [2025-02-12 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:29:05 [end_date_ymd] => 2025-02-12 13:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:29:05' and `end` < '2025-02-12 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-12 13:29:19] Production.INFO: count ==5333 [2025-02-12 13:29:22] Production.ERROR: pbx CDR StartTime 2025-02-12 10:29:05 - End Time 2025-02-12 13:29:05 [2025-02-12 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459385', 'tblTempUsageDetail_20' ) start [2025-02-12 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459385', 'tblTempUsageDetail_20' ) end [2025-02-12 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459385', 'tblTempVendorCDR_20' ) start [2025-02-12 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459385', 'tblTempVendorCDR_20' ) end [2025-02-12 13:29:22] Production.INFO: ProcessCDR(1,14459385,1,1,2) [2025-02-12 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459385', 'tblTempUsageDetail_20' ) start [2025-02-12 13:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459385', 'tblTempUsageDetail_20' ) end [2025-02-12 13:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:29:28] Production.INFO: ==9740== Releasing lock... [2025-02-12 13:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:29:28] Production.INFO: 68 MB #Memory Used# [2025-02-12 13:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:30:07 [end_date_ymd] => 2025-02-12 13:30:07 [RateCDR] => 1 ) [2025-02-12 13:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:30:07' and `end` < '2025-02-12 13:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:30:30] Production.INFO: count ==5340 [2025-02-12 13:30:33] Production.ERROR: pbx CDR StartTime 2025-02-12 10:30:07 - End Time 2025-02-12 13:30:07 [2025-02-12 13:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459391', 'tblTempUsageDetail_20' ) start [2025-02-12 13:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459391', 'tblTempUsageDetail_20' ) end [2025-02-12 13:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459391', 'tblTempVendorCDR_20' ) start [2025-02-12 13:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459391', 'tblTempVendorCDR_20' ) end [2025-02-12 13:30:33] Production.INFO: ProcessCDR(1,14459391,1,1,2) [2025-02-12 13:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459391', 'tblTempUsageDetail_20' ) start [2025-02-12 13:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459391', 'tblTempUsageDetail_20' ) end [2025-02-12 13:30:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:30:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:30:39] Production.INFO: ==9816== Releasing lock... [2025-02-12 13:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:30:39] Production.INFO: 68 MB #Memory Used# [2025-02-12 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:31:05 [end_date_ymd] => 2025-02-12 13:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:31:05' and `end` < '2025-02-12 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-12 13:31:33] Production.INFO: count ==5369 [2025-02-12 13:31:35] Production.ERROR: pbx CDR StartTime 2025-02-12 10:31:05 - End Time 2025-02-12 13:31:05 [2025-02-12 13:31:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:31:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459396', 'tblTempUsageDetail_20' ) start [2025-02-12 13:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459396', 'tblTempUsageDetail_20' ) end [2025-02-12 13:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459396', 'tblTempVendorCDR_20' ) start [2025-02-12 13:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459396', 'tblTempVendorCDR_20' ) end [2025-02-12 13:31:36] Production.INFO: ProcessCDR(1,14459396,1,1,2) [2025-02-12 13:31:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459396', 'tblTempUsageDetail_20' ) start [2025-02-12 13:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459396', 'tblTempUsageDetail_20' ) end [2025-02-12 13:31:41] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:31:41] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:31:41] Production.INFO: ==9932== Releasing lock... [2025-02-12 13:31:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:31:41] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:32:06 [end_date_ymd] => 2025-02-12 13:32:06 [RateCDR] => 1 ) [2025-02-12 13:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:32:06' and `end` < '2025-02-12 13:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:32:28] Production.INFO: count ==5383 [2025-02-12 13:32:30] Production.ERROR: pbx CDR StartTime 2025-02-12 10:32:06 - End Time 2025-02-12 13:32:06 [2025-02-12 13:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459401', 'tblTempUsageDetail_20' ) start [2025-02-12 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459401', 'tblTempUsageDetail_20' ) end [2025-02-12 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459401', 'tblTempVendorCDR_20' ) start [2025-02-12 13:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459401', 'tblTempVendorCDR_20' ) end [2025-02-12 13:32:31] Production.INFO: ProcessCDR(1,14459401,1,1,2) [2025-02-12 13:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459401', 'tblTempUsageDetail_20' ) start [2025-02-12 13:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459401', 'tblTempUsageDetail_20' ) end [2025-02-12 13:32:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:32:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:32:36] Production.INFO: ==10010== Releasing lock... [2025-02-12 13:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:32:36] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:33:06 [end_date_ymd] => 2025-02-12 13:33:06 [RateCDR] => 1 ) [2025-02-12 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:33:06' and `end` < '2025-02-12 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:33:26] Production.INFO: count ==5399 [2025-02-12 13:33:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:33:06 - End Time 2025-02-12 13:33:06 [2025-02-12 13:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459406', 'tblTempUsageDetail_20' ) start [2025-02-12 13:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459406', 'tblTempUsageDetail_20' ) end [2025-02-12 13:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459406', 'tblTempVendorCDR_20' ) start [2025-02-12 13:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459406', 'tblTempVendorCDR_20' ) end [2025-02-12 13:33:29] Production.INFO: ProcessCDR(1,14459406,1,1,2) [2025-02-12 13:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459406', 'tblTempUsageDetail_20' ) start [2025-02-12 13:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459406', 'tblTempUsageDetail_20' ) end [2025-02-12 13:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:33:35] Production.INFO: ==10091== Releasing lock... [2025-02-12 13:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:33:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:34:05 [end_date_ymd] => 2025-02-12 13:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:34:05' and `end` < '2025-02-12 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-12 13:34:24] Production.INFO: count ==5430 [2025-02-12 13:34:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:34:05 - End Time 2025-02-12 13:34:05 [2025-02-12 13:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459411', 'tblTempUsageDetail_20' ) start [2025-02-12 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459411', 'tblTempUsageDetail_20' ) end [2025-02-12 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459411', 'tblTempVendorCDR_20' ) start [2025-02-12 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459411', 'tblTempVendorCDR_20' ) end [2025-02-12 13:34:27] Production.INFO: ProcessCDR(1,14459411,1,1,2) [2025-02-12 13:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459411', 'tblTempUsageDetail_20' ) start [2025-02-12 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459411', 'tblTempUsageDetail_20' ) end [2025-02-12 13:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:34:32] Production.INFO: ==10165== Releasing lock... [2025-02-12 13:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:34:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:35:05 [end_date_ymd] => 2025-02-12 13:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:35:05' and `end` < '2025-02-12 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-12 13:35:28] Production.INFO: count ==5468 [2025-02-12 13:35:30] Production.ERROR: pbx CDR StartTime 2025-02-12 10:35:05 - End Time 2025-02-12 13:35:05 [2025-02-12 13:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459416', 'tblTempUsageDetail_20' ) start [2025-02-12 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459416', 'tblTempUsageDetail_20' ) end [2025-02-12 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459416', 'tblTempVendorCDR_20' ) start [2025-02-12 13:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459416', 'tblTempVendorCDR_20' ) end [2025-02-12 13:35:31] Production.INFO: ProcessCDR(1,14459416,1,1,2) [2025-02-12 13:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459416', 'tblTempUsageDetail_20' ) start [2025-02-12 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459416', 'tblTempUsageDetail_20' ) end [2025-02-12 13:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:35:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:35:37] Production.INFO: ==10238== Releasing lock... [2025-02-12 13:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:35:37] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:36:06 [end_date_ymd] => 2025-02-12 13:36:06 [RateCDR] => 1 ) [2025-02-12 13: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-12 10:36:06' and `end` < '2025-02-12 13: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-12 13:36:34] Production.INFO: count ==5476 [2025-02-12 13:36:37] Production.ERROR: pbx CDR StartTime 2025-02-12 10:36:06 - End Time 2025-02-12 13:36:06 [2025-02-12 13:36:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459421', 'tblTempUsageDetail_20' ) start [2025-02-12 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459421', 'tblTempUsageDetail_20' ) end [2025-02-12 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459421', 'tblTempVendorCDR_20' ) start [2025-02-12 13:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459421', 'tblTempVendorCDR_20' ) end [2025-02-12 13:36:37] Production.INFO: ProcessCDR(1,14459421,1,1,2) [2025-02-12 13:36:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:36:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:36:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:36:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459421', 'tblTempUsageDetail_20' ) start [2025-02-12 13:36:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459421', 'tblTempUsageDetail_20' ) end [2025-02-12 13:36:43] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:36:43] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:36:43] Production.INFO: ==10314== Releasing lock... [2025-02-12 13:36:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:36:43] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:37:05 [end_date_ymd] => 2025-02-12 13:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:37:05' and `end` < '2025-02-12 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-12 13:37:24] Production.INFO: count ==5488 [2025-02-12 13:37:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:37:05 - End Time 2025-02-12 13:37:05 [2025-02-12 13:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459426', 'tblTempUsageDetail_20' ) start [2025-02-12 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459426', 'tblTempUsageDetail_20' ) end [2025-02-12 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459426', 'tblTempVendorCDR_20' ) start [2025-02-12 13:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459426', 'tblTempVendorCDR_20' ) end [2025-02-12 13:37:27] Production.INFO: ProcessCDR(1,14459426,1,1,2) [2025-02-12 13:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459426', 'tblTempUsageDetail_20' ) start [2025-02-12 13:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459426', 'tblTempUsageDetail_20' ) end [2025-02-12 13:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:37:32] Production.INFO: ==10383== Releasing lock... [2025-02-12 13:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:37:32] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:38:05 [end_date_ymd] => 2025-02-12 13:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:38:05' and `end` < '2025-02-12 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-12 13:38:22] Production.INFO: count ==5493 [2025-02-12 13:38:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:38:05 - End Time 2025-02-12 13:38:05 [2025-02-12 13:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459431', 'tblTempUsageDetail_20' ) start [2025-02-12 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459431', 'tblTempUsageDetail_20' ) end [2025-02-12 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459431', 'tblTempVendorCDR_20' ) start [2025-02-12 13:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459431', 'tblTempVendorCDR_20' ) end [2025-02-12 13:38:25] Production.INFO: ProcessCDR(1,14459431,1,1,2) [2025-02-12 13:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459431', 'tblTempUsageDetail_20' ) start [2025-02-12 13:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459431', 'tblTempUsageDetail_20' ) end [2025-02-12 13:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:38:31] Production.INFO: ==10458== Releasing lock... [2025-02-12 13:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:38:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:39:06 [end_date_ymd] => 2025-02-12 13:39:06 [RateCDR] => 1 ) [2025-02-12 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:39:06' and `end` < '2025-02-12 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:39:26] Production.INFO: count ==5496 [2025-02-12 13:39:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:39:06 - End Time 2025-02-12 13:39:06 [2025-02-12 13:39:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459436', 'tblTempUsageDetail_20' ) start [2025-02-12 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459436', 'tblTempUsageDetail_20' ) end [2025-02-12 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459436', 'tblTempVendorCDR_20' ) start [2025-02-12 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459436', 'tblTempVendorCDR_20' ) end [2025-02-12 13:39:29] Production.INFO: ProcessCDR(1,14459436,1,1,2) [2025-02-12 13:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:39:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459436', 'tblTempUsageDetail_20' ) start [2025-02-12 13:39:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459436', 'tblTempUsageDetail_20' ) end [2025-02-12 13:39:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:39:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:39:34] Production.INFO: ==10533== Releasing lock... [2025-02-12 13:39:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:39:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:40:05 [end_date_ymd] => 2025-02-12 13:40:05 [RateCDR] => 1 ) [2025-02-12 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:40:05' and `end` < '2025-02-12 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:40:20] Production.INFO: count ==5444 [2025-02-12 13:40:23] Production.ERROR: pbx CDR StartTime 2025-02-12 10:40:05 - End Time 2025-02-12 13:40:05 [2025-02-12 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459441', 'tblTempUsageDetail_20' ) start [2025-02-12 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459441', 'tblTempUsageDetail_20' ) end [2025-02-12 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459441', 'tblTempVendorCDR_20' ) start [2025-02-12 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459441', 'tblTempVendorCDR_20' ) end [2025-02-12 13:40:23] Production.INFO: ProcessCDR(1,14459441,1,1,2) [2025-02-12 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459441', 'tblTempUsageDetail_20' ) start [2025-02-12 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459441', 'tblTempUsageDetail_20' ) end [2025-02-12 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:40:28] Production.INFO: ==10610== Releasing lock... [2025-02-12 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:40:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:41:05 [end_date_ymd] => 2025-02-12 13:41:05 [RateCDR] => 1 ) [2025-02-12 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:41:05' and `end` < '2025-02-12 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:41:26] Production.INFO: count ==5438 [2025-02-12 13:41:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:41:05 - End Time 2025-02-12 13:41:05 [2025-02-12 13:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459447', 'tblTempUsageDetail_20' ) start [2025-02-12 13:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459447', 'tblTempUsageDetail_20' ) end [2025-02-12 13:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459447', 'tblTempVendorCDR_20' ) start [2025-02-12 13:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459447', 'tblTempVendorCDR_20' ) end [2025-02-12 13:41:29] Production.INFO: ProcessCDR(1,14459447,1,1,2) [2025-02-12 13:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459447', 'tblTempUsageDetail_20' ) start [2025-02-12 13:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459447', 'tblTempUsageDetail_20' ) end [2025-02-12 13:41:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:41:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:41:34] Production.INFO: ==10685== Releasing lock... [2025-02-12 13:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:41:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:42:05 [end_date_ymd] => 2025-02-12 13:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:42:05' and `end` < '2025-02-12 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-12 13:42:22] Production.INFO: count ==5424 [2025-02-12 13:42:25] Production.ERROR: pbx CDR StartTime 2025-02-12 10:42:05 - End Time 2025-02-12 13:42:05 [2025-02-12 13:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459452', 'tblTempUsageDetail_20' ) start [2025-02-12 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459452', 'tblTempUsageDetail_20' ) end [2025-02-12 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459452', 'tblTempVendorCDR_20' ) start [2025-02-12 13:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459452', 'tblTempVendorCDR_20' ) end [2025-02-12 13:42:25] Production.INFO: ProcessCDR(1,14459452,1,1,2) [2025-02-12 13:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459452', 'tblTempUsageDetail_20' ) start [2025-02-12 13:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459452', 'tblTempUsageDetail_20' ) end [2025-02-12 13:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:42:31] Production.INFO: ==10757== Releasing lock... [2025-02-12 13:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:42:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:43:05 [end_date_ymd] => 2025-02-12 13:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:43:05' and `end` < '2025-02-12 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-12 13:43:24] Production.INFO: count ==5442 [2025-02-12 13:43:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:43:05 - End Time 2025-02-12 13:43:05 [2025-02-12 13:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459457', 'tblTempUsageDetail_20' ) start [2025-02-12 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459457', 'tblTempUsageDetail_20' ) end [2025-02-12 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459457', 'tblTempVendorCDR_20' ) start [2025-02-12 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459457', 'tblTempVendorCDR_20' ) end [2025-02-12 13:43:27] Production.INFO: ProcessCDR(1,14459457,1,1,2) [2025-02-12 13:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459457', 'tblTempUsageDetail_20' ) start [2025-02-12 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459457', 'tblTempUsageDetail_20' ) end [2025-02-12 13:43:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:43:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:43:32] Production.INFO: ==10831== Releasing lock... [2025-02-12 13:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:43:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:44:05 [end_date_ymd] => 2025-02-12 13:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:44:05' and `end` < '2025-02-12 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-12 13:44:26] Production.INFO: count ==5442 [2025-02-12 13:44:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:44:05 - End Time 2025-02-12 13:44:05 [2025-02-12 13:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459462', 'tblTempUsageDetail_20' ) start [2025-02-12 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459462', 'tblTempUsageDetail_20' ) end [2025-02-12 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459462', 'tblTempVendorCDR_20' ) start [2025-02-12 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459462', 'tblTempVendorCDR_20' ) end [2025-02-12 13:44:29] Production.INFO: ProcessCDR(1,14459462,1,1,2) [2025-02-12 13:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459462', 'tblTempUsageDetail_20' ) start [2025-02-12 13:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459462', 'tblTempUsageDetail_20' ) end [2025-02-12 13:44:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:44:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:44:35] Production.INFO: ==10902== Releasing lock... [2025-02-12 13:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:44:35] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:45:06 [end_date_ymd] => 2025-02-12 13:45:06 [RateCDR] => 1 ) [2025-02-12 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-12 10:45:06' and `end` < '2025-02-12 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-12 13:45:28] Production.INFO: count ==5447 [2025-02-12 13:45:31] Production.ERROR: pbx CDR StartTime 2025-02-12 10:45:06 - End Time 2025-02-12 13:45:06 [2025-02-12 13:45:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459467', 'tblTempUsageDetail_20' ) start [2025-02-12 13:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459467', 'tblTempUsageDetail_20' ) end [2025-02-12 13:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459467', 'tblTempVendorCDR_20' ) start [2025-02-12 13:45:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459467', 'tblTempVendorCDR_20' ) end [2025-02-12 13:45:31] Production.INFO: ProcessCDR(1,14459467,1,1,2) [2025-02-12 13:45:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459467', 'tblTempUsageDetail_20' ) start [2025-02-12 13:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459467', 'tblTempUsageDetail_20' ) end [2025-02-12 13:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:45:36] Production.INFO: ==10976== Releasing lock... [2025-02-12 13:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:45:36] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:46:05 [end_date_ymd] => 2025-02-12 13:46:05 [RateCDR] => 1 ) [2025-02-12 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:46:05' and `end` < '2025-02-12 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:46:24] Production.INFO: count ==5452 [2025-02-12 13:46:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:46:05 - End Time 2025-02-12 13:46:05 [2025-02-12 13:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459472', 'tblTempUsageDetail_20' ) start [2025-02-12 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459472', 'tblTempUsageDetail_20' ) end [2025-02-12 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459472', 'tblTempVendorCDR_20' ) start [2025-02-12 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459472', 'tblTempVendorCDR_20' ) end [2025-02-12 13:46:27] Production.INFO: ProcessCDR(1,14459472,1,1,2) [2025-02-12 13:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459472', 'tblTempUsageDetail_20' ) start [2025-02-12 13:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459472', 'tblTempUsageDetail_20' ) end [2025-02-12 13:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:46:33] Production.INFO: ==11092== Releasing lock... [2025-02-12 13:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:46:33] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:47:05 [end_date_ymd] => 2025-02-12 13:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:47:05' and `end` < '2025-02-12 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-12 13:47:24] Production.INFO: count ==5444 [2025-02-12 13:47:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:47:05 - End Time 2025-02-12 13:47:05 [2025-02-12 13:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459477', 'tblTempUsageDetail_20' ) start [2025-02-12 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459477', 'tblTempUsageDetail_20' ) end [2025-02-12 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459477', 'tblTempVendorCDR_20' ) start [2025-02-12 13:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459477', 'tblTempVendorCDR_20' ) end [2025-02-12 13:47:27] Production.INFO: ProcessCDR(1,14459477,1,1,2) [2025-02-12 13:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459477', 'tblTempUsageDetail_20' ) start [2025-02-12 13:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459477', 'tblTempUsageDetail_20' ) end [2025-02-12 13:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:47:33] Production.INFO: ==11171== Releasing lock... [2025-02-12 13:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:47:33] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:48:05 [end_date_ymd] => 2025-02-12 13:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:48:05' and `end` < '2025-02-12 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-12 13:48:24] Production.INFO: count ==5450 [2025-02-12 13:48:26] Production.ERROR: pbx CDR StartTime 2025-02-12 10:48:05 - End Time 2025-02-12 13:48:05 [2025-02-12 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459482', 'tblTempUsageDetail_20' ) start [2025-02-12 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459482', 'tblTempUsageDetail_20' ) end [2025-02-12 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459482', 'tblTempVendorCDR_20' ) start [2025-02-12 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459482', 'tblTempVendorCDR_20' ) end [2025-02-12 13:48:26] Production.INFO: ProcessCDR(1,14459482,1,1,2) [2025-02-12 13:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459482', 'tblTempUsageDetail_20' ) start [2025-02-12 13:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459482', 'tblTempUsageDetail_20' ) end [2025-02-12 13:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:48:32] Production.INFO: ==11241== Releasing lock... [2025-02-12 13:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:48:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:49:05 [end_date_ymd] => 2025-02-12 13:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:49:05' and `end` < '2025-02-12 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-12 13:49:25] Production.INFO: count ==5471 [2025-02-12 13:49:28] Production.ERROR: pbx CDR StartTime 2025-02-12 10:49:05 - End Time 2025-02-12 13:49:05 [2025-02-12 13:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459487', 'tblTempUsageDetail_20' ) start [2025-02-12 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459487', 'tblTempUsageDetail_20' ) end [2025-02-12 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459487', 'tblTempVendorCDR_20' ) start [2025-02-12 13:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459487', 'tblTempVendorCDR_20' ) end [2025-02-12 13:49:28] Production.INFO: ProcessCDR(1,14459487,1,1,2) [2025-02-12 13:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459487', 'tblTempUsageDetail_20' ) start [2025-02-12 13:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459487', 'tblTempUsageDetail_20' ) end [2025-02-12 13:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:49:34] Production.INFO: ==11317== Releasing lock... [2025-02-12 13:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:49:34] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:50:06 [end_date_ymd] => 2025-02-12 13:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 10:50:06' and `end` < '2025-02-12 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-12 13:50:27] Production.INFO: count ==5480 [2025-02-12 13:50:30] Production.ERROR: pbx CDR StartTime 2025-02-12 10:50:06 - End Time 2025-02-12 13:50:06 [2025-02-12 13:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459492', 'tblTempUsageDetail_20' ) start [2025-02-12 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459492', 'tblTempUsageDetail_20' ) end [2025-02-12 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459492', 'tblTempVendorCDR_20' ) start [2025-02-12 13:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459492', 'tblTempVendorCDR_20' ) end [2025-02-12 13:50:30] Production.INFO: ProcessCDR(1,14459492,1,1,2) [2025-02-12 13:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459492', 'tblTempUsageDetail_20' ) start [2025-02-12 13:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459492', 'tblTempUsageDetail_20' ) end [2025-02-12 13:50:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:50:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:50:36] Production.INFO: ==11391== Releasing lock... [2025-02-12 13:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:50:36] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:51:06 [end_date_ymd] => 2025-02-12 13:51:06 [RateCDR] => 1 ) [2025-02-12 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:51:06' and `end` < '2025-02-12 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:51:27] Production.INFO: count ==5494 [2025-02-12 13:51:30] Production.ERROR: pbx CDR StartTime 2025-02-12 10:51:06 - End Time 2025-02-12 13:51:06 [2025-02-12 13:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459498', 'tblTempUsageDetail_20' ) start [2025-02-12 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459498', 'tblTempUsageDetail_20' ) end [2025-02-12 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459498', 'tblTempVendorCDR_20' ) start [2025-02-12 13:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459498', 'tblTempVendorCDR_20' ) end [2025-02-12 13:51:30] Production.INFO: ProcessCDR(1,14459498,1,1,2) [2025-02-12 13:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459498', 'tblTempUsageDetail_20' ) start [2025-02-12 13:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459498', 'tblTempUsageDetail_20' ) end [2025-02-12 13:51:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:51:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:51:36] Production.INFO: ==11463== Releasing lock... [2025-02-12 13:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:51:36] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:52:05 [end_date_ymd] => 2025-02-12 13:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:52:05' and `end` < '2025-02-12 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-12 13:52:26] Production.INFO: count ==5505 [2025-02-12 13:52:29] Production.ERROR: pbx CDR StartTime 2025-02-12 10:52:05 - End Time 2025-02-12 13:52:05 [2025-02-12 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459503', 'tblTempUsageDetail_20' ) start [2025-02-12 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459503', 'tblTempUsageDetail_20' ) end [2025-02-12 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459503', 'tblTempVendorCDR_20' ) start [2025-02-12 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459503', 'tblTempVendorCDR_20' ) end [2025-02-12 13:52:29] Production.INFO: ProcessCDR(1,14459503,1,1,2) [2025-02-12 13:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459503', 'tblTempUsageDetail_20' ) start [2025-02-12 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459503', 'tblTempUsageDetail_20' ) end [2025-02-12 13:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:52:34] Production.INFO: ==11546== Releasing lock... [2025-02-12 13:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:52:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:53:06 [end_date_ymd] => 2025-02-12 13:53:06 [RateCDR] => 1 ) [2025-02-12 13: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-12 10:53:06' and `end` < '2025-02-12 13: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-12 13:53:24] Production.INFO: count ==5490 [2025-02-12 13:53:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:53:06 - End Time 2025-02-12 13:53:06 [2025-02-12 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459508', 'tblTempUsageDetail_20' ) start [2025-02-12 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459508', 'tblTempUsageDetail_20' ) end [2025-02-12 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459508', 'tblTempVendorCDR_20' ) start [2025-02-12 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459508', 'tblTempVendorCDR_20' ) end [2025-02-12 13:53:27] Production.INFO: ProcessCDR(1,14459508,1,1,2) [2025-02-12 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459508', 'tblTempUsageDetail_20' ) start [2025-02-12 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459508', 'tblTempUsageDetail_20' ) end [2025-02-12 13:53:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:53:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:53:32] Production.INFO: ==11622== Releasing lock... [2025-02-12 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:53:32] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:54:05 [end_date_ymd] => 2025-02-12 13:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:54:05' and `end` < '2025-02-12 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-12 13:54:30] Production.INFO: count ==5483 [2025-02-12 13:54:33] Production.ERROR: pbx CDR StartTime 2025-02-12 10:54:05 - End Time 2025-02-12 13:54:05 [2025-02-12 13:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459513', 'tblTempUsageDetail_20' ) start [2025-02-12 13:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459513', 'tblTempUsageDetail_20' ) end [2025-02-12 13:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459513', 'tblTempVendorCDR_20' ) start [2025-02-12 13:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459513', 'tblTempVendorCDR_20' ) end [2025-02-12 13:54:33] Production.INFO: ProcessCDR(1,14459513,1,1,2) [2025-02-12 13:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459513', 'tblTempUsageDetail_20' ) start [2025-02-12 13:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459513', 'tblTempUsageDetail_20' ) end [2025-02-12 13:54:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:54:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:54:39] Production.INFO: ==11696== Releasing lock... [2025-02-12 13:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:54:39] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:55:06 [end_date_ymd] => 2025-02-12 13:55:06 [RateCDR] => 1 ) [2025-02-12 13: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-12 10:55:06' and `end` < '2025-02-12 13: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-12 13:55:32] Production.INFO: count ==5464 [2025-02-12 13:55:34] Production.ERROR: pbx CDR StartTime 2025-02-12 10:55:06 - End Time 2025-02-12 13:55:06 [2025-02-12 13:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459518', 'tblTempUsageDetail_20' ) start [2025-02-12 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459518', 'tblTempUsageDetail_20' ) end [2025-02-12 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459518', 'tblTempVendorCDR_20' ) start [2025-02-12 13:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459518', 'tblTempVendorCDR_20' ) end [2025-02-12 13:55:35] Production.INFO: ProcessCDR(1,14459518,1,1,2) [2025-02-12 13:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459518', 'tblTempUsageDetail_20' ) start [2025-02-12 13:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459518', 'tblTempUsageDetail_20' ) end [2025-02-12 13:55:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:55:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:55:39] Production.INFO: ==11772== Releasing lock... [2025-02-12 13:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:55:39] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:56:05 [end_date_ymd] => 2025-02-12 13:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:56:05' and `end` < '2025-02-12 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-12 13:56:23] Production.INFO: count ==5465 [2025-02-12 13:56:26] Production.ERROR: pbx CDR StartTime 2025-02-12 10:56:05 - End Time 2025-02-12 13:56:05 [2025-02-12 13:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459523', 'tblTempUsageDetail_20' ) start [2025-02-12 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459523', 'tblTempUsageDetail_20' ) end [2025-02-12 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459523', 'tblTempVendorCDR_20' ) start [2025-02-12 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459523', 'tblTempVendorCDR_20' ) end [2025-02-12 13:56:26] Production.INFO: ProcessCDR(1,14459523,1,1,2) [2025-02-12 13:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459523', 'tblTempUsageDetail_20' ) start [2025-02-12 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459523', 'tblTempUsageDetail_20' ) end [2025-02-12 13:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:56:31] Production.INFO: ==11853== Releasing lock... [2025-02-12 13:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:56:31] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:57:05 [end_date_ymd] => 2025-02-12 13:57:05 [RateCDR] => 1 ) [2025-02-12 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:57:05' and `end` < '2025-02-12 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 13:57:20] Production.INFO: count ==5459 [2025-02-12 13:57:22] Production.ERROR: pbx CDR StartTime 2025-02-12 10:57:05 - End Time 2025-02-12 13:57:05 [2025-02-12 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459528', 'tblTempUsageDetail_20' ) start [2025-02-12 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459528', 'tblTempUsageDetail_20' ) end [2025-02-12 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459528', 'tblTempVendorCDR_20' ) start [2025-02-12 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459528', 'tblTempVendorCDR_20' ) end [2025-02-12 13:57:22] Production.INFO: ProcessCDR(1,14459528,1,1,2) [2025-02-12 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459528', 'tblTempUsageDetail_20' ) start [2025-02-12 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459528', 'tblTempUsageDetail_20' ) end [2025-02-12 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:57:27] Production.INFO: ==11926== Releasing lock... [2025-02-12 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:57:27] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:58:05 [end_date_ymd] => 2025-02-12 13:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 10:58:05' and `end` < '2025-02-12 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-12 13:58:21] Production.INFO: count ==5464 [2025-02-12 13:58:24] Production.ERROR: pbx CDR StartTime 2025-02-12 10:58:05 - End Time 2025-02-12 13:58:05 [2025-02-12 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459533', 'tblTempUsageDetail_20' ) start [2025-02-12 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459533', 'tblTempUsageDetail_20' ) end [2025-02-12 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459533', 'tblTempVendorCDR_20' ) start [2025-02-12 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459533', 'tblTempVendorCDR_20' ) end [2025-02-12 13:58:24] Production.INFO: ProcessCDR(1,14459533,1,1,2) [2025-02-12 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459533', 'tblTempUsageDetail_20' ) start [2025-02-12 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459533', 'tblTempUsageDetail_20' ) end [2025-02-12 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:58:29] Production.INFO: ==12008== Releasing lock... [2025-02-12 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:58:29] Production.INFO: 69 MB #Memory Used# [2025-02-12 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 10:59:05 [end_date_ymd] => 2025-02-12 13:59:05 [RateCDR] => 1 ) [2025-02-12 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 10:59:05' and `end` < '2025-02-12 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-12 13:59:24] Production.INFO: count ==5445 [2025-02-12 13:59:27] Production.ERROR: pbx CDR StartTime 2025-02-12 10:59:05 - End Time 2025-02-12 13:59:05 [2025-02-12 13:59:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459538', 'tblTempUsageDetail_20' ) start [2025-02-12 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459538', 'tblTempUsageDetail_20' ) end [2025-02-12 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459538', 'tblTempVendorCDR_20' ) start [2025-02-12 13:59:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459538', 'tblTempVendorCDR_20' ) end [2025-02-12 13:59:27] Production.INFO: ProcessCDR(1,14459538,1,1,2) [2025-02-12 13:59:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 13:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 13:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459538', 'tblTempUsageDetail_20' ) start [2025-02-12 13:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459538', 'tblTempUsageDetail_20' ) end [2025-02-12 13:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 13:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 13:59:32] Production.INFO: ==12088== Releasing lock... [2025-02-12 13:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 13:59:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:00:05 [end_date_ymd] => 2025-02-12 14:00:05 [RateCDR] => 1 ) [2025-02-12 14: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-12 11:00:05' and `end` < '2025-02-12 14: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-12 14:00:31] Production.INFO: count ==5460 [2025-02-12 14:00:34] Production.ERROR: pbx CDR StartTime 2025-02-12 11:00:05 - End Time 2025-02-12 14:00:05 [2025-02-12 14:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459544', 'tblTempUsageDetail_20' ) start [2025-02-12 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459544', 'tblTempUsageDetail_20' ) end [2025-02-12 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459544', 'tblTempVendorCDR_20' ) start [2025-02-12 14:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459544', 'tblTempVendorCDR_20' ) end [2025-02-12 14:00:34] Production.INFO: ProcessCDR(1,14459544,1,1,2) [2025-02-12 14:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459544', 'tblTempUsageDetail_20' ) start [2025-02-12 14:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459544', 'tblTempUsageDetail_20' ) end [2025-02-12 14:00:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:00:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:00:39] Production.INFO: ==12179== Releasing lock... [2025-02-12 14:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:00:39] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:01:05 [end_date_ymd] => 2025-02-12 14:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:01:05' and `end` < '2025-02-12 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-12 14:01:26] Production.INFO: count ==5457 [2025-02-12 14:01:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:01:05 - End Time 2025-02-12 14:01:05 [2025-02-12 14:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459549', 'tblTempUsageDetail_20' ) start [2025-02-12 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459549', 'tblTempUsageDetail_20' ) end [2025-02-12 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459549', 'tblTempVendorCDR_20' ) start [2025-02-12 14:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459549', 'tblTempVendorCDR_20' ) end [2025-02-12 14:01:29] Production.INFO: ProcessCDR(1,14459549,1,1,2) [2025-02-12 14:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459549', 'tblTempUsageDetail_20' ) start [2025-02-12 14:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459549', 'tblTempUsageDetail_20' ) end [2025-02-12 14:01:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:01:34] Production.INFO: ==12282== Releasing lock... [2025-02-12 14:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:01:34] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:02:05 [end_date_ymd] => 2025-02-12 14:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:02:05' and `end` < '2025-02-12 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-12 14:02:21] Production.INFO: count ==5457 [2025-02-12 14:02:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:02:05 - End Time 2025-02-12 14:02:05 [2025-02-12 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459554', 'tblTempUsageDetail_20' ) start [2025-02-12 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459554', 'tblTempUsageDetail_20' ) end [2025-02-12 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459554', 'tblTempVendorCDR_20' ) start [2025-02-12 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459554', 'tblTempVendorCDR_20' ) end [2025-02-12 14:02:24] Production.INFO: ProcessCDR(1,14459554,1,1,2) [2025-02-12 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459554', 'tblTempUsageDetail_20' ) start [2025-02-12 14:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459554', 'tblTempUsageDetail_20' ) end [2025-02-12 14:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:02:29] Production.INFO: ==12400== Releasing lock... [2025-02-12 14:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:02:29] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:03:05 [end_date_ymd] => 2025-02-12 14:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:03:05' and `end` < '2025-02-12 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-12 14:03:24] Production.INFO: count ==5467 [2025-02-12 14:03:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:03:05 - End Time 2025-02-12 14:03:05 [2025-02-12 14:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459559', 'tblTempUsageDetail_20' ) start [2025-02-12 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459559', 'tblTempUsageDetail_20' ) end [2025-02-12 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459559', 'tblTempVendorCDR_20' ) start [2025-02-12 14:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459559', 'tblTempVendorCDR_20' ) end [2025-02-12 14:03:27] Production.INFO: ProcessCDR(1,14459559,1,1,2) [2025-02-12 14:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459559', 'tblTempUsageDetail_20' ) start [2025-02-12 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459559', 'tblTempUsageDetail_20' ) end [2025-02-12 14:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:03:32] Production.INFO: ==12484== Releasing lock... [2025-02-12 14:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:03:32] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:04:06 [end_date_ymd] => 2025-02-12 14:04:06 [RateCDR] => 1 ) [2025-02-12 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:04:06' and `end` < '2025-02-12 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:04:22] Production.INFO: count ==5461 [2025-02-12 14:04:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:04:06 - End Time 2025-02-12 14:04:06 [2025-02-12 14:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459564', 'tblTempUsageDetail_20' ) start [2025-02-12 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459564', 'tblTempUsageDetail_20' ) end [2025-02-12 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459564', 'tblTempVendorCDR_20' ) start [2025-02-12 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459564', 'tblTempVendorCDR_20' ) end [2025-02-12 14:04:25] Production.INFO: ProcessCDR(1,14459564,1,1,2) [2025-02-12 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459564', 'tblTempUsageDetail_20' ) start [2025-02-12 14:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459564', 'tblTempUsageDetail_20' ) end [2025-02-12 14:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:04:30] Production.INFO: ==12558== Releasing lock... [2025-02-12 14:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:04:30] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:05:05 [end_date_ymd] => 2025-02-12 14:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:05:05' and `end` < '2025-02-12 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-12 14:05:20] Production.INFO: count ==5443 [2025-02-12 14:05:22] Production.ERROR: pbx CDR StartTime 2025-02-12 11:05:05 - End Time 2025-02-12 14:05:05 [2025-02-12 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459569', 'tblTempUsageDetail_20' ) start [2025-02-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459569', 'tblTempUsageDetail_20' ) end [2025-02-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459569', 'tblTempVendorCDR_20' ) start [2025-02-12 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459569', 'tblTempVendorCDR_20' ) end [2025-02-12 14:05:22] Production.INFO: ProcessCDR(1,14459569,1,1,2) [2025-02-12 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459569', 'tblTempUsageDetail_20' ) start [2025-02-12 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459569', 'tblTempUsageDetail_20' ) end [2025-02-12 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:05:28] Production.INFO: ==12638== Releasing lock... [2025-02-12 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:05:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:06:06 [end_date_ymd] => 2025-02-12 14:06:06 [RateCDR] => 1 ) [2025-02-12 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:06:06' and `end` < '2025-02-12 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:06:23] Production.INFO: count ==5461 [2025-02-12 14:06:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:06:06 - End Time 2025-02-12 14:06:06 [2025-02-12 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459574', 'tblTempUsageDetail_20' ) start [2025-02-12 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459574', 'tblTempUsageDetail_20' ) end [2025-02-12 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459574', 'tblTempVendorCDR_20' ) start [2025-02-12 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459574', 'tblTempVendorCDR_20' ) end [2025-02-12 14:06:26] Production.INFO: ProcessCDR(1,14459574,1,1,2) [2025-02-12 14:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459574', 'tblTempUsageDetail_20' ) start [2025-02-12 14:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459574', 'tblTempUsageDetail_20' ) end [2025-02-12 14:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:06:31] Production.INFO: ==12722== Releasing lock... [2025-02-12 14:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:06:31] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:07:05 [end_date_ymd] => 2025-02-12 14:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:07:05' and `end` < '2025-02-12 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-12 14:07:24] Production.INFO: count ==5465 [2025-02-12 14:07:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:07:05 - End Time 2025-02-12 14:07:05 [2025-02-12 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459579', 'tblTempUsageDetail_20' ) start [2025-02-12 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459579', 'tblTempUsageDetail_20' ) end [2025-02-12 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459579', 'tblTempVendorCDR_20' ) start [2025-02-12 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459579', 'tblTempVendorCDR_20' ) end [2025-02-12 14:07:26] Production.INFO: ProcessCDR(1,14459579,1,1,2) [2025-02-12 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459579', 'tblTempUsageDetail_20' ) start [2025-02-12 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459579', 'tblTempUsageDetail_20' ) end [2025-02-12 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:07:31] Production.INFO: ==12794== Releasing lock... [2025-02-12 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:07:31] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:08:06 [end_date_ymd] => 2025-02-12 14:08:06 [RateCDR] => 1 ) [2025-02-12 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:08:06' and `end` < '2025-02-12 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:08:23] Production.INFO: count ==5438 [2025-02-12 14:08:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:08:06 - End Time 2025-02-12 14:08:06 [2025-02-12 14:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459584', 'tblTempUsageDetail_20' ) start [2025-02-12 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459584', 'tblTempUsageDetail_20' ) end [2025-02-12 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459584', 'tblTempVendorCDR_20' ) start [2025-02-12 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459584', 'tblTempVendorCDR_20' ) end [2025-02-12 14:08:25] Production.INFO: ProcessCDR(1,14459584,1,1,2) [2025-02-12 14:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459584', 'tblTempUsageDetail_20' ) start [2025-02-12 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459584', 'tblTempUsageDetail_20' ) end [2025-02-12 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:08:30] Production.INFO: ==12882== Releasing lock... [2025-02-12 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:08:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:09:05 [end_date_ymd] => 2025-02-12 14:09:05 [RateCDR] => 1 ) [2025-02-12 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:09:05' and `end` < '2025-02-12 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:09:24] Production.INFO: count ==5449 [2025-02-12 14:09:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:09:05 - End Time 2025-02-12 14:09:05 [2025-02-12 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459589', 'tblTempUsageDetail_20' ) start [2025-02-12 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459589', 'tblTempUsageDetail_20' ) end [2025-02-12 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459589', 'tblTempVendorCDR_20' ) start [2025-02-12 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459589', 'tblTempVendorCDR_20' ) end [2025-02-12 14:09:26] Production.INFO: ProcessCDR(1,14459589,1,1,2) [2025-02-12 14:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459589', 'tblTempUsageDetail_20' ) start [2025-02-12 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459589', 'tblTempUsageDetail_20' ) end [2025-02-12 14:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:09:31] Production.INFO: ==12956== Releasing lock... [2025-02-12 14:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:09:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:10:06 [end_date_ymd] => 2025-02-12 14:10:06 [RateCDR] => 1 ) [2025-02-12 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:10:06' and `end` < '2025-02-12 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:10:21] Production.INFO: count ==5434 [2025-02-12 14:10:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:10:06 - End Time 2025-02-12 14:10:06 [2025-02-12 14:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459595', 'tblTempUsageDetail_20' ) start [2025-02-12 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459595', 'tblTempUsageDetail_20' ) end [2025-02-12 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459595', 'tblTempVendorCDR_20' ) start [2025-02-12 14:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459595', 'tblTempVendorCDR_20' ) end [2025-02-12 14:10:24] Production.INFO: ProcessCDR(1,14459595,1,1,2) [2025-02-12 14:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459595', 'tblTempUsageDetail_20' ) start [2025-02-12 14:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459595', 'tblTempUsageDetail_20' ) end [2025-02-12 14:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:10:29] Production.INFO: ==13038== Releasing lock... [2025-02-12 14:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:10:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:11:05 [end_date_ymd] => 2025-02-12 14:11:05 [RateCDR] => 1 ) [2025-02-12 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:11:05' and `end` < '2025-02-12 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:11:26] Production.INFO: count ==5425 [2025-02-12 14:11:29] Production.ERROR: pbx CDR StartTime 2025-02-12 11:11:05 - End Time 2025-02-12 14:11:05 [2025-02-12 14:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459600', 'tblTempUsageDetail_20' ) start [2025-02-12 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459600', 'tblTempUsageDetail_20' ) end [2025-02-12 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459600', 'tblTempVendorCDR_20' ) start [2025-02-12 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459600', 'tblTempVendorCDR_20' ) end [2025-02-12 14:11:29] Production.INFO: ProcessCDR(1,14459600,1,1,2) [2025-02-12 14:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459600', 'tblTempUsageDetail_20' ) start [2025-02-12 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459600', 'tblTempUsageDetail_20' ) end [2025-02-12 14:11:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:11:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:11:34] Production.INFO: ==13126== Releasing lock... [2025-02-12 14:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:11:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:12:05 [end_date_ymd] => 2025-02-12 14:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:12:05' and `end` < '2025-02-12 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-12 14:12:22] Production.INFO: count ==5420 [2025-02-12 14:12:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:12:05 - End Time 2025-02-12 14:12:05 [2025-02-12 14:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459605', 'tblTempUsageDetail_20' ) start [2025-02-12 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459605', 'tblTempUsageDetail_20' ) end [2025-02-12 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459605', 'tblTempVendorCDR_20' ) start [2025-02-12 14:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459605', 'tblTempVendorCDR_20' ) end [2025-02-12 14:12:25] Production.INFO: ProcessCDR(1,14459605,1,1,2) [2025-02-12 14:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459605', 'tblTempUsageDetail_20' ) start [2025-02-12 14:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459605', 'tblTempUsageDetail_20' ) end [2025-02-12 14:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:12:30] Production.INFO: ==13209== Releasing lock... [2025-02-12 14:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:12:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:13:05 [end_date_ymd] => 2025-02-12 14:13:05 [RateCDR] => 1 ) [2025-02-12 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:13:05' and `end` < '2025-02-12 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:13:24] Production.INFO: count ==5411 [2025-02-12 14:13:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:13:05 - End Time 2025-02-12 14:13:05 [2025-02-12 14:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459610', 'tblTempUsageDetail_20' ) start [2025-02-12 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459610', 'tblTempUsageDetail_20' ) end [2025-02-12 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459610', 'tblTempVendorCDR_20' ) start [2025-02-12 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459610', 'tblTempVendorCDR_20' ) end [2025-02-12 14:13:27] Production.INFO: ProcessCDR(1,14459610,1,1,2) [2025-02-12 14:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459610', 'tblTempUsageDetail_20' ) start [2025-02-12 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459610', 'tblTempUsageDetail_20' ) end [2025-02-12 14:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:13:32] Production.INFO: ==13288== Releasing lock... [2025-02-12 14:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:13:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:14:05 [end_date_ymd] => 2025-02-12 14:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:14:05' and `end` < '2025-02-12 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-12 14:14:27] Production.INFO: count ==5414 [2025-02-12 14:14:30] Production.ERROR: pbx CDR StartTime 2025-02-12 11:14:05 - End Time 2025-02-12 14:14:05 [2025-02-12 14:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459615', 'tblTempUsageDetail_20' ) start [2025-02-12 14:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459615', 'tblTempUsageDetail_20' ) end [2025-02-12 14:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459615', 'tblTempVendorCDR_20' ) start [2025-02-12 14:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459615', 'tblTempVendorCDR_20' ) end [2025-02-12 14:14:30] Production.INFO: ProcessCDR(1,14459615,1,1,2) [2025-02-12 14:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459615', 'tblTempUsageDetail_20' ) start [2025-02-12 14:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459615', 'tblTempUsageDetail_20' ) end [2025-02-12 14:14:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:14:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:14:35] Production.INFO: ==13379== Releasing lock... [2025-02-12 14:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:14:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:15:05 [end_date_ymd] => 2025-02-12 14:15:05 [RateCDR] => 1 ) [2025-02-12 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:15:05' and `end` < '2025-02-12 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:15:24] Production.INFO: count ==5390 [2025-02-12 14:15:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:15:05 - End Time 2025-02-12 14:15:05 [2025-02-12 14:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459620', 'tblTempUsageDetail_20' ) start [2025-02-12 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459620', 'tblTempUsageDetail_20' ) end [2025-02-12 14:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459620', 'tblTempVendorCDR_20' ) start [2025-02-12 14:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459620', 'tblTempVendorCDR_20' ) end [2025-02-12 14:15:27] Production.INFO: ProcessCDR(1,14459620,1,1,2) [2025-02-12 14:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459620', 'tblTempUsageDetail_20' ) start [2025-02-12 14:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459620', 'tblTempUsageDetail_20' ) end [2025-02-12 14:15:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:15:32] Production.INFO: ==13456== Releasing lock... [2025-02-12 14:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:15:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:16:05 [end_date_ymd] => 2025-02-12 14:16:05 [RateCDR] => 1 ) [2025-02-12 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:16:05' and `end` < '2025-02-12 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-12 14:16:19] Production.INFO: count ==5388 [2025-02-12 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-12 11:16:05 - End Time 2025-02-12 14:16:05 [2025-02-12 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459625', 'tblTempUsageDetail_20' ) start [2025-02-12 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459625', 'tblTempUsageDetail_20' ) end [2025-02-12 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459625', 'tblTempVendorCDR_20' ) start [2025-02-12 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459625', 'tblTempVendorCDR_20' ) end [2025-02-12 14:16:22] Production.INFO: ProcessCDR(1,14459625,1,1,2) [2025-02-12 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459625', 'tblTempUsageDetail_20' ) start [2025-02-12 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459625', 'tblTempUsageDetail_20' ) end [2025-02-12 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:16:27] Production.INFO: ==13535== Releasing lock... [2025-02-12 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:16:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:17:05 [end_date_ymd] => 2025-02-12 14:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:17:05' and `end` < '2025-02-12 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-12 14:17:20] Production.INFO: count ==5405 [2025-02-12 14:17:23] Production.ERROR: pbx CDR StartTime 2025-02-12 11:17:05 - End Time 2025-02-12 14:17:05 [2025-02-12 14:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459630', 'tblTempUsageDetail_20' ) start [2025-02-12 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459630', 'tblTempUsageDetail_20' ) end [2025-02-12 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459630', 'tblTempVendorCDR_20' ) start [2025-02-12 14:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459630', 'tblTempVendorCDR_20' ) end [2025-02-12 14:17:23] Production.INFO: ProcessCDR(1,14459630,1,1,2) [2025-02-12 14:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459630', 'tblTempUsageDetail_20' ) start [2025-02-12 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459630', 'tblTempUsageDetail_20' ) end [2025-02-12 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:17:28] Production.INFO: ==13650== Releasing lock... [2025-02-12 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:17:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:18:05 [end_date_ymd] => 2025-02-12 14:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:18:05' and `end` < '2025-02-12 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-12 14:18:23] Production.INFO: count ==5372 [2025-02-12 14:18:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:18:05 - End Time 2025-02-12 14:18:05 [2025-02-12 14:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459635', 'tblTempUsageDetail_20' ) start [2025-02-12 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459635', 'tblTempUsageDetail_20' ) end [2025-02-12 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459635', 'tblTempVendorCDR_20' ) start [2025-02-12 14:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459635', 'tblTempVendorCDR_20' ) end [2025-02-12 14:18:26] Production.INFO: ProcessCDR(1,14459635,1,1,2) [2025-02-12 14:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459635', 'tblTempUsageDetail_20' ) start [2025-02-12 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459635', 'tblTempUsageDetail_20' ) end [2025-02-12 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:18:31] Production.INFO: ==13727== Releasing lock... [2025-02-12 14:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:18:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:19:05 [end_date_ymd] => 2025-02-12 14:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:19:05' and `end` < '2025-02-12 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-12 14:19:20] Production.INFO: count ==5375 [2025-02-12 14:19:22] Production.ERROR: pbx CDR StartTime 2025-02-12 11:19:05 - End Time 2025-02-12 14:19:05 [2025-02-12 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459640', 'tblTempUsageDetail_20' ) start [2025-02-12 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459640', 'tblTempUsageDetail_20' ) end [2025-02-12 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459640', 'tblTempVendorCDR_20' ) start [2025-02-12 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459640', 'tblTempVendorCDR_20' ) end [2025-02-12 14:19:22] Production.INFO: ProcessCDR(1,14459640,1,1,2) [2025-02-12 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459640', 'tblTempUsageDetail_20' ) start [2025-02-12 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459640', 'tblTempUsageDetail_20' ) end [2025-02-12 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:19:28] Production.INFO: ==13808== Releasing lock... [2025-02-12 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:19:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:20:06 [end_date_ymd] => 2025-02-12 14:20:06 [RateCDR] => 1 ) [2025-02-12 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:20:06' and `end` < '2025-02-12 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:20:22] Production.INFO: count ==5355 [2025-02-12 14:20:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:20:06 - End Time 2025-02-12 14:20:06 [2025-02-12 14:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459645', 'tblTempUsageDetail_20' ) start [2025-02-12 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459645', 'tblTempUsageDetail_20' ) end [2025-02-12 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459645', 'tblTempVendorCDR_20' ) start [2025-02-12 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459645', 'tblTempVendorCDR_20' ) end [2025-02-12 14:20:24] Production.INFO: ProcessCDR(1,14459645,1,1,2) [2025-02-12 14:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459645', 'tblTempUsageDetail_20' ) start [2025-02-12 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459645', 'tblTempUsageDetail_20' ) end [2025-02-12 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:20:29] Production.INFO: ==13890== Releasing lock... [2025-02-12 14:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:20:29] Production.INFO: 68 MB #Memory Used# [2025-02-12 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:21:05 [end_date_ymd] => 2025-02-12 14:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:21:05' and `end` < '2025-02-12 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-12 14:21:27] Production.INFO: count ==5311 [2025-02-12 14:21:30] Production.ERROR: pbx CDR StartTime 2025-02-12 11:21:05 - End Time 2025-02-12 14:21:05 [2025-02-12 14:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459651', 'tblTempUsageDetail_20' ) start [2025-02-12 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459651', 'tblTempUsageDetail_20' ) end [2025-02-12 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459651', 'tblTempVendorCDR_20' ) start [2025-02-12 14:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459651', 'tblTempVendorCDR_20' ) end [2025-02-12 14:21:30] Production.INFO: ProcessCDR(1,14459651,1,1,2) [2025-02-12 14:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459651', 'tblTempUsageDetail_20' ) start [2025-02-12 14:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459651', 'tblTempUsageDetail_20' ) end [2025-02-12 14:21:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:21:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:21:35] Production.INFO: ==13972== Releasing lock... [2025-02-12 14:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:21:35] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:22:05 [end_date_ymd] => 2025-02-12 14:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:22:05' and `end` < '2025-02-12 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-12 14:22:29] Production.INFO: count ==5368 [2025-02-12 14:22:31] Production.ERROR: pbx CDR StartTime 2025-02-12 11:22:05 - End Time 2025-02-12 14:22:05 [2025-02-12 14:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459656', 'tblTempUsageDetail_20' ) start [2025-02-12 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459656', 'tblTempUsageDetail_20' ) end [2025-02-12 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459656', 'tblTempVendorCDR_20' ) start [2025-02-12 14:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459656', 'tblTempVendorCDR_20' ) end [2025-02-12 14:22:31] Production.INFO: ProcessCDR(1,14459656,1,1,2) [2025-02-12 14:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459656', 'tblTempUsageDetail_20' ) start [2025-02-12 14:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459656', 'tblTempUsageDetail_20' ) end [2025-02-12 14:22:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:22:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:22:37] Production.INFO: ==14049== Releasing lock... [2025-02-12 14:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:22:37] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:23:05 [end_date_ymd] => 2025-02-12 14:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:23:05' and `end` < '2025-02-12 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-12 14:23:24] Production.INFO: count ==5414 [2025-02-12 14:23:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:23:05 - End Time 2025-02-12 14:23:05 [2025-02-12 14:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459661', 'tblTempUsageDetail_20' ) start [2025-02-12 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459661', 'tblTempUsageDetail_20' ) end [2025-02-12 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459661', 'tblTempVendorCDR_20' ) start [2025-02-12 14:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459661', 'tblTempVendorCDR_20' ) end [2025-02-12 14:23:26] Production.INFO: ProcessCDR(1,14459661,1,1,2) [2025-02-12 14:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459661', 'tblTempUsageDetail_20' ) start [2025-02-12 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459661', 'tblTempUsageDetail_20' ) end [2025-02-12 14:23:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:23:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:23:31] Production.INFO: ==14130== Releasing lock... [2025-02-12 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:23:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:24:06 [end_date_ymd] => 2025-02-12 14:24:06 [RateCDR] => 1 ) [2025-02-12 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-12 11:24:06' and `end` < '2025-02-12 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-12 14:24:25] Production.INFO: count ==5486 [2025-02-12 14:24:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:24:06 - End Time 2025-02-12 14:24:06 [2025-02-12 14:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459666', 'tblTempUsageDetail_20' ) start [2025-02-12 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459666', 'tblTempUsageDetail_20' ) end [2025-02-12 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459666', 'tblTempVendorCDR_20' ) start [2025-02-12 14:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459666', 'tblTempVendorCDR_20' ) end [2025-02-12 14:24:28] Production.INFO: ProcessCDR(1,14459666,1,1,2) [2025-02-12 14:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:24:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:24:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459666', 'tblTempUsageDetail_20' ) start [2025-02-12 14:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459666', 'tblTempUsageDetail_20' ) end [2025-02-12 14:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:24:33] Production.INFO: ==14212== Releasing lock... [2025-02-12 14:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:24:33] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:25:05 [end_date_ymd] => 2025-02-12 14:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:25:05' and `end` < '2025-02-12 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-12 14:25:26] Production.INFO: count ==5524 [2025-02-12 14:25:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:25:05 - End Time 2025-02-12 14:25:05 [2025-02-12 14:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459671', 'tblTempUsageDetail_20' ) start [2025-02-12 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459671', 'tblTempUsageDetail_20' ) end [2025-02-12 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459671', 'tblTempVendorCDR_20' ) start [2025-02-12 14:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459671', 'tblTempVendorCDR_20' ) end [2025-02-12 14:25:29] Production.INFO: ProcessCDR(1,14459671,1,1,2) [2025-02-12 14:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459671', 'tblTempUsageDetail_20' ) start [2025-02-12 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459671', 'tblTempUsageDetail_20' ) end [2025-02-12 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:25:34] Production.INFO: ==14287== Releasing lock... [2025-02-12 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:25:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:26:05 [end_date_ymd] => 2025-02-12 14:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:26:05' and `end` < '2025-02-12 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-12 14:26:20] Production.INFO: count ==5523 [2025-02-12 14:26:23] Production.ERROR: pbx CDR StartTime 2025-02-12 11:26:05 - End Time 2025-02-12 14:26:05 [2025-02-12 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459676', 'tblTempUsageDetail_20' ) start [2025-02-12 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459676', 'tblTempUsageDetail_20' ) end [2025-02-12 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459676', 'tblTempVendorCDR_20' ) start [2025-02-12 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459676', 'tblTempVendorCDR_20' ) end [2025-02-12 14:26:23] Production.INFO: ProcessCDR(1,14459676,1,1,2) [2025-02-12 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459676', 'tblTempUsageDetail_20' ) start [2025-02-12 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459676', 'tblTempUsageDetail_20' ) end [2025-02-12 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:26:28] Production.INFO: ==14368== Releasing lock... [2025-02-12 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:26:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:27:06 [end_date_ymd] => 2025-02-12 14:27:06 [RateCDR] => 1 ) [2025-02-12 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:27:06' and `end` < '2025-02-12 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:27:24] Production.INFO: count ==5514 [2025-02-12 14:27:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:27:06 - End Time 2025-02-12 14:27:06 [2025-02-12 14:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459681', 'tblTempUsageDetail_20' ) start [2025-02-12 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459681', 'tblTempUsageDetail_20' ) end [2025-02-12 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459681', 'tblTempVendorCDR_20' ) start [2025-02-12 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459681', 'tblTempVendorCDR_20' ) end [2025-02-12 14:27:26] Production.INFO: ProcessCDR(1,14459681,1,1,2) [2025-02-12 14:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459681', 'tblTempUsageDetail_20' ) start [2025-02-12 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459681', 'tblTempUsageDetail_20' ) end [2025-02-12 14:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:27:31] Production.INFO: ==14451== Releasing lock... [2025-02-12 14:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:27:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:28:05 [end_date_ymd] => 2025-02-12 14:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:28:05' and `end` < '2025-02-12 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-12 14:28:22] Production.INFO: count ==5499 [2025-02-12 14:28:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:28:05 - End Time 2025-02-12 14:28:05 [2025-02-12 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459686', 'tblTempUsageDetail_20' ) start [2025-02-12 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459686', 'tblTempUsageDetail_20' ) end [2025-02-12 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459686', 'tblTempVendorCDR_20' ) start [2025-02-12 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459686', 'tblTempVendorCDR_20' ) end [2025-02-12 14:28:24] Production.INFO: ProcessCDR(1,14459686,1,1,2) [2025-02-12 14:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459686', 'tblTempUsageDetail_20' ) start [2025-02-12 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459686', 'tblTempUsageDetail_20' ) end [2025-02-12 14:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:28:29] Production.INFO: ==14534== Releasing lock... [2025-02-12 14:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:28:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:29:06 [end_date_ymd] => 2025-02-12 14:29:06 [RateCDR] => 1 ) [2025-02-12 14: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-12 11:29:06' and `end` < '2025-02-12 14: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-12 14:29:25] Production.INFO: count ==5486 [2025-02-12 14:29:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:29:06 - End Time 2025-02-12 14:29:06 [2025-02-12 14:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459691', 'tblTempUsageDetail_20' ) start [2025-02-12 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459691', 'tblTempUsageDetail_20' ) end [2025-02-12 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459691', 'tblTempVendorCDR_20' ) start [2025-02-12 14:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459691', 'tblTempVendorCDR_20' ) end [2025-02-12 14:29:28] Production.INFO: ProcessCDR(1,14459691,1,1,2) [2025-02-12 14:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:29:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459691', 'tblTempUsageDetail_20' ) start [2025-02-12 14:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459691', 'tblTempUsageDetail_20' ) end [2025-02-12 14:29:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:29:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:29:33] Production.INFO: ==14608== Releasing lock... [2025-02-12 14:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:29:33] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:30:05 [end_date_ymd] => 2025-02-12 14:30:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:30:05' and `end` < '2025-02-12 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:30:30] Production.INFO: count ==5484 [2025-02-12 14:30:32] Production.ERROR: pbx CDR StartTime 2025-02-12 11:30:05 - End Time 2025-02-12 14:30:05 [2025-02-12 14:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459697', 'tblTempUsageDetail_20' ) start [2025-02-12 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459697', 'tblTempUsageDetail_20' ) end [2025-02-12 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459697', 'tblTempVendorCDR_20' ) start [2025-02-12 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459697', 'tblTempVendorCDR_20' ) end [2025-02-12 14:30:32] Production.INFO: ProcessCDR(1,14459697,1,1,2) [2025-02-12 14:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459697', 'tblTempUsageDetail_20' ) start [2025-02-12 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459697', 'tblTempUsageDetail_20' ) end [2025-02-12 14:30:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:30:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:30:37] Production.INFO: ==14688== Releasing lock... [2025-02-12 14:30:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:30:37] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:31:06 [end_date_ymd] => 2025-02-12 14:31:06 [RateCDR] => 1 ) [2025-02-12 14:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:31:06' and `end` < '2025-02-12 14:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:31:24] Production.INFO: count ==5428 [2025-02-12 14:31:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:31:06 - End Time 2025-02-12 14:31:06 [2025-02-12 14:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459702', 'tblTempUsageDetail_20' ) start [2025-02-12 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459702', 'tblTempUsageDetail_20' ) end [2025-02-12 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459702', 'tblTempVendorCDR_20' ) start [2025-02-12 14:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459702', 'tblTempVendorCDR_20' ) end [2025-02-12 14:31:27] Production.INFO: ProcessCDR(1,14459702,1,1,2) [2025-02-12 14:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459702', 'tblTempUsageDetail_20' ) start [2025-02-12 14:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459702', 'tblTempUsageDetail_20' ) end [2025-02-12 14:31:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:31:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:31:32] Production.INFO: ==14773== Releasing lock... [2025-02-12 14:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:31:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:32:05 [end_date_ymd] => 2025-02-12 14:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:32:05' and `end` < '2025-02-12 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-12 14:32:26] Production.INFO: count ==5420 [2025-02-12 14:32:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:32:05 - End Time 2025-02-12 14:32:05 [2025-02-12 14:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459707', 'tblTempUsageDetail_20' ) start [2025-02-12 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459707', 'tblTempUsageDetail_20' ) end [2025-02-12 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459707', 'tblTempVendorCDR_20' ) start [2025-02-12 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459707', 'tblTempVendorCDR_20' ) end [2025-02-12 14:32:28] Production.INFO: ProcessCDR(1,14459707,1,1,2) [2025-02-12 14:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459707', 'tblTempUsageDetail_20' ) start [2025-02-12 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459707', 'tblTempUsageDetail_20' ) end [2025-02-12 14:32:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:32:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:32:33] Production.INFO: ==14886== Releasing lock... [2025-02-12 14:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:32:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:33:05 [end_date_ymd] => 2025-02-12 14:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:33:05' and `end` < '2025-02-12 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-12 14:33:24] Production.INFO: count ==5410 [2025-02-12 14:33:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:33:05 - End Time 2025-02-12 14:33:05 [2025-02-12 14:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459712', 'tblTempUsageDetail_20' ) start [2025-02-12 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459712', 'tblTempUsageDetail_20' ) end [2025-02-12 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459712', 'tblTempVendorCDR_20' ) start [2025-02-12 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459712', 'tblTempVendorCDR_20' ) end [2025-02-12 14:33:27] Production.INFO: ProcessCDR(1,14459712,1,1,2) [2025-02-12 14:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459712', 'tblTempUsageDetail_20' ) start [2025-02-12 14:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459712', 'tblTempUsageDetail_20' ) end [2025-02-12 14:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:33:32] Production.INFO: ==14965== Releasing lock... [2025-02-12 14:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:33:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:34:06 [end_date_ymd] => 2025-02-12 14:34:06 [RateCDR] => 1 ) [2025-02-12 14:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:34:06' and `end` < '2025-02-12 14:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:34:21] Production.INFO: count ==5407 [2025-02-12 14:34:23] Production.ERROR: pbx CDR StartTime 2025-02-12 11:34:06 - End Time 2025-02-12 14:34:06 [2025-02-12 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459717', 'tblTempUsageDetail_20' ) start [2025-02-12 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459717', 'tblTempUsageDetail_20' ) end [2025-02-12 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459717', 'tblTempVendorCDR_20' ) start [2025-02-12 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459717', 'tblTempVendorCDR_20' ) end [2025-02-12 14:34:24] Production.INFO: ProcessCDR(1,14459717,1,1,2) [2025-02-12 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459717', 'tblTempUsageDetail_20' ) start [2025-02-12 14:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459717', 'tblTempUsageDetail_20' ) end [2025-02-12 14:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:34:29] Production.INFO: ==15047== Releasing lock... [2025-02-12 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:34:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:35:05 [end_date_ymd] => 2025-02-12 14:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:35:05' and `end` < '2025-02-12 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-12 14:35:33] Production.INFO: count ==5404 [2025-02-12 14:35:36] Production.ERROR: pbx CDR StartTime 2025-02-12 11:35:05 - End Time 2025-02-12 14:35:05 [2025-02-12 14:35:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459722', 'tblTempUsageDetail_20' ) start [2025-02-12 14:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459722', 'tblTempUsageDetail_20' ) end [2025-02-12 14:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459722', 'tblTempVendorCDR_20' ) start [2025-02-12 14:35:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459722', 'tblTempVendorCDR_20' ) end [2025-02-12 14:35:36] Production.INFO: ProcessCDR(1,14459722,1,1,2) [2025-02-12 14:35:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:35:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:35:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:35:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459722', 'tblTempUsageDetail_20' ) start [2025-02-12 14:35:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459722', 'tblTempUsageDetail_20' ) end [2025-02-12 14:35:41] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:35:41] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:35:41] Production.INFO: ==15130== Releasing lock... [2025-02-12 14:35:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:35:41] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:36:05 [end_date_ymd] => 2025-02-12 14:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:36:05' and `end` < '2025-02-12 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-12 14:36:25] Production.INFO: count ==5419 [2025-02-12 14:36:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:36:05 - End Time 2025-02-12 14:36:05 [2025-02-12 14:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459727', 'tblTempUsageDetail_20' ) start [2025-02-12 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459727', 'tblTempUsageDetail_20' ) end [2025-02-12 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459727', 'tblTempVendorCDR_20' ) start [2025-02-12 14:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459727', 'tblTempVendorCDR_20' ) end [2025-02-12 14:36:28] Production.INFO: ProcessCDR(1,14459727,1,1,2) [2025-02-12 14:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459727', 'tblTempUsageDetail_20' ) start [2025-02-12 14:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459727', 'tblTempUsageDetail_20' ) end [2025-02-12 14:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:36:33] Production.INFO: ==15209== Releasing lock... [2025-02-12 14:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:36:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:37:06 [end_date_ymd] => 2025-02-12 14:37:06 [RateCDR] => 1 ) [2025-02-12 14: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-12 11:37:06' and `end` < '2025-02-12 14: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-12 14:37:24] Production.INFO: count ==5412 [2025-02-12 14:37:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:37:06 - End Time 2025-02-12 14:37:06 [2025-02-12 14:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459732', 'tblTempUsageDetail_20' ) start [2025-02-12 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459732', 'tblTempUsageDetail_20' ) end [2025-02-12 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459732', 'tblTempVendorCDR_20' ) start [2025-02-12 14:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459732', 'tblTempVendorCDR_20' ) end [2025-02-12 14:37:27] Production.INFO: ProcessCDR(1,14459732,1,1,2) [2025-02-12 14:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459732', 'tblTempUsageDetail_20' ) start [2025-02-12 14:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459732', 'tblTempUsageDetail_20' ) end [2025-02-12 14:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:37:32] Production.INFO: ==15284== Releasing lock... [2025-02-12 14:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:37:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:38:05 [end_date_ymd] => 2025-02-12 14:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:38:05' and `end` < '2025-02-12 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-12 14:38:22] Production.INFO: count ==5421 [2025-02-12 14:38:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:38:05 - End Time 2025-02-12 14:38:05 [2025-02-12 14:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459737', 'tblTempUsageDetail_20' ) start [2025-02-12 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459737', 'tblTempUsageDetail_20' ) end [2025-02-12 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459737', 'tblTempVendorCDR_20' ) start [2025-02-12 14:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459737', 'tblTempVendorCDR_20' ) end [2025-02-12 14:38:24] Production.INFO: ProcessCDR(1,14459737,1,1,2) [2025-02-12 14:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459737', 'tblTempUsageDetail_20' ) start [2025-02-12 14:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459737', 'tblTempUsageDetail_20' ) end [2025-02-12 14:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:38:30] Production.INFO: ==15359== Releasing lock... [2025-02-12 14:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:38:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:39:05 [end_date_ymd] => 2025-02-12 14:39:05 [RateCDR] => 1 ) [2025-02-12 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:39:05' and `end` < '2025-02-12 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:39:26] Production.INFO: count ==5424 [2025-02-12 14:39:28] Production.ERROR: pbx CDR StartTime 2025-02-12 11:39:05 - End Time 2025-02-12 14:39:05 [2025-02-12 14:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459742', 'tblTempUsageDetail_20' ) start [2025-02-12 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459742', 'tblTempUsageDetail_20' ) end [2025-02-12 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459742', 'tblTempVendorCDR_20' ) start [2025-02-12 14:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459742', 'tblTempVendorCDR_20' ) end [2025-02-12 14:39:28] Production.INFO: ProcessCDR(1,14459742,1,1,2) [2025-02-12 14:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459742', 'tblTempUsageDetail_20' ) start [2025-02-12 14:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459742', 'tblTempUsageDetail_20' ) end [2025-02-12 14:39:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:39:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:39:33] Production.INFO: ==15441== Releasing lock... [2025-02-12 14:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:39:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:40:05 [end_date_ymd] => 2025-02-12 14:40:05 [RateCDR] => 1 ) [2025-02-12 14:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:40:05' and `end` < '2025-02-12 14:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:40:24] Production.INFO: count ==5489 [2025-02-12 14:40:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:40:05 - End Time 2025-02-12 14:40:05 [2025-02-12 14:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459747', 'tblTempUsageDetail_20' ) start [2025-02-12 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459747', 'tblTempUsageDetail_20' ) end [2025-02-12 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459747', 'tblTempVendorCDR_20' ) start [2025-02-12 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459747', 'tblTempVendorCDR_20' ) end [2025-02-12 14:40:27] Production.INFO: ProcessCDR(1,14459747,1,1,2) [2025-02-12 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459747', 'tblTempUsageDetail_20' ) start [2025-02-12 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459747', 'tblTempUsageDetail_20' ) end [2025-02-12 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:40:32] Production.INFO: ==15523== Releasing lock... [2025-02-12 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:40:32] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:41:05 [end_date_ymd] => 2025-02-12 14:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:41:05' and `end` < '2025-02-12 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-12 14:41:22] Production.INFO: count ==5477 [2025-02-12 14:41:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:41:05 - End Time 2025-02-12 14:41:05 [2025-02-12 14:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459753', 'tblTempUsageDetail_20' ) start [2025-02-12 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459753', 'tblTempUsageDetail_20' ) end [2025-02-12 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459753', 'tblTempVendorCDR_20' ) start [2025-02-12 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459753', 'tblTempVendorCDR_20' ) end [2025-02-12 14:41:25] Production.INFO: ProcessCDR(1,14459753,1,1,2) [2025-02-12 14:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459753', 'tblTempUsageDetail_20' ) start [2025-02-12 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459753', 'tblTempUsageDetail_20' ) end [2025-02-12 14:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:41:30] Production.INFO: ==15608== Releasing lock... [2025-02-12 14:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:41:30] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:42:05 [end_date_ymd] => 2025-02-12 14:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:42:05' and `end` < '2025-02-12 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-12 14:42:19] Production.INFO: count ==5481 [2025-02-12 14:42:21] Production.ERROR: pbx CDR StartTime 2025-02-12 11:42:05 - End Time 2025-02-12 14:42:05 [2025-02-12 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459758', 'tblTempUsageDetail_20' ) start [2025-02-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459758', 'tblTempUsageDetail_20' ) end [2025-02-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459758', 'tblTempVendorCDR_20' ) start [2025-02-12 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459758', 'tblTempVendorCDR_20' ) end [2025-02-12 14:42:22] Production.INFO: ProcessCDR(1,14459758,1,1,2) [2025-02-12 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459758', 'tblTempUsageDetail_20' ) start [2025-02-12 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459758', 'tblTempUsageDetail_20' ) end [2025-02-12 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:42:27] Production.INFO: ==15687== Releasing lock... [2025-02-12 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:42:27] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:43:05 [end_date_ymd] => 2025-02-12 14:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:43:05' and `end` < '2025-02-12 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-12 14:43:20] Production.INFO: count ==5490 [2025-02-12 14:43:23] Production.ERROR: pbx CDR StartTime 2025-02-12 11:43:05 - End Time 2025-02-12 14:43:05 [2025-02-12 14:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459763', 'tblTempUsageDetail_20' ) start [2025-02-12 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459763', 'tblTempUsageDetail_20' ) end [2025-02-12 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459763', 'tblTempVendorCDR_20' ) start [2025-02-12 14:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459763', 'tblTempVendorCDR_20' ) end [2025-02-12 14:43:23] Production.INFO: ProcessCDR(1,14459763,1,1,2) [2025-02-12 14:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459763', 'tblTempUsageDetail_20' ) start [2025-02-12 14:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459763', 'tblTempUsageDetail_20' ) end [2025-02-12 14:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:43:28] Production.INFO: ==15757== Releasing lock... [2025-02-12 14:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:43:28] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:44:05 [end_date_ymd] => 2025-02-12 14:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:44:05' and `end` < '2025-02-12 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-12 14:44:20] Production.INFO: count ==5487 [2025-02-12 14:44:22] Production.ERROR: pbx CDR StartTime 2025-02-12 11:44:05 - End Time 2025-02-12 14:44:05 [2025-02-12 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459768', 'tblTempUsageDetail_20' ) start [2025-02-12 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459768', 'tblTempUsageDetail_20' ) end [2025-02-12 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459768', 'tblTempVendorCDR_20' ) start [2025-02-12 14:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459768', 'tblTempVendorCDR_20' ) end [2025-02-12 14:44:23] Production.INFO: ProcessCDR(1,14459768,1,1,2) [2025-02-12 14:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459768', 'tblTempUsageDetail_20' ) start [2025-02-12 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459768', 'tblTempUsageDetail_20' ) end [2025-02-12 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:44:28] Production.INFO: ==15837== Releasing lock... [2025-02-12 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:44:28] Production.INFO: 69 MB #Memory Used# [2025-02-12 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:45:06 [end_date_ymd] => 2025-02-12 14:45:06 [RateCDR] => 1 ) [2025-02-12 14: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-12 11:45:06' and `end` < '2025-02-12 14: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-12 14:45:24] Production.INFO: count ==5499 [2025-02-12 14:45:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:45:06 - End Time 2025-02-12 14:45:06 [2025-02-12 14:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459773', 'tblTempUsageDetail_20' ) start [2025-02-12 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459773', 'tblTempUsageDetail_20' ) end [2025-02-12 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459773', 'tblTempVendorCDR_20' ) start [2025-02-12 14:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459773', 'tblTempVendorCDR_20' ) end [2025-02-12 14:45:27] Production.INFO: ProcessCDR(1,14459773,1,1,2) [2025-02-12 14:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459773', 'tblTempUsageDetail_20' ) start [2025-02-12 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459773', 'tblTempUsageDetail_20' ) end [2025-02-12 14:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:45:32] Production.INFO: ==15909== Releasing lock... [2025-02-12 14:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:45:32] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:46:05 [end_date_ymd] => 2025-02-12 14:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:46:05' and `end` < '2025-02-12 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-12 14:46:22] Production.INFO: count ==5571 [2025-02-12 14:46:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:46:05 - End Time 2025-02-12 14:46:05 [2025-02-12 14:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459778', 'tblTempUsageDetail_20' ) start [2025-02-12 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459778', 'tblTempUsageDetail_20' ) end [2025-02-12 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459778', 'tblTempVendorCDR_20' ) start [2025-02-12 14:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459778', 'tblTempVendorCDR_20' ) end [2025-02-12 14:46:25] Production.INFO: ProcessCDR(1,14459778,1,1,2) [2025-02-12 14:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459778', 'tblTempUsageDetail_20' ) start [2025-02-12 14:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459778', 'tblTempUsageDetail_20' ) end [2025-02-12 14:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:46:30] Production.INFO: ==15982== Releasing lock... [2025-02-12 14:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:46:30] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:47:05 [end_date_ymd] => 2025-02-12 14:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:47:05' and `end` < '2025-02-12 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-12 14:47:23] Production.INFO: count ==5564 [2025-02-12 14:47:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:47:05 - End Time 2025-02-12 14:47:05 [2025-02-12 14:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459783', 'tblTempUsageDetail_20' ) start [2025-02-12 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459783', 'tblTempUsageDetail_20' ) end [2025-02-12 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459783', 'tblTempVendorCDR_20' ) start [2025-02-12 14:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459783', 'tblTempVendorCDR_20' ) end [2025-02-12 14:47:26] Production.INFO: ProcessCDR(1,14459783,1,1,2) [2025-02-12 14:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459783', 'tblTempUsageDetail_20' ) start [2025-02-12 14:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459783', 'tblTempUsageDetail_20' ) end [2025-02-12 14:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:47:31] Production.INFO: ==16055== Releasing lock... [2025-02-12 14:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:47:31] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:48:05 [end_date_ymd] => 2025-02-12 14:48:05 [RateCDR] => 1 ) [2025-02-12 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:48:05' and `end` < '2025-02-12 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:48:21] Production.INFO: count ==5573 [2025-02-12 14:48:23] Production.ERROR: pbx CDR StartTime 2025-02-12 11:48:05 - End Time 2025-02-12 14:48:05 [2025-02-12 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459788', 'tblTempUsageDetail_20' ) start [2025-02-12 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459788', 'tblTempUsageDetail_20' ) end [2025-02-12 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459788', 'tblTempVendorCDR_20' ) start [2025-02-12 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459788', 'tblTempVendorCDR_20' ) end [2025-02-12 14:48:23] Production.INFO: ProcessCDR(1,14459788,1,1,2) [2025-02-12 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459788', 'tblTempUsageDetail_20' ) start [2025-02-12 14:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459788', 'tblTempUsageDetail_20' ) end [2025-02-12 14:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:48:29] Production.INFO: ==16168== Releasing lock... [2025-02-12 14:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:48:29] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:49:05 [end_date_ymd] => 2025-02-12 14:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:49:05' and `end` < '2025-02-12 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-12 14:49:21] Production.INFO: count ==5566 [2025-02-12 14:49:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:49:05 - End Time 2025-02-12 14:49:05 [2025-02-12 14:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459793', 'tblTempUsageDetail_20' ) start [2025-02-12 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459793', 'tblTempUsageDetail_20' ) end [2025-02-12 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459793', 'tblTempVendorCDR_20' ) start [2025-02-12 14:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459793', 'tblTempVendorCDR_20' ) end [2025-02-12 14:49:24] Production.INFO: ProcessCDR(1,14459793,1,1,2) [2025-02-12 14:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459793', 'tblTempUsageDetail_20' ) start [2025-02-12 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459793', 'tblTempUsageDetail_20' ) end [2025-02-12 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:49:29] Production.INFO: ==16251== Releasing lock... [2025-02-12 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:49:29] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:50:06 [end_date_ymd] => 2025-02-12 14:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 11:50:06' and `end` < '2025-02-12 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-12 14:50:21] Production.INFO: count ==5549 [2025-02-12 14:50:24] Production.ERROR: pbx CDR StartTime 2025-02-12 11:50:06 - End Time 2025-02-12 14:50:06 [2025-02-12 14:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459799', 'tblTempUsageDetail_20' ) start [2025-02-12 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459799', 'tblTempUsageDetail_20' ) end [2025-02-12 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459799', 'tblTempVendorCDR_20' ) start [2025-02-12 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459799', 'tblTempVendorCDR_20' ) end [2025-02-12 14:50:24] Production.INFO: ProcessCDR(1,14459799,1,1,2) [2025-02-12 14:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459799', 'tblTempUsageDetail_20' ) start [2025-02-12 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459799', 'tblTempUsageDetail_20' ) end [2025-02-12 14:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:50:29] Production.INFO: ==16356== Releasing lock... [2025-02-12 14:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:50:29] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:51:05 [end_date_ymd] => 2025-02-12 14:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:51:05' and `end` < '2025-02-12 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-12 14:51:22] Production.INFO: count ==5544 [2025-02-12 14:51:25] Production.ERROR: pbx CDR StartTime 2025-02-12 11:51:05 - End Time 2025-02-12 14:51:05 [2025-02-12 14:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459804', 'tblTempUsageDetail_20' ) start [2025-02-12 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459804', 'tblTempUsageDetail_20' ) end [2025-02-12 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459804', 'tblTempVendorCDR_20' ) start [2025-02-12 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459804', 'tblTempVendorCDR_20' ) end [2025-02-12 14:51:25] Production.INFO: ProcessCDR(1,14459804,1,1,2) [2025-02-12 14:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459804', 'tblTempUsageDetail_20' ) start [2025-02-12 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459804', 'tblTempUsageDetail_20' ) end [2025-02-12 14:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:51:30] Production.INFO: ==16449== Releasing lock... [2025-02-12 14:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:51:30] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:52:05 [end_date_ymd] => 2025-02-12 14:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:52:05' and `end` < '2025-02-12 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-12 14:52:27] Production.INFO: count ==5552 [2025-02-12 14:52:29] Production.ERROR: pbx CDR StartTime 2025-02-12 11:52:05 - End Time 2025-02-12 14:52:05 [2025-02-12 14:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459809', 'tblTempUsageDetail_20' ) start [2025-02-12 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459809', 'tblTempUsageDetail_20' ) end [2025-02-12 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459809', 'tblTempVendorCDR_20' ) start [2025-02-12 14:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459809', 'tblTempVendorCDR_20' ) end [2025-02-12 14:52:29] Production.INFO: ProcessCDR(1,14459809,1,1,2) [2025-02-12 14:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459809', 'tblTempUsageDetail_20' ) start [2025-02-12 14:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459809', 'tblTempUsageDetail_20' ) end [2025-02-12 14:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:52:34] Production.INFO: ==16546== Releasing lock... [2025-02-12 14:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:52:34] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:53:05 [end_date_ymd] => 2025-02-12 14:53:05 [RateCDR] => 1 ) [2025-02-12 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:53:05' and `end` < '2025-02-12 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:53:32] Production.INFO: count ==5570 [2025-02-12 14:53:34] Production.ERROR: pbx CDR StartTime 2025-02-12 11:53:05 - End Time 2025-02-12 14:53:05 [2025-02-12 14:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459814', 'tblTempUsageDetail_20' ) start [2025-02-12 14:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459814', 'tblTempUsageDetail_20' ) end [2025-02-12 14:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459814', 'tblTempVendorCDR_20' ) start [2025-02-12 14:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459814', 'tblTempVendorCDR_20' ) end [2025-02-12 14:53:35] Production.INFO: ProcessCDR(1,14459814,1,1,2) [2025-02-12 14:53:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:53:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:53:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459814', 'tblTempUsageDetail_20' ) start [2025-02-12 14:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459814', 'tblTempUsageDetail_20' ) end [2025-02-12 14:53:40] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:53:40] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:53:40] Production.INFO: ==16618== Releasing lock... [2025-02-12 14:53:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:53:40] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:54:05 [end_date_ymd] => 2025-02-12 14:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:54:05' and `end` < '2025-02-12 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-12 14:54:31] Production.INFO: count ==5555 [2025-02-12 14:54:33] Production.ERROR: pbx CDR StartTime 2025-02-12 11:54:05 - End Time 2025-02-12 14:54:05 [2025-02-12 14:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459819', 'tblTempUsageDetail_20' ) start [2025-02-12 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459819', 'tblTempUsageDetail_20' ) end [2025-02-12 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459819', 'tblTempVendorCDR_20' ) start [2025-02-12 14:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459819', 'tblTempVendorCDR_20' ) end [2025-02-12 14:54:34] Production.INFO: ProcessCDR(1,14459819,1,1,2) [2025-02-12 14:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459819', 'tblTempUsageDetail_20' ) start [2025-02-12 14:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459819', 'tblTempUsageDetail_20' ) end [2025-02-12 14:54:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:54:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:54:39] Production.INFO: ==16698== Releasing lock... [2025-02-12 14:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:54:39] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:55:05 [end_date_ymd] => 2025-02-12 14:55:05 [RateCDR] => 1 ) [2025-02-12 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:55:05' and `end` < '2025-02-12 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:55:28] Production.INFO: count ==5555 [2025-02-12 14:55:31] Production.ERROR: pbx CDR StartTime 2025-02-12 11:55:05 - End Time 2025-02-12 14:55:05 [2025-02-12 14:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459824', 'tblTempUsageDetail_20' ) start [2025-02-12 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459824', 'tblTempUsageDetail_20' ) end [2025-02-12 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459824', 'tblTempVendorCDR_20' ) start [2025-02-12 14:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459824', 'tblTempVendorCDR_20' ) end [2025-02-12 14:55:31] Production.INFO: ProcessCDR(1,14459824,1,1,2) [2025-02-12 14:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459824', 'tblTempUsageDetail_20' ) start [2025-02-12 14:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459824', 'tblTempUsageDetail_20' ) end [2025-02-12 14:55:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:55:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:55:36] Production.INFO: ==16777== Releasing lock... [2025-02-12 14:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:55:36] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:56:05 [end_date_ymd] => 2025-02-12 14:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:56:05' and `end` < '2025-02-12 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-12 14:56:23] Production.INFO: count ==5570 [2025-02-12 14:56:26] Production.ERROR: pbx CDR StartTime 2025-02-12 11:56:05 - End Time 2025-02-12 14:56:05 [2025-02-12 14:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459829', 'tblTempUsageDetail_20' ) start [2025-02-12 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459829', 'tblTempUsageDetail_20' ) end [2025-02-12 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459829', 'tblTempVendorCDR_20' ) start [2025-02-12 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459829', 'tblTempVendorCDR_20' ) end [2025-02-12 14:56:26] Production.INFO: ProcessCDR(1,14459829,1,1,2) [2025-02-12 14:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459829', 'tblTempUsageDetail_20' ) start [2025-02-12 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459829', 'tblTempUsageDetail_20' ) end [2025-02-12 14:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:56:31] Production.INFO: ==16860== Releasing lock... [2025-02-12 14:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:56:31] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:57:05 [end_date_ymd] => 2025-02-12 14:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:57:05' and `end` < '2025-02-12 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-12 14:57:24] Production.INFO: count ==5588 [2025-02-12 14:57:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:57:05 - End Time 2025-02-12 14:57:05 [2025-02-12 14:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459834', 'tblTempUsageDetail_20' ) start [2025-02-12 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459834', 'tblTempUsageDetail_20' ) end [2025-02-12 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459834', 'tblTempVendorCDR_20' ) start [2025-02-12 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459834', 'tblTempVendorCDR_20' ) end [2025-02-12 14:57:27] Production.INFO: ProcessCDR(1,14459834,1,1,2) [2025-02-12 14:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459834', 'tblTempUsageDetail_20' ) start [2025-02-12 14:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459834', 'tblTempUsageDetail_20' ) end [2025-02-12 14:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:57:32] Production.INFO: ==16935== Releasing lock... [2025-02-12 14:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:57:32] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:58:06 [end_date_ymd] => 2025-02-12 14:58:06 [RateCDR] => 1 ) [2025-02-12 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 11:58:06' and `end` < '2025-02-12 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 14:58:25] Production.INFO: count ==5661 [2025-02-12 14:58:27] Production.ERROR: pbx CDR StartTime 2025-02-12 11:58:06 - End Time 2025-02-12 14:58:06 [2025-02-12 14:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459839', 'tblTempUsageDetail_20' ) start [2025-02-12 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459839', 'tblTempUsageDetail_20' ) end [2025-02-12 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459839', 'tblTempVendorCDR_20' ) start [2025-02-12 14:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459839', 'tblTempVendorCDR_20' ) end [2025-02-12 14:58:27] Production.INFO: ProcessCDR(1,14459839,1,1,2) [2025-02-12 14:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459839', 'tblTempUsageDetail_20' ) start [2025-02-12 14:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459839', 'tblTempUsageDetail_20' ) end [2025-02-12 14:58:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:58:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:58:33] Production.INFO: ==17006== Releasing lock... [2025-02-12 14:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:58:33] Production.INFO: 70.5 MB #Memory Used# [2025-02-12 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 11:59:05 [end_date_ymd] => 2025-02-12 14:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 11:59:05' and `end` < '2025-02-12 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-12 14:59:27] Production.INFO: count ==5676 [2025-02-12 14:59:30] Production.ERROR: pbx CDR StartTime 2025-02-12 11:59:05 - End Time 2025-02-12 14:59:05 [2025-02-12 14:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459844', 'tblTempUsageDetail_20' ) start [2025-02-12 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459844', 'tblTempUsageDetail_20' ) end [2025-02-12 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459844', 'tblTempVendorCDR_20' ) start [2025-02-12 14:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459844', 'tblTempVendorCDR_20' ) end [2025-02-12 14:59:30] Production.INFO: ProcessCDR(1,14459844,1,1,2) [2025-02-12 14:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 14:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 14:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459844', 'tblTempUsageDetail_20' ) start [2025-02-12 14:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459844', 'tblTempUsageDetail_20' ) end [2025-02-12 14:59:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 14:59:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 14:59:35] Production.INFO: ==17081== Releasing lock... [2025-02-12 14:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 14:59:35] Production.INFO: 70.5 MB #Memory Used# [2025-02-12 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:00:06 [end_date_ymd] => 2025-02-12 15:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 12:00:06' and `end` < '2025-02-12 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-12 15:00:27] Production.INFO: count ==5682 [2025-02-12 15:00:30] Production.ERROR: pbx CDR StartTime 2025-02-12 12:00:06 - End Time 2025-02-12 15:00:06 [2025-02-12 15:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459850', 'tblTempUsageDetail_20' ) start [2025-02-12 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459850', 'tblTempUsageDetail_20' ) end [2025-02-12 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459850', 'tblTempVendorCDR_20' ) start [2025-02-12 15:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459850', 'tblTempVendorCDR_20' ) end [2025-02-12 15:00:30] Production.INFO: ProcessCDR(1,14459850,1,1,2) [2025-02-12 15:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459850', 'tblTempUsageDetail_20' ) start [2025-02-12 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459850', 'tblTempUsageDetail_20' ) end [2025-02-12 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:00:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:00:35] Production.INFO: ==17159== Releasing lock... [2025-02-12 15:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:00:35] Production.INFO: 70.5 MB #Memory Used# [2025-02-12 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:01:05 [end_date_ymd] => 2025-02-12 15:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:01:05' and `end` < '2025-02-12 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-12 15:01:23] Production.INFO: count ==5766 [2025-02-12 15:01:26] Production.ERROR: pbx CDR StartTime 2025-02-12 12:01:05 - End Time 2025-02-12 15:01:05 [2025-02-12 15:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459855', 'tblTempUsageDetail_20' ) start [2025-02-12 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459855', 'tblTempUsageDetail_20' ) end [2025-02-12 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459855', 'tblTempVendorCDR_20' ) start [2025-02-12 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459855', 'tblTempVendorCDR_20' ) end [2025-02-12 15:01:26] Production.INFO: ProcessCDR(1,14459855,1,1,2) [2025-02-12 15:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459855', 'tblTempUsageDetail_20' ) start [2025-02-12 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459855', 'tblTempUsageDetail_20' ) end [2025-02-12 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:01:29] Production.INFO: ==17326== Releasing lock... [2025-02-12 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:01:29] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:02:06 [end_date_ymd] => 2025-02-12 15:02:06 [RateCDR] => 1 ) [2025-02-12 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-12 12:02:06' and `end` < '2025-02-12 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-12 15:02:20] Production.INFO: count ==5794 [2025-02-12 15:02:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:02:06 - End Time 2025-02-12 15:02:06 [2025-02-12 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459860', 'tblTempUsageDetail_20' ) start [2025-02-12 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459860', 'tblTempUsageDetail_20' ) end [2025-02-12 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459860', 'tblTempVendorCDR_20' ) start [2025-02-12 15:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459860', 'tblTempVendorCDR_20' ) end [2025-02-12 15:02:24] Production.INFO: ProcessCDR(1,14459860,1,1,2) [2025-02-12 15:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459860', 'tblTempUsageDetail_20' ) start [2025-02-12 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459860', 'tblTempUsageDetail_20' ) end [2025-02-12 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:02:28] Production.INFO: ==17401== Releasing lock... [2025-02-12 15:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:02:28] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:03:05 [end_date_ymd] => 2025-02-12 15:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:03:05' and `end` < '2025-02-12 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-12 15:03:20] Production.INFO: count ==5811 [2025-02-12 15:03:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:03:05 - End Time 2025-02-12 15:03:05 [2025-02-12 15:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459865', 'tblTempUsageDetail_20' ) start [2025-02-12 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459865', 'tblTempUsageDetail_20' ) end [2025-02-12 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459865', 'tblTempVendorCDR_20' ) start [2025-02-12 15:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459865', 'tblTempVendorCDR_20' ) end [2025-02-12 15:03:23] Production.INFO: ProcessCDR(1,14459865,1,1,2) [2025-02-12 15:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459865', 'tblTempUsageDetail_20' ) start [2025-02-12 15:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459865', 'tblTempUsageDetail_20' ) end [2025-02-12 15:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:03:29] Production.INFO: ==17517== Releasing lock... [2025-02-12 15:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:03:29] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:04:06 [end_date_ymd] => 2025-02-12 15:04:06 [RateCDR] => 1 ) [2025-02-12 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:04:06' and `end` < '2025-02-12 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:04:24] Production.INFO: count ==5915 [2025-02-12 15:04:27] Production.ERROR: pbx CDR StartTime 2025-02-12 12:04:06 - End Time 2025-02-12 15:04:06 [2025-02-12 15:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459870', 'tblTempUsageDetail_20' ) start [2025-02-12 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459870', 'tblTempUsageDetail_20' ) end [2025-02-12 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459870', 'tblTempVendorCDR_20' ) start [2025-02-12 15:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459870', 'tblTempVendorCDR_20' ) end [2025-02-12 15:04:27] Production.INFO: ProcessCDR(1,14459870,1,1,2) [2025-02-12 15:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459870', 'tblTempUsageDetail_20' ) start [2025-02-12 15:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459870', 'tblTempUsageDetail_20' ) end [2025-02-12 15:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:04:32] Production.INFO: ==17592== Releasing lock... [2025-02-12 15:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:04:32] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:05:04 [end_date_ymd] => 2025-02-12 15:05:04 [RateCDR] => 1 ) [2025-02-12 15: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-12 12:05:04' and `end` < '2025-02-12 15: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-12 15:05:28] Production.INFO: count ==5924 [2025-02-12 15:05:31] Production.ERROR: pbx CDR StartTime 2025-02-12 12:05:04 - End Time 2025-02-12 15:05:04 [2025-02-12 15:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459875', 'tblTempUsageDetail_20' ) start [2025-02-12 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459875', 'tblTempUsageDetail_20' ) end [2025-02-12 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459875', 'tblTempVendorCDR_20' ) start [2025-02-12 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459875', 'tblTempVendorCDR_20' ) end [2025-02-12 15:05:31] Production.INFO: ProcessCDR(1,14459875,1,1,2) [2025-02-12 15:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459875', 'tblTempUsageDetail_20' ) start [2025-02-12 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459875', 'tblTempUsageDetail_20' ) end [2025-02-12 15:05:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:05:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:05:36] Production.INFO: ==17743== Releasing lock... [2025-02-12 15:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:05:36] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:06:06 [end_date_ymd] => 2025-02-12 15:06:06 [RateCDR] => 1 ) [2025-02-12 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:06:06' and `end` < '2025-02-12 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:06:26] Production.INFO: count ==5937 [2025-02-12 15:06:28] Production.ERROR: pbx CDR StartTime 2025-02-12 12:06:06 - End Time 2025-02-12 15:06:06 [2025-02-12 15:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459880', 'tblTempUsageDetail_20' ) start [2025-02-12 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459880', 'tblTempUsageDetail_20' ) end [2025-02-12 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459880', 'tblTempVendorCDR_20' ) start [2025-02-12 15:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459880', 'tblTempVendorCDR_20' ) end [2025-02-12 15:06:28] Production.INFO: ProcessCDR(1,14459880,1,1,2) [2025-02-12 15:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459880', 'tblTempUsageDetail_20' ) start [2025-02-12 15:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459880', 'tblTempUsageDetail_20' ) end [2025-02-12 15:06:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:06:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:06:33] Production.INFO: ==17818== Releasing lock... [2025-02-12 15:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:06:33] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:07:04 [end_date_ymd] => 2025-02-12 15:07:04 [RateCDR] => 1 ) [2025-02-12 15: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-12 12:07:04' and `end` < '2025-02-12 15: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-12 15:07:22] Production.INFO: count ==5921 [2025-02-12 15:07:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:07:04 - End Time 2025-02-12 15:07:04 [2025-02-12 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459885', 'tblTempUsageDetail_20' ) start [2025-02-12 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459885', 'tblTempUsageDetail_20' ) end [2025-02-12 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459885', 'tblTempVendorCDR_20' ) start [2025-02-12 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459885', 'tblTempVendorCDR_20' ) end [2025-02-12 15:07:25] Production.INFO: ProcessCDR(1,14459885,1,1,2) [2025-02-12 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459885', 'tblTempUsageDetail_20' ) start [2025-02-12 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459885', 'tblTempUsageDetail_20' ) end [2025-02-12 15:07:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:07:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:07:30] Production.INFO: ==17893== Releasing lock... [2025-02-12 15:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:07:30] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:08:05 [end_date_ymd] => 2025-02-12 15:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:08:05' and `end` < '2025-02-12 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-12 15:08:26] Production.INFO: count ==5909 [2025-02-12 15:08:29] Production.ERROR: pbx CDR StartTime 2025-02-12 12:08:05 - End Time 2025-02-12 15:08:05 [2025-02-12 15:08:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459890', 'tblTempUsageDetail_20' ) start [2025-02-12 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459890', 'tblTempUsageDetail_20' ) end [2025-02-12 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459890', 'tblTempVendorCDR_20' ) start [2025-02-12 15:08:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459890', 'tblTempVendorCDR_20' ) end [2025-02-12 15:08:29] Production.INFO: ProcessCDR(1,14459890,1,1,2) [2025-02-12 15:08:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:08:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:08:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459890', 'tblTempUsageDetail_20' ) start [2025-02-12 15:08:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459890', 'tblTempUsageDetail_20' ) end [2025-02-12 15:08:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:08:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:08:34] Production.INFO: ==18058== Releasing lock... [2025-02-12 15:08:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:08:34] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:09:05 [end_date_ymd] => 2025-02-12 15:09:05 [RateCDR] => 1 ) [2025-02-12 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:09:05' and `end` < '2025-02-12 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:09:27] Production.INFO: count ==5923 [2025-02-12 15:09:30] Production.ERROR: pbx CDR StartTime 2025-02-12 12:09:05 - End Time 2025-02-12 15:09:05 [2025-02-12 15:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459895', 'tblTempUsageDetail_20' ) start [2025-02-12 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459895', 'tblTempUsageDetail_20' ) end [2025-02-12 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459895', 'tblTempVendorCDR_20' ) start [2025-02-12 15:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459895', 'tblTempVendorCDR_20' ) end [2025-02-12 15:09:30] Production.INFO: ProcessCDR(1,14459895,1,1,2) [2025-02-12 15:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459895', 'tblTempUsageDetail_20' ) start [2025-02-12 15:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459895', 'tblTempUsageDetail_20' ) end [2025-02-12 15:09:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:09:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:09:35] Production.INFO: ==18133== Releasing lock... [2025-02-12 15:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:09:35] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:10:06 [end_date_ymd] => 2025-02-12 15:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 12:10:06' and `end` < '2025-02-12 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-12 15:10:25] Production.INFO: count ==5909 [2025-02-12 15:10:28] Production.ERROR: pbx CDR StartTime 2025-02-12 12:10:06 - End Time 2025-02-12 15:10:06 [2025-02-12 15:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459901', 'tblTempUsageDetail_20' ) start [2025-02-12 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459901', 'tblTempUsageDetail_20' ) end [2025-02-12 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459901', 'tblTempVendorCDR_20' ) start [2025-02-12 15:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459901', 'tblTempVendorCDR_20' ) end [2025-02-12 15:10:28] Production.INFO: ProcessCDR(1,14459901,1,1,2) [2025-02-12 15:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459901', 'tblTempUsageDetail_20' ) start [2025-02-12 15:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459901', 'tblTempUsageDetail_20' ) end [2025-02-12 15:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:10:33] Production.INFO: ==18212== Releasing lock... [2025-02-12 15:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:10:33] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:11:05 [end_date_ymd] => 2025-02-12 15:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:11:05' and `end` < '2025-02-12 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-12 15:11:20] Production.INFO: count ==5933 [2025-02-12 15:11:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:11:05 - End Time 2025-02-12 15:11:05 [2025-02-12 15:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459906', 'tblTempUsageDetail_20' ) start [2025-02-12 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459906', 'tblTempUsageDetail_20' ) end [2025-02-12 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459906', 'tblTempVendorCDR_20' ) start [2025-02-12 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459906', 'tblTempVendorCDR_20' ) end [2025-02-12 15:11:23] Production.INFO: ProcessCDR(1,14459906,1,1,2) [2025-02-12 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459906', 'tblTempUsageDetail_20' ) start [2025-02-12 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459906', 'tblTempUsageDetail_20' ) end [2025-02-12 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:11:28] Production.INFO: ==18289== Releasing lock... [2025-02-12 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:11:28] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:12:05 [end_date_ymd] => 2025-02-12 15:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:12:05' and `end` < '2025-02-12 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-12 15:12:19] Production.INFO: count ==5968 [2025-02-12 15:12:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:12:05 - End Time 2025-02-12 15:12:05 [2025-02-12 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459911', 'tblTempUsageDetail_20' ) start [2025-02-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459911', 'tblTempUsageDetail_20' ) end [2025-02-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459911', 'tblTempVendorCDR_20' ) start [2025-02-12 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459911', 'tblTempVendorCDR_20' ) end [2025-02-12 15:12:22] Production.INFO: ProcessCDR(1,14459911,1,1,2) [2025-02-12 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459911', 'tblTempUsageDetail_20' ) start [2025-02-12 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459911', 'tblTempUsageDetail_20' ) end [2025-02-12 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:12:27] Production.INFO: ==18445== Releasing lock... [2025-02-12 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:12:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:13:05 [end_date_ymd] => 2025-02-12 15:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:13:05' and `end` < '2025-02-12 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-12 15:13:22] Production.INFO: count ==5955 [2025-02-12 15:13:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:13:05 - End Time 2025-02-12 15:13:05 [2025-02-12 15:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459916', 'tblTempUsageDetail_20' ) start [2025-02-12 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459916', 'tblTempUsageDetail_20' ) end [2025-02-12 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459916', 'tblTempVendorCDR_20' ) start [2025-02-12 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459916', 'tblTempVendorCDR_20' ) end [2025-02-12 15:13:25] Production.INFO: ProcessCDR(1,14459916,1,1,2) [2025-02-12 15:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459916', 'tblTempUsageDetail_20' ) start [2025-02-12 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459916', 'tblTempUsageDetail_20' ) end [2025-02-12 15:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:13:30] Production.INFO: ==18519== Releasing lock... [2025-02-12 15:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:13:30] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:14:05 [end_date_ymd] => 2025-02-12 15:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:14:05' and `end` < '2025-02-12 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-12 15:14:22] Production.INFO: count ==5967 [2025-02-12 15:14:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:14:05 - End Time 2025-02-12 15:14:05 [2025-02-12 15:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459921', 'tblTempUsageDetail_20' ) start [2025-02-12 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459921', 'tblTempUsageDetail_20' ) end [2025-02-12 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459921', 'tblTempVendorCDR_20' ) start [2025-02-12 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459921', 'tblTempVendorCDR_20' ) end [2025-02-12 15:14:26] Production.INFO: ProcessCDR(1,14459921,1,1,2) [2025-02-12 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459921', 'tblTempUsageDetail_20' ) start [2025-02-12 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459921', 'tblTempUsageDetail_20' ) end [2025-02-12 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:14:30] Production.INFO: ==18594== Releasing lock... [2025-02-12 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:14:30] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:15:06 [end_date_ymd] => 2025-02-12 15:15:06 [RateCDR] => 1 ) [2025-02-12 15:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:15:06' and `end` < '2025-02-12 15:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:15:22] Production.INFO: count ==5966 [2025-02-12 15:15:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:15:06 - End Time 2025-02-12 15:15:06 [2025-02-12 15:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459926', 'tblTempUsageDetail_20' ) start [2025-02-12 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459926', 'tblTempUsageDetail_20' ) end [2025-02-12 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459926', 'tblTempVendorCDR_20' ) start [2025-02-12 15:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459926', 'tblTempVendorCDR_20' ) end [2025-02-12 15:15:25] Production.INFO: ProcessCDR(1,14459926,1,1,2) [2025-02-12 15:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459926', 'tblTempUsageDetail_20' ) start [2025-02-12 15:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459926', 'tblTempUsageDetail_20' ) end [2025-02-12 15:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:15:30] Production.INFO: ==18747== Releasing lock... [2025-02-12 15:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:15:30] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:16:05 [end_date_ymd] => 2025-02-12 15:16:05 [RateCDR] => 1 ) [2025-02-12 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:16:05' and `end` < '2025-02-12 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:16:21] Production.INFO: count ==5953 [2025-02-12 15:16:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:16:05 - End Time 2025-02-12 15:16:05 [2025-02-12 15:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459931', 'tblTempUsageDetail_20' ) start [2025-02-12 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459931', 'tblTempUsageDetail_20' ) end [2025-02-12 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459931', 'tblTempVendorCDR_20' ) start [2025-02-12 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459931', 'tblTempVendorCDR_20' ) end [2025-02-12 15:16:24] Production.INFO: ProcessCDR(1,14459931,1,1,2) [2025-02-12 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459931', 'tblTempUsageDetail_20' ) start [2025-02-12 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459931', 'tblTempUsageDetail_20' ) end [2025-02-12 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:16:30] Production.INFO: ==18825== Releasing lock... [2025-02-12 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:16:30] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:17:05 [end_date_ymd] => 2025-02-12 15:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:17:05' and `end` < '2025-02-12 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-12 15:17:19] Production.INFO: count ==5954 [2025-02-12 15:17:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:17:05 - End Time 2025-02-12 15:17:05 [2025-02-12 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459936', 'tblTempUsageDetail_20' ) start [2025-02-12 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459936', 'tblTempUsageDetail_20' ) end [2025-02-12 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459936', 'tblTempVendorCDR_20' ) start [2025-02-12 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459936', 'tblTempVendorCDR_20' ) end [2025-02-12 15:17:22] Production.INFO: ProcessCDR(1,14459936,1,1,2) [2025-02-12 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459936', 'tblTempUsageDetail_20' ) start [2025-02-12 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459936', 'tblTempUsageDetail_20' ) end [2025-02-12 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:17:27] Production.INFO: ==18900== Releasing lock... [2025-02-12 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:17:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:18:05 [end_date_ymd] => 2025-02-12 15:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:18:05' and `end` < '2025-02-12 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-12 15:18:33] Production.INFO: count ==5964 [2025-02-12 15:18:35] Production.ERROR: pbx CDR StartTime 2025-02-12 12:18:05 - End Time 2025-02-12 15:18:05 [2025-02-12 15:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459941', 'tblTempUsageDetail_20' ) start [2025-02-12 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459941', 'tblTempUsageDetail_20' ) end [2025-02-12 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459941', 'tblTempVendorCDR_20' ) start [2025-02-12 15:18:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459941', 'tblTempVendorCDR_20' ) end [2025-02-12 15:18:36] Production.INFO: ProcessCDR(1,14459941,1,1,2) [2025-02-12 15:18:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:18:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:18:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:18:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459941', 'tblTempUsageDetail_20' ) start [2025-02-12 15:18:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459941', 'tblTempUsageDetail_20' ) end [2025-02-12 15:18:41] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:18:41] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:18:41] Production.INFO: ==18975== Releasing lock... [2025-02-12 15:18:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:18:41] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:19:05 [end_date_ymd] => 2025-02-12 15:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:19:05' and `end` < '2025-02-12 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-12 15:19:23] Production.INFO: count ==5955 [2025-02-12 15:19:26] Production.ERROR: pbx CDR StartTime 2025-02-12 12:19:05 - End Time 2025-02-12 15:19:05 [2025-02-12 15:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459946', 'tblTempUsageDetail_20' ) start [2025-02-12 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459946', 'tblTempUsageDetail_20' ) end [2025-02-12 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459946', 'tblTempVendorCDR_20' ) start [2025-02-12 15:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459946', 'tblTempVendorCDR_20' ) end [2025-02-12 15:19:26] Production.INFO: ProcessCDR(1,14459946,1,1,2) [2025-02-12 15:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459946', 'tblTempUsageDetail_20' ) start [2025-02-12 15:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459946', 'tblTempUsageDetail_20' ) end [2025-02-12 15:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:19:31] Production.INFO: ==19093== Releasing lock... [2025-02-12 15:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:19:31] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:20:06 [end_date_ymd] => 2025-02-12 15:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 12:20:06' and `end` < '2025-02-12 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-12 15:20:25] Production.INFO: count ==5940 [2025-02-12 15:20:27] Production.ERROR: pbx CDR StartTime 2025-02-12 12:20:06 - End Time 2025-02-12 15:20:06 [2025-02-12 15:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459952', 'tblTempUsageDetail_20' ) start [2025-02-12 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459952', 'tblTempUsageDetail_20' ) end [2025-02-12 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459952', 'tblTempVendorCDR_20' ) start [2025-02-12 15:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459952', 'tblTempVendorCDR_20' ) end [2025-02-12 15:20:27] Production.INFO: ProcessCDR(1,14459952,1,1,2) [2025-02-12 15:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459952', 'tblTempUsageDetail_20' ) start [2025-02-12 15:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459952', 'tblTempUsageDetail_20' ) end [2025-02-12 15:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:20:32] Production.INFO: ==19177== Releasing lock... [2025-02-12 15:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:20:32] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:21:05 [end_date_ymd] => 2025-02-12 15:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:21:05' and `end` < '2025-02-12 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-12 15:21:21] Production.INFO: count ==5931 [2025-02-12 15:21:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:21:05 - End Time 2025-02-12 15:21:05 [2025-02-12 15:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459957', 'tblTempUsageDetail_20' ) start [2025-02-12 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459957', 'tblTempUsageDetail_20' ) end [2025-02-12 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459957', 'tblTempVendorCDR_20' ) start [2025-02-12 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459957', 'tblTempVendorCDR_20' ) end [2025-02-12 15:21:24] Production.INFO: ProcessCDR(1,14459957,1,1,2) [2025-02-12 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459957', 'tblTempUsageDetail_20' ) start [2025-02-12 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459957', 'tblTempUsageDetail_20' ) end [2025-02-12 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:21:29] Production.INFO: ==19256== Releasing lock... [2025-02-12 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:21:29] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:22:05 [end_date_ymd] => 2025-02-12 15:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:22:05' and `end` < '2025-02-12 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-12 15:22:20] Production.INFO: count ==5918 [2025-02-12 15:22:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:22:05 - End Time 2025-02-12 15:22:05 [2025-02-12 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459962', 'tblTempUsageDetail_20' ) start [2025-02-12 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459962', 'tblTempUsageDetail_20' ) end [2025-02-12 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459962', 'tblTempVendorCDR_20' ) start [2025-02-12 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459962', 'tblTempVendorCDR_20' ) end [2025-02-12 15:22:23] Production.INFO: ProcessCDR(1,14459962,1,1,2) [2025-02-12 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459962', 'tblTempUsageDetail_20' ) start [2025-02-12 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459962', 'tblTempUsageDetail_20' ) end [2025-02-12 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:22:27] Production.INFO: ==19332== Releasing lock... [2025-02-12 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:22:27] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:23:05 [end_date_ymd] => 2025-02-12 15:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:23:05' and `end` < '2025-02-12 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-12 15:23:23] Production.INFO: count ==5888 [2025-02-12 15:23:26] Production.ERROR: pbx CDR StartTime 2025-02-12 12:23:05 - End Time 2025-02-12 15:23:05 [2025-02-12 15:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459967', 'tblTempUsageDetail_20' ) start [2025-02-12 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459967', 'tblTempUsageDetail_20' ) end [2025-02-12 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459967', 'tblTempVendorCDR_20' ) start [2025-02-12 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459967', 'tblTempVendorCDR_20' ) end [2025-02-12 15:23:26] Production.INFO: ProcessCDR(1,14459967,1,1,2) [2025-02-12 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459967', 'tblTempUsageDetail_20' ) start [2025-02-12 15:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459967', 'tblTempUsageDetail_20' ) end [2025-02-12 15:23:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:23:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:23:31] Production.INFO: ==19407== Releasing lock... [2025-02-12 15:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:23:31] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:24:05 [end_date_ymd] => 2025-02-12 15:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:24:05' and `end` < '2025-02-12 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-12 15:24:22] Production.INFO: count ==5886 [2025-02-12 15:24:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:24:05 - End Time 2025-02-12 15:24:05 [2025-02-12 15:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459972', 'tblTempUsageDetail_20' ) start [2025-02-12 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459972', 'tblTempUsageDetail_20' ) end [2025-02-12 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459972', 'tblTempVendorCDR_20' ) start [2025-02-12 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459972', 'tblTempVendorCDR_20' ) end [2025-02-12 15:24:25] Production.INFO: ProcessCDR(1,14459972,1,1,2) [2025-02-12 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459972', 'tblTempUsageDetail_20' ) start [2025-02-12 15:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459972', 'tblTempUsageDetail_20' ) end [2025-02-12 15:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:24:31] Production.INFO: ==19480== Releasing lock... [2025-02-12 15:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:24:31] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:25:05 [end_date_ymd] => 2025-02-12 15:25:05 [RateCDR] => 1 ) [2025-02-12 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:25:05' and `end` < '2025-02-12 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:25:26] Production.INFO: count ==5870 [2025-02-12 15:25:28] Production.ERROR: pbx CDR StartTime 2025-02-12 12:25:05 - End Time 2025-02-12 15:25:05 [2025-02-12 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459975', 'tblTempUsageDetail_20' ) start [2025-02-12 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459975', 'tblTempUsageDetail_20' ) end [2025-02-12 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459975', 'tblTempVendorCDR_20' ) start [2025-02-12 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459975', 'tblTempVendorCDR_20' ) end [2025-02-12 15:25:28] Production.INFO: ProcessCDR(1,14459975,1,1,2) [2025-02-12 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459975', 'tblTempUsageDetail_20' ) start [2025-02-12 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459975', 'tblTempUsageDetail_20' ) end [2025-02-12 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:25:33] Production.INFO: ==19558== Releasing lock... [2025-02-12 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:25:33] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:26:06 [end_date_ymd] => 2025-02-12 15:26:06 [RateCDR] => 1 ) [2025-02-12 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:26:06' and `end` < '2025-02-12 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:26:31] Production.INFO: count ==5857 [2025-02-12 15:26:33] Production.ERROR: pbx CDR StartTime 2025-02-12 12:26:06 - End Time 2025-02-12 15:26:06 [2025-02-12 15:26:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459982', 'tblTempUsageDetail_20' ) start [2025-02-12 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459982', 'tblTempUsageDetail_20' ) end [2025-02-12 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459982', 'tblTempVendorCDR_20' ) start [2025-02-12 15:26:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459982', 'tblTempVendorCDR_20' ) end [2025-02-12 15:26:34] Production.INFO: ProcessCDR(1,14459982,1,1,2) [2025-02-12 15:26:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:26:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:26:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459982', 'tblTempUsageDetail_20' ) start [2025-02-12 15:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459982', 'tblTempUsageDetail_20' ) end [2025-02-12 15:26:38] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:26:38] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:26:38] Production.INFO: ==19656== Releasing lock... [2025-02-12 15:26:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:26:38] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:27:04 [end_date_ymd] => 2025-02-12 15:27:04 [RateCDR] => 1 ) [2025-02-12 15: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-12 12:27:04' and `end` < '2025-02-12 15: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-12 15:27:22] Production.INFO: count ==5847 [2025-02-12 15:27:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:27:04 - End Time 2025-02-12 15:27:04 [2025-02-12 15:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459987', 'tblTempUsageDetail_20' ) start [2025-02-12 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459987', 'tblTempUsageDetail_20' ) end [2025-02-12 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459987', 'tblTempVendorCDR_20' ) start [2025-02-12 15:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459987', 'tblTempVendorCDR_20' ) end [2025-02-12 15:27:25] Production.INFO: ProcessCDR(1,14459987,1,1,2) [2025-02-12 15:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459987', 'tblTempUsageDetail_20' ) start [2025-02-12 15:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459987', 'tblTempUsageDetail_20' ) end [2025-02-12 15:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:27:30] Production.INFO: ==19727== Releasing lock... [2025-02-12 15:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:27:30] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:28:05 [end_date_ymd] => 2025-02-12 15:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:28:05' and `end` < '2025-02-12 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-12 15:28:21] Production.INFO: count ==5818 [2025-02-12 15:28:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:28:05 - End Time 2025-02-12 15:28:05 [2025-02-12 15:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459992', 'tblTempUsageDetail_20' ) start [2025-02-12 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459992', 'tblTempUsageDetail_20' ) end [2025-02-12 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459992', 'tblTempVendorCDR_20' ) start [2025-02-12 15:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459992', 'tblTempVendorCDR_20' ) end [2025-02-12 15:28:24] Production.INFO: ProcessCDR(1,14459992,1,1,2) [2025-02-12 15:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459992', 'tblTempUsageDetail_20' ) start [2025-02-12 15:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459992', 'tblTempUsageDetail_20' ) end [2025-02-12 15:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:28:29] Production.INFO: ==19800== Releasing lock... [2025-02-12 15:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:28:29] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:29:05 [end_date_ymd] => 2025-02-12 15:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:29:05' and `end` < '2025-02-12 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-12 15:29:20] Production.INFO: count ==5810 [2025-02-12 15:29:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:29:05 - End Time 2025-02-12 15:29:05 [2025-02-12 15:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459997', 'tblTempUsageDetail_20' ) start [2025-02-12 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14459997', 'tblTempUsageDetail_20' ) end [2025-02-12 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459997', 'tblTempVendorCDR_20' ) start [2025-02-12 15:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14459997', 'tblTempVendorCDR_20' ) end [2025-02-12 15:29:23] Production.INFO: ProcessCDR(1,14459997,1,1,2) [2025-02-12 15:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14459997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14459997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14459997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14459997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459997', 'tblTempUsageDetail_20' ) start [2025-02-12 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14459997', 'tblTempUsageDetail_20' ) end [2025-02-12 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:29:28] Production.INFO: ==19877== Releasing lock... [2025-02-12 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:29:28] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:30:06 [end_date_ymd] => 2025-02-12 15:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 12:30:06' and `end` < '2025-02-12 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-12 15:30:22] Production.INFO: count ==5802 [2025-02-12 15:30:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:30:06 - End Time 2025-02-12 15:30:06 [2025-02-12 15:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460003', 'tblTempUsageDetail_20' ) start [2025-02-12 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460003', 'tblTempUsageDetail_20' ) end [2025-02-12 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460003', 'tblTempVendorCDR_20' ) start [2025-02-12 15:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460003', 'tblTempVendorCDR_20' ) end [2025-02-12 15:30:25] Production.INFO: ProcessCDR(1,14460003,1,1,2) [2025-02-12 15:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460003', 'tblTempUsageDetail_20' ) start [2025-02-12 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460003', 'tblTempUsageDetail_20' ) end [2025-02-12 15:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:30:31] Production.INFO: ==19951== Releasing lock... [2025-02-12 15:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:30:31] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:31:05 [end_date_ymd] => 2025-02-12 15:31:05 [RateCDR] => 1 ) [2025-02-12 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:31:05' and `end` < '2025-02-12 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:31:24] Production.INFO: count ==5854 [2025-02-12 15:31:26] Production.ERROR: pbx CDR StartTime 2025-02-12 12:31:05 - End Time 2025-02-12 15:31:05 [2025-02-12 15:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460008', 'tblTempUsageDetail_20' ) start [2025-02-12 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460008', 'tblTempUsageDetail_20' ) end [2025-02-12 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460008', 'tblTempVendorCDR_20' ) start [2025-02-12 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460008', 'tblTempVendorCDR_20' ) end [2025-02-12 15:31:26] Production.INFO: ProcessCDR(1,14460008,1,1,2) [2025-02-12 15:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460008', 'tblTempUsageDetail_20' ) start [2025-02-12 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460008', 'tblTempUsageDetail_20' ) end [2025-02-12 15:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:31:31] Production.INFO: ==20024== Releasing lock... [2025-02-12 15:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:31:31] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:32:05 [end_date_ymd] => 2025-02-12 15:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:32:05' and `end` < '2025-02-12 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-12 15:32:20] Production.INFO: count ==5866 [2025-02-12 15:32:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:32:05 - End Time 2025-02-12 15:32:05 [2025-02-12 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460013', 'tblTempUsageDetail_20' ) start [2025-02-12 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460013', 'tblTempUsageDetail_20' ) end [2025-02-12 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460013', 'tblTempVendorCDR_20' ) start [2025-02-12 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460013', 'tblTempVendorCDR_20' ) end [2025-02-12 15:32:23] Production.INFO: ProcessCDR(1,14460013,1,1,2) [2025-02-12 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460013', 'tblTempUsageDetail_20' ) start [2025-02-12 15:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460013', 'tblTempUsageDetail_20' ) end [2025-02-12 15:32:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:32:29] Production.INFO: ==20095== Releasing lock... [2025-02-12 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:32:29] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:33:06 [end_date_ymd] => 2025-02-12 15:33:06 [RateCDR] => 1 ) [2025-02-12 15:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:33:06' and `end` < '2025-02-12 15:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:33:27] Production.INFO: count ==5874 [2025-02-12 15:33:30] Production.ERROR: pbx CDR StartTime 2025-02-12 12:33:06 - End Time 2025-02-12 15:33:06 [2025-02-12 15:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460018', 'tblTempUsageDetail_20' ) start [2025-02-12 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460018', 'tblTempUsageDetail_20' ) end [2025-02-12 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460018', 'tblTempVendorCDR_20' ) start [2025-02-12 15:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460018', 'tblTempVendorCDR_20' ) end [2025-02-12 15:33:30] Production.INFO: ProcessCDR(1,14460018,1,1,2) [2025-02-12 15:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:33:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460018', 'tblTempUsageDetail_20' ) start [2025-02-12 15:33:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460018', 'tblTempUsageDetail_20' ) end [2025-02-12 15:33:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:33:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:33:35] Production.INFO: ==20168== Releasing lock... [2025-02-12 15:33:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:33:35] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:34:05 [end_date_ymd] => 2025-02-12 15:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:34:05' and `end` < '2025-02-12 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-12 15:34:21] Production.INFO: count ==5865 [2025-02-12 15:34:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:34:05 - End Time 2025-02-12 15:34:05 [2025-02-12 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460023', 'tblTempUsageDetail_20' ) start [2025-02-12 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460023', 'tblTempUsageDetail_20' ) end [2025-02-12 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460023', 'tblTempVendorCDR_20' ) start [2025-02-12 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460023', 'tblTempVendorCDR_20' ) end [2025-02-12 15:34:24] Production.INFO: ProcessCDR(1,14460023,1,1,2) [2025-02-12 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460023', 'tblTempUsageDetail_20' ) start [2025-02-12 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460023', 'tblTempUsageDetail_20' ) end [2025-02-12 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:34:27] Production.INFO: ==20280== Releasing lock... [2025-02-12 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:34:27] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:35:05 [end_date_ymd] => 2025-02-12 15:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:35:05' and `end` < '2025-02-12 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-12 15:35:28] Production.INFO: count ==5867 [2025-02-12 15:35:31] Production.ERROR: pbx CDR StartTime 2025-02-12 12:35:05 - End Time 2025-02-12 15:35:05 [2025-02-12 15:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460028', 'tblTempUsageDetail_20' ) start [2025-02-12 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460028', 'tblTempUsageDetail_20' ) end [2025-02-12 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460028', 'tblTempVendorCDR_20' ) start [2025-02-12 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460028', 'tblTempVendorCDR_20' ) end [2025-02-12 15:35:31] Production.INFO: ProcessCDR(1,14460028,1,1,2) [2025-02-12 15:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460028', 'tblTempUsageDetail_20' ) start [2025-02-12 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460028', 'tblTempUsageDetail_20' ) end [2025-02-12 15:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:35:36] Production.INFO: ==20354== Releasing lock... [2025-02-12 15:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:35:36] Production.INFO: 72 MB #Memory Used# [2025-02-12 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:36:05 [end_date_ymd] => 2025-02-12 15:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:36:05' and `end` < '2025-02-12 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-12 15:36:24] Production.INFO: count ==5908 [2025-02-12 15:36:27] Production.ERROR: pbx CDR StartTime 2025-02-12 12:36:05 - End Time 2025-02-12 15:36:05 [2025-02-12 15:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460033', 'tblTempUsageDetail_20' ) start [2025-02-12 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460033', 'tblTempUsageDetail_20' ) end [2025-02-12 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460033', 'tblTempVendorCDR_20' ) start [2025-02-12 15:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460033', 'tblTempVendorCDR_20' ) end [2025-02-12 15:36:27] Production.INFO: ProcessCDR(1,14460033,1,1,2) [2025-02-12 15:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460033', 'tblTempUsageDetail_20' ) start [2025-02-12 15:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460033', 'tblTempUsageDetail_20' ) end [2025-02-12 15:36:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:36:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:36:32] Production.INFO: ==20425== Releasing lock... [2025-02-12 15:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:36:32] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:37:05 [end_date_ymd] => 2025-02-12 15:37:05 [RateCDR] => 1 ) [2025-02-12 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:37:05' and `end` < '2025-02-12 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:37:19] Production.INFO: count ==5898 [2025-02-12 15:37:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:37:05 - End Time 2025-02-12 15:37:05 [2025-02-12 15:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460038', 'tblTempUsageDetail_20' ) start [2025-02-12 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460038', 'tblTempUsageDetail_20' ) end [2025-02-12 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460038', 'tblTempVendorCDR_20' ) start [2025-02-12 15:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460038', 'tblTempVendorCDR_20' ) end [2025-02-12 15:37:22] Production.INFO: ProcessCDR(1,14460038,1,1,2) [2025-02-12 15:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460038', 'tblTempUsageDetail_20' ) start [2025-02-12 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460038', 'tblTempUsageDetail_20' ) end [2025-02-12 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:37:27] Production.INFO: ==20495== Releasing lock... [2025-02-12 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:37:27] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:38:05 [end_date_ymd] => 2025-02-12 15:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:38:05' and `end` < '2025-02-12 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-12 15:38:19] Production.INFO: count ==5898 [2025-02-12 15:38:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:38:05 - End Time 2025-02-12 15:38:05 [2025-02-12 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460043', 'tblTempUsageDetail_20' ) start [2025-02-12 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460043', 'tblTempUsageDetail_20' ) end [2025-02-12 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460043', 'tblTempVendorCDR_20' ) start [2025-02-12 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460043', 'tblTempVendorCDR_20' ) end [2025-02-12 15:38:22] Production.INFO: ProcessCDR(1,14460043,1,1,2) [2025-02-12 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460043', 'tblTempUsageDetail_20' ) start [2025-02-12 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460043', 'tblTempUsageDetail_20' ) end [2025-02-12 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:38:27] Production.INFO: ==20567== Releasing lock... [2025-02-12 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:38:27] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:39:05 [end_date_ymd] => 2025-02-12 15:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:39:05' and `end` < '2025-02-12 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-12 15:39:19] Production.INFO: count ==5897 [2025-02-12 15:39:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:39:05 - End Time 2025-02-12 15:39:05 [2025-02-12 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460048', 'tblTempUsageDetail_20' ) start [2025-02-12 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460048', 'tblTempUsageDetail_20' ) end [2025-02-12 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460048', 'tblTempVendorCDR_20' ) start [2025-02-12 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460048', 'tblTempVendorCDR_20' ) end [2025-02-12 15:39:22] Production.INFO: ProcessCDR(1,14460048,1,1,2) [2025-02-12 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460048', 'tblTempUsageDetail_20' ) start [2025-02-12 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460048', 'tblTempUsageDetail_20' ) end [2025-02-12 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:39:27] Production.INFO: ==20637== Releasing lock... [2025-02-12 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:39:27] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:40:06 [end_date_ymd] => 2025-02-12 15:40:06 [RateCDR] => 1 ) [2025-02-12 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:40:06' and `end` < '2025-02-12 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:40:22] Production.INFO: count ==5915 [2025-02-12 15:40:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:40:06 - End Time 2025-02-12 15:40:06 [2025-02-12 15:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460054', 'tblTempUsageDetail_20' ) start [2025-02-12 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460054', 'tblTempUsageDetail_20' ) end [2025-02-12 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460054', 'tblTempVendorCDR_20' ) start [2025-02-12 15:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460054', 'tblTempVendorCDR_20' ) end [2025-02-12 15:40:24] Production.INFO: ProcessCDR(1,14460054,1,1,2) [2025-02-12 15:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460054', 'tblTempUsageDetail_20' ) start [2025-02-12 15:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460054', 'tblTempUsageDetail_20' ) end [2025-02-12 15:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:40:29] Production.INFO: ==20710== Releasing lock... [2025-02-12 15:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:40:29] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:41:05 [end_date_ymd] => 2025-02-12 15:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:41:05' and `end` < '2025-02-12 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-12 15:41:20] Production.INFO: count ==5951 [2025-02-12 15:41:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:41:05 - End Time 2025-02-12 15:41:05 [2025-02-12 15:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460059', 'tblTempUsageDetail_20' ) start [2025-02-12 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460059', 'tblTempUsageDetail_20' ) end [2025-02-12 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460059', 'tblTempVendorCDR_20' ) start [2025-02-12 15:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460059', 'tblTempVendorCDR_20' ) end [2025-02-12 15:41:23] Production.INFO: ProcessCDR(1,14460059,1,1,2) [2025-02-12 15:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460059', 'tblTempUsageDetail_20' ) start [2025-02-12 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460059', 'tblTempUsageDetail_20' ) end [2025-02-12 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:41:28] Production.INFO: ==20786== Releasing lock... [2025-02-12 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:41:28] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:42:05 [end_date_ymd] => 2025-02-12 15:42:05 [RateCDR] => 1 ) [2025-02-12 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:42:05' and `end` < '2025-02-12 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:42:19] Production.INFO: count ==5959 [2025-02-12 15:42:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:42:05 - End Time 2025-02-12 15:42:05 [2025-02-12 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460064', 'tblTempUsageDetail_20' ) start [2025-02-12 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460064', 'tblTempUsageDetail_20' ) end [2025-02-12 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460064', 'tblTempVendorCDR_20' ) start [2025-02-12 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460064', 'tblTempVendorCDR_20' ) end [2025-02-12 15:42:22] Production.INFO: ProcessCDR(1,14460064,1,1,2) [2025-02-12 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460064', 'tblTempUsageDetail_20' ) start [2025-02-12 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460064', 'tblTempUsageDetail_20' ) end [2025-02-12 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:42:27] Production.INFO: ==20859== Releasing lock... [2025-02-12 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:42:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:43:05 [end_date_ymd] => 2025-02-12 15:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:43:05' and `end` < '2025-02-12 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-12 15:43:19] Production.INFO: count ==5932 [2025-02-12 15:43:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:43:05 - End Time 2025-02-12 15:43:05 [2025-02-12 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460069', 'tblTempUsageDetail_20' ) start [2025-02-12 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460069', 'tblTempUsageDetail_20' ) end [2025-02-12 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460069', 'tblTempVendorCDR_20' ) start [2025-02-12 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460069', 'tblTempVendorCDR_20' ) end [2025-02-12 15:43:22] Production.INFO: ProcessCDR(1,14460069,1,1,2) [2025-02-12 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460069', 'tblTempUsageDetail_20' ) start [2025-02-12 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460069', 'tblTempUsageDetail_20' ) end [2025-02-12 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:43:27] Production.INFO: ==20929== Releasing lock... [2025-02-12 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:43:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:44:05 [end_date_ymd] => 2025-02-12 15:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:44:05' and `end` < '2025-02-12 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-12 15:44:23] Production.INFO: count ==5967 [2025-02-12 15:44:26] Production.ERROR: pbx CDR StartTime 2025-02-12 12:44:05 - End Time 2025-02-12 15:44:05 [2025-02-12 15:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460074', 'tblTempUsageDetail_20' ) start [2025-02-12 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460074', 'tblTempUsageDetail_20' ) end [2025-02-12 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460074', 'tblTempVendorCDR_20' ) start [2025-02-12 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460074', 'tblTempVendorCDR_20' ) end [2025-02-12 15:44:26] Production.INFO: ProcessCDR(1,14460074,1,1,2) [2025-02-12 15:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460074', 'tblTempUsageDetail_20' ) start [2025-02-12 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460074', 'tblTempUsageDetail_20' ) end [2025-02-12 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:44:32] Production.INFO: ==21020== Releasing lock... [2025-02-12 15:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:44:32] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:45:05 [end_date_ymd] => 2025-02-12 15:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:45:05' and `end` < '2025-02-12 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-12 15:45:25] Production.INFO: count ==5961 [2025-02-12 15:45:27] Production.ERROR: pbx CDR StartTime 2025-02-12 12:45:05 - End Time 2025-02-12 15:45:05 [2025-02-12 15:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460079', 'tblTempUsageDetail_20' ) start [2025-02-12 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460079', 'tblTempUsageDetail_20' ) end [2025-02-12 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460079', 'tblTempVendorCDR_20' ) start [2025-02-12 15:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460079', 'tblTempVendorCDR_20' ) end [2025-02-12 15:45:27] Production.INFO: ProcessCDR(1,14460079,1,1,2) [2025-02-12 15:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460079', 'tblTempUsageDetail_20' ) start [2025-02-12 15:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460079', 'tblTempUsageDetail_20' ) end [2025-02-12 15:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:45:32] Production.INFO: ==21123== Releasing lock... [2025-02-12 15:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:45:32] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:46:05 [end_date_ymd] => 2025-02-12 15:46:05 [RateCDR] => 1 ) [2025-02-12 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:46:05' and `end` < '2025-02-12 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:46:20] Production.INFO: count ==5961 [2025-02-12 15:46:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:46:05 - End Time 2025-02-12 15:46:05 [2025-02-12 15:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460084', 'tblTempUsageDetail_20' ) start [2025-02-12 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460084', 'tblTempUsageDetail_20' ) end [2025-02-12 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460084', 'tblTempVendorCDR_20' ) start [2025-02-12 15:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460084', 'tblTempVendorCDR_20' ) end [2025-02-12 15:46:23] Production.INFO: ProcessCDR(1,14460084,1,1,2) [2025-02-12 15:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460084', 'tblTempUsageDetail_20' ) start [2025-02-12 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460084', 'tblTempUsageDetail_20' ) end [2025-02-12 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:46:28] Production.INFO: ==21224== Releasing lock... [2025-02-12 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:46:28] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:47:05 [end_date_ymd] => 2025-02-12 15:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:47:05' and `end` < '2025-02-12 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-12 15:47:19] Production.INFO: count ==5954 [2025-02-12 15:47:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:47:05 - End Time 2025-02-12 15:47:05 [2025-02-12 15:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460089', 'tblTempUsageDetail_20' ) start [2025-02-12 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460089', 'tblTempUsageDetail_20' ) end [2025-02-12 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460089', 'tblTempVendorCDR_20' ) start [2025-02-12 15:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460089', 'tblTempVendorCDR_20' ) end [2025-02-12 15:47:22] Production.INFO: ProcessCDR(1,14460089,1,1,2) [2025-02-12 15:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460089', 'tblTempUsageDetail_20' ) start [2025-02-12 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460089', 'tblTempUsageDetail_20' ) end [2025-02-12 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:47:27] Production.INFO: ==21333== Releasing lock... [2025-02-12 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:47:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:48:05 [end_date_ymd] => 2025-02-12 15:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:48:05' and `end` < '2025-02-12 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-12 15:48:20] Production.INFO: count ==5946 [2025-02-12 15:48:22] Production.ERROR: pbx CDR StartTime 2025-02-12 12:48:05 - End Time 2025-02-12 15:48:05 [2025-02-12 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460094', 'tblTempUsageDetail_20' ) start [2025-02-12 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460094', 'tblTempUsageDetail_20' ) end [2025-02-12 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460094', 'tblTempVendorCDR_20' ) start [2025-02-12 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460094', 'tblTempVendorCDR_20' ) end [2025-02-12 15:48:22] Production.INFO: ProcessCDR(1,14460094,1,1,2) [2025-02-12 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460094', 'tblTempUsageDetail_20' ) start [2025-02-12 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460094', 'tblTempUsageDetail_20' ) end [2025-02-12 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:48:27] Production.INFO: ==21440== Releasing lock... [2025-02-12 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:48:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:49:05 [end_date_ymd] => 2025-02-12 15:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:49:05' and `end` < '2025-02-12 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-12 15:49:22] Production.INFO: count ==5949 [2025-02-12 15:49:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:49:05 - End Time 2025-02-12 15:49:05 [2025-02-12 15:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460099', 'tblTempUsageDetail_20' ) start [2025-02-12 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460099', 'tblTempUsageDetail_20' ) end [2025-02-12 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460099', 'tblTempVendorCDR_20' ) start [2025-02-12 15:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460099', 'tblTempVendorCDR_20' ) end [2025-02-12 15:49:25] Production.INFO: ProcessCDR(1,14460099,1,1,2) [2025-02-12 15:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460099', 'tblTempUsageDetail_20' ) start [2025-02-12 15:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460099', 'tblTempUsageDetail_20' ) end [2025-02-12 15:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:49:30] Production.INFO: ==21551== Releasing lock... [2025-02-12 15:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:49:30] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:50:05 [end_date_ymd] => 2025-02-12 15:50:05 [RateCDR] => 1 ) [2025-02-12 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:50:05' and `end` < '2025-02-12 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:50:29] Production.INFO: count ==5967 [2025-02-12 15:50:32] Production.ERROR: pbx CDR StartTime 2025-02-12 12:50:05 - End Time 2025-02-12 15:50:05 [2025-02-12 15:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460105', 'tblTempUsageDetail_20' ) start [2025-02-12 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460105', 'tblTempUsageDetail_20' ) end [2025-02-12 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460105', 'tblTempVendorCDR_20' ) start [2025-02-12 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460105', 'tblTempVendorCDR_20' ) end [2025-02-12 15:50:32] Production.INFO: ProcessCDR(1,14460105,1,1,2) [2025-02-12 15:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460105', 'tblTempUsageDetail_20' ) start [2025-02-12 15:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460105', 'tblTempUsageDetail_20' ) end [2025-02-12 15:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:50:37] Production.INFO: ==21698== Releasing lock... [2025-02-12 15:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:50:37] Production.INFO: 72.75 MB #Memory Used# [2025-02-12 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:51:05 [end_date_ymd] => 2025-02-12 15:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:51:05' and `end` < '2025-02-12 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-12 15:51:26] Production.INFO: count ==5946 [2025-02-12 15:51:29] Production.ERROR: pbx CDR StartTime 2025-02-12 12:51:05 - End Time 2025-02-12 15:51:05 [2025-02-12 15:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460110', 'tblTempUsageDetail_20' ) start [2025-02-12 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460110', 'tblTempUsageDetail_20' ) end [2025-02-12 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460110', 'tblTempVendorCDR_20' ) start [2025-02-12 15:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460110', 'tblTempVendorCDR_20' ) end [2025-02-12 15:51:29] Production.INFO: ProcessCDR(1,14460110,1,1,2) [2025-02-12 15:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460110', 'tblTempUsageDetail_20' ) start [2025-02-12 15:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460110', 'tblTempUsageDetail_20' ) end [2025-02-12 15:51:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:51:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:51:34] Production.INFO: ==21806== Releasing lock... [2025-02-12 15:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:51:34] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:52:05 [end_date_ymd] => 2025-02-12 15:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:52:05' and `end` < '2025-02-12 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-12 15:52:25] Production.INFO: count ==5945 [2025-02-12 15:52:27] Production.ERROR: pbx CDR StartTime 2025-02-12 12:52:05 - End Time 2025-02-12 15:52:05 [2025-02-12 15:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460115', 'tblTempUsageDetail_20' ) start [2025-02-12 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460115', 'tblTempUsageDetail_20' ) end [2025-02-12 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460115', 'tblTempVendorCDR_20' ) start [2025-02-12 15:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460115', 'tblTempVendorCDR_20' ) end [2025-02-12 15:52:28] Production.INFO: ProcessCDR(1,14460115,1,1,2) [2025-02-12 15:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460115', 'tblTempUsageDetail_20' ) start [2025-02-12 15:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460115', 'tblTempUsageDetail_20' ) end [2025-02-12 15:52:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:52:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:52:33] Production.INFO: ==21901== Releasing lock... [2025-02-12 15:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:52:33] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:53:05 [end_date_ymd] => 2025-02-12 15:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:53:05' and `end` < '2025-02-12 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-12 15:53:21] Production.INFO: count ==5939 [2025-02-12 15:53:24] Production.ERROR: pbx CDR StartTime 2025-02-12 12:53:05 - End Time 2025-02-12 15:53:05 [2025-02-12 15:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460120', 'tblTempUsageDetail_20' ) start [2025-02-12 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460120', 'tblTempUsageDetail_20' ) end [2025-02-12 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460120', 'tblTempVendorCDR_20' ) start [2025-02-12 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460120', 'tblTempVendorCDR_20' ) end [2025-02-12 15:53:24] Production.INFO: ProcessCDR(1,14460120,1,1,2) [2025-02-12 15:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460120', 'tblTempUsageDetail_20' ) start [2025-02-12 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460120', 'tblTempUsageDetail_20' ) end [2025-02-12 15:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:53:29] Production.INFO: ==22007== Releasing lock... [2025-02-12 15:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:53:29] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:54:05 [end_date_ymd] => 2025-02-12 15:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:54:05' and `end` < '2025-02-12 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-12 15:54:28] Production.INFO: count ==5935 [2025-02-12 15:54:31] Production.ERROR: pbx CDR StartTime 2025-02-12 12:54:05 - End Time 2025-02-12 15:54:05 [2025-02-12 15:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460125', 'tblTempUsageDetail_20' ) start [2025-02-12 15:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460125', 'tblTempUsageDetail_20' ) end [2025-02-12 15:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460125', 'tblTempVendorCDR_20' ) start [2025-02-12 15:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460125', 'tblTempVendorCDR_20' ) end [2025-02-12 15:54:31] Production.INFO: ProcessCDR(1,14460125,1,1,2) [2025-02-12 15:54:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460125', 'tblTempUsageDetail_20' ) start [2025-02-12 15:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460125', 'tblTempUsageDetail_20' ) end [2025-02-12 15:54:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:54:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:54:36] Production.INFO: ==22115== Releasing lock... [2025-02-12 15:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:54:36] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:55:05 [end_date_ymd] => 2025-02-12 15:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:55:05' and `end` < '2025-02-12 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-12 15:55:25] Production.INFO: count ==5925 [2025-02-12 15:55:28] Production.ERROR: pbx CDR StartTime 2025-02-12 12:55:05 - End Time 2025-02-12 15:55:05 [2025-02-12 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460130', 'tblTempUsageDetail_20' ) start [2025-02-12 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460130', 'tblTempUsageDetail_20' ) end [2025-02-12 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460130', 'tblTempVendorCDR_20' ) start [2025-02-12 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460130', 'tblTempVendorCDR_20' ) end [2025-02-12 15:55:28] Production.INFO: ProcessCDR(1,14460130,1,1,2) [2025-02-12 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460130', 'tblTempUsageDetail_20' ) start [2025-02-12 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460130', 'tblTempUsageDetail_20' ) end [2025-02-12 15:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:55:33] Production.INFO: ==22234== Releasing lock... [2025-02-12 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:55:33] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:56:05 [end_date_ymd] => 2025-02-12 15:56:05 [RateCDR] => 1 ) [2025-02-12 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:56:05' and `end` < '2025-02-12 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:56:21] Production.INFO: count ==5919 [2025-02-12 15:56:23] Production.ERROR: pbx CDR StartTime 2025-02-12 12:56:05 - End Time 2025-02-12 15:56:05 [2025-02-12 15:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460135', 'tblTempUsageDetail_20' ) start [2025-02-12 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460135', 'tblTempUsageDetail_20' ) end [2025-02-12 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460135', 'tblTempVendorCDR_20' ) start [2025-02-12 15:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460135', 'tblTempVendorCDR_20' ) end [2025-02-12 15:56:24] Production.INFO: ProcessCDR(1,14460135,1,1,2) [2025-02-12 15:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460135', 'tblTempUsageDetail_20' ) start [2025-02-12 15:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460135', 'tblTempUsageDetail_20' ) end [2025-02-12 15:56:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:56:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:56:29] Production.INFO: ==22347== Releasing lock... [2025-02-12 15:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:56:29] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:57:05 [end_date_ymd] => 2025-02-12 15:57:05 [RateCDR] => 1 ) [2025-02-12 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 12:57:05' and `end` < '2025-02-12 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 15:57:23] Production.INFO: count ==5933 [2025-02-12 15:57:25] Production.ERROR: pbx CDR StartTime 2025-02-12 12:57:05 - End Time 2025-02-12 15:57:05 [2025-02-12 15:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460140', 'tblTempUsageDetail_20' ) start [2025-02-12 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460140', 'tblTempUsageDetail_20' ) end [2025-02-12 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460140', 'tblTempVendorCDR_20' ) start [2025-02-12 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460140', 'tblTempVendorCDR_20' ) end [2025-02-12 15:57:26] Production.INFO: ProcessCDR(1,14460140,1,1,2) [2025-02-12 15:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460140', 'tblTempUsageDetail_20' ) start [2025-02-12 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460140', 'tblTempUsageDetail_20' ) end [2025-02-12 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:57:31] Production.INFO: ==22471== Releasing lock... [2025-02-12 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:57:31] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:58:05 [end_date_ymd] => 2025-02-12 15:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:58:05' and `end` < '2025-02-12 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-12 15:58:29] Production.INFO: count ==5938 [2025-02-12 15:58:32] Production.ERROR: pbx CDR StartTime 2025-02-12 12:58:05 - End Time 2025-02-12 15:58:05 [2025-02-12 15:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460145', 'tblTempUsageDetail_20' ) start [2025-02-12 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460145', 'tblTempUsageDetail_20' ) end [2025-02-12 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460145', 'tblTempVendorCDR_20' ) start [2025-02-12 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460145', 'tblTempVendorCDR_20' ) end [2025-02-12 15:58:32] Production.INFO: ProcessCDR(1,14460145,1,1,2) [2025-02-12 15:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460145', 'tblTempUsageDetail_20' ) start [2025-02-12 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460145', 'tblTempUsageDetail_20' ) end [2025-02-12 15:58:37] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:58:37] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:58:37] Production.INFO: ==22569== Releasing lock... [2025-02-12 15:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:58:37] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 12:59:05 [end_date_ymd] => 2025-02-12 15:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 12:59:05' and `end` < '2025-02-12 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-12 15:59:25] Production.INFO: count ==5940 [2025-02-12 15:59:28] Production.ERROR: pbx CDR StartTime 2025-02-12 12:59:05 - End Time 2025-02-12 15:59:05 [2025-02-12 15:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 15:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460150', 'tblTempUsageDetail_20' ) start [2025-02-12 15:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460150', 'tblTempUsageDetail_20' ) end [2025-02-12 15:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460150', 'tblTempVendorCDR_20' ) start [2025-02-12 15:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460150', 'tblTempVendorCDR_20' ) end [2025-02-12 15:59:28] Production.INFO: ProcessCDR(1,14460150,1,1,2) [2025-02-12 15:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 15:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460150', 'tblTempUsageDetail_20' ) start [2025-02-12 15:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460150', 'tblTempUsageDetail_20' ) end [2025-02-12 15:59:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 15:59:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 15:59:32] Production.INFO: ==22654== Releasing lock... [2025-02-12 15:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 15:59:32] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:00:06 [end_date_ymd] => 2025-02-12 16:00:06 [RateCDR] => 1 ) [2025-02-12 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:00:06' and `end` < '2025-02-12 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:00:25] Production.INFO: count ==5943 [2025-02-12 16:00:28] Production.ERROR: pbx CDR StartTime 2025-02-12 13:00:06 - End Time 2025-02-12 16:00:06 [2025-02-12 16:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460156', 'tblTempUsageDetail_20' ) start [2025-02-12 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460156', 'tblTempUsageDetail_20' ) end [2025-02-12 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460156', 'tblTempVendorCDR_20' ) start [2025-02-12 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460156', 'tblTempVendorCDR_20' ) end [2025-02-12 16:00:28] Production.INFO: ProcessCDR(1,14460156,1,1,2) [2025-02-12 16:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460156', 'tblTempUsageDetail_20' ) start [2025-02-12 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460156', 'tblTempUsageDetail_20' ) end [2025-02-12 16:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:00:33] Production.INFO: ==22744== Releasing lock... [2025-02-12 16:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:00:33] Production.INFO: 72.5 MB #Memory Used# [2025-02-12 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:01:05 [end_date_ymd] => 2025-02-12 16:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:01:05' and `end` < '2025-02-12 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-12 16:01:22] Production.INFO: count ==5918 [2025-02-12 16:01:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:01:05 - End Time 2025-02-12 16:01:05 [2025-02-12 16:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460161', 'tblTempUsageDetail_20' ) start [2025-02-12 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460161', 'tblTempUsageDetail_20' ) end [2025-02-12 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460161', 'tblTempVendorCDR_20' ) start [2025-02-12 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460161', 'tblTempVendorCDR_20' ) end [2025-02-12 16:01:25] Production.INFO: ProcessCDR(1,14460161,1,1,2) [2025-02-12 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460161', 'tblTempUsageDetail_20' ) start [2025-02-12 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460161', 'tblTempUsageDetail_20' ) end [2025-02-12 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:01:30] Production.INFO: ==22842== Releasing lock... [2025-02-12 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:01:30] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:02:05 [end_date_ymd] => 2025-02-12 16:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:02:05' and `end` < '2025-02-12 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-12 16:02:20] Production.INFO: count ==5905 [2025-02-12 16:02:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:02:05 - End Time 2025-02-12 16:02:05 [2025-02-12 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460166', 'tblTempUsageDetail_20' ) start [2025-02-12 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460166', 'tblTempUsageDetail_20' ) end [2025-02-12 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460166', 'tblTempVendorCDR_20' ) start [2025-02-12 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460166', 'tblTempVendorCDR_20' ) end [2025-02-12 16:02:23] Production.INFO: ProcessCDR(1,14460166,1,1,2) [2025-02-12 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460166', 'tblTempUsageDetail_20' ) start [2025-02-12 16:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460166', 'tblTempUsageDetail_20' ) end [2025-02-12 16:02:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:02:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:02:29] Production.INFO: ==22927== Releasing lock... [2025-02-12 16:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:02:29] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:03:05 [end_date_ymd] => 2025-02-12 16:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:03:05' and `end` < '2025-02-12 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-12 16:03:22] Production.INFO: count ==5897 [2025-02-12 16:03:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:03:05 - End Time 2025-02-12 16:03:05 [2025-02-12 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460171', 'tblTempUsageDetail_20' ) start [2025-02-12 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460171', 'tblTempUsageDetail_20' ) end [2025-02-12 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460171', 'tblTempVendorCDR_20' ) start [2025-02-12 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460171', 'tblTempVendorCDR_20' ) end [2025-02-12 16:03:25] Production.INFO: ProcessCDR(1,14460171,1,1,2) [2025-02-12 16:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460171', 'tblTempUsageDetail_20' ) start [2025-02-12 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460171', 'tblTempUsageDetail_20' ) end [2025-02-12 16:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:03:29] Production.INFO: ==23016== Releasing lock... [2025-02-12 16:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:03:29] Production.INFO: 72.25 MB #Memory Used# [2025-02-12 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:04:06 [end_date_ymd] => 2025-02-12 16:04:06 [RateCDR] => 1 ) [2025-02-12 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:04:06' and `end` < '2025-02-12 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:04:20] Production.INFO: count ==5879 [2025-02-12 16:04:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:04:06 - End Time 2025-02-12 16:04:06 [2025-02-12 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460176', 'tblTempUsageDetail_20' ) start [2025-02-12 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460176', 'tblTempUsageDetail_20' ) end [2025-02-12 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460176', 'tblTempVendorCDR_20' ) start [2025-02-12 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460176', 'tblTempVendorCDR_20' ) end [2025-02-12 16:04:22] Production.INFO: ProcessCDR(1,14460176,1,1,2) [2025-02-12 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460176', 'tblTempUsageDetail_20' ) start [2025-02-12 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460176', 'tblTempUsageDetail_20' ) end [2025-02-12 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:04:27] Production.INFO: ==23097== Releasing lock... [2025-02-12 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:04:27] Production.INFO: 72 MB #Memory Used# [2025-02-12 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:05:05 [end_date_ymd] => 2025-02-12 16:05:05 [RateCDR] => 1 ) [2025-02-12 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:05:05' and `end` < '2025-02-12 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:05:19] Production.INFO: count ==5863 [2025-02-12 16:05:21] Production.ERROR: pbx CDR StartTime 2025-02-12 13:05:05 - End Time 2025-02-12 16:05:05 [2025-02-12 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460181', 'tblTempUsageDetail_20' ) start [2025-02-12 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460181', 'tblTempUsageDetail_20' ) end [2025-02-12 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460181', 'tblTempVendorCDR_20' ) start [2025-02-12 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460181', 'tblTempVendorCDR_20' ) end [2025-02-12 16:05:22] Production.INFO: ProcessCDR(1,14460181,1,1,2) [2025-02-12 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460181', 'tblTempUsageDetail_20' ) start [2025-02-12 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460181', 'tblTempUsageDetail_20' ) end [2025-02-12 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:05:26] Production.INFO: ==23221== Releasing lock... [2025-02-12 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:05:26] Production.INFO: 72 MB #Memory Used# [2025-02-12 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:06:05 [end_date_ymd] => 2025-02-12 16:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:06:05' and `end` < '2025-02-12 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-12 16:06:21] Production.INFO: count ==5839 [2025-02-12 16:06:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:06:05 - End Time 2025-02-12 16:06:05 [2025-02-12 16:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460186', 'tblTempUsageDetail_20' ) start [2025-02-12 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460186', 'tblTempUsageDetail_20' ) end [2025-02-12 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460186', 'tblTempVendorCDR_20' ) start [2025-02-12 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460186', 'tblTempVendorCDR_20' ) end [2025-02-12 16:06:24] Production.INFO: ProcessCDR(1,14460186,1,1,2) [2025-02-12 16:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460186', 'tblTempUsageDetail_20' ) start [2025-02-12 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460186', 'tblTempUsageDetail_20' ) end [2025-02-12 16:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:06:29] Production.INFO: ==23300== Releasing lock... [2025-02-12 16:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:06:29] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:07:04 [end_date_ymd] => 2025-02-12 16:07:04 [RateCDR] => 1 ) [2025-02-12 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:07:04' and `end` < '2025-02-12 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:07:20] Production.INFO: count ==5831 [2025-02-12 16:07:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:07:04 - End Time 2025-02-12 16:07:04 [2025-02-12 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460191', 'tblTempUsageDetail_20' ) start [2025-02-12 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460191', 'tblTempUsageDetail_20' ) end [2025-02-12 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460191', 'tblTempVendorCDR_20' ) start [2025-02-12 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460191', 'tblTempVendorCDR_20' ) end [2025-02-12 16:07:23] Production.INFO: ProcessCDR(1,14460191,1,1,2) [2025-02-12 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460191', 'tblTempUsageDetail_20' ) start [2025-02-12 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460191', 'tblTempUsageDetail_20' ) end [2025-02-12 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:07:28] Production.INFO: ==23380== Releasing lock... [2025-02-12 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:07:28] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:08:05 [end_date_ymd] => 2025-02-12 16:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:08:05' and `end` < '2025-02-12 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-12 16:08:21] Production.INFO: count ==5834 [2025-02-12 16:08:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:08:05 - End Time 2025-02-12 16:08:05 [2025-02-12 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460196', 'tblTempUsageDetail_20' ) start [2025-02-12 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460196', 'tblTempUsageDetail_20' ) end [2025-02-12 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460196', 'tblTempVendorCDR_20' ) start [2025-02-12 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460196', 'tblTempVendorCDR_20' ) end [2025-02-12 16:08:24] Production.INFO: ProcessCDR(1,14460196,1,1,2) [2025-02-12 16:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460196', 'tblTempUsageDetail_20' ) start [2025-02-12 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460196', 'tblTempUsageDetail_20' ) end [2025-02-12 16:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:08:29] Production.INFO: ==23468== Releasing lock... [2025-02-12 16:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:08:29] Production.INFO: 71.75 MB #Memory Used# [2025-02-12 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:09:05 [end_date_ymd] => 2025-02-12 16:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:09:05' and `end` < '2025-02-12 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-12 16:09:21] Production.INFO: count ==5815 [2025-02-12 16:09:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:09:05 - End Time 2025-02-12 16:09:05 [2025-02-12 16:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460201', 'tblTempUsageDetail_20' ) start [2025-02-12 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460201', 'tblTempUsageDetail_20' ) end [2025-02-12 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460201', 'tblTempVendorCDR_20' ) start [2025-02-12 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460201', 'tblTempVendorCDR_20' ) end [2025-02-12 16:09:24] Production.INFO: ProcessCDR(1,14460201,1,1,2) [2025-02-12 16:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460201', 'tblTempUsageDetail_20' ) start [2025-02-12 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460201', 'tblTempUsageDetail_20' ) end [2025-02-12 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:09:28] Production.INFO: ==23550== Releasing lock... [2025-02-12 16:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:09:28] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:10:06 [end_date_ymd] => 2025-02-12 16:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 13:10:06' and `end` < '2025-02-12 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-12 16:10:21] Production.INFO: count ==5804 [2025-02-12 16:10:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:10:06 - End Time 2025-02-12 16:10:06 [2025-02-12 16:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460207', 'tblTempUsageDetail_20' ) start [2025-02-12 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460207', 'tblTempUsageDetail_20' ) end [2025-02-12 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460207', 'tblTempVendorCDR_20' ) start [2025-02-12 16:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460207', 'tblTempVendorCDR_20' ) end [2025-02-12 16:10:24] Production.INFO: ProcessCDR(1,14460207,1,1,2) [2025-02-12 16:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460207', 'tblTempUsageDetail_20' ) start [2025-02-12 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460207', 'tblTempUsageDetail_20' ) end [2025-02-12 16:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:10:29] Production.INFO: ==23632== Releasing lock... [2025-02-12 16:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:10:29] Production.INFO: 71.5 MB #Memory Used# [2025-02-12 16:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:11:04 [end_date_ymd] => 2025-02-12 16:11:04 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:11:04' and `end` < '2025-02-12 16: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-12 16:11:21] Production.INFO: count ==5793 [2025-02-12 16:11:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:11:04 - End Time 2025-02-12 16:11:04 [2025-02-12 16:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460212', 'tblTempUsageDetail_20' ) start [2025-02-12 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460212', 'tblTempUsageDetail_20' ) end [2025-02-12 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460212', 'tblTempVendorCDR_20' ) start [2025-02-12 16:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460212', 'tblTempVendorCDR_20' ) end [2025-02-12 16:11:24] Production.INFO: ProcessCDR(1,14460212,1,1,2) [2025-02-12 16:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460212', 'tblTempUsageDetail_20' ) start [2025-02-12 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460212', 'tblTempUsageDetail_20' ) end [2025-02-12 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:11:28] Production.INFO: ==23715== Releasing lock... [2025-02-12 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:11:28] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:12:05 [end_date_ymd] => 2025-02-12 16:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:12:05' and `end` < '2025-02-12 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-12 16:12:19] Production.INFO: count ==5779 [2025-02-12 16:12:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:12:05 - End Time 2025-02-12 16:12:05 [2025-02-12 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460217', 'tblTempUsageDetail_20' ) start [2025-02-12 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460217', 'tblTempUsageDetail_20' ) end [2025-02-12 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460217', 'tblTempVendorCDR_20' ) start [2025-02-12 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460217', 'tblTempVendorCDR_20' ) end [2025-02-12 16:12:22] Production.INFO: ProcessCDR(1,14460217,1,1,2) [2025-02-12 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460217', 'tblTempUsageDetail_20' ) start [2025-02-12 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460217', 'tblTempUsageDetail_20' ) end [2025-02-12 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:12:27] Production.INFO: ==23796== Releasing lock... [2025-02-12 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:12:27] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:13:05 [end_date_ymd] => 2025-02-12 16:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:13:05' and `end` < '2025-02-12 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-12 16:13:31] Production.INFO: count ==5778 [2025-02-12 16:13:34] Production.ERROR: pbx CDR StartTime 2025-02-12 13:13:05 - End Time 2025-02-12 16:13:05 [2025-02-12 16:13:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460222', 'tblTempUsageDetail_20' ) start [2025-02-12 16:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460222', 'tblTempUsageDetail_20' ) end [2025-02-12 16:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460222', 'tblTempVendorCDR_20' ) start [2025-02-12 16:13:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460222', 'tblTempVendorCDR_20' ) end [2025-02-12 16:13:34] Production.INFO: ProcessCDR(1,14460222,1,1,2) [2025-02-12 16:13:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:13:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:13:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460222', 'tblTempUsageDetail_20' ) start [2025-02-12 16:13:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460222', 'tblTempUsageDetail_20' ) end [2025-02-12 16:13:39] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:13:39] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:13:39] Production.INFO: ==23880== Releasing lock... [2025-02-12 16:13:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:13:39] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:14:05 [end_date_ymd] => 2025-02-12 16:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:14:05' and `end` < '2025-02-12 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-12 16:14:24] Production.INFO: count ==5779 [2025-02-12 16:14:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:14:05 - End Time 2025-02-12 16:14:05 [2025-02-12 16:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460227', 'tblTempUsageDetail_20' ) start [2025-02-12 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460227', 'tblTempUsageDetail_20' ) end [2025-02-12 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460227', 'tblTempVendorCDR_20' ) start [2025-02-12 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460227', 'tblTempVendorCDR_20' ) end [2025-02-12 16:14:27] Production.INFO: ProcessCDR(1,14460227,1,1,2) [2025-02-12 16:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460227', 'tblTempUsageDetail_20' ) start [2025-02-12 16:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460227', 'tblTempUsageDetail_20' ) end [2025-02-12 16:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:14:32] Production.INFO: ==23962== Releasing lock... [2025-02-12 16:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:14:32] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:15:05 [end_date_ymd] => 2025-02-12 16:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:15:05' and `end` < '2025-02-12 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-12 16:15:25] Production.INFO: count ==5778 [2025-02-12 16:15:28] Production.ERROR: pbx CDR StartTime 2025-02-12 13:15:05 - End Time 2025-02-12 16:15:05 [2025-02-12 16:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460232', 'tblTempUsageDetail_20' ) start [2025-02-12 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460232', 'tblTempUsageDetail_20' ) end [2025-02-12 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460232', 'tblTempVendorCDR_20' ) start [2025-02-12 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460232', 'tblTempVendorCDR_20' ) end [2025-02-12 16:15:28] Production.INFO: ProcessCDR(1,14460232,1,1,2) [2025-02-12 16:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460232', 'tblTempUsageDetail_20' ) start [2025-02-12 16:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460232', 'tblTempUsageDetail_20' ) end [2025-02-12 16:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:15:36] Production.INFO: ==24042== Releasing lock... [2025-02-12 16:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:15:36] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:16:05 [end_date_ymd] => 2025-02-12 16:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:16:05' and `end` < '2025-02-12 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-12 16:16:22] Production.INFO: count ==5777 [2025-02-12 16:16:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:16:05 - End Time 2025-02-12 16:16:05 [2025-02-12 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460237', 'tblTempUsageDetail_20' ) start [2025-02-12 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460237', 'tblTempUsageDetail_20' ) end [2025-02-12 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460237', 'tblTempVendorCDR_20' ) start [2025-02-12 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460237', 'tblTempVendorCDR_20' ) end [2025-02-12 16:16:25] Production.INFO: ProcessCDR(1,14460237,1,1,2) [2025-02-12 16:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460237', 'tblTempUsageDetail_20' ) start [2025-02-12 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460237', 'tblTempUsageDetail_20' ) end [2025-02-12 16:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:16:30] Production.INFO: ==24133== Releasing lock... [2025-02-12 16:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:16:30] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:17:05 [end_date_ymd] => 2025-02-12 16:17:05 [RateCDR] => 1 ) [2025-02-12 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:17:05' and `end` < '2025-02-12 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:17:20] Production.INFO: count ==5780 [2025-02-12 16:17:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:17:05 - End Time 2025-02-12 16:17:05 [2025-02-12 16:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460242', 'tblTempUsageDetail_20' ) start [2025-02-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460242', 'tblTempUsageDetail_20' ) end [2025-02-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460242', 'tblTempVendorCDR_20' ) start [2025-02-12 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460242', 'tblTempVendorCDR_20' ) end [2025-02-12 16:17:22] Production.INFO: ProcessCDR(1,14460242,1,1,2) [2025-02-12 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460242', 'tblTempUsageDetail_20' ) start [2025-02-12 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460242', 'tblTempUsageDetail_20' ) end [2025-02-12 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:17:28] Production.INFO: ==24214== Releasing lock... [2025-02-12 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:17:28] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:18:05 [end_date_ymd] => 2025-02-12 16:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:18:05' and `end` < '2025-02-12 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-12 16:18:21] Production.INFO: count ==5762 [2025-02-12 16:18:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:18:05 - End Time 2025-02-12 16:18:05 [2025-02-12 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460247', 'tblTempUsageDetail_20' ) start [2025-02-12 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460247', 'tblTempUsageDetail_20' ) end [2025-02-12 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460247', 'tblTempVendorCDR_20' ) start [2025-02-12 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460247', 'tblTempVendorCDR_20' ) end [2025-02-12 16:18:24] Production.INFO: ProcessCDR(1,14460247,1,1,2) [2025-02-12 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460247', 'tblTempUsageDetail_20' ) start [2025-02-12 16:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460247', 'tblTempUsageDetail_20' ) end [2025-02-12 16:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:18:29] Production.INFO: ==24307== Releasing lock... [2025-02-12 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:18:29] Production.INFO: 71.25 MB #Memory Used# [2025-02-12 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:19:05 [end_date_ymd] => 2025-02-12 16:19:05 [RateCDR] => 1 ) [2025-02-12 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:19:05' and `end` < '2025-02-12 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:19:27] Production.INFO: count ==5759 [2025-02-12 16:19:30] Production.ERROR: pbx CDR StartTime 2025-02-12 13:19:05 - End Time 2025-02-12 16:19:05 [2025-02-12 16:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460252', 'tblTempUsageDetail_20' ) start [2025-02-12 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460252', 'tblTempUsageDetail_20' ) end [2025-02-12 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460252', 'tblTempVendorCDR_20' ) start [2025-02-12 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460252', 'tblTempVendorCDR_20' ) end [2025-02-12 16:19:30] Production.INFO: ProcessCDR(1,14460252,1,1,2) [2025-02-12 16:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460252', 'tblTempUsageDetail_20' ) start [2025-02-12 16:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460252', 'tblTempUsageDetail_20' ) end [2025-02-12 16:19:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:19:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:19:35] Production.INFO: ==24389== Releasing lock... [2025-02-12 16:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:19:35] Production.INFO: 71 MB #Memory Used# [2025-02-12 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:20:05 [end_date_ymd] => 2025-02-12 16:20:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:20:05' and `end` < '2025-02-12 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-12 16:20:36] Production.INFO: count ==5716 [2025-02-12 16:20:39] Production.ERROR: pbx CDR StartTime 2025-02-12 13:20:05 - End Time 2025-02-12 16:20:05 [2025-02-12 16:20:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460257', 'tblTempUsageDetail_20' ) start [2025-02-12 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460257', 'tblTempUsageDetail_20' ) end [2025-02-12 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460257', 'tblTempVendorCDR_20' ) start [2025-02-12 16:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460257', 'tblTempVendorCDR_20' ) end [2025-02-12 16:20:39] Production.INFO: ProcessCDR(1,14460257,1,1,2) [2025-02-12 16:20:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:20:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:20:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:20:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:20:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460257', 'tblTempUsageDetail_20' ) start [2025-02-12 16:20:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460257', 'tblTempUsageDetail_20' ) end [2025-02-12 16:20:44] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:20:44] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:20:44] Production.INFO: ==24474== Releasing lock... [2025-02-12 16:20:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:20:44] Production.INFO: 70.75 MB #Memory Used# [2025-02-12 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:21:05 [end_date_ymd] => 2025-02-12 16:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:21:05' and `end` < '2025-02-12 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-12 16:21:26] Production.INFO: count ==5694 [2025-02-12 16:21:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:21:05 - End Time 2025-02-12 16:21:05 [2025-02-12 16:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460263', 'tblTempUsageDetail_20' ) start [2025-02-12 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460263', 'tblTempUsageDetail_20' ) end [2025-02-12 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460263', 'tblTempVendorCDR_20' ) start [2025-02-12 16:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460263', 'tblTempVendorCDR_20' ) end [2025-02-12 16:21:29] Production.INFO: ProcessCDR(1,14460263,1,1,2) [2025-02-12 16:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460263', 'tblTempUsageDetail_20' ) start [2025-02-12 16:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460263', 'tblTempUsageDetail_20' ) end [2025-02-12 16:21:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:21:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:21:34] Production.INFO: ==24601== Releasing lock... [2025-02-12 16:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:21:34] Production.INFO: 70.5 MB #Memory Used# [2025-02-12 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:22:05 [end_date_ymd] => 2025-02-12 16:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:22:05' and `end` < '2025-02-12 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-12 16:22:23] Production.INFO: count ==5673 [2025-02-12 16:22:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:22:05 - End Time 2025-02-12 16:22:05 [2025-02-12 16:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460268', 'tblTempUsageDetail_20' ) start [2025-02-12 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460268', 'tblTempUsageDetail_20' ) end [2025-02-12 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460268', 'tblTempVendorCDR_20' ) start [2025-02-12 16:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460268', 'tblTempVendorCDR_20' ) end [2025-02-12 16:22:25] Production.INFO: ProcessCDR(1,14460268,1,1,2) [2025-02-12 16:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460268', 'tblTempUsageDetail_20' ) start [2025-02-12 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460268', 'tblTempUsageDetail_20' ) end [2025-02-12 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:22:30] Production.INFO: ==24684== Releasing lock... [2025-02-12 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:22:30] Production.INFO: 70.5 MB #Memory Used# [2025-02-12 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:23:05 [end_date_ymd] => 2025-02-12 16:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:23:05' and `end` < '2025-02-12 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-12 16:23:19] Production.INFO: count ==5637 [2025-02-12 16:23:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:23:05 - End Time 2025-02-12 16:23:05 [2025-02-12 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460273', 'tblTempUsageDetail_20' ) start [2025-02-12 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460273', 'tblTempUsageDetail_20' ) end [2025-02-12 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460273', 'tblTempVendorCDR_20' ) start [2025-02-12 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460273', 'tblTempVendorCDR_20' ) end [2025-02-12 16:23:22] Production.INFO: ProcessCDR(1,14460273,1,1,2) [2025-02-12 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460273', 'tblTempUsageDetail_20' ) start [2025-02-12 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460273', 'tblTempUsageDetail_20' ) end [2025-02-12 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:23:27] Production.INFO: ==24773== Releasing lock... [2025-02-12 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:23:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-12 16:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:24:04 [end_date_ymd] => 2025-02-12 16:24:04 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:24:04' and `end` < '2025-02-12 16: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-12 16:24:25] Production.INFO: count ==5602 [2025-02-12 16:24:28] Production.ERROR: pbx CDR StartTime 2025-02-12 13:24:04 - End Time 2025-02-12 16:24:04 [2025-02-12 16:24:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460278', 'tblTempUsageDetail_20' ) start [2025-02-12 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460278', 'tblTempUsageDetail_20' ) end [2025-02-12 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460278', 'tblTempVendorCDR_20' ) start [2025-02-12 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460278', 'tblTempVendorCDR_20' ) end [2025-02-12 16:24:28] Production.INFO: ProcessCDR(1,14460278,1,1,2) [2025-02-12 16:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460278', 'tblTempUsageDetail_20' ) start [2025-02-12 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460278', 'tblTempUsageDetail_20' ) end [2025-02-12 16:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:24:33] Production.INFO: ==24859== Releasing lock... [2025-02-12 16:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:24:33] Production.INFO: 70 MB #Memory Used# [2025-02-12 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:25:05 [end_date_ymd] => 2025-02-12 16:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:25:05' and `end` < '2025-02-12 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-12 16:25:24] Production.INFO: count ==5589 [2025-02-12 16:25:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:25:05 - End Time 2025-02-12 16:25:05 [2025-02-12 16:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460283', 'tblTempUsageDetail_20' ) start [2025-02-12 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460283', 'tblTempUsageDetail_20' ) end [2025-02-12 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460283', 'tblTempVendorCDR_20' ) start [2025-02-12 16:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460283', 'tblTempVendorCDR_20' ) end [2025-02-12 16:25:27] Production.INFO: ProcessCDR(1,14460283,1,1,2) [2025-02-12 16:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460283', 'tblTempUsageDetail_20' ) start [2025-02-12 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460283', 'tblTempUsageDetail_20' ) end [2025-02-12 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:25:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:25:30] Production.INFO: ==24947== Releasing lock... [2025-02-12 16:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:25:30] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:26:06 [end_date_ymd] => 2025-02-12 16:26:06 [RateCDR] => 1 ) [2025-02-12 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:26:06' and `end` < '2025-02-12 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:26:20] Production.INFO: count ==5579 [2025-02-12 16:26:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:26:06 - End Time 2025-02-12 16:26:06 [2025-02-12 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460288', 'tblTempUsageDetail_20' ) start [2025-02-12 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460288', 'tblTempUsageDetail_20' ) end [2025-02-12 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460288', 'tblTempVendorCDR_20' ) start [2025-02-12 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460288', 'tblTempVendorCDR_20' ) end [2025-02-12 16:26:22] Production.INFO: ProcessCDR(1,14460288,1,1,2) [2025-02-12 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460288', 'tblTempUsageDetail_20' ) start [2025-02-12 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460288', 'tblTempUsageDetail_20' ) end [2025-02-12 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:26:27] Production.INFO: ==25037== Releasing lock... [2025-02-12 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:26:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:27:05 [end_date_ymd] => 2025-02-12 16:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:27:05' and `end` < '2025-02-12 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-12 16:27:22] Production.INFO: count ==5572 [2025-02-12 16:27:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:27:05 - End Time 2025-02-12 16:27:05 [2025-02-12 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460293', 'tblTempUsageDetail_20' ) start [2025-02-12 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460293', 'tblTempUsageDetail_20' ) end [2025-02-12 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460293', 'tblTempVendorCDR_20' ) start [2025-02-12 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460293', 'tblTempVendorCDR_20' ) end [2025-02-12 16:27:24] Production.INFO: ProcessCDR(1,14460293,1,1,2) [2025-02-12 16:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460293', 'tblTempUsageDetail_20' ) start [2025-02-12 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460293', 'tblTempUsageDetail_20' ) end [2025-02-12 16:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:27:29] Production.INFO: ==25128== Releasing lock... [2025-02-12 16:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:27:29] Production.INFO: 69.75 MB #Memory Used# [2025-02-12 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:28:06 [end_date_ymd] => 2025-02-12 16:28:06 [RateCDR] => 1 ) [2025-02-12 16:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:28:06' and `end` < '2025-02-12 16:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:28:27] Production.INFO: count ==5551 [2025-02-12 16:28:30] Production.ERROR: pbx CDR StartTime 2025-02-12 13:28:06 - End Time 2025-02-12 16:28:06 [2025-02-12 16:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460298', 'tblTempUsageDetail_20' ) start [2025-02-12 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460298', 'tblTempUsageDetail_20' ) end [2025-02-12 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460298', 'tblTempVendorCDR_20' ) start [2025-02-12 16:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460298', 'tblTempVendorCDR_20' ) end [2025-02-12 16:28:30] Production.INFO: ProcessCDR(1,14460298,1,1,2) [2025-02-12 16:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460298', 'tblTempUsageDetail_20' ) start [2025-02-12 16:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460298', 'tblTempUsageDetail_20' ) end [2025-02-12 16:28:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:28:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:28:35] Production.INFO: ==25217== Releasing lock... [2025-02-12 16:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:28:35] Production.INFO: 69.5 MB #Memory Used# [2025-02-12 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:29:05 [end_date_ymd] => 2025-02-12 16:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:29:05' and `end` < '2025-02-12 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-12 16:29:26] Production.INFO: count ==5527 [2025-02-12 16:29:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:29:05 - End Time 2025-02-12 16:29:05 [2025-02-12 16:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460303', 'tblTempUsageDetail_20' ) start [2025-02-12 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460303', 'tblTempUsageDetail_20' ) end [2025-02-12 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460303', 'tblTempVendorCDR_20' ) start [2025-02-12 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460303', 'tblTempVendorCDR_20' ) end [2025-02-12 16:29:29] Production.INFO: ProcessCDR(1,14460303,1,1,2) [2025-02-12 16:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460303', 'tblTempUsageDetail_20' ) start [2025-02-12 16:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460303', 'tblTempUsageDetail_20' ) end [2025-02-12 16:29:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:29:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:29:35] Production.INFO: ==25299== Releasing lock... [2025-02-12 16:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:29:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-12 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:30:06 [end_date_ymd] => 2025-02-12 16:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 13:30:06' and `end` < '2025-02-12 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-12 16:30:28] Production.INFO: count ==5478 [2025-02-12 16:30:30] Production.ERROR: pbx CDR StartTime 2025-02-12 13:30:06 - End Time 2025-02-12 16:30:06 [2025-02-12 16:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460308', 'tblTempUsageDetail_20' ) start [2025-02-12 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460308', 'tblTempUsageDetail_20' ) end [2025-02-12 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460308', 'tblTempVendorCDR_20' ) start [2025-02-12 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460308', 'tblTempVendorCDR_20' ) end [2025-02-12 16:30:30] Production.INFO: ProcessCDR(1,14460308,1,1,2) [2025-02-12 16:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460308', 'tblTempUsageDetail_20' ) start [2025-02-12 16:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460308', 'tblTempUsageDetail_20' ) end [2025-02-12 16:30:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:30:36] Production.INFO: ==25396== Releasing lock... [2025-02-12 16:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:30:36] Production.INFO: 69 MB #Memory Used# [2025-02-12 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:31:05 [end_date_ymd] => 2025-02-12 16:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:31:05' and `end` < '2025-02-12 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-12 16:31:22] Production.INFO: count ==5434 [2025-02-12 16:31:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:31:05 - End Time 2025-02-12 16:31:05 [2025-02-12 16:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460314', 'tblTempUsageDetail_20' ) start [2025-02-12 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460314', 'tblTempUsageDetail_20' ) end [2025-02-12 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460314', 'tblTempVendorCDR_20' ) start [2025-02-12 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460314', 'tblTempVendorCDR_20' ) end [2025-02-12 16:31:25] Production.INFO: ProcessCDR(1,14460314,1,1,2) [2025-02-12 16:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460314', 'tblTempUsageDetail_20' ) start [2025-02-12 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460314', 'tblTempUsageDetail_20' ) end [2025-02-12 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:31:29] Production.INFO: ==25485== Releasing lock... [2025-02-12 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:31:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-12 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:32:05 [end_date_ymd] => 2025-02-12 16:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:32:05' and `end` < '2025-02-12 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-12 16:32:19] Production.INFO: count ==5400 [2025-02-12 16:32:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:32:05 - End Time 2025-02-12 16:32:05 [2025-02-12 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460319', 'tblTempUsageDetail_20' ) start [2025-02-12 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460319', 'tblTempUsageDetail_20' ) end [2025-02-12 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460319', 'tblTempVendorCDR_20' ) start [2025-02-12 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460319', 'tblTempVendorCDR_20' ) end [2025-02-12 16:32:22] Production.INFO: ProcessCDR(1,14460319,1,1,2) [2025-02-12 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460319', 'tblTempUsageDetail_20' ) start [2025-02-12 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460319', 'tblTempUsageDetail_20' ) end [2025-02-12 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:32:27] Production.INFO: ==25577== Releasing lock... [2025-02-12 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:32:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-12 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:33:05 [end_date_ymd] => 2025-02-12 16:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:33:05' and `end` < '2025-02-12 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-12 16:33:22] Production.INFO: count ==5376 [2025-02-12 16:33:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:33:05 - End Time 2025-02-12 16:33:05 [2025-02-12 16:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460324', 'tblTempUsageDetail_20' ) start [2025-02-12 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460324', 'tblTempUsageDetail_20' ) end [2025-02-12 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460324', 'tblTempVendorCDR_20' ) start [2025-02-12 16:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460324', 'tblTempVendorCDR_20' ) end [2025-02-12 16:33:25] Production.INFO: ProcessCDR(1,14460324,1,1,2) [2025-02-12 16:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460324', 'tblTempUsageDetail_20' ) start [2025-02-12 16:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460324', 'tblTempUsageDetail_20' ) end [2025-02-12 16:33:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:33:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:33:30] Production.INFO: ==25656== Releasing lock... [2025-02-12 16:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:33:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-12 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:34:06 [end_date_ymd] => 2025-02-12 16:34:06 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:34:06' and `end` < '2025-02-12 16: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-12 16:34:24] Production.INFO: count ==5358 [2025-02-12 16:34:26] Production.ERROR: pbx CDR StartTime 2025-02-12 13:34:06 - End Time 2025-02-12 16:34:06 [2025-02-12 16:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460329', 'tblTempUsageDetail_20' ) start [2025-02-12 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460329', 'tblTempUsageDetail_20' ) end [2025-02-12 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460329', 'tblTempVendorCDR_20' ) start [2025-02-12 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460329', 'tblTempVendorCDR_20' ) end [2025-02-12 16:34:27] Production.INFO: ProcessCDR(1,14460329,1,1,2) [2025-02-12 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460329', 'tblTempUsageDetail_20' ) start [2025-02-12 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460329', 'tblTempUsageDetail_20' ) end [2025-02-12 16:34:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:34:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:34:32] Production.INFO: ==25743== Releasing lock... [2025-02-12 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:34:32] Production.INFO: 68 MB #Memory Used# [2025-02-12 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:35:05 [end_date_ymd] => 2025-02-12 16:35:05 [RateCDR] => 1 ) [2025-02-12 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:35:05' and `end` < '2025-02-12 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:35:26] Production.INFO: count ==5328 [2025-02-12 16:35:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:35:05 - End Time 2025-02-12 16:35:05 [2025-02-12 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460334', 'tblTempUsageDetail_20' ) start [2025-02-12 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460334', 'tblTempUsageDetail_20' ) end [2025-02-12 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460334', 'tblTempVendorCDR_20' ) start [2025-02-12 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460334', 'tblTempVendorCDR_20' ) end [2025-02-12 16:35:29] Production.INFO: ProcessCDR(1,14460334,1,1,2) [2025-02-12 16:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460334', 'tblTempUsageDetail_20' ) start [2025-02-12 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460334', 'tblTempUsageDetail_20' ) end [2025-02-12 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:35:35] Production.INFO: ==25833== Releasing lock... [2025-02-12 16:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:35:35] Production.INFO: 68 MB #Memory Used# [2025-02-12 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:36:06 [end_date_ymd] => 2025-02-12 16:36:06 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:36:06' and `end` < '2025-02-12 16: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-12 16:36:22] Production.INFO: count ==5335 [2025-02-12 16:36:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:36:06 - End Time 2025-02-12 16:36:06 [2025-02-12 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460339', 'tblTempUsageDetail_20' ) start [2025-02-12 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460339', 'tblTempUsageDetail_20' ) end [2025-02-12 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460339', 'tblTempVendorCDR_20' ) start [2025-02-12 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460339', 'tblTempVendorCDR_20' ) end [2025-02-12 16:36:24] Production.INFO: ProcessCDR(1,14460339,1,1,2) [2025-02-12 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460339', 'tblTempUsageDetail_20' ) start [2025-02-12 16:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460339', 'tblTempUsageDetail_20' ) end [2025-02-12 16:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:36:29] Production.INFO: ==25959== Releasing lock... [2025-02-12 16:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:36:29] Production.INFO: 68 MB #Memory Used# [2025-02-12 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:37:05 [end_date_ymd] => 2025-02-12 16:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:37:05' and `end` < '2025-02-12 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-12 16:37:21] Production.INFO: count ==5322 [2025-02-12 16:37:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:37:05 - End Time 2025-02-12 16:37:05 [2025-02-12 16:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460344', 'tblTempUsageDetail_20' ) start [2025-02-12 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460344', 'tblTempUsageDetail_20' ) end [2025-02-12 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460344', 'tblTempVendorCDR_20' ) start [2025-02-12 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460344', 'tblTempVendorCDR_20' ) end [2025-02-12 16:37:23] Production.INFO: ProcessCDR(1,14460344,1,1,2) [2025-02-12 16:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460344', 'tblTempUsageDetail_20' ) start [2025-02-12 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460344', 'tblTempUsageDetail_20' ) end [2025-02-12 16:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:37:29] Production.INFO: ==26046== Releasing lock... [2025-02-12 16:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:37:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:38:06 [end_date_ymd] => 2025-02-12 16:38:06 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:38:06' and `end` < '2025-02-12 16: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-12 16:38:25] Production.INFO: count ==5300 [2025-02-12 16:38:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:38:06 - End Time 2025-02-12 16:38:06 [2025-02-12 16:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460349', 'tblTempUsageDetail_20' ) start [2025-02-12 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460349', 'tblTempUsageDetail_20' ) end [2025-02-12 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460349', 'tblTempVendorCDR_20' ) start [2025-02-12 16:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460349', 'tblTempVendorCDR_20' ) end [2025-02-12 16:38:28] Production.INFO: ProcessCDR(1,14460349,1,1,2) [2025-02-12 16:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460349', 'tblTempUsageDetail_20' ) start [2025-02-12 16:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460349', 'tblTempUsageDetail_20' ) end [2025-02-12 16:38:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:38:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:38:33] Production.INFO: ==26136== Releasing lock... [2025-02-12 16:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:38:33] Production.INFO: 67.75 MB #Memory Used# [2025-02-12 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:39:05 [end_date_ymd] => 2025-02-12 16:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:39:05' and `end` < '2025-02-12 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-12 16:39:23] Production.INFO: count ==5289 [2025-02-12 16:39:26] Production.ERROR: pbx CDR StartTime 2025-02-12 13:39:05 - End Time 2025-02-12 16:39:05 [2025-02-12 16:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460354', 'tblTempUsageDetail_20' ) start [2025-02-12 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460354', 'tblTempUsageDetail_20' ) end [2025-02-12 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460354', 'tblTempVendorCDR_20' ) start [2025-02-12 16:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460354', 'tblTempVendorCDR_20' ) end [2025-02-12 16:39:26] Production.INFO: ProcessCDR(1,14460354,1,1,2) [2025-02-12 16:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460354', 'tblTempUsageDetail_20' ) start [2025-02-12 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460354', 'tblTempUsageDetail_20' ) end [2025-02-12 16:39:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:39:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:39:31] Production.INFO: ==26223== Releasing lock... [2025-02-12 16:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:39:31] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:40:07 [end_date_ymd] => 2025-02-12 16:40:07 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:40:07' and `end` < '2025-02-12 16: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-12 16:40:26] Production.INFO: count ==5288 [2025-02-12 16:40:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:40:07 - End Time 2025-02-12 16:40:07 [2025-02-12 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460360', 'tblTempUsageDetail_20' ) start [2025-02-12 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460360', 'tblTempUsageDetail_20' ) end [2025-02-12 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460360', 'tblTempVendorCDR_20' ) start [2025-02-12 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460360', 'tblTempVendorCDR_20' ) end [2025-02-12 16:40:29] Production.INFO: ProcessCDR(1,14460360,1,1,2) [2025-02-12 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460360', 'tblTempUsageDetail_20' ) start [2025-02-12 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460360', 'tblTempUsageDetail_20' ) end [2025-02-12 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:40:34] Production.INFO: ==26309== Releasing lock... [2025-02-12 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:40:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:41:05 [end_date_ymd] => 2025-02-12 16:41:05 [RateCDR] => 1 ) [2025-02-12 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:41:05' and `end` < '2025-02-12 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:41:22] Production.INFO: count ==5289 [2025-02-12 16:41:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:41:05 - End Time 2025-02-12 16:41:05 [2025-02-12 16:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460365', 'tblTempUsageDetail_20' ) start [2025-02-12 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460365', 'tblTempUsageDetail_20' ) end [2025-02-12 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460365', 'tblTempVendorCDR_20' ) start [2025-02-12 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460365', 'tblTempVendorCDR_20' ) end [2025-02-12 16:41:25] Production.INFO: ProcessCDR(1,14460365,1,1,2) [2025-02-12 16:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460365', 'tblTempUsageDetail_20' ) start [2025-02-12 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460365', 'tblTempUsageDetail_20' ) end [2025-02-12 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:41:28] Production.INFO: ==26399== Releasing lock... [2025-02-12 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:41:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-12 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:42:06 [end_date_ymd] => 2025-02-12 16:42:06 [RateCDR] => 1 ) [2025-02-12 16:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:42:06' and `end` < '2025-02-12 16:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:42:20] Production.INFO: count ==5261 [2025-02-12 16:42:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:42:06 - End Time 2025-02-12 16:42:06 [2025-02-12 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460370', 'tblTempUsageDetail_20' ) start [2025-02-12 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460370', 'tblTempUsageDetail_20' ) end [2025-02-12 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460370', 'tblTempVendorCDR_20' ) start [2025-02-12 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460370', 'tblTempVendorCDR_20' ) end [2025-02-12 16:42:22] Production.INFO: ProcessCDR(1,14460370,1,1,2) [2025-02-12 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460370', 'tblTempUsageDetail_20' ) start [2025-02-12 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460370', 'tblTempUsageDetail_20' ) end [2025-02-12 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:42:27] Production.INFO: ==26486== Releasing lock... [2025-02-12 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:42:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-12 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:43:05 [end_date_ymd] => 2025-02-12 16:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:43:05' and `end` < '2025-02-12 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-12 16:43:25] Production.INFO: count ==5250 [2025-02-12 16:43:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:43:05 - End Time 2025-02-12 16:43:05 [2025-02-12 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460375', 'tblTempUsageDetail_20' ) start [2025-02-12 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460375', 'tblTempUsageDetail_20' ) end [2025-02-12 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460375', 'tblTempVendorCDR_20' ) start [2025-02-12 16:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460375', 'tblTempVendorCDR_20' ) end [2025-02-12 16:43:28] Production.INFO: ProcessCDR(1,14460375,1,1,2) [2025-02-12 16:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460375', 'tblTempUsageDetail_20' ) start [2025-02-12 16:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460375', 'tblTempUsageDetail_20' ) end [2025-02-12 16:43:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:43:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:43:33] Production.INFO: ==26578== Releasing lock... [2025-02-12 16:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:43:33] Production.INFO: 67.25 MB #Memory Used# [2025-02-12 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:44:06 [end_date_ymd] => 2025-02-12 16:44:06 [RateCDR] => 1 ) [2025-02-12 16: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-12 13:44:06' and `end` < '2025-02-12 16: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-12 16:44:23] Production.INFO: count ==5239 [2025-02-12 16:44:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:44:06 - End Time 2025-02-12 16:44:06 [2025-02-12 16:44:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460380', 'tblTempUsageDetail_20' ) start [2025-02-12 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460380', 'tblTempUsageDetail_20' ) end [2025-02-12 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460380', 'tblTempVendorCDR_20' ) start [2025-02-12 16:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460380', 'tblTempVendorCDR_20' ) end [2025-02-12 16:44:26] Production.INFO: ProcessCDR(1,14460380,1,1,2) [2025-02-12 16:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460380', 'tblTempUsageDetail_20' ) start [2025-02-12 16:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460380', 'tblTempUsageDetail_20' ) end [2025-02-12 16:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:44:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:44:31] Production.INFO: ==26665== Releasing lock... [2025-02-12 16:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:44:31] Production.INFO: 67.25 MB #Memory Used# [2025-02-12 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:45:06 [end_date_ymd] => 2025-02-12 16:45:06 [RateCDR] => 1 ) [2025-02-12 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-12 13:45:06' and `end` < '2025-02-12 16: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-12 16:45:26] Production.INFO: count ==5224 [2025-02-12 16:45:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:45:06 - End Time 2025-02-12 16:45:06 [2025-02-12 16:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460385', 'tblTempUsageDetail_20' ) start [2025-02-12 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460385', 'tblTempUsageDetail_20' ) end [2025-02-12 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460385', 'tblTempVendorCDR_20' ) start [2025-02-12 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460385', 'tblTempVendorCDR_20' ) end [2025-02-12 16:45:29] Production.INFO: ProcessCDR(1,14460385,1,1,2) [2025-02-12 16:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460385', 'tblTempUsageDetail_20' ) start [2025-02-12 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460385', 'tblTempUsageDetail_20' ) end [2025-02-12 16:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:45:34] Production.INFO: ==26760== Releasing lock... [2025-02-12 16:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:45:34] Production.INFO: 67 MB #Memory Used# [2025-02-12 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:46:05 [end_date_ymd] => 2025-02-12 16:46:05 [RateCDR] => 1 ) [2025-02-12 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:46:05' and `end` < '2025-02-12 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:46:21] Production.INFO: count ==5217 [2025-02-12 16:46:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:46:05 - End Time 2025-02-12 16:46:05 [2025-02-12 16:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460390', 'tblTempUsageDetail_20' ) start [2025-02-12 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460390', 'tblTempUsageDetail_20' ) end [2025-02-12 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460390', 'tblTempVendorCDR_20' ) start [2025-02-12 16:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460390', 'tblTempVendorCDR_20' ) end [2025-02-12 16:46:24] Production.INFO: ProcessCDR(1,14460390,1,1,2) [2025-02-12 16:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460390', 'tblTempUsageDetail_20' ) start [2025-02-12 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460390', 'tblTempUsageDetail_20' ) end [2025-02-12 16:46:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:46:30] Production.INFO: ==26849== Releasing lock... [2025-02-12 16:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:46:30] Production.INFO: 67 MB #Memory Used# [2025-02-12 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:47:05 [end_date_ymd] => 2025-02-12 16:47:05 [RateCDR] => 1 ) [2025-02-12 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:47:05' and `end` < '2025-02-12 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:47:25] Production.INFO: count ==5207 [2025-02-12 16:47:28] Production.ERROR: pbx CDR StartTime 2025-02-12 13:47:05 - End Time 2025-02-12 16:47:05 [2025-02-12 16:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460395', 'tblTempUsageDetail_20' ) start [2025-02-12 16:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460395', 'tblTempUsageDetail_20' ) end [2025-02-12 16:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460395', 'tblTempVendorCDR_20' ) start [2025-02-12 16:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460395', 'tblTempVendorCDR_20' ) end [2025-02-12 16:47:28] Production.INFO: ProcessCDR(1,14460395,1,1,2) [2025-02-12 16:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460395', 'tblTempUsageDetail_20' ) start [2025-02-12 16:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460395', 'tblTempUsageDetail_20' ) end [2025-02-12 16:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:47:33] Production.INFO: ==26947== Releasing lock... [2025-02-12 16:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:47:33] Production.INFO: 67 MB #Memory Used# [2025-02-12 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:48:06 [end_date_ymd] => 2025-02-12 16:48:06 [RateCDR] => 1 ) [2025-02-12 16:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:48:06' and `end` < '2025-02-12 16:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:48:27] Production.INFO: count ==5194 [2025-02-12 16:48:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:48:06 - End Time 2025-02-12 16:48:06 [2025-02-12 16:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460400', 'tblTempUsageDetail_20' ) start [2025-02-12 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460400', 'tblTempUsageDetail_20' ) end [2025-02-12 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460400', 'tblTempVendorCDR_20' ) start [2025-02-12 16:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460400', 'tblTempVendorCDR_20' ) end [2025-02-12 16:48:29] Production.INFO: ProcessCDR(1,14460400,1,1,2) [2025-02-12 16:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:48:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:48:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:48:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460400', 'tblTempUsageDetail_20' ) start [2025-02-12 16:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460400', 'tblTempUsageDetail_20' ) end [2025-02-12 16:48:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:48:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:48:34] Production.INFO: ==27041== Releasing lock... [2025-02-12 16:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:48:34] Production.INFO: 66.75 MB #Memory Used# [2025-02-12 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:49:05 [end_date_ymd] => 2025-02-12 16:49:05 [RateCDR] => 1 ) [2025-02-12 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:49:05' and `end` < '2025-02-12 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:49:23] Production.INFO: count ==5170 [2025-02-12 16:49:25] Production.ERROR: pbx CDR StartTime 2025-02-12 13:49:05 - End Time 2025-02-12 16:49:05 [2025-02-12 16:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460405', 'tblTempUsageDetail_20' ) start [2025-02-12 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460405', 'tblTempUsageDetail_20' ) end [2025-02-12 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460405', 'tblTempVendorCDR_20' ) start [2025-02-12 16:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460405', 'tblTempVendorCDR_20' ) end [2025-02-12 16:49:25] Production.INFO: ProcessCDR(1,14460405,1,1,2) [2025-02-12 16:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460405', 'tblTempUsageDetail_20' ) start [2025-02-12 16:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460405', 'tblTempUsageDetail_20' ) end [2025-02-12 16:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:49:30] Production.INFO: ==27134== Releasing lock... [2025-02-12 16:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:49:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-12 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:50:06 [end_date_ymd] => 2025-02-12 16:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 13:50:06' and `end` < '2025-02-12 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-12 16:50:27] Production.INFO: count ==5152 [2025-02-12 16:50:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:50:06 - End Time 2025-02-12 16:50:06 [2025-02-12 16:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460411', 'tblTempUsageDetail_20' ) start [2025-02-12 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460411', 'tblTempUsageDetail_20' ) end [2025-02-12 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460411', 'tblTempVendorCDR_20' ) start [2025-02-12 16:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460411', 'tblTempVendorCDR_20' ) end [2025-02-12 16:50:30] Production.INFO: ProcessCDR(1,14460411,1,1,2) [2025-02-12 16:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460411', 'tblTempUsageDetail_20' ) start [2025-02-12 16:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460411', 'tblTempUsageDetail_20' ) end [2025-02-12 16:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:50:35] Production.INFO: ==27235== Releasing lock... [2025-02-12 16:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:50:35] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:51:05 [end_date_ymd] => 2025-02-12 16:51:05 [RateCDR] => 1 ) [2025-02-12 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:51:05' and `end` < '2025-02-12 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:51:26] Production.INFO: count ==5143 [2025-02-12 16:51:29] Production.ERROR: pbx CDR StartTime 2025-02-12 13:51:05 - End Time 2025-02-12 16:51:05 [2025-02-12 16:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460416', 'tblTempUsageDetail_20' ) start [2025-02-12 16:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460416', 'tblTempUsageDetail_20' ) end [2025-02-12 16:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460416', 'tblTempVendorCDR_20' ) start [2025-02-12 16:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460416', 'tblTempVendorCDR_20' ) end [2025-02-12 16:51:29] Production.INFO: ProcessCDR(1,14460416,1,1,2) [2025-02-12 16:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460416', 'tblTempUsageDetail_20' ) start [2025-02-12 16:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460416', 'tblTempUsageDetail_20' ) end [2025-02-12 16:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:51:33] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:51:33] Production.INFO: ==27369== Releasing lock... [2025-02-12 16:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:51:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:52:06 [end_date_ymd] => 2025-02-12 16:52:06 [RateCDR] => 1 ) [2025-02-12 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:52:06' and `end` < '2025-02-12 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:52:25] Production.INFO: count ==5135 [2025-02-12 16:52:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:52:06 - End Time 2025-02-12 16:52:06 [2025-02-12 16:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460421', 'tblTempUsageDetail_20' ) start [2025-02-12 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460421', 'tblTempUsageDetail_20' ) end [2025-02-12 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460421', 'tblTempVendorCDR_20' ) start [2025-02-12 16:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460421', 'tblTempVendorCDR_20' ) end [2025-02-12 16:52:27] Production.INFO: ProcessCDR(1,14460421,1,1,2) [2025-02-12 16:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:52:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:52:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460421', 'tblTempUsageDetail_20' ) start [2025-02-12 16:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460421', 'tblTempUsageDetail_20' ) end [2025-02-12 16:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:52:32] Production.INFO: ==27463== Releasing lock... [2025-02-12 16:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:52:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-12 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:53:05 [end_date_ymd] => 2025-02-12 16:53:05 [RateCDR] => 1 ) [2025-02-12 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 13:53:05' and `end` < '2025-02-12 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 16:53:22] Production.INFO: count ==5122 [2025-02-12 16:53:24] Production.ERROR: pbx CDR StartTime 2025-02-12 13:53:05 - End Time 2025-02-12 16:53:05 [2025-02-12 16:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460426', 'tblTempUsageDetail_20' ) start [2025-02-12 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460426', 'tblTempUsageDetail_20' ) end [2025-02-12 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460426', 'tblTempVendorCDR_20' ) start [2025-02-12 16:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460426', 'tblTempVendorCDR_20' ) end [2025-02-12 16:53:24] Production.INFO: ProcessCDR(1,14460426,1,1,2) [2025-02-12 16:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460426', 'tblTempUsageDetail_20' ) start [2025-02-12 16:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460426', 'tblTempUsageDetail_20' ) end [2025-02-12 16:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:53:29] Production.INFO: ==27566== Releasing lock... [2025-02-12 16:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:53:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:54:05 [end_date_ymd] => 2025-02-12 16:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:54:05' and `end` < '2025-02-12 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-12 16:54:21] Production.INFO: count ==5100 [2025-02-12 16:54:23] Production.ERROR: pbx CDR StartTime 2025-02-12 13:54:05 - End Time 2025-02-12 16:54:05 [2025-02-12 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460431', 'tblTempUsageDetail_20' ) start [2025-02-12 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460431', 'tblTempUsageDetail_20' ) end [2025-02-12 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460431', 'tblTempVendorCDR_20' ) start [2025-02-12 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460431', 'tblTempVendorCDR_20' ) end [2025-02-12 16:54:23] Production.INFO: ProcessCDR(1,14460431,1,1,2) [2025-02-12 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460431', 'tblTempUsageDetail_20' ) start [2025-02-12 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460431', 'tblTempUsageDetail_20' ) end [2025-02-12 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:54:27] Production.INFO: ==27658== Releasing lock... [2025-02-12 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:54:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:55:05 [end_date_ymd] => 2025-02-12 16:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:55:05' and `end` < '2025-02-12 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-12 16:55:25] Production.INFO: count ==5099 [2025-02-12 16:55:27] Production.ERROR: pbx CDR StartTime 2025-02-12 13:55:05 - End Time 2025-02-12 16:55:05 [2025-02-12 16:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460436', 'tblTempUsageDetail_20' ) start [2025-02-12 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460436', 'tblTempUsageDetail_20' ) end [2025-02-12 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460436', 'tblTempVendorCDR_20' ) start [2025-02-12 16:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460436', 'tblTempVendorCDR_20' ) end [2025-02-12 16:55:27] Production.INFO: ProcessCDR(1,14460436,1,1,2) [2025-02-12 16:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460436', 'tblTempUsageDetail_20' ) start [2025-02-12 16:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460436', 'tblTempUsageDetail_20' ) end [2025-02-12 16:55:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:55:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:55:32] Production.INFO: ==27749== Releasing lock... [2025-02-12 16:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:55:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:56:05 [end_date_ymd] => 2025-02-12 16:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:56:05' and `end` < '2025-02-12 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-12 16:56:20] Production.INFO: count ==5104 [2025-02-12 16:56:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:56:05 - End Time 2025-02-12 16:56:05 [2025-02-12 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460441', 'tblTempUsageDetail_20' ) start [2025-02-12 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460441', 'tblTempUsageDetail_20' ) end [2025-02-12 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460441', 'tblTempVendorCDR_20' ) start [2025-02-12 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460441', 'tblTempVendorCDR_20' ) end [2025-02-12 16:56:22] Production.INFO: ProcessCDR(1,14460441,1,1,2) [2025-02-12 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460441', 'tblTempUsageDetail_20' ) start [2025-02-12 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460441', 'tblTempUsageDetail_20' ) end [2025-02-12 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:56:27] Production.INFO: ==27840== Releasing lock... [2025-02-12 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:56:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:57:05 [end_date_ymd] => 2025-02-12 16:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:57:05' and `end` < '2025-02-12 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-12 16:57:19] Production.INFO: count ==5120 [2025-02-12 16:57:21] Production.ERROR: pbx CDR StartTime 2025-02-12 13:57:05 - End Time 2025-02-12 16:57:05 [2025-02-12 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460446', 'tblTempUsageDetail_20' ) start [2025-02-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460446', 'tblTempUsageDetail_20' ) end [2025-02-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460446', 'tblTempVendorCDR_20' ) start [2025-02-12 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460446', 'tblTempVendorCDR_20' ) end [2025-02-12 16:57:21] Production.INFO: ProcessCDR(1,14460446,1,1,2) [2025-02-12 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460446', 'tblTempUsageDetail_20' ) start [2025-02-12 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460446', 'tblTempUsageDetail_20' ) end [2025-02-12 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:57:26] Production.INFO: ==27944== Releasing lock... [2025-02-12 16:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:57:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:58:05 [end_date_ymd] => 2025-02-12 16:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:58:05' and `end` < '2025-02-12 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-12 16:58:19] Production.INFO: count ==5101 [2025-02-12 16:58:21] Production.ERROR: pbx CDR StartTime 2025-02-12 13:58:05 - End Time 2025-02-12 16:58:05 [2025-02-12 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460451', 'tblTempUsageDetail_20' ) start [2025-02-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460451', 'tblTempUsageDetail_20' ) end [2025-02-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460451', 'tblTempVendorCDR_20' ) start [2025-02-12 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460451', 'tblTempVendorCDR_20' ) end [2025-02-12 16:58:21] Production.INFO: ProcessCDR(1,14460451,1,1,2) [2025-02-12 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460451', 'tblTempUsageDetail_20' ) start [2025-02-12 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460451', 'tblTempUsageDetail_20' ) end [2025-02-12 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:58:26] Production.INFO: ==28061== Releasing lock... [2025-02-12 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-12 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 13:59:05 [end_date_ymd] => 2025-02-12 16:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 13:59:05' and `end` < '2025-02-12 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-12 16:59:20] Production.INFO: count ==5089 [2025-02-12 16:59:22] Production.ERROR: pbx CDR StartTime 2025-02-12 13:59:05 - End Time 2025-02-12 16:59:05 [2025-02-12 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460456', 'tblTempUsageDetail_20' ) start [2025-02-12 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460456', 'tblTempUsageDetail_20' ) end [2025-02-12 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460456', 'tblTempVendorCDR_20' ) start [2025-02-12 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460456', 'tblTempVendorCDR_20' ) end [2025-02-12 16:59:22] Production.INFO: ProcessCDR(1,14460456,1,1,2) [2025-02-12 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460456', 'tblTempUsageDetail_20' ) start [2025-02-12 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460456', 'tblTempUsageDetail_20' ) end [2025-02-12 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 16:59:27] Production.INFO: ==28160== Releasing lock... [2025-02-12 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 16:59:27] Production.INFO: 66 MB #Memory Used# [2025-02-12 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:00:06 [end_date_ymd] => 2025-02-12 17:00:06 [RateCDR] => 1 ) [2025-02-12 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:00:06' and `end` < '2025-02-12 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:00:20] Production.INFO: count ==5081 [2025-02-12 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:00:06 - End Time 2025-02-12 17:00:06 [2025-02-12 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460461', 'tblTempUsageDetail_20' ) start [2025-02-12 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460461', 'tblTempUsageDetail_20' ) end [2025-02-12 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460461', 'tblTempVendorCDR_20' ) start [2025-02-12 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460461', 'tblTempVendorCDR_20' ) end [2025-02-12 17:00:23] Production.INFO: ProcessCDR(1,14460461,1,1,2) [2025-02-12 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460461', 'tblTempUsageDetail_20' ) start [2025-02-12 17:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460461', 'tblTempUsageDetail_20' ) end [2025-02-12 17:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:00:26] Production.INFO: ==28281== Releasing lock... [2025-02-12 17:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:00:26] Production.INFO: 66 MB #Memory Used# [2025-02-12 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:01:04 [end_date_ymd] => 2025-02-12 17:01:04 [RateCDR] => 1 ) [2025-02-12 17: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-12 14:01:04' and `end` < '2025-02-12 17: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-12 17:01:20] Production.INFO: count ==5075 [2025-02-12 17:01:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:01:04 - End Time 2025-02-12 17:01:04 [2025-02-12 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460467', 'tblTempUsageDetail_20' ) start [2025-02-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460467', 'tblTempUsageDetail_20' ) end [2025-02-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460467', 'tblTempVendorCDR_20' ) start [2025-02-12 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460467', 'tblTempVendorCDR_20' ) end [2025-02-12 17:01:22] Production.INFO: ProcessCDR(1,14460467,1,1,2) [2025-02-12 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460467', 'tblTempUsageDetail_20' ) start [2025-02-12 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460467', 'tblTempUsageDetail_20' ) end [2025-02-12 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:01:27] Production.INFO: ==28398== Releasing lock... [2025-02-12 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:01:27] Production.INFO: 66 MB #Memory Used# [2025-02-12 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:02:06 [end_date_ymd] => 2025-02-12 17:02:06 [RateCDR] => 1 ) [2025-02-12 17: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-12 14:02:06' and `end` < '2025-02-12 17: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-12 17:02:20] Production.INFO: count ==5069 [2025-02-12 17:02:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:02:06 - End Time 2025-02-12 17:02:06 [2025-02-12 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460472', 'tblTempUsageDetail_20' ) start [2025-02-12 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460472', 'tblTempUsageDetail_20' ) end [2025-02-12 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460472', 'tblTempVendorCDR_20' ) start [2025-02-12 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460472', 'tblTempVendorCDR_20' ) end [2025-02-12 17:02:22] Production.INFO: ProcessCDR(1,14460472,1,1,2) [2025-02-12 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460472', 'tblTempUsageDetail_20' ) start [2025-02-12 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460472', 'tblTempUsageDetail_20' ) end [2025-02-12 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:02:27] Production.INFO: ==28514== Releasing lock... [2025-02-12 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:02:27] Production.INFO: 66 MB #Memory Used# [2025-02-12 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:03:06 [end_date_ymd] => 2025-02-12 17:03:06 [RateCDR] => 1 ) [2025-02-12 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:03:06' and `end` < '2025-02-12 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:03:23] Production.INFO: count ==5048 [2025-02-12 17:03:25] Production.ERROR: pbx CDR StartTime 2025-02-12 14:03:06 - End Time 2025-02-12 17:03:06 [2025-02-12 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460477', 'tblTempUsageDetail_20' ) start [2025-02-12 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460477', 'tblTempUsageDetail_20' ) end [2025-02-12 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460477', 'tblTempVendorCDR_20' ) start [2025-02-12 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460477', 'tblTempVendorCDR_20' ) end [2025-02-12 17:03:25] Production.INFO: ProcessCDR(1,14460477,1,1,2) [2025-02-12 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460477', 'tblTempUsageDetail_20' ) start [2025-02-12 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460477', 'tblTempUsageDetail_20' ) end [2025-02-12 17:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:03:30] Production.INFO: ==28613== Releasing lock... [2025-02-12 17:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:03:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:04:05 [end_date_ymd] => 2025-02-12 17:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:04:05' and `end` < '2025-02-12 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-12 17:04:19] Production.INFO: count ==5052 [2025-02-12 17:04:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:04:05 - End Time 2025-02-12 17:04:05 [2025-02-12 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460482', 'tblTempUsageDetail_20' ) start [2025-02-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460482', 'tblTempUsageDetail_20' ) end [2025-02-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460482', 'tblTempVendorCDR_20' ) start [2025-02-12 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460482', 'tblTempVendorCDR_20' ) end [2025-02-12 17:04:21] Production.INFO: ProcessCDR(1,14460482,1,1,2) [2025-02-12 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460482', 'tblTempUsageDetail_20' ) start [2025-02-12 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460482', 'tblTempUsageDetail_20' ) end [2025-02-12 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:04:26] Production.INFO: ==28732== Releasing lock... [2025-02-12 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:04:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:05:05 [end_date_ymd] => 2025-02-12 17:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:05:05' and `end` < '2025-02-12 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-12 17:05:22] Production.INFO: count ==5048 [2025-02-12 17:05:24] Production.ERROR: pbx CDR StartTime 2025-02-12 14:05:05 - End Time 2025-02-12 17:05:05 [2025-02-12 17:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460487', 'tblTempUsageDetail_20' ) start [2025-02-12 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460487', 'tblTempUsageDetail_20' ) end [2025-02-12 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460487', 'tblTempVendorCDR_20' ) start [2025-02-12 17:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460487', 'tblTempVendorCDR_20' ) end [2025-02-12 17:05:24] Production.INFO: ProcessCDR(1,14460487,1,1,2) [2025-02-12 17:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460487', 'tblTempUsageDetail_20' ) start [2025-02-12 17:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460487', 'tblTempUsageDetail_20' ) end [2025-02-12 17:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:05:29] Production.INFO: ==28827== Releasing lock... [2025-02-12 17:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:05:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:06:05 [end_date_ymd] => 2025-02-12 17:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:06:05' and `end` < '2025-02-12 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-12 17:06:21] Production.INFO: count ==5034 [2025-02-12 17:06:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:06:05 - End Time 2025-02-12 17:06:05 [2025-02-12 17:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460492', 'tblTempUsageDetail_20' ) start [2025-02-12 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460492', 'tblTempUsageDetail_20' ) end [2025-02-12 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460492', 'tblTempVendorCDR_20' ) start [2025-02-12 17:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460492', 'tblTempVendorCDR_20' ) end [2025-02-12 17:06:23] Production.INFO: ProcessCDR(1,14460492,1,1,2) [2025-02-12 17:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460492', 'tblTempUsageDetail_20' ) start [2025-02-12 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460492', 'tblTempUsageDetail_20' ) end [2025-02-12 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:06:28] Production.INFO: ==28954== Releasing lock... [2025-02-12 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:06:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-12 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:07:05 [end_date_ymd] => 2025-02-12 17:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:07:05' and `end` < '2025-02-12 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-12 17:07:19] Production.INFO: count ==5017 [2025-02-12 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:07:05 - End Time 2025-02-12 17:07:05 [2025-02-12 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460497', 'tblTempUsageDetail_20' ) start [2025-02-12 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460497', 'tblTempUsageDetail_20' ) end [2025-02-12 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460497', 'tblTempVendorCDR_20' ) start [2025-02-12 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460497', 'tblTempVendorCDR_20' ) end [2025-02-12 17:07:22] Production.INFO: ProcessCDR(1,14460497,1,1,2) [2025-02-12 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460497', 'tblTempUsageDetail_20' ) start [2025-02-12 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460497', 'tblTempUsageDetail_20' ) end [2025-02-12 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:07:25] Production.INFO: ==29084== Releasing lock... [2025-02-12 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:07:25] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:08:05 [end_date_ymd] => 2025-02-12 17:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:08:05' and `end` < '2025-02-12 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-12 17:08:20] Production.INFO: count ==5004 [2025-02-12 17:08:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:08:05 - End Time 2025-02-12 17:08:05 [2025-02-12 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460502', 'tblTempUsageDetail_20' ) start [2025-02-12 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460502', 'tblTempUsageDetail_20' ) end [2025-02-12 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460502', 'tblTempVendorCDR_20' ) start [2025-02-12 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460502', 'tblTempVendorCDR_20' ) end [2025-02-12 17:08:22] Production.INFO: ProcessCDR(1,14460502,1,1,2) [2025-02-12 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460502', 'tblTempUsageDetail_20' ) start [2025-02-12 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460502', 'tblTempUsageDetail_20' ) end [2025-02-12 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:08:26] Production.INFO: ==29203== Releasing lock... [2025-02-12 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:08:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:09:05 [end_date_ymd] => 2025-02-12 17:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:09:05' and `end` < '2025-02-12 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-12 17:09:21] Production.INFO: count ==5005 [2025-02-12 17:09:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:09:05 - End Time 2025-02-12 17:09:05 [2025-02-12 17:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460507', 'tblTempUsageDetail_20' ) start [2025-02-12 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460507', 'tblTempUsageDetail_20' ) end [2025-02-12 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460507', 'tblTempVendorCDR_20' ) start [2025-02-12 17:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460507', 'tblTempVendorCDR_20' ) end [2025-02-12 17:09:23] Production.INFO: ProcessCDR(1,14460507,1,1,2) [2025-02-12 17:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460507', 'tblTempUsageDetail_20' ) start [2025-02-12 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460507', 'tblTempUsageDetail_20' ) end [2025-02-12 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:09:26] Production.INFO: ==29294== Releasing lock... [2025-02-12 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:09:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:10:05 [end_date_ymd] => 2025-02-12 17:10:05 [RateCDR] => 1 ) [2025-02-12 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:10:05' and `end` < '2025-02-12 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:10:24] Production.INFO: count ==5011 [2025-02-12 17:10:26] Production.ERROR: pbx CDR StartTime 2025-02-12 14:10:05 - End Time 2025-02-12 17:10:05 [2025-02-12 17:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460512', 'tblTempUsageDetail_20' ) start [2025-02-12 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460512', 'tblTempUsageDetail_20' ) end [2025-02-12 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460512', 'tblTempVendorCDR_20' ) start [2025-02-12 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460512', 'tblTempVendorCDR_20' ) end [2025-02-12 17:10:26] Production.INFO: ProcessCDR(1,14460512,1,1,2) [2025-02-12 17:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460512', 'tblTempUsageDetail_20' ) start [2025-02-12 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460512', 'tblTempUsageDetail_20' ) end [2025-02-12 17:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:10:31] Production.INFO: ==29414== Releasing lock... [2025-02-12 17:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:10:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:11:05 [end_date_ymd] => 2025-02-12 17:11:05 [RateCDR] => 1 ) [2025-02-12 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:11:05' and `end` < '2025-02-12 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:11:21] Production.INFO: count ==5004 [2025-02-12 17:11:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:11:05 - End Time 2025-02-12 17:11:05 [2025-02-12 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460518', 'tblTempUsageDetail_20' ) start [2025-02-12 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460518', 'tblTempUsageDetail_20' ) end [2025-02-12 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460518', 'tblTempVendorCDR_20' ) start [2025-02-12 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460518', 'tblTempVendorCDR_20' ) end [2025-02-12 17:11:24] Production.INFO: ProcessCDR(1,14460518,1,1,2) [2025-02-12 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460518', 'tblTempUsageDetail_20' ) start [2025-02-12 17:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460518', 'tblTempUsageDetail_20' ) end [2025-02-12 17:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:11:29] Production.INFO: ==29521== Releasing lock... [2025-02-12 17:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:11:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:12:05 [end_date_ymd] => 2025-02-12 17:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:12:05' and `end` < '2025-02-12 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-12 17:12:20] Production.INFO: count ==5018 [2025-02-12 17:12:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:12:05 - End Time 2025-02-12 17:12:05 [2025-02-12 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460523', 'tblTempUsageDetail_20' ) start [2025-02-12 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460523', 'tblTempUsageDetail_20' ) end [2025-02-12 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460523', 'tblTempVendorCDR_20' ) start [2025-02-12 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460523', 'tblTempVendorCDR_20' ) end [2025-02-12 17:12:22] Production.INFO: ProcessCDR(1,14460523,1,1,2) [2025-02-12 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460523', 'tblTempUsageDetail_20' ) start [2025-02-12 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460523', 'tblTempUsageDetail_20' ) end [2025-02-12 17:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:12:28] Production.INFO: ==29628== Releasing lock... [2025-02-12 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:12:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:13:05 [end_date_ymd] => 2025-02-12 17:13:05 [RateCDR] => 1 ) [2025-02-12 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:13:05' and `end` < '2025-02-12 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:13:20] Production.INFO: count ==5020 [2025-02-12 17:13:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:13:05 - End Time 2025-02-12 17:13:05 [2025-02-12 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460528', 'tblTempUsageDetail_20' ) start [2025-02-12 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460528', 'tblTempUsageDetail_20' ) end [2025-02-12 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460528', 'tblTempVendorCDR_20' ) start [2025-02-12 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460528', 'tblTempVendorCDR_20' ) end [2025-02-12 17:13:22] Production.INFO: ProcessCDR(1,14460528,1,1,2) [2025-02-12 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460528', 'tblTempUsageDetail_20' ) start [2025-02-12 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460528', 'tblTempUsageDetail_20' ) end [2025-02-12 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:13:27] Production.INFO: ==29728== Releasing lock... [2025-02-12 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:13:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:14:05 [end_date_ymd] => 2025-02-12 17:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:14:05' and `end` < '2025-02-12 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-12 17:14:21] Production.INFO: count ==5021 [2025-02-12 17:14:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:14:05 - End Time 2025-02-12 17:14:05 [2025-02-12 17:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460533', 'tblTempUsageDetail_20' ) start [2025-02-12 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460533', 'tblTempUsageDetail_20' ) end [2025-02-12 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460533', 'tblTempVendorCDR_20' ) start [2025-02-12 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460533', 'tblTempVendorCDR_20' ) end [2025-02-12 17:14:24] Production.INFO: ProcessCDR(1,14460533,1,1,2) [2025-02-12 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460533', 'tblTempUsageDetail_20' ) start [2025-02-12 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460533', 'tblTempUsageDetail_20' ) end [2025-02-12 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:14:27] Production.INFO: ==29820== Releasing lock... [2025-02-12 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:14:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:15:05 [end_date_ymd] => 2025-02-12 17:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:15:05' and `end` < '2025-02-12 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-12 17:15:21] Production.INFO: count ==5014 [2025-02-12 17:15:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:15:05 - End Time 2025-02-12 17:15:05 [2025-02-12 17:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460538', 'tblTempUsageDetail_20' ) start [2025-02-12 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460538', 'tblTempUsageDetail_20' ) end [2025-02-12 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460538', 'tblTempVendorCDR_20' ) start [2025-02-12 17:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460538', 'tblTempVendorCDR_20' ) end [2025-02-12 17:15:23] Production.INFO: ProcessCDR(1,14460538,1,1,2) [2025-02-12 17:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460538', 'tblTempUsageDetail_20' ) start [2025-02-12 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460538', 'tblTempUsageDetail_20' ) end [2025-02-12 17:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:15:28] Production.INFO: ==29910== Releasing lock... [2025-02-12 17:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:15:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-12 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:16:06 [end_date_ymd] => 2025-02-12 17:16:06 [RateCDR] => 1 ) [2025-02-12 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:16:06' and `end` < '2025-02-12 17: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-12 17:16:22] Production.INFO: count ==4987 [2025-02-12 17:16:24] Production.ERROR: pbx CDR StartTime 2025-02-12 14:16:06 - End Time 2025-02-12 17:16:06 [2025-02-12 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460543', 'tblTempUsageDetail_20' ) start [2025-02-12 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460543', 'tblTempUsageDetail_20' ) end [2025-02-12 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460543', 'tblTempVendorCDR_20' ) start [2025-02-12 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460543', 'tblTempVendorCDR_20' ) end [2025-02-12 17:16:24] Production.INFO: ProcessCDR(1,14460543,1,1,2) [2025-02-12 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460543', 'tblTempUsageDetail_20' ) start [2025-02-12 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460543', 'tblTempUsageDetail_20' ) end [2025-02-12 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:16:29] Production.INFO: ==29995== Releasing lock... [2025-02-12 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:16:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:17:05 [end_date_ymd] => 2025-02-12 17:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:17:05' and `end` < '2025-02-12 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-12 17:17:20] Production.INFO: count ==4989 [2025-02-12 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:17:05 - End Time 2025-02-12 17:17:05 [2025-02-12 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460548', 'tblTempUsageDetail_20' ) start [2025-02-12 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460548', 'tblTempUsageDetail_20' ) end [2025-02-12 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460548', 'tblTempVendorCDR_20' ) start [2025-02-12 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460548', 'tblTempVendorCDR_20' ) end [2025-02-12 17:17:22] Production.INFO: ProcessCDR(1,14460548,1,1,2) [2025-02-12 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460548', 'tblTempUsageDetail_20' ) start [2025-02-12 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460548', 'tblTempUsageDetail_20' ) end [2025-02-12 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:17:26] Production.INFO: ==30080== Releasing lock... [2025-02-12 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:17:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:18:05 [end_date_ymd] => 2025-02-12 17:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:18:05' and `end` < '2025-02-12 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-12 17:18:22] Production.INFO: count ==4970 [2025-02-12 17:18:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:18:05 - End Time 2025-02-12 17:18:05 [2025-02-12 17:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460553', 'tblTempUsageDetail_20' ) start [2025-02-12 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460553', 'tblTempUsageDetail_20' ) end [2025-02-12 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460553', 'tblTempVendorCDR_20' ) start [2025-02-12 17:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460553', 'tblTempVendorCDR_20' ) end [2025-02-12 17:18:24] Production.INFO: ProcessCDR(1,14460553,1,1,2) [2025-02-12 17:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460553', 'tblTempUsageDetail_20' ) start [2025-02-12 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460553', 'tblTempUsageDetail_20' ) end [2025-02-12 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:18:27] Production.INFO: ==30168== Releasing lock... [2025-02-12 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:18:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:19:05 [end_date_ymd] => 2025-02-12 17:19:05 [RateCDR] => 1 ) [2025-02-12 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:19:05' and `end` < '2025-02-12 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:19:19] Production.INFO: count ==4966 [2025-02-12 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:19:05 - End Time 2025-02-12 17:19:05 [2025-02-12 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460558', 'tblTempUsageDetail_20' ) start [2025-02-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460558', 'tblTempUsageDetail_20' ) end [2025-02-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460558', 'tblTempVendorCDR_20' ) start [2025-02-12 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460558', 'tblTempVendorCDR_20' ) end [2025-02-12 17:19:21] Production.INFO: ProcessCDR(1,14460558,1,1,2) [2025-02-12 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460558', 'tblTempUsageDetail_20' ) start [2025-02-12 17:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460558', 'tblTempUsageDetail_20' ) end [2025-02-12 17:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:19:24] Production.INFO: ==30255== Releasing lock... [2025-02-12 17:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:19:24] Production.INFO: 65.25 MB #Memory Used# [2025-02-12 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:20:06 [end_date_ymd] => 2025-02-12 17:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 14:20:06' and `end` < '2025-02-12 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-12 17:20:21] Production.INFO: count ==4951 [2025-02-12 17:20:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:20:06 - End Time 2025-02-12 17:20:06 [2025-02-12 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460563', 'tblTempUsageDetail_20' ) start [2025-02-12 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460563', 'tblTempUsageDetail_20' ) end [2025-02-12 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460563', 'tblTempVendorCDR_20' ) start [2025-02-12 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460563', 'tblTempVendorCDR_20' ) end [2025-02-12 17:20:23] Production.INFO: ProcessCDR(1,14460563,1,1,2) [2025-02-12 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460563', 'tblTempUsageDetail_20' ) start [2025-02-12 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460563', 'tblTempUsageDetail_20' ) end [2025-02-12 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:20:26] Production.INFO: ==30340== Releasing lock... [2025-02-12 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:20:26] Production.INFO: 65 MB #Memory Used# [2025-02-12 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:21:05 [end_date_ymd] => 2025-02-12 17:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:21:05' and `end` < '2025-02-12 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-12 17:21:18] Production.INFO: count ==4893 [2025-02-12 17:21:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:21:05 - End Time 2025-02-12 17:21:05 [2025-02-12 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460569', 'tblTempUsageDetail_20' ) start [2025-02-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460569', 'tblTempUsageDetail_20' ) end [2025-02-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460569', 'tblTempVendorCDR_20' ) start [2025-02-12 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460569', 'tblTempVendorCDR_20' ) end [2025-02-12 17:21:21] Production.INFO: ProcessCDR(1,14460569,1,1,2) [2025-02-12 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460569', 'tblTempUsageDetail_20' ) start [2025-02-12 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460569', 'tblTempUsageDetail_20' ) end [2025-02-12 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:21:24] Production.INFO: ==30429== Releasing lock... [2025-02-12 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:21:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-12 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:22:05 [end_date_ymd] => 2025-02-12 17:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:22:05' and `end` < '2025-02-12 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-12 17:22:20] Production.INFO: count ==4840 [2025-02-12 17:22:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:22:05 - End Time 2025-02-12 17:22:05 [2025-02-12 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460574', 'tblTempUsageDetail_20' ) start [2025-02-12 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460574', 'tblTempUsageDetail_20' ) end [2025-02-12 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460574', 'tblTempVendorCDR_20' ) start [2025-02-12 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460574', 'tblTempVendorCDR_20' ) end [2025-02-12 17:22:22] Production.INFO: ProcessCDR(1,14460574,1,1,2) [2025-02-12 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460574', 'tblTempUsageDetail_20' ) start [2025-02-12 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460574', 'tblTempUsageDetail_20' ) end [2025-02-12 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:22:27] Production.INFO: ==30549== Releasing lock... [2025-02-12 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:22:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-12 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:23:05 [end_date_ymd] => 2025-02-12 17:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:23:05' and `end` < '2025-02-12 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-12 17:23:19] Production.INFO: count ==4771 [2025-02-12 17:23:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:23:05 - End Time 2025-02-12 17:23:05 [2025-02-12 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460579', 'tblTempUsageDetail_20' ) start [2025-02-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460579', 'tblTempUsageDetail_20' ) end [2025-02-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460579', 'tblTempVendorCDR_20' ) start [2025-02-12 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460579', 'tblTempVendorCDR_20' ) end [2025-02-12 17:23:21] Production.INFO: ProcessCDR(1,14460579,1,1,2) [2025-02-12 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460579', 'tblTempUsageDetail_20' ) start [2025-02-12 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460579', 'tblTempUsageDetail_20' ) end [2025-02-12 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:23:26] Production.INFO: ==30638== Releasing lock... [2025-02-12 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:23:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-12 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:24:05 [end_date_ymd] => 2025-02-12 17:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:24:05' and `end` < '2025-02-12 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-12 17:24:19] Production.INFO: count ==4713 [2025-02-12 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:24:05 - End Time 2025-02-12 17:24:05 [2025-02-12 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460584', 'tblTempUsageDetail_20' ) start [2025-02-12 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460584', 'tblTempUsageDetail_20' ) end [2025-02-12 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460584', 'tblTempVendorCDR_20' ) start [2025-02-12 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460584', 'tblTempVendorCDR_20' ) end [2025-02-12 17:24:21] Production.INFO: ProcessCDR(1,14460584,1,1,2) [2025-02-12 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460584', 'tblTempUsageDetail_20' ) start [2025-02-12 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460584', 'tblTempUsageDetail_20' ) end [2025-02-12 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:24:25] Production.INFO: ==30717== Releasing lock... [2025-02-12 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:24:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-12 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:25:05 [end_date_ymd] => 2025-02-12 17:25:05 [RateCDR] => 1 ) [2025-02-12 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:25:05' and `end` < '2025-02-12 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:25:18] Production.INFO: count ==4685 [2025-02-12 17:25:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:25:05 - End Time 2025-02-12 17:25:05 [2025-02-12 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460589', 'tblTempUsageDetail_20' ) start [2025-02-12 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460589', 'tblTempUsageDetail_20' ) end [2025-02-12 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460589', 'tblTempVendorCDR_20' ) start [2025-02-12 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460589', 'tblTempVendorCDR_20' ) end [2025-02-12 17:25:20] Production.INFO: ProcessCDR(1,14460589,1,1,2) [2025-02-12 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460589', 'tblTempUsageDetail_20' ) start [2025-02-12 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460589', 'tblTempUsageDetail_20' ) end [2025-02-12 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:25:25] Production.INFO: ==30807== Releasing lock... [2025-02-12 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:25:25] Production.INFO: 63 MB #Memory Used# [2025-02-12 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:26:16 [end_date_ymd] => 2025-02-12 17:26:16 [RateCDR] => 1 ) [2025-02-12 17:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:26:16' and `end` < '2025-02-12 17:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:26:33] Production.INFO: count ==4683 [2025-02-12 17:27:29] Production.ERROR: pbx CDR StartTime 2025-02-12 14:26:16 - End Time 2025-02-12 17:26:16 [2025-02-12 17:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460594', 'tblTempUsageDetail_20' ) start [2025-02-12 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460594', 'tblTempUsageDetail_20' ) end [2025-02-12 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460594', 'tblTempVendorCDR_20' ) start [2025-02-12 17:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460594', 'tblTempVendorCDR_20' ) end [2025-02-12 17:27:31] Production.INFO: ProcessCDR(1,14460594,1,1,2) [2025-02-12 17:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:28:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:28:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460594', 'tblTempUsageDetail_20' ) start [2025-02-12 17:28:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460594', 'tblTempUsageDetail_20' ) end [2025-02-12 17:28:06] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:28:06] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:28:16] Production.INFO: ==30889== Releasing lock... [2025-02-12 17:28:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:28:16] Production.INFO: 63 MB #Memory Used# [2025-02-12 17:29:18] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:29:18 [end_date_ymd] => 2025-02-12 17:29:18 [RateCDR] => 1 ) [2025-02-12 17:29:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:29:18' and `end` < '2025-02-12 17:29:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:29:31] Production.INFO: count ==4655 [2025-02-12 17:30:34] Production.ERROR: pbx CDR StartTime 2025-02-12 14:29:18 - End Time 2025-02-12 17:29:18 [2025-02-12 17:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460605', 'tblTempUsageDetail_20' ) start [2025-02-12 17:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460605', 'tblTempUsageDetail_20' ) end [2025-02-12 17:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460605', 'tblTempVendorCDR_20' ) start [2025-02-12 17:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460605', 'tblTempVendorCDR_20' ) end [2025-02-12 17:30:38] Production.INFO: ProcessCDR(1,14460605,1,1,2) [2025-02-12 17:30:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:30:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:30:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:31:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:31:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460605', 'tblTempUsageDetail_20' ) start [2025-02-12 17:31:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460605', 'tblTempUsageDetail_20' ) end [2025-02-12 17:31:07] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:31:07] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:31:14] Production.INFO: ==31112== Releasing lock... [2025-02-12 17:31:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:31:14] Production.INFO: 62.75 MB #Memory Used# [2025-02-12 17:32:22] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:32:22 [end_date_ymd] => 2025-02-12 17:32:22 [RateCDR] => 1 ) [2025-02-12 17:32:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:32:22' and `end` < '2025-02-12 17:32:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:32:38] Production.INFO: count ==4602 [2025-02-12 17:32:40] Production.ERROR: pbx CDR StartTime 2025-02-12 14:32:22 - End Time 2025-02-12 17:32:22 [2025-02-12 17:32:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460617', 'tblTempUsageDetail_20' ) start [2025-02-12 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460617', 'tblTempUsageDetail_20' ) end [2025-02-12 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460617', 'tblTempVendorCDR_20' ) start [2025-02-12 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460617', 'tblTempVendorCDR_20' ) end [2025-02-12 17:32:40] Production.INFO: ProcessCDR(1,14460617,1,1,2) [2025-02-12 17:32:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:32:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:32:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:32:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:32:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460617', 'tblTempUsageDetail_20' ) start [2025-02-12 17:32:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460617', 'tblTempUsageDetail_20' ) end [2025-02-12 17:32:46] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:32:46] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:32:46] Production.INFO: ==31344== Releasing lock... [2025-02-12 17:32:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:32:46] Production.INFO: 62.5 MB #Memory Used# [2025-02-12 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:33:05 [end_date_ymd] => 2025-02-12 17:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:33:05' and `end` < '2025-02-12 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-12 17:33:24] Production.INFO: count ==4585 [2025-02-12 17:33:26] Production.ERROR: pbx CDR StartTime 2025-02-12 14:33:05 - End Time 2025-02-12 17:33:05 [2025-02-12 17:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460622', 'tblTempUsageDetail_20' ) start [2025-02-12 17:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460622', 'tblTempUsageDetail_20' ) end [2025-02-12 17:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460622', 'tblTempVendorCDR_20' ) start [2025-02-12 17:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460622', 'tblTempVendorCDR_20' ) end [2025-02-12 17:33:26] Production.INFO: ProcessCDR(1,14460622,1,1,2) [2025-02-12 17:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460622', 'tblTempUsageDetail_20' ) start [2025-02-12 17:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460622', 'tblTempUsageDetail_20' ) end [2025-02-12 17:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:33:29] Production.INFO: ==31426== Releasing lock... [2025-02-12 17:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:33:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-12 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:34:05 [end_date_ymd] => 2025-02-12 17:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:34:05' and `end` < '2025-02-12 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-12 17:34:19] Production.INFO: count ==4574 [2025-02-12 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:34:05 - End Time 2025-02-12 17:34:05 [2025-02-12 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460627', 'tblTempUsageDetail_20' ) start [2025-02-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460627', 'tblTempUsageDetail_20' ) end [2025-02-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460627', 'tblTempVendorCDR_20' ) start [2025-02-12 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460627', 'tblTempVendorCDR_20' ) end [2025-02-12 17:34:21] Production.INFO: ProcessCDR(1,14460627,1,1,2) [2025-02-12 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460627', 'tblTempUsageDetail_20' ) start [2025-02-12 17:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460627', 'tblTempUsageDetail_20' ) end [2025-02-12 17:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:34:24] Production.INFO: ==31502== Releasing lock... [2025-02-12 17:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:34:24] Production.INFO: 62.25 MB #Memory Used# [2025-02-12 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:35:05 [end_date_ymd] => 2025-02-12 17:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:35:05' and `end` < '2025-02-12 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-12 17:35:25] Production.INFO: count ==4552 [2025-02-12 17:35:27] Production.ERROR: pbx CDR StartTime 2025-02-12 14:35:05 - End Time 2025-02-12 17:35:05 [2025-02-12 17:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460632', 'tblTempUsageDetail_20' ) start [2025-02-12 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460632', 'tblTempUsageDetail_20' ) end [2025-02-12 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460632', 'tblTempVendorCDR_20' ) start [2025-02-12 17:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460632', 'tblTempVendorCDR_20' ) end [2025-02-12 17:35:27] Production.INFO: ProcessCDR(1,14460632,1,1,2) [2025-02-12 17:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460632', 'tblTempUsageDetail_20' ) start [2025-02-12 17:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460632', 'tblTempUsageDetail_20' ) end [2025-02-12 17:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:35:32] Production.INFO: ==31582== Releasing lock... [2025-02-12 17:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:35:32] Production.INFO: 62 MB #Memory Used# [2025-02-12 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:36:05 [end_date_ymd] => 2025-02-12 17:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:36:05' and `end` < '2025-02-12 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-12 17:36:19] Production.INFO: count ==4512 [2025-02-12 17:36:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:36:05 - End Time 2025-02-12 17:36:05 [2025-02-12 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460637', 'tblTempUsageDetail_20' ) start [2025-02-12 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460637', 'tblTempUsageDetail_20' ) end [2025-02-12 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460637', 'tblTempVendorCDR_20' ) start [2025-02-12 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460637', 'tblTempVendorCDR_20' ) end [2025-02-12 17:36:21] Production.INFO: ProcessCDR(1,14460637,1,1,2) [2025-02-12 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460637', 'tblTempUsageDetail_20' ) start [2025-02-12 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460637', 'tblTempUsageDetail_20' ) end [2025-02-12 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:36:25] Production.INFO: ==31658== Releasing lock... [2025-02-12 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:36:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-12 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:37:05 [end_date_ymd] => 2025-02-12 17:37:05 [RateCDR] => 1 ) [2025-02-12 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:37:05' and `end` < '2025-02-12 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:37:19] Production.INFO: count ==4487 [2025-02-12 17:37:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:37:05 - End Time 2025-02-12 17:37:05 [2025-02-12 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460642', 'tblTempUsageDetail_20' ) start [2025-02-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460642', 'tblTempUsageDetail_20' ) end [2025-02-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460642', 'tblTempVendorCDR_20' ) start [2025-02-12 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460642', 'tblTempVendorCDR_20' ) end [2025-02-12 17:37:20] Production.INFO: ProcessCDR(1,14460642,1,1,2) [2025-02-12 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460642', 'tblTempUsageDetail_20' ) start [2025-02-12 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460642', 'tblTempUsageDetail_20' ) end [2025-02-12 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:37:25] Production.INFO: ==31734== Releasing lock... [2025-02-12 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:37:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-12 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:38:05 [end_date_ymd] => 2025-02-12 17:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:38:05' and `end` < '2025-02-12 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-12 17:38:22] Production.INFO: count ==4474 [2025-02-12 17:38:24] Production.ERROR: pbx CDR StartTime 2025-02-12 14:38:05 - End Time 2025-02-12 17:38:05 [2025-02-12 17:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460647', 'tblTempUsageDetail_20' ) start [2025-02-12 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460647', 'tblTempUsageDetail_20' ) end [2025-02-12 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460647', 'tblTempVendorCDR_20' ) start [2025-02-12 17:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460647', 'tblTempVendorCDR_20' ) end [2025-02-12 17:38:24] Production.INFO: ProcessCDR(1,14460647,1,1,2) [2025-02-12 17:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460647', 'tblTempUsageDetail_20' ) start [2025-02-12 17:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460647', 'tblTempUsageDetail_20' ) end [2025-02-12 17:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:38:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:38:29] Production.INFO: ==31853== Releasing lock... [2025-02-12 17:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:38:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-12 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:39:05 [end_date_ymd] => 2025-02-12 17:39:05 [RateCDR] => 1 ) [2025-02-12 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:39:05' and `end` < '2025-02-12 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:39:20] Production.INFO: count ==4449 [2025-02-12 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:39:05 - End Time 2025-02-12 17:39:05 [2025-02-12 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460652', 'tblTempUsageDetail_20' ) start [2025-02-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460652', 'tblTempUsageDetail_20' ) end [2025-02-12 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460652', 'tblTempVendorCDR_20' ) start [2025-02-12 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460652', 'tblTempVendorCDR_20' ) end [2025-02-12 17:39:22] Production.INFO: ProcessCDR(1,14460652,1,1,2) [2025-02-12 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460652', 'tblTempUsageDetail_20' ) start [2025-02-12 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460652', 'tblTempUsageDetail_20' ) end [2025-02-12 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:39:26] Production.INFO: ==31934== Releasing lock... [2025-02-12 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:39:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-12 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:40:06 [end_date_ymd] => 2025-02-12 17:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 14:40:06' and `end` < '2025-02-12 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-12 17:40:20] Production.INFO: count ==4427 [2025-02-12 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:40:06 - End Time 2025-02-12 17:40:06 [2025-02-12 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460658', 'tblTempUsageDetail_20' ) start [2025-02-12 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460658', 'tblTempUsageDetail_20' ) end [2025-02-12 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460658', 'tblTempVendorCDR_20' ) start [2025-02-12 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460658', 'tblTempVendorCDR_20' ) end [2025-02-12 17:40:22] Production.INFO: ProcessCDR(1,14460658,1,1,2) [2025-02-12 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460658', 'tblTempUsageDetail_20' ) start [2025-02-12 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460658', 'tblTempUsageDetail_20' ) end [2025-02-12 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:40:27] Production.INFO: ==32016== Releasing lock... [2025-02-12 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:40:27] Production.INFO: 61 MB #Memory Used# [2025-02-12 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:41:05 [end_date_ymd] => 2025-02-12 17:41:05 [RateCDR] => 1 ) [2025-02-12 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:41:05' and `end` < '2025-02-12 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:41:19] Production.INFO: count ==4378 [2025-02-12 17:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:41:05 - End Time 2025-02-12 17:41:05 [2025-02-12 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460663', 'tblTempUsageDetail_20' ) start [2025-02-12 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460663', 'tblTempUsageDetail_20' ) end [2025-02-12 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460663', 'tblTempVendorCDR_20' ) start [2025-02-12 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460663', 'tblTempVendorCDR_20' ) end [2025-02-12 17:41:20] Production.INFO: ProcessCDR(1,14460663,1,1,2) [2025-02-12 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460663', 'tblTempUsageDetail_20' ) start [2025-02-12 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460663', 'tblTempUsageDetail_20' ) end [2025-02-12 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:41:25] Production.INFO: ==32098== Releasing lock... [2025-02-12 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:41:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-12 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:42:05 [end_date_ymd] => 2025-02-12 17:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:42:05' and `end` < '2025-02-12 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-12 17:42:19] Production.INFO: count ==4358 [2025-02-12 17:42:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:42:05 - End Time 2025-02-12 17:42:05 [2025-02-12 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460668', 'tblTempUsageDetail_20' ) start [2025-02-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460668', 'tblTempUsageDetail_20' ) end [2025-02-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460668', 'tblTempVendorCDR_20' ) start [2025-02-12 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460668', 'tblTempVendorCDR_20' ) end [2025-02-12 17:42:21] Production.INFO: ProcessCDR(1,14460668,1,1,2) [2025-02-12 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460668', 'tblTempUsageDetail_20' ) start [2025-02-12 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460668', 'tblTempUsageDetail_20' ) end [2025-02-12 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:42:25] Production.INFO: ==32176== Releasing lock... [2025-02-12 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:42:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-12 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:43:05 [end_date_ymd] => 2025-02-12 17:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:43:05' and `end` < '2025-02-12 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-12 17:43:19] Production.INFO: count ==4317 [2025-02-12 17:43:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:43:05 - End Time 2025-02-12 17:43:05 [2025-02-12 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460673', 'tblTempUsageDetail_20' ) start [2025-02-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460673', 'tblTempUsageDetail_20' ) end [2025-02-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460673', 'tblTempVendorCDR_20' ) start [2025-02-12 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460673', 'tblTempVendorCDR_20' ) end [2025-02-12 17:43:21] Production.INFO: ProcessCDR(1,14460673,1,1,2) [2025-02-12 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460673', 'tblTempUsageDetail_20' ) start [2025-02-12 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460673', 'tblTempUsageDetail_20' ) end [2025-02-12 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:43:26] Production.INFO: ==32254== Releasing lock... [2025-02-12 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:43:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-12 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:44:05 [end_date_ymd] => 2025-02-12 17:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:44:05' and `end` < '2025-02-12 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-12 17:44:20] Production.INFO: count ==4287 [2025-02-12 17:44:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:44:05 - End Time 2025-02-12 17:44:05 [2025-02-12 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460678', 'tblTempUsageDetail_20' ) start [2025-02-12 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460678', 'tblTempUsageDetail_20' ) end [2025-02-12 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460678', 'tblTempVendorCDR_20' ) start [2025-02-12 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460678', 'tblTempVendorCDR_20' ) end [2025-02-12 17:44:21] Production.INFO: ProcessCDR(1,14460678,1,1,2) [2025-02-12 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460678', 'tblTempUsageDetail_20' ) start [2025-02-12 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460678', 'tblTempUsageDetail_20' ) end [2025-02-12 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:44:26] Production.INFO: ==32330== Releasing lock... [2025-02-12 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:44:26] Production.INFO: 60 MB #Memory Used# [2025-02-12 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:45:05 [end_date_ymd] => 2025-02-12 17:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:45:05' and `end` < '2025-02-12 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-12 17:45:20] Production.INFO: count ==4260 [2025-02-12 17:45:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:45:05 - End Time 2025-02-12 17:45:05 [2025-02-12 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460683', 'tblTempUsageDetail_20' ) start [2025-02-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460683', 'tblTempUsageDetail_20' ) end [2025-02-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460683', 'tblTempVendorCDR_20' ) start [2025-02-12 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460683', 'tblTempVendorCDR_20' ) end [2025-02-12 17:45:21] Production.INFO: ProcessCDR(1,14460683,1,1,2) [2025-02-12 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460683', 'tblTempUsageDetail_20' ) start [2025-02-12 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460683', 'tblTempUsageDetail_20' ) end [2025-02-12 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:45:26] Production.INFO: ==32412== Releasing lock... [2025-02-12 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:45:26] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:46:05 [end_date_ymd] => 2025-02-12 17:46:05 [RateCDR] => 1 ) [2025-02-12 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:46:05' and `end` < '2025-02-12 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:46:21] Production.INFO: count ==4237 [2025-02-12 17:46:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:46:05 - End Time 2025-02-12 17:46:05 [2025-02-12 17:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460688', 'tblTempUsageDetail_20' ) start [2025-02-12 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460688', 'tblTempUsageDetail_20' ) end [2025-02-12 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460688', 'tblTempVendorCDR_20' ) start [2025-02-12 17:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460688', 'tblTempVendorCDR_20' ) end [2025-02-12 17:46:23] Production.INFO: ProcessCDR(1,14460688,1,1,2) [2025-02-12 17:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460688', 'tblTempUsageDetail_20' ) start [2025-02-12 17:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460688', 'tblTempUsageDetail_20' ) end [2025-02-12 17:46:28] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:46:28] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:46:28] Production.INFO: ==32488== Releasing lock... [2025-02-12 17:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:46:28] Production.INFO: 59.75 MB #Memory Used# [2025-02-12 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:47:05 [end_date_ymd] => 2025-02-12 17:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:47:05' and `end` < '2025-02-12 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-12 17:47:21] Production.INFO: count ==4221 [2025-02-12 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-12 14:47:05 - End Time 2025-02-12 17:47:05 [2025-02-12 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460693', 'tblTempUsageDetail_20' ) start [2025-02-12 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460693', 'tblTempUsageDetail_20' ) end [2025-02-12 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460693', 'tblTempVendorCDR_20' ) start [2025-02-12 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460693', 'tblTempVendorCDR_20' ) end [2025-02-12 17:47:23] Production.INFO: ProcessCDR(1,14460693,1,1,2) [2025-02-12 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460693', 'tblTempUsageDetail_20' ) start [2025-02-12 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460693', 'tblTempUsageDetail_20' ) end [2025-02-12 17:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:47:27] Production.INFO: ==32562== Releasing lock... [2025-02-12 17:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:47:27] Production.INFO: 59.5 MB #Memory Used# [2025-02-12 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:48:05 [end_date_ymd] => 2025-02-12 17:48:05 [RateCDR] => 1 ) [2025-02-12 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:48:05' and `end` < '2025-02-12 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:48:19] Production.INFO: count ==4207 [2025-02-12 17:48:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:48:05 - End Time 2025-02-12 17:48:05 [2025-02-12 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460698', 'tblTempUsageDetail_20' ) start [2025-02-12 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460698', 'tblTempUsageDetail_20' ) end [2025-02-12 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460698', 'tblTempVendorCDR_20' ) start [2025-02-12 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460698', 'tblTempVendorCDR_20' ) end [2025-02-12 17:48:20] Production.INFO: ProcessCDR(1,14460698,1,1,2) [2025-02-12 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460698', 'tblTempUsageDetail_20' ) start [2025-02-12 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460698', 'tblTempUsageDetail_20' ) end [2025-02-12 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:48:23] Production.INFO: ==32639== Releasing lock... [2025-02-12 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:48:23] Production.INFO: 59.5 MB #Memory Used# [2025-02-12 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:49:05 [end_date_ymd] => 2025-02-12 17:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:49:05' and `end` < '2025-02-12 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-12 17:49:19] Production.INFO: count ==4205 [2025-02-12 17:49:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:49:05 - End Time 2025-02-12 17:49:05 [2025-02-12 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460703', 'tblTempUsageDetail_20' ) start [2025-02-12 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460703', 'tblTempUsageDetail_20' ) end [2025-02-12 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460703', 'tblTempVendorCDR_20' ) start [2025-02-12 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460703', 'tblTempVendorCDR_20' ) end [2025-02-12 17:49:20] Production.INFO: ProcessCDR(1,14460703,1,1,2) [2025-02-12 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460703', 'tblTempUsageDetail_20' ) start [2025-02-12 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460703', 'tblTempUsageDetail_20' ) end [2025-02-12 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:49:25] Production.INFO: ==32716== Releasing lock... [2025-02-12 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:49:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-12 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:50:07 [end_date_ymd] => 2025-02-12 17:50:07 [RateCDR] => 1 ) [2025-02-12 17:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:50:07' and `end` < '2025-02-12 17:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:50:21] Production.INFO: count ==4191 [2025-02-12 17:50:23] Production.ERROR: pbx CDR StartTime 2025-02-12 14:50:07 - End Time 2025-02-12 17:50:07 [2025-02-12 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460709', 'tblTempUsageDetail_20' ) start [2025-02-12 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460709', 'tblTempUsageDetail_20' ) end [2025-02-12 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460709', 'tblTempVendorCDR_20' ) start [2025-02-12 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460709', 'tblTempVendorCDR_20' ) end [2025-02-12 17:50:23] Production.INFO: ProcessCDR(1,14460709,1,1,2) [2025-02-12 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460709', 'tblTempUsageDetail_20' ) start [2025-02-12 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460709', 'tblTempUsageDetail_20' ) end [2025-02-12 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:50:26] Production.INFO: ==333== Releasing lock... [2025-02-12 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:50:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-12 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:51:05 [end_date_ymd] => 2025-02-12 17:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:51:05' and `end` < '2025-02-12 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-12 17:51:19] Production.INFO: count ==4134 [2025-02-12 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:51:05 - End Time 2025-02-12 17:51:05 [2025-02-12 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460714', 'tblTempUsageDetail_20' ) start [2025-02-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460714', 'tblTempUsageDetail_20' ) end [2025-02-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460714', 'tblTempVendorCDR_20' ) start [2025-02-12 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460714', 'tblTempVendorCDR_20' ) end [2025-02-12 17:51:21] Production.INFO: ProcessCDR(1,14460714,1,1,2) [2025-02-12 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460714', 'tblTempUsageDetail_20' ) start [2025-02-12 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460714', 'tblTempUsageDetail_20' ) end [2025-02-12 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:51:25] Production.INFO: ==426== Releasing lock... [2025-02-12 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:51:25] Production.INFO: 59 MB #Memory Used# [2025-02-12 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:52:05 [end_date_ymd] => 2025-02-12 17:52:05 [RateCDR] => 1 ) [2025-02-12 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:52:05' and `end` < '2025-02-12 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:52:25] Production.INFO: count ==4132 [2025-02-12 17:52:26] Production.ERROR: pbx CDR StartTime 2025-02-12 14:52:05 - End Time 2025-02-12 17:52:05 [2025-02-12 17:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460719', 'tblTempUsageDetail_20' ) start [2025-02-12 17:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460719', 'tblTempUsageDetail_20' ) end [2025-02-12 17:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460719', 'tblTempVendorCDR_20' ) start [2025-02-12 17:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460719', 'tblTempVendorCDR_20' ) end [2025-02-12 17:52:26] Production.INFO: ProcessCDR(1,14460719,1,1,2) [2025-02-12 17:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460719', 'tblTempUsageDetail_20' ) start [2025-02-12 17:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460719', 'tblTempUsageDetail_20' ) end [2025-02-12 17:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:52:31] Production.INFO: ==510== Releasing lock... [2025-02-12 17:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:52:31] Production.INFO: 59 MB #Memory Used# [2025-02-12 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:53:05 [end_date_ymd] => 2025-02-12 17:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:53:05' and `end` < '2025-02-12 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-12 17:53:18] Production.INFO: count ==4100 [2025-02-12 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:53:05 - End Time 2025-02-12 17:53:05 [2025-02-12 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460724', 'tblTempUsageDetail_20' ) start [2025-02-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460724', 'tblTempUsageDetail_20' ) end [2025-02-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460724', 'tblTempVendorCDR_20' ) start [2025-02-12 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460724', 'tblTempVendorCDR_20' ) end [2025-02-12 17:53:20] Production.INFO: ProcessCDR(1,14460724,1,1,2) [2025-02-12 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460724', 'tblTempUsageDetail_20' ) start [2025-02-12 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460724', 'tblTempUsageDetail_20' ) end [2025-02-12 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:53:24] Production.INFO: ==636== Releasing lock... [2025-02-12 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:53:24] Production.INFO: 58.75 MB #Memory Used# [2025-02-12 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:54:05 [end_date_ymd] => 2025-02-12 17:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:54:05' and `end` < '2025-02-12 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-12 17:54:19] Production.INFO: count ==4073 [2025-02-12 17:54:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:54:05 - End Time 2025-02-12 17:54:05 [2025-02-12 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460729', 'tblTempUsageDetail_20' ) start [2025-02-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460729', 'tblTempUsageDetail_20' ) end [2025-02-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460729', 'tblTempVendorCDR_20' ) start [2025-02-12 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460729', 'tblTempVendorCDR_20' ) end [2025-02-12 17:54:20] Production.INFO: ProcessCDR(1,14460729,1,1,2) [2025-02-12 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460729', 'tblTempUsageDetail_20' ) start [2025-02-12 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460729', 'tblTempUsageDetail_20' ) end [2025-02-12 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:54:24] Production.INFO: ==734== Releasing lock... [2025-02-12 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:54:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-12 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:55:05 [end_date_ymd] => 2025-02-12 17:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:55:05' and `end` < '2025-02-12 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-12 17:55:24] Production.INFO: count ==4049 [2025-02-12 17:55:25] Production.ERROR: pbx CDR StartTime 2025-02-12 14:55:05 - End Time 2025-02-12 17:55:05 [2025-02-12 17:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460734', 'tblTempUsageDetail_20' ) start [2025-02-12 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460734', 'tblTempUsageDetail_20' ) end [2025-02-12 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460734', 'tblTempVendorCDR_20' ) start [2025-02-12 17:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460734', 'tblTempVendorCDR_20' ) end [2025-02-12 17:55:25] Production.INFO: ProcessCDR(1,14460734,1,1,2) [2025-02-12 17:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460734', 'tblTempUsageDetail_20' ) start [2025-02-12 17:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460734', 'tblTempUsageDetail_20' ) end [2025-02-12 17:55:30] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:55:30] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:55:30] Production.INFO: ==815== Releasing lock... [2025-02-12 17:55:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:55:30] Production.INFO: 58.25 MB #Memory Used# [2025-02-12 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:56:05 [end_date_ymd] => 2025-02-12 17:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:56:05' and `end` < '2025-02-12 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-12 17:56:20] Production.INFO: count ==4012 [2025-02-12 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:56:05 - End Time 2025-02-12 17:56:05 [2025-02-12 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460739', 'tblTempUsageDetail_20' ) start [2025-02-12 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460739', 'tblTempUsageDetail_20' ) end [2025-02-12 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460739', 'tblTempVendorCDR_20' ) start [2025-02-12 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460739', 'tblTempVendorCDR_20' ) end [2025-02-12 17:56:22] Production.INFO: ProcessCDR(1,14460739,1,1,2) [2025-02-12 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460739', 'tblTempUsageDetail_20' ) start [2025-02-12 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460739', 'tblTempUsageDetail_20' ) end [2025-02-12 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:56:27] Production.INFO: ==892== Releasing lock... [2025-02-12 17:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:56:27] Production.INFO: 58 MB #Memory Used# [2025-02-12 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:57:05 [end_date_ymd] => 2025-02-12 17:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:57:05' and `end` < '2025-02-12 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-12 17:57:19] Production.INFO: count ==3976 [2025-02-12 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-12 14:57:05 - End Time 2025-02-12 17:57:05 [2025-02-12 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460744', 'tblTempUsageDetail_20' ) start [2025-02-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460744', 'tblTempUsageDetail_20' ) end [2025-02-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460744', 'tblTempVendorCDR_20' ) start [2025-02-12 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460744', 'tblTempVendorCDR_20' ) end [2025-02-12 17:57:20] Production.INFO: ProcessCDR(1,14460744,1,1,2) [2025-02-12 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460744', 'tblTempUsageDetail_20' ) start [2025-02-12 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460744', 'tblTempUsageDetail_20' ) end [2025-02-12 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:57:25] Production.INFO: ==971== Releasing lock... [2025-02-12 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:57:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-12 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:58:05 [end_date_ymd] => 2025-02-12 17:58:05 [RateCDR] => 1 ) [2025-02-12 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 14:58:05' and `end` < '2025-02-12 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 17:58:19] Production.INFO: count ==3954 [2025-02-12 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:58:05 - End Time 2025-02-12 17:58:05 [2025-02-12 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460749', 'tblTempUsageDetail_20' ) start [2025-02-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460749', 'tblTempUsageDetail_20' ) end [2025-02-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460749', 'tblTempVendorCDR_20' ) start [2025-02-12 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460749', 'tblTempVendorCDR_20' ) end [2025-02-12 17:58:21] Production.INFO: ProcessCDR(1,14460749,1,1,2) [2025-02-12 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460749', 'tblTempUsageDetail_20' ) start [2025-02-12 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460749', 'tblTempUsageDetail_20' ) end [2025-02-12 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:58:26] Production.INFO: ==1046== Releasing lock... [2025-02-12 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:58:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-12 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 14:59:05 [end_date_ymd] => 2025-02-12 17:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 14:59:05' and `end` < '2025-02-12 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-12 17:59:20] Production.INFO: count ==3915 [2025-02-12 17:59:21] Production.ERROR: pbx CDR StartTime 2025-02-12 14:59:05 - End Time 2025-02-12 17:59:05 [2025-02-12 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460754', 'tblTempUsageDetail_20' ) start [2025-02-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460754', 'tblTempUsageDetail_20' ) end [2025-02-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460754', 'tblTempVendorCDR_20' ) start [2025-02-12 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460754', 'tblTempVendorCDR_20' ) end [2025-02-12 17:59:21] Production.INFO: ProcessCDR(1,14460754,1,1,2) [2025-02-12 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460754', 'tblTempUsageDetail_20' ) start [2025-02-12 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460754', 'tblTempUsageDetail_20' ) end [2025-02-12 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 17:59:24] Production.INFO: ==1121== Releasing lock... [2025-02-12 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 17:59:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-12 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:00:06 [end_date_ymd] => 2025-02-12 18:00:06 [RateCDR] => 1 ) [2025-02-12 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:00:06' and `end` < '2025-02-12 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:00:23] Production.INFO: count ==3869 [2025-02-12 18:00:24] Production.ERROR: pbx CDR StartTime 2025-02-12 15:00:06 - End Time 2025-02-12 18:00:06 [2025-02-12 18:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460760', 'tblTempUsageDetail_20' ) start [2025-02-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460760', 'tblTempUsageDetail_20' ) end [2025-02-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460760', 'tblTempVendorCDR_20' ) start [2025-02-12 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460760', 'tblTempVendorCDR_20' ) end [2025-02-12 18:00:24] Production.INFO: ProcessCDR(1,14460760,1,1,2) [2025-02-12 18:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460760', 'tblTempUsageDetail_20' ) start [2025-02-12 18:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460760', 'tblTempUsageDetail_20' ) end [2025-02-12 18:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:00:29] Production.INFO: ==1208== Releasing lock... [2025-02-12 18:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:00:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-12 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:01:05 [end_date_ymd] => 2025-02-12 18:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:01:05' and `end` < '2025-02-12 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-12 18:01:19] Production.INFO: count ==3764 [2025-02-12 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:01:05 - End Time 2025-02-12 18:01:05 [2025-02-12 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460765', 'tblTempUsageDetail_20' ) start [2025-02-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460765', 'tblTempUsageDetail_20' ) end [2025-02-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460765', 'tblTempVendorCDR_20' ) start [2025-02-12 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460765', 'tblTempVendorCDR_20' ) end [2025-02-12 18:01:20] Production.INFO: ProcessCDR(1,14460765,1,1,2) [2025-02-12 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460765', 'tblTempUsageDetail_20' ) start [2025-02-12 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460765', 'tblTempUsageDetail_20' ) end [2025-02-12 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:01:23] Production.INFO: ==1312== Releasing lock... [2025-02-12 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:01:23] Production.INFO: 56.25 MB #Memory Used# [2025-02-12 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:02:06 [end_date_ymd] => 2025-02-12 18:02:06 [RateCDR] => 1 ) [2025-02-12 18:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:02:06' and `end` < '2025-02-12 18:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:02:19] Production.INFO: count ==3721 [2025-02-12 18:02:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:02:06 - End Time 2025-02-12 18:02:06 [2025-02-12 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460770', 'tblTempUsageDetail_20' ) start [2025-02-12 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460770', 'tblTempUsageDetail_20' ) end [2025-02-12 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460770', 'tblTempVendorCDR_20' ) start [2025-02-12 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460770', 'tblTempVendorCDR_20' ) end [2025-02-12 18:02:21] Production.INFO: ProcessCDR(1,14460770,1,1,2) [2025-02-12 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460770', 'tblTempUsageDetail_20' ) start [2025-02-12 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460770', 'tblTempUsageDetail_20' ) end [2025-02-12 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:02:25] Production.INFO: ==1388== Releasing lock... [2025-02-12 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:02:25] Production.INFO: 56 MB #Memory Used# [2025-02-12 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:03:05 [end_date_ymd] => 2025-02-12 18:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:03:05' and `end` < '2025-02-12 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-12 18:03:19] Production.INFO: count ==3678 [2025-02-12 18:03:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:03:05 - End Time 2025-02-12 18:03:05 [2025-02-12 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460775', 'tblTempUsageDetail_20' ) start [2025-02-12 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460775', 'tblTempUsageDetail_20' ) end [2025-02-12 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460775', 'tblTempVendorCDR_20' ) start [2025-02-12 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460775', 'tblTempVendorCDR_20' ) end [2025-02-12 18:03:20] Production.INFO: ProcessCDR(1,14460775,1,1,2) [2025-02-12 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460775', 'tblTempUsageDetail_20' ) start [2025-02-12 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460775', 'tblTempUsageDetail_20' ) end [2025-02-12 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:03:25] Production.INFO: ==1465== Releasing lock... [2025-02-12 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:03:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-12 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:04:06 [end_date_ymd] => 2025-02-12 18:04:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:04:06' and `end` < '2025-02-12 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-12 18:04:20] Production.INFO: count ==3647 [2025-02-12 18:04:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:04:06 - End Time 2025-02-12 18:04:06 [2025-02-12 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460780', 'tblTempUsageDetail_20' ) start [2025-02-12 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460780', 'tblTempUsageDetail_20' ) end [2025-02-12 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460780', 'tblTempVendorCDR_20' ) start [2025-02-12 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460780', 'tblTempVendorCDR_20' ) end [2025-02-12 18:04:21] Production.INFO: ProcessCDR(1,14460780,1,1,2) [2025-02-12 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460780', 'tblTempUsageDetail_20' ) start [2025-02-12 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460780', 'tblTempUsageDetail_20' ) end [2025-02-12 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:04:26] Production.INFO: ==1587== Releasing lock... [2025-02-12 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:04:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-12 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:05:05 [end_date_ymd] => 2025-02-12 18:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:05:05' and `end` < '2025-02-12 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-12 18:05:18] Production.INFO: count ==3620 [2025-02-12 18:05:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:05:05 - End Time 2025-02-12 18:05:05 [2025-02-12 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460785', 'tblTempUsageDetail_20' ) start [2025-02-12 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460785', 'tblTempUsageDetail_20' ) end [2025-02-12 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460785', 'tblTempVendorCDR_20' ) start [2025-02-12 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460785', 'tblTempVendorCDR_20' ) end [2025-02-12 18:05:20] Production.INFO: ProcessCDR(1,14460785,1,1,2) [2025-02-12 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460785', 'tblTempUsageDetail_20' ) start [2025-02-12 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460785', 'tblTempUsageDetail_20' ) end [2025-02-12 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:05:23] Production.INFO: ==1665== Releasing lock... [2025-02-12 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:05:23] Production.INFO: 55 MB #Memory Used# [2025-02-12 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:06:05 [end_date_ymd] => 2025-02-12 18:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:06:05' and `end` < '2025-02-12 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-12 18:06:19] Production.INFO: count ==3608 [2025-02-12 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:06:05 - End Time 2025-02-12 18:06:05 [2025-02-12 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460790', 'tblTempUsageDetail_20' ) start [2025-02-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460790', 'tblTempUsageDetail_20' ) end [2025-02-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460790', 'tblTempVendorCDR_20' ) start [2025-02-12 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460790', 'tblTempVendorCDR_20' ) end [2025-02-12 18:06:21] Production.INFO: ProcessCDR(1,14460790,1,1,2) [2025-02-12 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460790', 'tblTempUsageDetail_20' ) start [2025-02-12 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460790', 'tblTempUsageDetail_20' ) end [2025-02-12 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:06:24] Production.INFO: ==1746== Releasing lock... [2025-02-12 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:06:24] Production.INFO: 55 MB #Memory Used# [2025-02-12 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:07:05 [end_date_ymd] => 2025-02-12 18:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:07:05' and `end` < '2025-02-12 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-12 18:07:19] Production.INFO: count ==3605 [2025-02-12 18:07:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:07:05 - End Time 2025-02-12 18:07:05 [2025-02-12 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460795', 'tblTempUsageDetail_20' ) start [2025-02-12 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460795', 'tblTempUsageDetail_20' ) end [2025-02-12 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460795', 'tblTempVendorCDR_20' ) start [2025-02-12 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460795', 'tblTempVendorCDR_20' ) end [2025-02-12 18:07:20] Production.INFO: ProcessCDR(1,14460795,1,1,2) [2025-02-12 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460795', 'tblTempUsageDetail_20' ) start [2025-02-12 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460795', 'tblTempUsageDetail_20' ) end [2025-02-12 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:07:23] Production.INFO: ==1828== Releasing lock... [2025-02-12 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:07:23] Production.INFO: 55 MB #Memory Used# [2025-02-12 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:08:06 [end_date_ymd] => 2025-02-12 18:08:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:08:06' and `end` < '2025-02-12 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-12 18:08:20] Production.INFO: count ==3590 [2025-02-12 18:08:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:08:06 - End Time 2025-02-12 18:08:06 [2025-02-12 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460800', 'tblTempUsageDetail_20' ) start [2025-02-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460800', 'tblTempUsageDetail_20' ) end [2025-02-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460800', 'tblTempVendorCDR_20' ) start [2025-02-12 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460800', 'tblTempVendorCDR_20' ) end [2025-02-12 18:08:21] Production.INFO: ProcessCDR(1,14460800,1,1,2) [2025-02-12 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460800', 'tblTempUsageDetail_20' ) start [2025-02-12 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460800', 'tblTempUsageDetail_20' ) end [2025-02-12 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:08:26] Production.INFO: ==1906== Releasing lock... [2025-02-12 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:08:26] Production.INFO: 54.75 MB #Memory Used# [2025-02-12 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:09:05 [end_date_ymd] => 2025-02-12 18:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:09:05' and `end` < '2025-02-12 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-12 18:09:18] Production.INFO: count ==3554 [2025-02-12 18:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:09:05 - End Time 2025-02-12 18:09:05 [2025-02-12 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460805', 'tblTempUsageDetail_20' ) start [2025-02-12 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460805', 'tblTempUsageDetail_20' ) end [2025-02-12 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460805', 'tblTempVendorCDR_20' ) start [2025-02-12 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460805', 'tblTempVendorCDR_20' ) end [2025-02-12 18:09:20] Production.INFO: ProcessCDR(1,14460805,1,1,2) [2025-02-12 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460805', 'tblTempUsageDetail_20' ) start [2025-02-12 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460805', 'tblTempUsageDetail_20' ) end [2025-02-12 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:09:23] Production.INFO: ==2021== Releasing lock... [2025-02-12 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:09:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-12 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:10:06 [end_date_ymd] => 2025-02-12 18:10:06 [RateCDR] => 1 ) [2025-02-12 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:10:06' and `end` < '2025-02-12 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:10:20] Production.INFO: count ==3505 [2025-02-12 18:10:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:10:06 - End Time 2025-02-12 18:10:06 [2025-02-12 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460811', 'tblTempUsageDetail_20' ) start [2025-02-12 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460811', 'tblTempUsageDetail_20' ) end [2025-02-12 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460811', 'tblTempVendorCDR_20' ) start [2025-02-12 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460811', 'tblTempVendorCDR_20' ) end [2025-02-12 18:10:22] Production.INFO: ProcessCDR(1,14460811,1,1,2) [2025-02-12 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460811', 'tblTempUsageDetail_20' ) start [2025-02-12 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460811', 'tblTempUsageDetail_20' ) end [2025-02-12 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:10:25] Production.INFO: ==2105== Releasing lock... [2025-02-12 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:10:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-12 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:11:05 [end_date_ymd] => 2025-02-12 18:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:11:05' and `end` < '2025-02-12 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-12 18:11:20] Production.INFO: count ==3428 [2025-02-12 18:11:22] Production.ERROR: pbx CDR StartTime 2025-02-12 15:11:05 - End Time 2025-02-12 18:11:05 [2025-02-12 18:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460816', 'tblTempUsageDetail_20' ) start [2025-02-12 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460816', 'tblTempUsageDetail_20' ) end [2025-02-12 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460816', 'tblTempVendorCDR_20' ) start [2025-02-12 18:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460816', 'tblTempVendorCDR_20' ) end [2025-02-12 18:11:22] Production.INFO: ProcessCDR(1,14460816,1,1,2) [2025-02-12 18:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460816', 'tblTempUsageDetail_20' ) start [2025-02-12 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460816', 'tblTempUsageDetail_20' ) end [2025-02-12 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:11:25] Production.INFO: ==2185== Releasing lock... [2025-02-12 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:11:25] Production.INFO: 53.75 MB #Memory Used# [2025-02-12 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:12:05 [end_date_ymd] => 2025-02-12 18:12:05 [RateCDR] => 1 ) [2025-02-12 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:12:05' and `end` < '2025-02-12 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-12 18:12:19] Production.INFO: count ==3414 [2025-02-12 18:12:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:12:05 - End Time 2025-02-12 18:12:05 [2025-02-12 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460821', 'tblTempUsageDetail_20' ) start [2025-02-12 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460821', 'tblTempUsageDetail_20' ) end [2025-02-12 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460821', 'tblTempVendorCDR_20' ) start [2025-02-12 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460821', 'tblTempVendorCDR_20' ) end [2025-02-12 18:12:20] Production.INFO: ProcessCDR(1,14460821,1,1,2) [2025-02-12 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460821', 'tblTempUsageDetail_20' ) start [2025-02-12 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460821', 'tblTempUsageDetail_20' ) end [2025-02-12 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:12:25] Production.INFO: ==2265== Releasing lock... [2025-02-12 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:12:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-12 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:13:05 [end_date_ymd] => 2025-02-12 18:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:13:05' and `end` < '2025-02-12 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-12 18:13:19] Production.INFO: count ==3397 [2025-02-12 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:13:05 - End Time 2025-02-12 18:13:05 [2025-02-12 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460826', 'tblTempUsageDetail_20' ) start [2025-02-12 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460826', 'tblTempUsageDetail_20' ) end [2025-02-12 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460826', 'tblTempVendorCDR_20' ) start [2025-02-12 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460826', 'tblTempVendorCDR_20' ) end [2025-02-12 18:13:20] Production.INFO: ProcessCDR(1,14460826,1,1,2) [2025-02-12 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460826', 'tblTempUsageDetail_20' ) start [2025-02-12 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460826', 'tblTempUsageDetail_20' ) end [2025-02-12 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:13:25] Production.INFO: ==2343== Releasing lock... [2025-02-12 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:13:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-12 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:14:06 [end_date_ymd] => 2025-02-12 18:14:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:14:06' and `end` < '2025-02-12 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-12 18:14:20] Production.INFO: count ==3381 [2025-02-12 18:14:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:14:06 - End Time 2025-02-12 18:14:06 [2025-02-12 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460831', 'tblTempUsageDetail_20' ) start [2025-02-12 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460831', 'tblTempUsageDetail_20' ) end [2025-02-12 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460831', 'tblTempVendorCDR_20' ) start [2025-02-12 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460831', 'tblTempVendorCDR_20' ) end [2025-02-12 18:14:21] Production.INFO: ProcessCDR(1,14460831,1,1,2) [2025-02-12 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460831', 'tblTempUsageDetail_20' ) start [2025-02-12 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460831', 'tblTempUsageDetail_20' ) end [2025-02-12 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:14:25] Production.INFO: ==2420== Releasing lock... [2025-02-12 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:14:25] Production.INFO: 54 MB #Memory Used# [2025-02-12 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:15:04 [end_date_ymd] => 2025-02-12 18:15:04 [RateCDR] => 1 ) [2025-02-12 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:15:04' and `end` < '2025-02-12 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:15:18] Production.INFO: count ==3370 [2025-02-12 18:15:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:15:04 - End Time 2025-02-12 18:15:04 [2025-02-12 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460836', 'tblTempUsageDetail_20' ) start [2025-02-12 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460836', 'tblTempUsageDetail_20' ) end [2025-02-12 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460836', 'tblTempVendorCDR_20' ) start [2025-02-12 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460836', 'tblTempVendorCDR_20' ) end [2025-02-12 18:15:19] Production.INFO: ProcessCDR(1,14460836,1,1,2) [2025-02-12 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460836', 'tblTempUsageDetail_20' ) start [2025-02-12 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460836', 'tblTempUsageDetail_20' ) end [2025-02-12 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:15:22] Production.INFO: ==2500== Releasing lock... [2025-02-12 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:15:22] Production.INFO: 53.5 MB #Memory Used# [2025-02-12 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:16:05 [end_date_ymd] => 2025-02-12 18:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:16:05' and `end` < '2025-02-12 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-12 18:16:19] Production.INFO: count ==3367 [2025-02-12 18:16:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:16:05 - End Time 2025-02-12 18:16:05 [2025-02-12 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460841', 'tblTempUsageDetail_20' ) start [2025-02-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460841', 'tblTempUsageDetail_20' ) end [2025-02-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460841', 'tblTempVendorCDR_20' ) start [2025-02-12 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460841', 'tblTempVendorCDR_20' ) end [2025-02-12 18:16:20] Production.INFO: ProcessCDR(1,14460841,1,1,2) [2025-02-12 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460841', 'tblTempUsageDetail_20' ) start [2025-02-12 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460841', 'tblTempUsageDetail_20' ) end [2025-02-12 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:16:23] Production.INFO: ==2579== Releasing lock... [2025-02-12 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:16:23] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:17:05 [end_date_ymd] => 2025-02-12 18:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:17:05' and `end` < '2025-02-12 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-12 18:17:19] Production.INFO: count ==3363 [2025-02-12 18:17:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:17:05 - End Time 2025-02-12 18:17:05 [2025-02-12 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460846', 'tblTempUsageDetail_20' ) start [2025-02-12 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460846', 'tblTempUsageDetail_20' ) end [2025-02-12 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460846', 'tblTempVendorCDR_20' ) start [2025-02-12 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460846', 'tblTempVendorCDR_20' ) end [2025-02-12 18:17:20] Production.INFO: ProcessCDR(1,14460846,1,1,2) [2025-02-12 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460846', 'tblTempUsageDetail_20' ) start [2025-02-12 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460846', 'tblTempUsageDetail_20' ) end [2025-02-12 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:17:24] Production.INFO: ==2654== Releasing lock... [2025-02-12 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:17:24] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:18:05 [end_date_ymd] => 2025-02-12 18:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:18:05' and `end` < '2025-02-12 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-12 18:18:19] Production.INFO: count ==3356 [2025-02-12 18:18:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:18:05 - End Time 2025-02-12 18:18:05 [2025-02-12 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460851', 'tblTempUsageDetail_20' ) start [2025-02-12 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460851', 'tblTempUsageDetail_20' ) end [2025-02-12 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460851', 'tblTempVendorCDR_20' ) start [2025-02-12 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460851', 'tblTempVendorCDR_20' ) end [2025-02-12 18:18:20] Production.INFO: ProcessCDR(1,14460851,1,1,2) [2025-02-12 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460851', 'tblTempUsageDetail_20' ) start [2025-02-12 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460851', 'tblTempUsageDetail_20' ) end [2025-02-12 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:18:23] Production.INFO: ==2734== Releasing lock... [2025-02-12 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:18:23] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:19:05 [end_date_ymd] => 2025-02-12 18:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:19:05' and `end` < '2025-02-12 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-12 18:19:18] Production.INFO: count ==3338 [2025-02-12 18:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:19:05 - End Time 2025-02-12 18:19:05 [2025-02-12 18:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460856', 'tblTempUsageDetail_20' ) start [2025-02-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460856', 'tblTempUsageDetail_20' ) end [2025-02-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460856', 'tblTempVendorCDR_20' ) start [2025-02-12 18:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460856', 'tblTempVendorCDR_20' ) end [2025-02-12 18:19:19] Production.INFO: ProcessCDR(1,14460856,1,1,2) [2025-02-12 18:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460856', 'tblTempUsageDetail_20' ) start [2025-02-12 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460856', 'tblTempUsageDetail_20' ) end [2025-02-12 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:19:24] Production.INFO: ==2816== Releasing lock... [2025-02-12 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:19:24] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:20:06 [end_date_ymd] => 2025-02-12 18:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:20:06' and `end` < '2025-02-12 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-12 18:20:23] Production.INFO: count ==3334 [2025-02-12 18:20:24] Production.ERROR: pbx CDR StartTime 2025-02-12 15:20:06 - End Time 2025-02-12 18:20:06 [2025-02-12 18:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460862', 'tblTempUsageDetail_20' ) start [2025-02-12 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460862', 'tblTempUsageDetail_20' ) end [2025-02-12 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460862', 'tblTempVendorCDR_20' ) start [2025-02-12 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460862', 'tblTempVendorCDR_20' ) end [2025-02-12 18:20:24] Production.INFO: ProcessCDR(1,14460862,1,1,2) [2025-02-12 18:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460862', 'tblTempUsageDetail_20' ) start [2025-02-12 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460862', 'tblTempUsageDetail_20' ) end [2025-02-12 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:20:27] Production.INFO: ==2892== Releasing lock... [2025-02-12 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:20:27] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:21:05 [end_date_ymd] => 2025-02-12 18:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:21:05' and `end` < '2025-02-12 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-12 18:21:21] Production.INFO: count ==3286 [2025-02-12 18:21:22] Production.ERROR: pbx CDR StartTime 2025-02-12 15:21:05 - End Time 2025-02-12 18:21:05 [2025-02-12 18:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460867', 'tblTempUsageDetail_20' ) start [2025-02-12 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460867', 'tblTempUsageDetail_20' ) end [2025-02-12 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460867', 'tblTempVendorCDR_20' ) start [2025-02-12 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460867', 'tblTempVendorCDR_20' ) end [2025-02-12 18:21:22] Production.INFO: ProcessCDR(1,14460867,1,1,2) [2025-02-12 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460867', 'tblTempUsageDetail_20' ) start [2025-02-12 18:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460867', 'tblTempUsageDetail_20' ) end [2025-02-12 18:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:21:27] Production.INFO: ==2972== Releasing lock... [2025-02-12 18:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:21:27] Production.INFO: 52.75 MB #Memory Used# [2025-02-12 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:22:05 [end_date_ymd] => 2025-02-12 18:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:22:05' and `end` < '2025-02-12 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-12 18:22:20] Production.INFO: count ==3279 [2025-02-12 18:22:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:22:05 - End Time 2025-02-12 18:22:05 [2025-02-12 18:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460872', 'tblTempUsageDetail_20' ) start [2025-02-12 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460872', 'tblTempUsageDetail_20' ) end [2025-02-12 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460872', 'tblTempVendorCDR_20' ) start [2025-02-12 18:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460872', 'tblTempVendorCDR_20' ) end [2025-02-12 18:22:21] Production.INFO: ProcessCDR(1,14460872,1,1,2) [2025-02-12 18:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460872', 'tblTempUsageDetail_20' ) start [2025-02-12 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460872', 'tblTempUsageDetail_20' ) end [2025-02-12 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:22:26] Production.INFO: ==3050== Releasing lock... [2025-02-12 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:22:26] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:23:04 [end_date_ymd] => 2025-02-12 18:23:04 [RateCDR] => 1 ) [2025-02-12 18: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-12 15:23:04' and `end` < '2025-02-12 18: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-12 18:23:18] Production.INFO: count ==3269 [2025-02-12 18:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:23:04 - End Time 2025-02-12 18:23:04 [2025-02-12 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460877', 'tblTempUsageDetail_20' ) start [2025-02-12 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460877', 'tblTempUsageDetail_20' ) end [2025-02-12 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460877', 'tblTempVendorCDR_20' ) start [2025-02-12 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460877', 'tblTempVendorCDR_20' ) end [2025-02-12 18:23:19] Production.INFO: ProcessCDR(1,14460877,1,1,2) [2025-02-12 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460877', 'tblTempUsageDetail_20' ) start [2025-02-12 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460877', 'tblTempUsageDetail_20' ) end [2025-02-12 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:23:24] Production.INFO: ==3135== Releasing lock... [2025-02-12 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:23:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-12 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:24:05 [end_date_ymd] => 2025-02-12 18:24:05 [RateCDR] => 1 ) [2025-02-12 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:24:05' and `end` < '2025-02-12 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:24:20] Production.INFO: count ==3250 [2025-02-12 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:24:05 - End Time 2025-02-12 18:24:05 [2025-02-12 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460882', 'tblTempUsageDetail_20' ) start [2025-02-12 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460882', 'tblTempUsageDetail_20' ) end [2025-02-12 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460882', 'tblTempVendorCDR_20' ) start [2025-02-12 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460882', 'tblTempVendorCDR_20' ) end [2025-02-12 18:24:21] Production.INFO: ProcessCDR(1,14460882,1,1,2) [2025-02-12 18:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460882', 'tblTempUsageDetail_20' ) start [2025-02-12 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460882', 'tblTempUsageDetail_20' ) end [2025-02-12 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:24:26] Production.INFO: ==3252== Releasing lock... [2025-02-12 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:24:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-12 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:25:05 [end_date_ymd] => 2025-02-12 18:25:05 [RateCDR] => 1 ) [2025-02-12 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:25:05' and `end` < '2025-02-12 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:25:18] Production.INFO: count ==3260 [2025-02-12 18:25:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:25:05 - End Time 2025-02-12 18:25:05 [2025-02-12 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460887', 'tblTempUsageDetail_20' ) start [2025-02-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460887', 'tblTempUsageDetail_20' ) end [2025-02-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460887', 'tblTempVendorCDR_20' ) start [2025-02-12 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460887', 'tblTempVendorCDR_20' ) end [2025-02-12 18:25:19] Production.INFO: ProcessCDR(1,14460887,1,1,2) [2025-02-12 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460887', 'tblTempUsageDetail_20' ) start [2025-02-12 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460887', 'tblTempUsageDetail_20' ) end [2025-02-12 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:25:24] Production.INFO: ==3331== Releasing lock... [2025-02-12 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:25:24] Production.INFO: 52.25 MB #Memory Used# [2025-02-12 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:26:05 [end_date_ymd] => 2025-02-12 18:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:26:05' and `end` < '2025-02-12 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-12 18:26:20] Production.INFO: count ==3245 [2025-02-12 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:26:05 - End Time 2025-02-12 18:26:05 [2025-02-12 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460892', 'tblTempUsageDetail_20' ) start [2025-02-12 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460892', 'tblTempUsageDetail_20' ) end [2025-02-12 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460892', 'tblTempVendorCDR_20' ) start [2025-02-12 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460892', 'tblTempVendorCDR_20' ) end [2025-02-12 18:26:21] Production.INFO: ProcessCDR(1,14460892,1,1,2) [2025-02-12 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460892', 'tblTempUsageDetail_20' ) start [2025-02-12 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460892', 'tblTempUsageDetail_20' ) end [2025-02-12 18:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:26:25] Production.INFO: ==3407== Releasing lock... [2025-02-12 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:26:25] Production.INFO: 53 MB #Memory Used# [2025-02-12 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:27:05 [end_date_ymd] => 2025-02-12 18:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:27:05' and `end` < '2025-02-12 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-12 18:27:18] Production.INFO: count ==3252 [2025-02-12 18:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:27:05 - End Time 2025-02-12 18:27:05 [2025-02-12 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460897', 'tblTempUsageDetail_20' ) start [2025-02-12 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460897', 'tblTempUsageDetail_20' ) end [2025-02-12 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460897', 'tblTempVendorCDR_20' ) start [2025-02-12 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460897', 'tblTempVendorCDR_20' ) end [2025-02-12 18:27:19] Production.INFO: ProcessCDR(1,14460897,1,1,2) [2025-02-12 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460897', 'tblTempUsageDetail_20' ) start [2025-02-12 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460897', 'tblTempUsageDetail_20' ) end [2025-02-12 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:27:23] Production.INFO: ==3484== Releasing lock... [2025-02-12 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:27:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-12 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:28:05 [end_date_ymd] => 2025-02-12 18:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:28:05' and `end` < '2025-02-12 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-12 18:28:19] Production.INFO: count ==3248 [2025-02-12 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:28:05 - End Time 2025-02-12 18:28:05 [2025-02-12 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460902', 'tblTempUsageDetail_20' ) start [2025-02-12 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460902', 'tblTempUsageDetail_20' ) end [2025-02-12 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460902', 'tblTempVendorCDR_20' ) start [2025-02-12 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460902', 'tblTempVendorCDR_20' ) end [2025-02-12 18:28:20] Production.INFO: ProcessCDR(1,14460902,1,1,2) [2025-02-12 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460902', 'tblTempUsageDetail_20' ) start [2025-02-12 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460902', 'tblTempUsageDetail_20' ) end [2025-02-12 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:28:24] Production.INFO: ==3564== Releasing lock... [2025-02-12 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:28:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-12 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:29:05 [end_date_ymd] => 2025-02-12 18:29:05 [RateCDR] => 1 ) [2025-02-12 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:29:05' and `end` < '2025-02-12 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:29:19] Production.INFO: count ==3236 [2025-02-12 18:29:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:29:05 - End Time 2025-02-12 18:29:05 [2025-02-12 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460907', 'tblTempUsageDetail_20' ) start [2025-02-12 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460907', 'tblTempUsageDetail_20' ) end [2025-02-12 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460907', 'tblTempVendorCDR_20' ) start [2025-02-12 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460907', 'tblTempVendorCDR_20' ) end [2025-02-12 18:29:20] Production.INFO: ProcessCDR(1,14460907,1,1,2) [2025-02-12 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460907', 'tblTempUsageDetail_20' ) start [2025-02-12 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460907', 'tblTempUsageDetail_20' ) end [2025-02-12 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:29:23] Production.INFO: ==3645== Releasing lock... [2025-02-12 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:29:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-12 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:30:06 [end_date_ymd] => 2025-02-12 18:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:30:06' and `end` < '2025-02-12 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-12 18:30:19] Production.INFO: count ==3216 [2025-02-12 18:30:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:30:06 - End Time 2025-02-12 18:30:06 [2025-02-12 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460913', 'tblTempUsageDetail_20' ) start [2025-02-12 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460913', 'tblTempUsageDetail_20' ) end [2025-02-12 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460913', 'tblTempVendorCDR_20' ) start [2025-02-12 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460913', 'tblTempVendorCDR_20' ) end [2025-02-12 18:30:20] Production.INFO: ProcessCDR(1,14460913,1,1,2) [2025-02-12 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460913', 'tblTempUsageDetail_20' ) start [2025-02-12 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460913', 'tblTempUsageDetail_20' ) end [2025-02-12 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:30:25] Production.INFO: ==3728== Releasing lock... [2025-02-12 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:30:25] Production.INFO: 52 MB #Memory Used# [2025-02-12 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:31:06 [end_date_ymd] => 2025-02-12 18:31:06 [RateCDR] => 1 ) [2025-02-12 18:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:31:06' and `end` < '2025-02-12 18:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:31:20] Production.INFO: count ==3142 [2025-02-12 18:31:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:31:06 - End Time 2025-02-12 18:31:06 [2025-02-12 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460918', 'tblTempUsageDetail_20' ) start [2025-02-12 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460918', 'tblTempUsageDetail_20' ) end [2025-02-12 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460918', 'tblTempVendorCDR_20' ) start [2025-02-12 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460918', 'tblTempVendorCDR_20' ) end [2025-02-12 18:31:21] Production.INFO: ProcessCDR(1,14460918,1,1,2) [2025-02-12 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460918', 'tblTempUsageDetail_20' ) start [2025-02-12 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460918', 'tblTempUsageDetail_20' ) end [2025-02-12 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:31:25] Production.INFO: ==3810== Releasing lock... [2025-02-12 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:31:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-12 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:32:05 [end_date_ymd] => 2025-02-12 18:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:32:05' and `end` < '2025-02-12 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-12 18:32:21] Production.INFO: count ==3121 [2025-02-12 18:32:22] Production.ERROR: pbx CDR StartTime 2025-02-12 15:32:05 - End Time 2025-02-12 18:32:05 [2025-02-12 18:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460923', 'tblTempUsageDetail_20' ) start [2025-02-12 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460923', 'tblTempUsageDetail_20' ) end [2025-02-12 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460923', 'tblTempVendorCDR_20' ) start [2025-02-12 18:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460923', 'tblTempVendorCDR_20' ) end [2025-02-12 18:32:22] Production.INFO: ProcessCDR(1,14460923,1,1,2) [2025-02-12 18:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460923', 'tblTempUsageDetail_20' ) start [2025-02-12 18:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460923', 'tblTempUsageDetail_20' ) end [2025-02-12 18:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:32:27] Production.INFO: ==3885== Releasing lock... [2025-02-12 18:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:32:27] Production.INFO: 52.25 MB #Memory Used# [2025-02-12 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:33:06 [end_date_ymd] => 2025-02-12 18:33:06 [RateCDR] => 1 ) [2025-02-12 18:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:33:06' and `end` < '2025-02-12 18:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:33:19] Production.INFO: count ==3108 [2025-02-12 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:33:06 - End Time 2025-02-12 18:33:06 [2025-02-12 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460928', 'tblTempUsageDetail_20' ) start [2025-02-12 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460928', 'tblTempUsageDetail_20' ) end [2025-02-12 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460928', 'tblTempVendorCDR_20' ) start [2025-02-12 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460928', 'tblTempVendorCDR_20' ) end [2025-02-12 18:33:20] Production.INFO: ProcessCDR(1,14460928,1,1,2) [2025-02-12 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460928', 'tblTempUsageDetail_20' ) start [2025-02-12 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460928', 'tblTempUsageDetail_20' ) end [2025-02-12 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:33:25] Production.INFO: ==3967== Releasing lock... [2025-02-12 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:33:25] Production.INFO: 51.25 MB #Memory Used# [2025-02-12 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:34:05 [end_date_ymd] => 2025-02-12 18:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:34:05' and `end` < '2025-02-12 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-12 18:34:18] Production.INFO: count ==3112 [2025-02-12 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:34:05 - End Time 2025-02-12 18:34:05 [2025-02-12 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460933', 'tblTempUsageDetail_20' ) start [2025-02-12 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460933', 'tblTempUsageDetail_20' ) end [2025-02-12 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460933', 'tblTempVendorCDR_20' ) start [2025-02-12 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460933', 'tblTempVendorCDR_20' ) end [2025-02-12 18:34:20] Production.INFO: ProcessCDR(1,14460933,1,1,2) [2025-02-12 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460933', 'tblTempUsageDetail_20' ) start [2025-02-12 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460933', 'tblTempUsageDetail_20' ) end [2025-02-12 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:34:24] Production.INFO: ==4047== Releasing lock... [2025-02-12 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:34:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-12 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:35:05 [end_date_ymd] => 2025-02-12 18:35:05 [RateCDR] => 1 ) [2025-02-12 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:35:05' and `end` < '2025-02-12 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:35:20] Production.INFO: count ==3099 [2025-02-12 18:35:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:35:05 - End Time 2025-02-12 18:35:05 [2025-02-12 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460938', 'tblTempUsageDetail_20' ) start [2025-02-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460938', 'tblTempUsageDetail_20' ) end [2025-02-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460938', 'tblTempVendorCDR_20' ) start [2025-02-12 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460938', 'tblTempVendorCDR_20' ) end [2025-02-12 18:35:21] Production.INFO: ProcessCDR(1,14460938,1,1,2) [2025-02-12 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460938', 'tblTempUsageDetail_20' ) start [2025-02-12 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460938', 'tblTempUsageDetail_20' ) end [2025-02-12 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:35:26] Production.INFO: ==4126== Releasing lock... [2025-02-12 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:35:26] Production.INFO: 51.25 MB #Memory Used# [2025-02-12 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:36:05 [end_date_ymd] => 2025-02-12 18:36:05 [RateCDR] => 1 ) [2025-02-12 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:36:05' and `end` < '2025-02-12 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:36:19] Production.INFO: count ==3082 [2025-02-12 18:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:36:05 - End Time 2025-02-12 18:36:05 [2025-02-12 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460943', 'tblTempUsageDetail_20' ) start [2025-02-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460943', 'tblTempUsageDetail_20' ) end [2025-02-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460943', 'tblTempVendorCDR_20' ) start [2025-02-12 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460943', 'tblTempVendorCDR_20' ) end [2025-02-12 18:36:20] Production.INFO: ProcessCDR(1,14460943,1,1,2) [2025-02-12 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460943', 'tblTempUsageDetail_20' ) start [2025-02-12 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460943', 'tblTempUsageDetail_20' ) end [2025-02-12 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:36:24] Production.INFO: ==4206== Releasing lock... [2025-02-12 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:36:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-12 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:37:05 [end_date_ymd] => 2025-02-12 18:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:37:05' and `end` < '2025-02-12 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-12 18:37:18] Production.INFO: count ==3058 [2025-02-12 18:37:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:37:05 - End Time 2025-02-12 18:37:05 [2025-02-12 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460948', 'tblTempUsageDetail_20' ) start [2025-02-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460948', 'tblTempUsageDetail_20' ) end [2025-02-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460948', 'tblTempVendorCDR_20' ) start [2025-02-12 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460948', 'tblTempVendorCDR_20' ) end [2025-02-12 18:37:19] Production.INFO: ProcessCDR(1,14460948,1,1,2) [2025-02-12 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460948', 'tblTempUsageDetail_20' ) start [2025-02-12 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460948', 'tblTempUsageDetail_20' ) end [2025-02-12 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:37:24] Production.INFO: ==4287== Releasing lock... [2025-02-12 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:37:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-12 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:38:05 [end_date_ymd] => 2025-02-12 18:38:05 [RateCDR] => 1 ) [2025-02-12 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:38:05' and `end` < '2025-02-12 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:38:19] Production.INFO: count ==3033 [2025-02-12 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:38:05 - End Time 2025-02-12 18:38:05 [2025-02-12 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460953', 'tblTempUsageDetail_20' ) start [2025-02-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460953', 'tblTempUsageDetail_20' ) end [2025-02-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460953', 'tblTempVendorCDR_20' ) start [2025-02-12 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460953', 'tblTempVendorCDR_20' ) end [2025-02-12 18:38:20] Production.INFO: ProcessCDR(1,14460953,1,1,2) [2025-02-12 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460953', 'tblTempUsageDetail_20' ) start [2025-02-12 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460953', 'tblTempUsageDetail_20' ) end [2025-02-12 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:38:24] Production.INFO: ==4365== Releasing lock... [2025-02-12 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:38:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-12 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:39:05 [end_date_ymd] => 2025-02-12 18:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:39:05' and `end` < '2025-02-12 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-12 18:39:18] Production.INFO: count ==3021 [2025-02-12 18:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:39:05 - End Time 2025-02-12 18:39:05 [2025-02-12 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460958', 'tblTempUsageDetail_20' ) start [2025-02-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460958', 'tblTempUsageDetail_20' ) end [2025-02-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460958', 'tblTempVendorCDR_20' ) start [2025-02-12 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460958', 'tblTempVendorCDR_20' ) end [2025-02-12 18:39:19] Production.INFO: ProcessCDR(1,14460958,1,1,2) [2025-02-12 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460958', 'tblTempUsageDetail_20' ) start [2025-02-12 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460958', 'tblTempUsageDetail_20' ) end [2025-02-12 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:39:23] Production.INFO: ==4469== Releasing lock... [2025-02-12 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:39:23] Production.INFO: 50.5 MB #Memory Used# [2025-02-12 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:40:06 [end_date_ymd] => 2025-02-12 18:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:40:06' and `end` < '2025-02-12 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-12 18:40:19] Production.INFO: count ==2996 [2025-02-12 18:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:40:06 - End Time 2025-02-12 18:40:06 [2025-02-12 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460964', 'tblTempUsageDetail_20' ) start [2025-02-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460964', 'tblTempUsageDetail_20' ) end [2025-02-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460964', 'tblTempVendorCDR_20' ) start [2025-02-12 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460964', 'tblTempVendorCDR_20' ) end [2025-02-12 18:40:20] Production.INFO: ProcessCDR(1,14460964,1,1,2) [2025-02-12 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460964', 'tblTempUsageDetail_20' ) start [2025-02-12 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460964', 'tblTempUsageDetail_20' ) end [2025-02-12 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:40:24] Production.INFO: ==4562== Releasing lock... [2025-02-12 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:40:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-12 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:41:05 [end_date_ymd] => 2025-02-12 18:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:41:05' and `end` < '2025-02-12 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-12 18:41:19] Production.INFO: count ==2952 [2025-02-12 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:41:05 - End Time 2025-02-12 18:41:05 [2025-02-12 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460969', 'tblTempUsageDetail_20' ) start [2025-02-12 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460969', 'tblTempUsageDetail_20' ) end [2025-02-12 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460969', 'tblTempVendorCDR_20' ) start [2025-02-12 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460969', 'tblTempVendorCDR_20' ) end [2025-02-12 18:41:20] Production.INFO: ProcessCDR(1,14460969,1,1,2) [2025-02-12 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460969', 'tblTempUsageDetail_20' ) start [2025-02-12 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460969', 'tblTempUsageDetail_20' ) end [2025-02-12 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:41:23] Production.INFO: ==4651== Releasing lock... [2025-02-12 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:41:23] Production.INFO: 50 MB #Memory Used# [2025-02-12 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:42:05 [end_date_ymd] => 2025-02-12 18:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:42:05' and `end` < '2025-02-12 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-12 18:42:19] Production.INFO: count ==2927 [2025-02-12 18:42:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:42:05 - End Time 2025-02-12 18:42:05 [2025-02-12 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460974', 'tblTempUsageDetail_20' ) start [2025-02-12 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460974', 'tblTempUsageDetail_20' ) end [2025-02-12 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460974', 'tblTempVendorCDR_20' ) start [2025-02-12 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460974', 'tblTempVendorCDR_20' ) end [2025-02-12 18:42:20] Production.INFO: ProcessCDR(1,14460974,1,1,2) [2025-02-12 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460974', 'tblTempUsageDetail_20' ) start [2025-02-12 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460974', 'tblTempUsageDetail_20' ) end [2025-02-12 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:42:23] Production.INFO: ==4730== Releasing lock... [2025-02-12 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:42:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:43:05 [end_date_ymd] => 2025-02-12 18:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:43:05' and `end` < '2025-02-12 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-12 18:43:19] Production.INFO: count ==2917 [2025-02-12 18:43:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:43:05 - End Time 2025-02-12 18:43:05 [2025-02-12 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460979', 'tblTempUsageDetail_20' ) start [2025-02-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460979', 'tblTempUsageDetail_20' ) end [2025-02-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460979', 'tblTempVendorCDR_20' ) start [2025-02-12 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460979', 'tblTempVendorCDR_20' ) end [2025-02-12 18:43:20] Production.INFO: ProcessCDR(1,14460979,1,1,2) [2025-02-12 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460979', 'tblTempUsageDetail_20' ) start [2025-02-12 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460979', 'tblTempUsageDetail_20' ) end [2025-02-12 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:43:24] Production.INFO: ==4810== Releasing lock... [2025-02-12 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:43:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:44:04 [end_date_ymd] => 2025-02-12 18:44:04 [RateCDR] => 1 ) [2025-02-12 18: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-12 15:44:04' and `end` < '2025-02-12 18: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-12 18:44:19] Production.INFO: count ==2888 [2025-02-12 18:44:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:44:04 - End Time 2025-02-12 18:44:04 [2025-02-12 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460984', 'tblTempUsageDetail_20' ) start [2025-02-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460984', 'tblTempUsageDetail_20' ) end [2025-02-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460984', 'tblTempVendorCDR_20' ) start [2025-02-12 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460984', 'tblTempVendorCDR_20' ) end [2025-02-12 18:44:20] Production.INFO: ProcessCDR(1,14460984,1,1,2) [2025-02-12 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460984', 'tblTempUsageDetail_20' ) start [2025-02-12 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460984', 'tblTempUsageDetail_20' ) end [2025-02-12 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:44:23] Production.INFO: ==4888== Releasing lock... [2025-02-12 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:44:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:45:05 [end_date_ymd] => 2025-02-12 18:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:45:05' and `end` < '2025-02-12 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-12 18:45:20] Production.INFO: count ==2871 [2025-02-12 18:45:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:45:05 - End Time 2025-02-12 18:45:05 [2025-02-12 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460989', 'tblTempUsageDetail_20' ) start [2025-02-12 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460989', 'tblTempUsageDetail_20' ) end [2025-02-12 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460989', 'tblTempVendorCDR_20' ) start [2025-02-12 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460989', 'tblTempVendorCDR_20' ) end [2025-02-12 18:45:21] Production.INFO: ProcessCDR(1,14460989,1,1,2) [2025-02-12 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460989', 'tblTempUsageDetail_20' ) start [2025-02-12 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460989', 'tblTempUsageDetail_20' ) end [2025-02-12 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:45:24] Production.INFO: ==4970== Releasing lock... [2025-02-12 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:45:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-12 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:46:05 [end_date_ymd] => 2025-02-12 18:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:46:05' and `end` < '2025-02-12 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-12 18:46:19] Production.INFO: count ==2866 [2025-02-12 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:46:05 - End Time 2025-02-12 18:46:05 [2025-02-12 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460994', 'tblTempUsageDetail_20' ) start [2025-02-12 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460994', 'tblTempUsageDetail_20' ) end [2025-02-12 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460994', 'tblTempVendorCDR_20' ) start [2025-02-12 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460994', 'tblTempVendorCDR_20' ) end [2025-02-12 18:46:20] Production.INFO: ProcessCDR(1,14460994,1,1,2) [2025-02-12 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460994', 'tblTempUsageDetail_20' ) start [2025-02-12 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460994', 'tblTempUsageDetail_20' ) end [2025-02-12 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:46:23] Production.INFO: ==5047== Releasing lock... [2025-02-12 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:46:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-12 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:47:05 [end_date_ymd] => 2025-02-12 18:47:05 [RateCDR] => 1 ) [2025-02-12 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:47:05' and `end` < '2025-02-12 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:47:19] Production.INFO: count ==2853 [2025-02-12 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:47:05 - End Time 2025-02-12 18:47:05 [2025-02-12 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460999', 'tblTempUsageDetail_20' ) start [2025-02-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14460999', 'tblTempUsageDetail_20' ) end [2025-02-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460999', 'tblTempVendorCDR_20' ) start [2025-02-12 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14460999', 'tblTempVendorCDR_20' ) end [2025-02-12 18:47:19] Production.INFO: ProcessCDR(1,14460999,1,1,2) [2025-02-12 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14460999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14460999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14460999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14460999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460999', 'tblTempUsageDetail_20' ) start [2025-02-12 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14460999', 'tblTempUsageDetail_20' ) end [2025-02-12 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:47:24] Production.INFO: ==5132== Releasing lock... [2025-02-12 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:47:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-12 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:48:05 [end_date_ymd] => 2025-02-12 18:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:48:05' and `end` < '2025-02-12 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-12 18:48:20] Production.INFO: count ==2851 [2025-02-12 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-12 15:48:05 - End Time 2025-02-12 18:48:05 [2025-02-12 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461004', 'tblTempUsageDetail_20' ) start [2025-02-12 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461004', 'tblTempUsageDetail_20' ) end [2025-02-12 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461004', 'tblTempVendorCDR_20' ) start [2025-02-12 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461004', 'tblTempVendorCDR_20' ) end [2025-02-12 18:48:21] Production.INFO: ProcessCDR(1,14461004,1,1,2) [2025-02-12 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461004', 'tblTempUsageDetail_20' ) start [2025-02-12 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461004', 'tblTempUsageDetail_20' ) end [2025-02-12 18:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:48:26] Production.INFO: ==5215== Releasing lock... [2025-02-12 18:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:48:26] Production.INFO: 49.5 MB #Memory Used# [2025-02-12 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:49:05 [end_date_ymd] => 2025-02-12 18:49:05 [RateCDR] => 1 ) [2025-02-12 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 15:49:05' and `end` < '2025-02-12 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 18:49:18] Production.INFO: count ==2846 [2025-02-12 18:49:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:49:05 - End Time 2025-02-12 18:49:05 [2025-02-12 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461009', 'tblTempUsageDetail_20' ) start [2025-02-12 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461009', 'tblTempUsageDetail_20' ) end [2025-02-12 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461009', 'tblTempVendorCDR_20' ) start [2025-02-12 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461009', 'tblTempVendorCDR_20' ) end [2025-02-12 18:49:19] Production.INFO: ProcessCDR(1,14461009,1,1,2) [2025-02-12 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461009', 'tblTempUsageDetail_20' ) start [2025-02-12 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461009', 'tblTempUsageDetail_20' ) end [2025-02-12 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:49:23] Production.INFO: ==5294== Releasing lock... [2025-02-12 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:49:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-12 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:50:06 [end_date_ymd] => 2025-02-12 18:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 15:50:06' and `end` < '2025-02-12 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-12 18:50:19] Production.INFO: count ==2837 [2025-02-12 18:50:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:50:06 - End Time 2025-02-12 18:50:06 [2025-02-12 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461014', 'tblTempUsageDetail_20' ) start [2025-02-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461014', 'tblTempUsageDetail_20' ) end [2025-02-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461014', 'tblTempVendorCDR_20' ) start [2025-02-12 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461014', 'tblTempVendorCDR_20' ) end [2025-02-12 18:50:20] Production.INFO: ProcessCDR(1,14461014,1,1,2) [2025-02-12 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461014', 'tblTempUsageDetail_20' ) start [2025-02-12 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461014', 'tblTempUsageDetail_20' ) end [2025-02-12 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:50:23] Production.INFO: ==5377== Releasing lock... [2025-02-12 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:50:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-12 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:51:05 [end_date_ymd] => 2025-02-12 18:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:51:05' and `end` < '2025-02-12 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-12 18:51:19] Production.INFO: count ==2817 [2025-02-12 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:51:05 - End Time 2025-02-12 18:51:05 [2025-02-12 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461020', 'tblTempUsageDetail_20' ) start [2025-02-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461020', 'tblTempUsageDetail_20' ) end [2025-02-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461020', 'tblTempVendorCDR_20' ) start [2025-02-12 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461020', 'tblTempVendorCDR_20' ) end [2025-02-12 18:51:20] Production.INFO: ProcessCDR(1,14461020,1,1,2) [2025-02-12 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461020', 'tblTempUsageDetail_20' ) start [2025-02-12 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461020', 'tblTempUsageDetail_20' ) end [2025-02-12 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:51:24] Production.INFO: ==5456== Releasing lock... [2025-02-12 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:51:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-12 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:52:05 [end_date_ymd] => 2025-02-12 18:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:52:05' and `end` < '2025-02-12 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-12 18:52:19] Production.INFO: count ==2795 [2025-02-12 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:52:05 - End Time 2025-02-12 18:52:05 [2025-02-12 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461025', 'tblTempUsageDetail_20' ) start [2025-02-12 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461025', 'tblTempUsageDetail_20' ) end [2025-02-12 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461025', 'tblTempVendorCDR_20' ) start [2025-02-12 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461025', 'tblTempVendorCDR_20' ) end [2025-02-12 18:52:20] Production.INFO: ProcessCDR(1,14461025,1,1,2) [2025-02-12 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461025', 'tblTempUsageDetail_20' ) start [2025-02-12 18:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461025', 'tblTempUsageDetail_20' ) end [2025-02-12 18:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:52:23] Production.INFO: ==5533== Releasing lock... [2025-02-12 18:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:52:23] Production.INFO: 49 MB #Memory Used# [2025-02-12 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:53:04 [end_date_ymd] => 2025-02-12 18:53:04 [RateCDR] => 1 ) [2025-02-12 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-12 15:53:04' and `end` < '2025-02-12 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-12 18:53:19] Production.INFO: count ==2781 [2025-02-12 18:53:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:53:04 - End Time 2025-02-12 18:53:04 [2025-02-12 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461030', 'tblTempUsageDetail_20' ) start [2025-02-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461030', 'tblTempUsageDetail_20' ) end [2025-02-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461030', 'tblTempVendorCDR_20' ) start [2025-02-12 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461030', 'tblTempVendorCDR_20' ) end [2025-02-12 18:53:20] Production.INFO: ProcessCDR(1,14461030,1,1,2) [2025-02-12 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461030', 'tblTempUsageDetail_20' ) start [2025-02-12 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461030', 'tblTempUsageDetail_20' ) end [2025-02-12 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:53:24] Production.INFO: ==5615== Releasing lock... [2025-02-12 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:53:24] Production.INFO: 49 MB #Memory Used# [2025-02-12 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:54:05 [end_date_ymd] => 2025-02-12 18:54:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:54:05' and `end` < '2025-02-12 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-12 18:54:18] Production.INFO: count ==2754 [2025-02-12 18:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:54:05 - End Time 2025-02-12 18:54:05 [2025-02-12 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461035', 'tblTempUsageDetail_20' ) start [2025-02-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461035', 'tblTempUsageDetail_20' ) end [2025-02-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461035', 'tblTempVendorCDR_20' ) start [2025-02-12 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461035', 'tblTempVendorCDR_20' ) end [2025-02-12 18:54:19] Production.INFO: ProcessCDR(1,14461035,1,1,2) [2025-02-12 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461035', 'tblTempUsageDetail_20' ) start [2025-02-12 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461035', 'tblTempUsageDetail_20' ) end [2025-02-12 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:54:24] Production.INFO: ==5692== Releasing lock... [2025-02-12 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:54:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-12 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:55:05 [end_date_ymd] => 2025-02-12 18:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:55:05' and `end` < '2025-02-12 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-12 18:55:19] Production.INFO: count ==2739 [2025-02-12 18:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:55:05 - End Time 2025-02-12 18:55:05 [2025-02-12 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461040', 'tblTempUsageDetail_20' ) start [2025-02-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461040', 'tblTempUsageDetail_20' ) end [2025-02-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461040', 'tblTempVendorCDR_20' ) start [2025-02-12 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461040', 'tblTempVendorCDR_20' ) end [2025-02-12 18:55:19] Production.INFO: ProcessCDR(1,14461040,1,1,2) [2025-02-12 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461040', 'tblTempUsageDetail_20' ) start [2025-02-12 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461040', 'tblTempUsageDetail_20' ) end [2025-02-12 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:55:23] Production.INFO: ==5811== Releasing lock... [2025-02-12 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-12 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:56:04 [end_date_ymd] => 2025-02-12 18:56:04 [RateCDR] => 1 ) [2025-02-12 18: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-12 15:56:04' and `end` < '2025-02-12 18: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-12 18:56:18] Production.INFO: count ==2735 [2025-02-12 18:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:56:04 - End Time 2025-02-12 18:56:04 [2025-02-12 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461045', 'tblTempUsageDetail_20' ) start [2025-02-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461045', 'tblTempUsageDetail_20' ) end [2025-02-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461045', 'tblTempVendorCDR_20' ) start [2025-02-12 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461045', 'tblTempVendorCDR_20' ) end [2025-02-12 18:56:19] Production.INFO: ProcessCDR(1,14461045,1,1,2) [2025-02-12 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461045', 'tblTempUsageDetail_20' ) start [2025-02-12 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461045', 'tblTempUsageDetail_20' ) end [2025-02-12 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:56:24] Production.INFO: ==5892== Releasing lock... [2025-02-12 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:56:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:57:05 [end_date_ymd] => 2025-02-12 18:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:57:05' and `end` < '2025-02-12 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-12 18:57:19] Production.INFO: count ==2734 [2025-02-12 18:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:57:05 - End Time 2025-02-12 18:57:05 [2025-02-12 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461050', 'tblTempUsageDetail_20' ) start [2025-02-12 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461050', 'tblTempUsageDetail_20' ) end [2025-02-12 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461050', 'tblTempVendorCDR_20' ) start [2025-02-12 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461050', 'tblTempVendorCDR_20' ) end [2025-02-12 18:57:19] Production.INFO: ProcessCDR(1,14461050,1,1,2) [2025-02-12 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461050', 'tblTempUsageDetail_20' ) start [2025-02-12 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461050', 'tblTempUsageDetail_20' ) end [2025-02-12 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:57:24] Production.INFO: ==5971== Releasing lock... [2025-02-12 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:57:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:58:05 [end_date_ymd] => 2025-02-12 18:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:58:05' and `end` < '2025-02-12 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-12 18:58:18] Production.INFO: count ==2728 [2025-02-12 18:58:19] Production.ERROR: pbx CDR StartTime 2025-02-12 15:58:05 - End Time 2025-02-12 18:58:05 [2025-02-12 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461055', 'tblTempUsageDetail_20' ) start [2025-02-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461055', 'tblTempUsageDetail_20' ) end [2025-02-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461055', 'tblTempVendorCDR_20' ) start [2025-02-12 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461055', 'tblTempVendorCDR_20' ) end [2025-02-12 18:58:19] Production.INFO: ProcessCDR(1,14461055,1,1,2) [2025-02-12 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461055', 'tblTempUsageDetail_20' ) start [2025-02-12 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461055', 'tblTempUsageDetail_20' ) end [2025-02-12 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:58:22] Production.INFO: ==6050== Releasing lock... [2025-02-12 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:58:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 15:59:05 [end_date_ymd] => 2025-02-12 18:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 15:59:05' and `end` < '2025-02-12 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-12 18:59:19] Production.INFO: count ==2701 [2025-02-12 18:59:20] Production.ERROR: pbx CDR StartTime 2025-02-12 15:59:05 - End Time 2025-02-12 18:59:05 [2025-02-12 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461060', 'tblTempUsageDetail_20' ) start [2025-02-12 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461060', 'tblTempUsageDetail_20' ) end [2025-02-12 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461060', 'tblTempVendorCDR_20' ) start [2025-02-12 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461060', 'tblTempVendorCDR_20' ) end [2025-02-12 18:59:20] Production.INFO: ProcessCDR(1,14461060,1,1,2) [2025-02-12 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461060', 'tblTempUsageDetail_20' ) start [2025-02-12 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461060', 'tblTempUsageDetail_20' ) end [2025-02-12 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 18:59:23] Production.INFO: ==6127== Releasing lock... [2025-02-12 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 18:59:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-12 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:00:05 [end_date_ymd] => 2025-02-12 19:00:05 [RateCDR] => 1 ) [2025-02-12 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:00:05' and `end` < '2025-02-12 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:00:18] Production.INFO: count ==2696 [2025-02-12 19:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:00:05 - End Time 2025-02-12 19:00:05 [2025-02-12 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461065', 'tblTempUsageDetail_20' ) start [2025-02-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461065', 'tblTempUsageDetail_20' ) end [2025-02-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461065', 'tblTempVendorCDR_20' ) start [2025-02-12 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461065', 'tblTempVendorCDR_20' ) end [2025-02-12 19:00:19] Production.INFO: ProcessCDR(1,14461065,1,1,2) [2025-02-12 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461065', 'tblTempUsageDetail_20' ) start [2025-02-12 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461065', 'tblTempUsageDetail_20' ) end [2025-02-12 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:00:22] Production.INFO: ==6212== Releasing lock... [2025-02-12 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:00:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:01:05 [end_date_ymd] => 2025-02-12 19:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:01:05' and `end` < '2025-02-12 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-12 19:01:20] Production.INFO: count ==2682 [2025-02-12 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:01:05 - End Time 2025-02-12 19:01:05 [2025-02-12 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461071', 'tblTempUsageDetail_20' ) start [2025-02-12 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461071', 'tblTempUsageDetail_20' ) end [2025-02-12 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461071', 'tblTempVendorCDR_20' ) start [2025-02-12 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461071', 'tblTempVendorCDR_20' ) end [2025-02-12 19:01:21] Production.INFO: ProcessCDR(1,14461071,1,1,2) [2025-02-12 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461071', 'tblTempUsageDetail_20' ) start [2025-02-12 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461071', 'tblTempUsageDetail_20' ) end [2025-02-12 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:01:25] Production.INFO: ==6306== Releasing lock... [2025-02-12 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:01:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:02:05 [end_date_ymd] => 2025-02-12 19:02:05 [RateCDR] => 1 ) [2025-02-12 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:02:05' and `end` < '2025-02-12 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:02:18] Production.INFO: count ==2683 [2025-02-12 19:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:02:05 - End Time 2025-02-12 19:02:05 [2025-02-12 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461076', 'tblTempUsageDetail_20' ) start [2025-02-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461076', 'tblTempUsageDetail_20' ) end [2025-02-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461076', 'tblTempVendorCDR_20' ) start [2025-02-12 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461076', 'tblTempVendorCDR_20' ) end [2025-02-12 19:02:19] Production.INFO: ProcessCDR(1,14461076,1,1,2) [2025-02-12 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461076', 'tblTempUsageDetail_20' ) start [2025-02-12 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461076', 'tblTempUsageDetail_20' ) end [2025-02-12 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:02:22] Production.INFO: ==6465== Releasing lock... [2025-02-12 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:02:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:03:05 [end_date_ymd] => 2025-02-12 19:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:03:05' and `end` < '2025-02-12 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-12 19:03:19] Production.INFO: count ==2672 [2025-02-12 19:03:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:03:05 - End Time 2025-02-12 19:03:05 [2025-02-12 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461081', 'tblTempUsageDetail_20' ) start [2025-02-12 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461081', 'tblTempUsageDetail_20' ) end [2025-02-12 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461081', 'tblTempVendorCDR_20' ) start [2025-02-12 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461081', 'tblTempVendorCDR_20' ) end [2025-02-12 19:03:20] Production.INFO: ProcessCDR(1,14461081,1,1,2) [2025-02-12 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461081', 'tblTempUsageDetail_20' ) start [2025-02-12 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461081', 'tblTempUsageDetail_20' ) end [2025-02-12 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:03:25] Production.INFO: ==6546== Releasing lock... [2025-02-12 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:03:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:04:04 [end_date_ymd] => 2025-02-12 19:04:04 [RateCDR] => 1 ) [2025-02-12 19:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:04:04' and `end` < '2025-02-12 19:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:04:20] Production.INFO: count ==2677 [2025-02-12 19:04:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:04:04 - End Time 2025-02-12 19:04:04 [2025-02-12 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461086', 'tblTempUsageDetail_20' ) start [2025-02-12 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461086', 'tblTempUsageDetail_20' ) end [2025-02-12 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461086', 'tblTempVendorCDR_20' ) start [2025-02-12 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461086', 'tblTempVendorCDR_20' ) end [2025-02-12 19:04:21] Production.INFO: ProcessCDR(1,14461086,1,1,2) [2025-02-12 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461086', 'tblTempUsageDetail_20' ) start [2025-02-12 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461086', 'tblTempUsageDetail_20' ) end [2025-02-12 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:04:27] Production.INFO: ==6623== Releasing lock... [2025-02-12 19:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:04:27] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:05:05 [end_date_ymd] => 2025-02-12 19:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:05:05' and `end` < '2025-02-12 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-12 19:05:19] Production.INFO: count ==2685 [2025-02-12 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:05:05 - End Time 2025-02-12 19:05:05 [2025-02-12 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461091', 'tblTempUsageDetail_20' ) start [2025-02-12 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461091', 'tblTempUsageDetail_20' ) end [2025-02-12 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461091', 'tblTempVendorCDR_20' ) start [2025-02-12 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461091', 'tblTempVendorCDR_20' ) end [2025-02-12 19:05:20] Production.INFO: ProcessCDR(1,14461091,1,1,2) [2025-02-12 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461091', 'tblTempUsageDetail_20' ) start [2025-02-12 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461091', 'tblTempUsageDetail_20' ) end [2025-02-12 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:05:25] Production.INFO: ==6776== Releasing lock... [2025-02-12 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:05:25] Production.INFO: 48 MB #Memory Used# [2025-02-12 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:06:05 [end_date_ymd] => 2025-02-12 19:06:05 [RateCDR] => 1 ) [2025-02-12 19: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-12 16:06:05' and `end` < '2025-02-12 19: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-12 19:06:19] Production.INFO: count ==2676 [2025-02-12 19:06:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:06:05 - End Time 2025-02-12 19:06:05 [2025-02-12 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461096', 'tblTempUsageDetail_20' ) start [2025-02-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461096', 'tblTempUsageDetail_20' ) end [2025-02-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461096', 'tblTempVendorCDR_20' ) start [2025-02-12 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461096', 'tblTempVendorCDR_20' ) end [2025-02-12 19:06:19] Production.INFO: ProcessCDR(1,14461096,1,1,2) [2025-02-12 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461096', 'tblTempUsageDetail_20' ) start [2025-02-12 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461096', 'tblTempUsageDetail_20' ) end [2025-02-12 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:06:23] Production.INFO: ==6853== Releasing lock... [2025-02-12 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:06:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-12 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:07:05 [end_date_ymd] => 2025-02-12 19:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:07:05' and `end` < '2025-02-12 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-12 19:07:19] Production.INFO: count ==2666 [2025-02-12 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:07:05 - End Time 2025-02-12 19:07:05 [2025-02-12 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461101', 'tblTempUsageDetail_20' ) start [2025-02-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461101', 'tblTempUsageDetail_20' ) end [2025-02-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461101', 'tblTempVendorCDR_20' ) start [2025-02-12 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461101', 'tblTempVendorCDR_20' ) end [2025-02-12 19:07:19] Production.INFO: ProcessCDR(1,14461101,1,1,2) [2025-02-12 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461101', 'tblTempUsageDetail_20' ) start [2025-02-12 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461101', 'tblTempUsageDetail_20' ) end [2025-02-12 19:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:07:24] Production.INFO: ==6933== Releasing lock... [2025-02-12 19:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:07:24] Production.INFO: 48 MB #Memory Used# [2025-02-12 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:08:05 [end_date_ymd] => 2025-02-12 19:08:05 [RateCDR] => 1 ) [2025-02-12 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:08:05' and `end` < '2025-02-12 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:08:20] Production.INFO: count ==2656 [2025-02-12 19:08:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:08:05 - End Time 2025-02-12 19:08:05 [2025-02-12 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461106', 'tblTempUsageDetail_20' ) start [2025-02-12 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461106', 'tblTempUsageDetail_20' ) end [2025-02-12 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461106', 'tblTempVendorCDR_20' ) start [2025-02-12 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461106', 'tblTempVendorCDR_20' ) end [2025-02-12 19:08:21] Production.INFO: ProcessCDR(1,14461106,1,1,2) [2025-02-12 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461106', 'tblTempUsageDetail_20' ) start [2025-02-12 19:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461106', 'tblTempUsageDetail_20' ) end [2025-02-12 19:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:08:26] Production.INFO: ==7088== Releasing lock... [2025-02-12 19:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:08:26] Production.INFO: 48 MB #Memory Used# [2025-02-12 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:09:05 [end_date_ymd] => 2025-02-12 19:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:09:05' and `end` < '2025-02-12 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-12 19:09:18] Production.INFO: count ==2665 [2025-02-12 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:09:05 - End Time 2025-02-12 19:09:05 [2025-02-12 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461111', 'tblTempUsageDetail_20' ) start [2025-02-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461111', 'tblTempUsageDetail_20' ) end [2025-02-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461111', 'tblTempVendorCDR_20' ) start [2025-02-12 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461111', 'tblTempVendorCDR_20' ) end [2025-02-12 19:09:19] Production.INFO: ProcessCDR(1,14461111,1,1,2) [2025-02-12 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461111', 'tblTempUsageDetail_20' ) start [2025-02-12 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461111', 'tblTempUsageDetail_20' ) end [2025-02-12 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:09:22] Production.INFO: ==7162== Releasing lock... [2025-02-12 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:09:22] Production.INFO: 48 MB #Memory Used# [2025-02-12 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:10:06 [end_date_ymd] => 2025-02-12 19:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 16:10:06' and `end` < '2025-02-12 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-12 19:10:21] Production.INFO: count ==2653 [2025-02-12 19:10:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:10:06 - End Time 2025-02-12 19:10:06 [2025-02-12 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461117', 'tblTempUsageDetail_20' ) start [2025-02-12 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461117', 'tblTempUsageDetail_20' ) end [2025-02-12 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461117', 'tblTempVendorCDR_20' ) start [2025-02-12 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461117', 'tblTempVendorCDR_20' ) end [2025-02-12 19:10:21] Production.INFO: ProcessCDR(1,14461117,1,1,2) [2025-02-12 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461117', 'tblTempUsageDetail_20' ) start [2025-02-12 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461117', 'tblTempUsageDetail_20' ) end [2025-02-12 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:10:25] Production.INFO: ==7282== Releasing lock... [2025-02-12 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:10:25] Production.INFO: 48 MB #Memory Used# [2025-02-12 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:11:05 [end_date_ymd] => 2025-02-12 19:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:11:05' and `end` < '2025-02-12 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-12 19:11:19] Production.INFO: count ==2624 [2025-02-12 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:11:05 - End Time 2025-02-12 19:11:05 [2025-02-12 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461122', 'tblTempUsageDetail_20' ) start [2025-02-12 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461122', 'tblTempUsageDetail_20' ) end [2025-02-12 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461122', 'tblTempVendorCDR_20' ) start [2025-02-12 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461122', 'tblTempVendorCDR_20' ) end [2025-02-12 19:11:20] Production.INFO: ProcessCDR(1,14461122,1,1,2) [2025-02-12 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461122', 'tblTempUsageDetail_20' ) start [2025-02-12 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461122', 'tblTempUsageDetail_20' ) end [2025-02-12 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:11:25] Production.INFO: ==7361== Releasing lock... [2025-02-12 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:11:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-12 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:12:05 [end_date_ymd] => 2025-02-12 19:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:12:05' and `end` < '2025-02-12 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-12 19:12:20] Production.INFO: count ==2609 [2025-02-12 19:12:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:12:05 - End Time 2025-02-12 19:12:05 [2025-02-12 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461127', 'tblTempUsageDetail_20' ) start [2025-02-12 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461127', 'tblTempUsageDetail_20' ) end [2025-02-12 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461127', 'tblTempVendorCDR_20' ) start [2025-02-12 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461127', 'tblTempVendorCDR_20' ) end [2025-02-12 19:12:21] Production.INFO: ProcessCDR(1,14461127,1,1,2) [2025-02-12 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461127', 'tblTempUsageDetail_20' ) start [2025-02-12 19:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461127', 'tblTempUsageDetail_20' ) end [2025-02-12 19:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:12:26] Production.INFO: ==7516== Releasing lock... [2025-02-12 19:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:12:26] Production.INFO: 47.75 MB #Memory Used# [2025-02-12 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:13:04 [end_date_ymd] => 2025-02-12 19:13:04 [RateCDR] => 1 ) [2025-02-12 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:13:04' and `end` < '2025-02-12 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:13:18] Production.INFO: count ==2594 [2025-02-12 19:13:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:13:04 - End Time 2025-02-12 19:13:04 [2025-02-12 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461132', 'tblTempUsageDetail_20' ) start [2025-02-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461132', 'tblTempUsageDetail_20' ) end [2025-02-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461132', 'tblTempVendorCDR_20' ) start [2025-02-12 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461132', 'tblTempVendorCDR_20' ) end [2025-02-12 19:13:19] Production.INFO: ProcessCDR(1,14461132,1,1,2) [2025-02-12 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461132', 'tblTempUsageDetail_20' ) start [2025-02-12 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461132', 'tblTempUsageDetail_20' ) end [2025-02-12 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:13:23] Production.INFO: ==7594== Releasing lock... [2025-02-12 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:13:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:14:05 [end_date_ymd] => 2025-02-12 19:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:14:05' and `end` < '2025-02-12 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-12 19:14:19] Production.INFO: count ==2593 [2025-02-12 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:14:05 - End Time 2025-02-12 19:14:05 [2025-02-12 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461137', 'tblTempUsageDetail_20' ) start [2025-02-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461137', 'tblTempUsageDetail_20' ) end [2025-02-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461137', 'tblTempVendorCDR_20' ) start [2025-02-12 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461137', 'tblTempVendorCDR_20' ) end [2025-02-12 19:14:20] Production.INFO: ProcessCDR(1,14461137,1,1,2) [2025-02-12 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461137', 'tblTempUsageDetail_20' ) start [2025-02-12 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461137', 'tblTempUsageDetail_20' ) end [2025-02-12 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:14:25] Production.INFO: ==7668== Releasing lock... [2025-02-12 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:14:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:15:05 [end_date_ymd] => 2025-02-12 19:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:15:05' and `end` < '2025-02-12 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-12 19:15:26] Production.INFO: count ==2581 [2025-02-12 19:15:26] Production.ERROR: pbx CDR StartTime 2025-02-12 16:15:05 - End Time 2025-02-12 19:15:05 [2025-02-12 19:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461142', 'tblTempUsageDetail_20' ) start [2025-02-12 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461142', 'tblTempUsageDetail_20' ) end [2025-02-12 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461142', 'tblTempVendorCDR_20' ) start [2025-02-12 19:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461142', 'tblTempVendorCDR_20' ) end [2025-02-12 19:15:26] Production.INFO: ProcessCDR(1,14461142,1,1,2) [2025-02-12 19:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461142', 'tblTempUsageDetail_20' ) start [2025-02-12 19:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461142', 'tblTempUsageDetail_20' ) end [2025-02-12 19:15:31] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:15:31] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:15:31] Production.INFO: ==7830== Releasing lock... [2025-02-12 19:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:15:31] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:16:05 [end_date_ymd] => 2025-02-12 19:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:16:05' and `end` < '2025-02-12 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-12 19:16:21] Production.INFO: count ==2571 [2025-02-12 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:16:05 - End Time 2025-02-12 19:16:05 [2025-02-12 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461147', 'tblTempUsageDetail_20' ) start [2025-02-12 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461147', 'tblTempUsageDetail_20' ) end [2025-02-12 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461147', 'tblTempVendorCDR_20' ) start [2025-02-12 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461147', 'tblTempVendorCDR_20' ) end [2025-02-12 19:16:21] Production.INFO: ProcessCDR(1,14461147,1,1,2) [2025-02-12 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461147', 'tblTempUsageDetail_20' ) start [2025-02-12 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461147', 'tblTempUsageDetail_20' ) end [2025-02-12 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:16:26] Production.INFO: ==7909== Releasing lock... [2025-02-12 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:16:26] Production.INFO: 47.25 MB #Memory Used# [2025-02-12 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:17:05 [end_date_ymd] => 2025-02-12 19:17:05 [RateCDR] => 1 ) [2025-02-12 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:17:05' and `end` < '2025-02-12 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:17:19] Production.INFO: count ==2547 [2025-02-12 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:17:05 - End Time 2025-02-12 19:17:05 [2025-02-12 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461152', 'tblTempUsageDetail_20' ) start [2025-02-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461152', 'tblTempUsageDetail_20' ) end [2025-02-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461152', 'tblTempVendorCDR_20' ) start [2025-02-12 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461152', 'tblTempVendorCDR_20' ) end [2025-02-12 19:17:19] Production.INFO: ProcessCDR(1,14461152,1,1,2) [2025-02-12 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461152', 'tblTempUsageDetail_20' ) start [2025-02-12 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461152', 'tblTempUsageDetail_20' ) end [2025-02-12 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:17:23] Production.INFO: ==7989== Releasing lock... [2025-02-12 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:17:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-12 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:18:05 [end_date_ymd] => 2025-02-12 19:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:18:05' and `end` < '2025-02-12 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-12 19:18:19] Production.INFO: count ==2536 [2025-02-12 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:18:05 - End Time 2025-02-12 19:18:05 [2025-02-12 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461157', 'tblTempUsageDetail_20' ) start [2025-02-12 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461157', 'tblTempUsageDetail_20' ) end [2025-02-12 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461157', 'tblTempVendorCDR_20' ) start [2025-02-12 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461157', 'tblTempVendorCDR_20' ) end [2025-02-12 19:18:19] Production.INFO: ProcessCDR(1,14461157,1,1,2) [2025-02-12 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461157', 'tblTempUsageDetail_20' ) start [2025-02-12 19:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461157', 'tblTempUsageDetail_20' ) end [2025-02-12 19:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:18:25] Production.INFO: ==8071== Releasing lock... [2025-02-12 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:18:25] Production.INFO: 47 MB #Memory Used# [2025-02-12 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:19:05 [end_date_ymd] => 2025-02-12 19:19:05 [RateCDR] => 1 ) [2025-02-12 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:19:05' and `end` < '2025-02-12 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:19:18] Production.INFO: count ==2537 [2025-02-12 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:19:05 - End Time 2025-02-12 19:19:05 [2025-02-12 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461162', 'tblTempUsageDetail_20' ) start [2025-02-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461162', 'tblTempUsageDetail_20' ) end [2025-02-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461162', 'tblTempVendorCDR_20' ) start [2025-02-12 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461162', 'tblTempVendorCDR_20' ) end [2025-02-12 19:19:19] Production.INFO: ProcessCDR(1,14461162,1,1,2) [2025-02-12 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461162', 'tblTempUsageDetail_20' ) start [2025-02-12 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461162', 'tblTempUsageDetail_20' ) end [2025-02-12 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:19:23] Production.INFO: ==8149== Releasing lock... [2025-02-12 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:19:23] Production.INFO: 47 MB #Memory Used# [2025-02-12 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:20:05 [end_date_ymd] => 2025-02-12 19:20:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:20:05' and `end` < '2025-02-12 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-12 19:20:19] Production.INFO: count ==2526 [2025-02-12 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:20:05 - End Time 2025-02-12 19:20:05 [2025-02-12 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461168', 'tblTempUsageDetail_20' ) start [2025-02-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461168', 'tblTempUsageDetail_20' ) end [2025-02-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461168', 'tblTempVendorCDR_20' ) start [2025-02-12 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461168', 'tblTempVendorCDR_20' ) end [2025-02-12 19:20:19] Production.INFO: ProcessCDR(1,14461168,1,1,2) [2025-02-12 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461168', 'tblTempUsageDetail_20' ) start [2025-02-12 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461168', 'tblTempUsageDetail_20' ) end [2025-02-12 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:20:23] Production.INFO: ==8231== Releasing lock... [2025-02-12 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:20:23] Production.INFO: 47 MB #Memory Used# [2025-02-12 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:21:06 [end_date_ymd] => 2025-02-12 19:21:06 [RateCDR] => 1 ) [2025-02-12 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:21:06' and `end` < '2025-02-12 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:21:19] Production.INFO: count ==2475 [2025-02-12 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:21:06 - End Time 2025-02-12 19:21:06 [2025-02-12 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461173', 'tblTempUsageDetail_20' ) start [2025-02-12 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461173', 'tblTempUsageDetail_20' ) end [2025-02-12 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461173', 'tblTempVendorCDR_20' ) start [2025-02-12 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461173', 'tblTempVendorCDR_20' ) end [2025-02-12 19:21:20] Production.INFO: ProcessCDR(1,14461173,1,1,2) [2025-02-12 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461173', 'tblTempUsageDetail_20' ) start [2025-02-12 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461173', 'tblTempUsageDetail_20' ) end [2025-02-12 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:21:25] Production.INFO: ==8310== Releasing lock... [2025-02-12 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:21:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-12 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:22:05 [end_date_ymd] => 2025-02-12 19:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:22:05' and `end` < '2025-02-12 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-12 19:22:19] Production.INFO: count ==2473 [2025-02-12 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:22:05 - End Time 2025-02-12 19:22:05 [2025-02-12 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461178', 'tblTempUsageDetail_20' ) start [2025-02-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461178', 'tblTempUsageDetail_20' ) end [2025-02-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461178', 'tblTempVendorCDR_20' ) start [2025-02-12 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461178', 'tblTempVendorCDR_20' ) end [2025-02-12 19:22:19] Production.INFO: ProcessCDR(1,14461178,1,1,2) [2025-02-12 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461178', 'tblTempUsageDetail_20' ) start [2025-02-12 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461178', 'tblTempUsageDetail_20' ) end [2025-02-12 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:22:24] Production.INFO: ==8396== Releasing lock... [2025-02-12 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:22:24] Production.INFO: 47 MB #Memory Used# [2025-02-12 19:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:23:06 [end_date_ymd] => 2025-02-12 19:23:06 [RateCDR] => 1 ) [2025-02-12 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-12 16:23:06' and `end` < '2025-02-12 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-12 19:23:20] Production.INFO: count ==2467 [2025-02-12 19:23:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:23:06 - End Time 2025-02-12 19:23:06 [2025-02-12 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461183', 'tblTempUsageDetail_20' ) start [2025-02-12 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461183', 'tblTempUsageDetail_20' ) end [2025-02-12 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461183', 'tblTempVendorCDR_20' ) start [2025-02-12 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461183', 'tblTempVendorCDR_20' ) end [2025-02-12 19:23:21] Production.INFO: ProcessCDR(1,14461183,1,1,2) [2025-02-12 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461183', 'tblTempUsageDetail_20' ) start [2025-02-12 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461183', 'tblTempUsageDetail_20' ) end [2025-02-12 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:23:24] Production.INFO: ==8478== Releasing lock... [2025-02-12 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:23:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:24:05 [end_date_ymd] => 2025-02-12 19:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:24:05' and `end` < '2025-02-12 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-12 19:24:18] Production.INFO: count ==2446 [2025-02-12 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:24:05 - End Time 2025-02-12 19:24:05 [2025-02-12 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461188', 'tblTempUsageDetail_20' ) start [2025-02-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461188', 'tblTempUsageDetail_20' ) end [2025-02-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461188', 'tblTempVendorCDR_20' ) start [2025-02-12 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461188', 'tblTempVendorCDR_20' ) end [2025-02-12 19:24:19] Production.INFO: ProcessCDR(1,14461188,1,1,2) [2025-02-12 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461188', 'tblTempUsageDetail_20' ) start [2025-02-12 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461188', 'tblTempUsageDetail_20' ) end [2025-02-12 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:24:22] Production.INFO: ==8557== Releasing lock... [2025-02-12 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:24:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:25:06 [end_date_ymd] => 2025-02-12 19:25:06 [RateCDR] => 1 ) [2025-02-12 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:25:06' and `end` < '2025-02-12 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:25:19] Production.INFO: count ==2460 [2025-02-12 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:25:06 - End Time 2025-02-12 19:25:06 [2025-02-12 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461193', 'tblTempUsageDetail_20' ) start [2025-02-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461193', 'tblTempUsageDetail_20' ) end [2025-02-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461193', 'tblTempVendorCDR_20' ) start [2025-02-12 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461193', 'tblTempVendorCDR_20' ) end [2025-02-12 19:25:20] Production.INFO: ProcessCDR(1,14461193,1,1,2) [2025-02-12 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461193', 'tblTempUsageDetail_20' ) start [2025-02-12 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461193', 'tblTempUsageDetail_20' ) end [2025-02-12 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:25:25] Production.INFO: ==8639== Releasing lock... [2025-02-12 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:25:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:26:05 [end_date_ymd] => 2025-02-12 19:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:26:05' and `end` < '2025-02-12 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-12 19:26:18] Production.INFO: count ==2451 [2025-02-12 19:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:26:05 - End Time 2025-02-12 19:26:05 [2025-02-12 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461198', 'tblTempUsageDetail_20' ) start [2025-02-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461198', 'tblTempUsageDetail_20' ) end [2025-02-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461198', 'tblTempVendorCDR_20' ) start [2025-02-12 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461198', 'tblTempVendorCDR_20' ) end [2025-02-12 19:26:19] Production.INFO: ProcessCDR(1,14461198,1,1,2) [2025-02-12 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461198', 'tblTempUsageDetail_20' ) start [2025-02-12 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461198', 'tblTempUsageDetail_20' ) end [2025-02-12 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:26:24] Production.INFO: ==8764== Releasing lock... [2025-02-12 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:26:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-12 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:27:05 [end_date_ymd] => 2025-02-12 19:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:27:05' and `end` < '2025-02-12 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-12 19:27:19] Production.INFO: count ==2437 [2025-02-12 19:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:27:05 - End Time 2025-02-12 19:27:05 [2025-02-12 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461203', 'tblTempUsageDetail_20' ) start [2025-02-12 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461203', 'tblTempUsageDetail_20' ) end [2025-02-12 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461203', 'tblTempVendorCDR_20' ) start [2025-02-12 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461203', 'tblTempVendorCDR_20' ) end [2025-02-12 19:27:19] Production.INFO: ProcessCDR(1,14461203,1,1,2) [2025-02-12 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461203', 'tblTempUsageDetail_20' ) start [2025-02-12 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461203', 'tblTempUsageDetail_20' ) end [2025-02-12 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:27:23] Production.INFO: ==8854== Releasing lock... [2025-02-12 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:27:23] Production.INFO: 46.25 MB #Memory Used# [2025-02-12 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:28:05 [end_date_ymd] => 2025-02-12 19:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:28:05' and `end` < '2025-02-12 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-12 19:28:19] Production.INFO: count ==2432 [2025-02-12 19:28:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:28:05 - End Time 2025-02-12 19:28:05 [2025-02-12 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461208', 'tblTempUsageDetail_20' ) start [2025-02-12 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461208', 'tblTempUsageDetail_20' ) end [2025-02-12 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461208', 'tblTempVendorCDR_20' ) start [2025-02-12 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461208', 'tblTempVendorCDR_20' ) end [2025-02-12 19:28:20] Production.INFO: ProcessCDR(1,14461208,1,1,2) [2025-02-12 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461208', 'tblTempUsageDetail_20' ) start [2025-02-12 19:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461208', 'tblTempUsageDetail_20' ) end [2025-02-12 19:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:28:25] Production.INFO: ==8938== Releasing lock... [2025-02-12 19:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:28:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-12 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:29:06 [end_date_ymd] => 2025-02-12 19:29:06 [RateCDR] => 1 ) [2025-02-12 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:29:06' and `end` < '2025-02-12 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:29:20] Production.INFO: count ==2414 [2025-02-12 19:29:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:29:06 - End Time 2025-02-12 19:29:06 [2025-02-12 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461213', 'tblTempUsageDetail_20' ) start [2025-02-12 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461213', 'tblTempUsageDetail_20' ) end [2025-02-12 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461213', 'tblTempVendorCDR_20' ) start [2025-02-12 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461213', 'tblTempVendorCDR_20' ) end [2025-02-12 19:29:21] Production.INFO: ProcessCDR(1,14461213,1,1,2) [2025-02-12 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461213', 'tblTempUsageDetail_20' ) start [2025-02-12 19:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461213', 'tblTempUsageDetail_20' ) end [2025-02-12 19:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:29:26] Production.INFO: ==9025== Releasing lock... [2025-02-12 19:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:29:26] Production.INFO: 46 MB #Memory Used# [2025-02-12 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:30:05 [end_date_ymd] => 2025-02-12 19:30:05 [RateCDR] => 1 ) [2025-02-12 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:30:05' and `end` < '2025-02-12 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:30:19] Production.INFO: count ==2408 [2025-02-12 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:30:05 - End Time 2025-02-12 19:30:05 [2025-02-12 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461219', 'tblTempUsageDetail_20' ) start [2025-02-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461219', 'tblTempUsageDetail_20' ) end [2025-02-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461219', 'tblTempVendorCDR_20' ) start [2025-02-12 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461219', 'tblTempVendorCDR_20' ) end [2025-02-12 19:30:19] Production.INFO: ProcessCDR(1,14461219,1,1,2) [2025-02-12 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461219', 'tblTempUsageDetail_20' ) start [2025-02-12 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461219', 'tblTempUsageDetail_20' ) end [2025-02-12 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:30:24] Production.INFO: ==9105== Releasing lock... [2025-02-12 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:30:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-12 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:31:05 [end_date_ymd] => 2025-02-12 19:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:31:05' and `end` < '2025-02-12 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-12 19:31:18] Production.INFO: count ==2337 [2025-02-12 19:31:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:31:05 - End Time 2025-02-12 19:31:05 [2025-02-12 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461224', 'tblTempUsageDetail_20' ) start [2025-02-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461224', 'tblTempUsageDetail_20' ) end [2025-02-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461224', 'tblTempVendorCDR_20' ) start [2025-02-12 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461224', 'tblTempVendorCDR_20' ) end [2025-02-12 19:31:19] Production.INFO: ProcessCDR(1,14461224,1,1,2) [2025-02-12 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461224', 'tblTempUsageDetail_20' ) start [2025-02-12 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461224', 'tblTempUsageDetail_20' ) end [2025-02-12 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:31:24] Production.INFO: ==9184== Releasing lock... [2025-02-12 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:31:24] Production.INFO: 45.75 MB #Memory Used# [2025-02-12 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:32:04 [end_date_ymd] => 2025-02-12 19:32:04 [RateCDR] => 1 ) [2025-02-12 19: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-12 16:32:04' and `end` < '2025-02-12 19: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-12 19:32:18] Production.INFO: count ==2325 [2025-02-12 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 16:32:04 - End Time 2025-02-12 19:32:04 [2025-02-12 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461229', 'tblTempUsageDetail_20' ) start [2025-02-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461229', 'tblTempUsageDetail_20' ) end [2025-02-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461229', 'tblTempVendorCDR_20' ) start [2025-02-12 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461229', 'tblTempVendorCDR_20' ) end [2025-02-12 19:32:18] Production.INFO: ProcessCDR(1,14461229,1,1,2) [2025-02-12 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461229', 'tblTempUsageDetail_20' ) start [2025-02-12 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461229', 'tblTempUsageDetail_20' ) end [2025-02-12 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:32:23] Production.INFO: ==9266== Releasing lock... [2025-02-12 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:32:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-12 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:33:05 [end_date_ymd] => 2025-02-12 19:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:33:05' and `end` < '2025-02-12 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-12 19:33:19] Production.INFO: count ==2314 [2025-02-12 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:33:05 - End Time 2025-02-12 19:33:05 [2025-02-12 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461234', 'tblTempUsageDetail_20' ) start [2025-02-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461234', 'tblTempUsageDetail_20' ) end [2025-02-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461234', 'tblTempVendorCDR_20' ) start [2025-02-12 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461234', 'tblTempVendorCDR_20' ) end [2025-02-12 19:33:19] Production.INFO: ProcessCDR(1,14461234,1,1,2) [2025-02-12 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461234', 'tblTempUsageDetail_20' ) start [2025-02-12 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461234', 'tblTempUsageDetail_20' ) end [2025-02-12 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:33:24] Production.INFO: ==9348== Releasing lock... [2025-02-12 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:33:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-12 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:34:04 [end_date_ymd] => 2025-02-12 19:34:04 [RateCDR] => 1 ) [2025-02-12 19: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-12 16:34:04' and `end` < '2025-02-12 19: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-12 19:34:18] Production.INFO: count ==2310 [2025-02-12 19:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 16:34:04 - End Time 2025-02-12 19:34:04 [2025-02-12 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461239', 'tblTempUsageDetail_20' ) start [2025-02-12 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461239', 'tblTempUsageDetail_20' ) end [2025-02-12 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461239', 'tblTempVendorCDR_20' ) start [2025-02-12 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461239', 'tblTempVendorCDR_20' ) end [2025-02-12 19:34:18] Production.INFO: ProcessCDR(1,14461239,1,1,2) [2025-02-12 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461239', 'tblTempUsageDetail_20' ) start [2025-02-12 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461239', 'tblTempUsageDetail_20' ) end [2025-02-12 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:34:23] Production.INFO: ==9428== Releasing lock... [2025-02-12 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:34:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-12 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:35:05 [end_date_ymd] => 2025-02-12 19:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:35:05' and `end` < '2025-02-12 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-12 19:35:18] Production.INFO: count ==2295 [2025-02-12 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:35:05 - End Time 2025-02-12 19:35:05 [2025-02-12 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461244', 'tblTempUsageDetail_20' ) start [2025-02-12 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461244', 'tblTempUsageDetail_20' ) end [2025-02-12 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461244', 'tblTempVendorCDR_20' ) start [2025-02-12 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461244', 'tblTempVendorCDR_20' ) end [2025-02-12 19:35:19] Production.INFO: ProcessCDR(1,14461244,1,1,2) [2025-02-12 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461244', 'tblTempUsageDetail_20' ) start [2025-02-12 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461244', 'tblTempUsageDetail_20' ) end [2025-02-12 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:35:23] Production.INFO: ==9506== Releasing lock... [2025-02-12 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:35:23] Production.INFO: 45 MB #Memory Used# [2025-02-12 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:36:05 [end_date_ymd] => 2025-02-12 19:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:36:05' and `end` < '2025-02-12 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-12 19:36:18] Production.INFO: count ==2276 [2025-02-12 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:36:05 - End Time 2025-02-12 19:36:05 [2025-02-12 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461249', 'tblTempUsageDetail_20' ) start [2025-02-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461249', 'tblTempUsageDetail_20' ) end [2025-02-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461249', 'tblTempVendorCDR_20' ) start [2025-02-12 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461249', 'tblTempVendorCDR_20' ) end [2025-02-12 19:36:19] Production.INFO: ProcessCDR(1,14461249,1,1,2) [2025-02-12 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461249', 'tblTempUsageDetail_20' ) start [2025-02-12 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461249', 'tblTempUsageDetail_20' ) end [2025-02-12 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:36:23] Production.INFO: ==9587== Releasing lock... [2025-02-12 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:36:23] Production.INFO: 45 MB #Memory Used# [2025-02-12 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:37:05 [end_date_ymd] => 2025-02-12 19:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:37:05' and `end` < '2025-02-12 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-12 19:37:19] Production.INFO: count ==2257 [2025-02-12 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:37:05 - End Time 2025-02-12 19:37:05 [2025-02-12 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461254', 'tblTempUsageDetail_20' ) start [2025-02-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461254', 'tblTempUsageDetail_20' ) end [2025-02-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461254', 'tblTempVendorCDR_20' ) start [2025-02-12 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461254', 'tblTempVendorCDR_20' ) end [2025-02-12 19:37:19] Production.INFO: ProcessCDR(1,14461254,1,1,2) [2025-02-12 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461254', 'tblTempUsageDetail_20' ) start [2025-02-12 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461254', 'tblTempUsageDetail_20' ) end [2025-02-12 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:37:24] Production.INFO: ==9667== Releasing lock... [2025-02-12 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:37:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:38:05 [end_date_ymd] => 2025-02-12 19:38:05 [RateCDR] => 1 ) [2025-02-12 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:38:05' and `end` < '2025-02-12 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-12 19:38:19] Production.INFO: count ==2244 [2025-02-12 19:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:38:05 - End Time 2025-02-12 19:38:05 [2025-02-12 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461259', 'tblTempUsageDetail_20' ) start [2025-02-12 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461259', 'tblTempUsageDetail_20' ) end [2025-02-12 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461259', 'tblTempVendorCDR_20' ) start [2025-02-12 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461259', 'tblTempVendorCDR_20' ) end [2025-02-12 19:38:20] Production.INFO: ProcessCDR(1,14461259,1,1,2) [2025-02-12 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461259', 'tblTempUsageDetail_20' ) start [2025-02-12 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461259', 'tblTempUsageDetail_20' ) end [2025-02-12 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:38:24] Production.INFO: ==9750== Releasing lock... [2025-02-12 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:38:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:39:05 [end_date_ymd] => 2025-02-12 19:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:39:05' and `end` < '2025-02-12 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-12 19:39:19] Production.INFO: count ==2226 [2025-02-12 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:39:05 - End Time 2025-02-12 19:39:05 [2025-02-12 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461264', 'tblTempUsageDetail_20' ) start [2025-02-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461264', 'tblTempUsageDetail_20' ) end [2025-02-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461264', 'tblTempVendorCDR_20' ) start [2025-02-12 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461264', 'tblTempVendorCDR_20' ) end [2025-02-12 19:39:19] Production.INFO: ProcessCDR(1,14461264,1,1,2) [2025-02-12 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461264', 'tblTempUsageDetail_20' ) start [2025-02-12 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461264', 'tblTempUsageDetail_20' ) end [2025-02-12 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:39:24] Production.INFO: ==9828== Releasing lock... [2025-02-12 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:39:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-12 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:40:06 [end_date_ymd] => 2025-02-12 19:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 16:40:06' and `end` < '2025-02-12 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-12 19:40:20] Production.INFO: count ==2224 [2025-02-12 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:40:06 - End Time 2025-02-12 19:40:06 [2025-02-12 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461270', 'tblTempUsageDetail_20' ) start [2025-02-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461270', 'tblTempUsageDetail_20' ) end [2025-02-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461270', 'tblTempVendorCDR_20' ) start [2025-02-12 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461270', 'tblTempVendorCDR_20' ) end [2025-02-12 19:40:20] Production.INFO: ProcessCDR(1,14461270,1,1,2) [2025-02-12 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461270', 'tblTempUsageDetail_20' ) start [2025-02-12 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461270', 'tblTempUsageDetail_20' ) end [2025-02-12 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:40:25] Production.INFO: ==9910== Releasing lock... [2025-02-12 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:40:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:41:05 [end_date_ymd] => 2025-02-12 19:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:41:05' and `end` < '2025-02-12 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-12 19:41:18] Production.INFO: count ==2200 [2025-02-12 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:41:05 - End Time 2025-02-12 19:41:05 [2025-02-12 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461275', 'tblTempUsageDetail_20' ) start [2025-02-12 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461275', 'tblTempUsageDetail_20' ) end [2025-02-12 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461275', 'tblTempVendorCDR_20' ) start [2025-02-12 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461275', 'tblTempVendorCDR_20' ) end [2025-02-12 19:41:19] Production.INFO: ProcessCDR(1,14461275,1,1,2) [2025-02-12 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461275', 'tblTempUsageDetail_20' ) start [2025-02-12 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461275', 'tblTempUsageDetail_20' ) end [2025-02-12 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:41:24] Production.INFO: ==10037== Releasing lock... [2025-02-12 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:41:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:42:05 [end_date_ymd] => 2025-02-12 19:42:05 [RateCDR] => 1 ) [2025-02-12 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:42:05' and `end` < '2025-02-12 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:42:18] Production.INFO: count ==2199 [2025-02-12 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:42:05 - End Time 2025-02-12 19:42:05 [2025-02-12 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461280', 'tblTempUsageDetail_20' ) start [2025-02-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461280', 'tblTempUsageDetail_20' ) end [2025-02-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461280', 'tblTempVendorCDR_20' ) start [2025-02-12 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461280', 'tblTempVendorCDR_20' ) end [2025-02-12 19:42:19] Production.INFO: ProcessCDR(1,14461280,1,1,2) [2025-02-12 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461280', 'tblTempUsageDetail_20' ) start [2025-02-12 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461280', 'tblTempUsageDetail_20' ) end [2025-02-12 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:42:24] Production.INFO: ==10120== Releasing lock... [2025-02-12 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:42:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:43:05 [end_date_ymd] => 2025-02-12 19:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:43:05' and `end` < '2025-02-12 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-12 19:43:18] Production.INFO: count ==2194 [2025-02-12 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:43:05 - End Time 2025-02-12 19:43:05 [2025-02-12 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461285', 'tblTempUsageDetail_20' ) start [2025-02-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461285', 'tblTempUsageDetail_20' ) end [2025-02-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461285', 'tblTempVendorCDR_20' ) start [2025-02-12 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461285', 'tblTempVendorCDR_20' ) end [2025-02-12 19:43:19] Production.INFO: ProcessCDR(1,14461285,1,1,2) [2025-02-12 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461285', 'tblTempUsageDetail_20' ) start [2025-02-12 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461285', 'tblTempUsageDetail_20' ) end [2025-02-12 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:43:23] Production.INFO: ==10200== Releasing lock... [2025-02-12 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:43:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-12 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:44:05 [end_date_ymd] => 2025-02-12 19:44:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:44:05' and `end` < '2025-02-12 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-12 19:44:19] Production.INFO: count ==2188 [2025-02-12 19:44:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:44:05 - End Time 2025-02-12 19:44:05 [2025-02-12 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461290', 'tblTempUsageDetail_20' ) start [2025-02-12 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461290', 'tblTempUsageDetail_20' ) end [2025-02-12 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461290', 'tblTempVendorCDR_20' ) start [2025-02-12 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461290', 'tblTempVendorCDR_20' ) end [2025-02-12 19:44:20] Production.INFO: ProcessCDR(1,14461290,1,1,2) [2025-02-12 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461290', 'tblTempUsageDetail_20' ) start [2025-02-12 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461290', 'tblTempUsageDetail_20' ) end [2025-02-12 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:44:24] Production.INFO: ==10278== Releasing lock... [2025-02-12 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:44:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-12 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:45:05 [end_date_ymd] => 2025-02-12 19:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:45:05' and `end` < '2025-02-12 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-12 19:45:18] Production.INFO: count ==2178 [2025-02-12 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:45:05 - End Time 2025-02-12 19:45:05 [2025-02-12 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461295', 'tblTempUsageDetail_20' ) start [2025-02-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461295', 'tblTempUsageDetail_20' ) end [2025-02-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461295', 'tblTempVendorCDR_20' ) start [2025-02-12 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461295', 'tblTempVendorCDR_20' ) end [2025-02-12 19:45:19] Production.INFO: ProcessCDR(1,14461295,1,1,2) [2025-02-12 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461295', 'tblTempUsageDetail_20' ) start [2025-02-12 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461295', 'tblTempUsageDetail_20' ) end [2025-02-12 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:45:24] Production.INFO: ==10357== Releasing lock... [2025-02-12 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:45:24] Production.INFO: 44.5 MB #Memory Used# [2025-02-12 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:46:05 [end_date_ymd] => 2025-02-12 19:46:05 [RateCDR] => 1 ) [2025-02-12 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:46:05' and `end` < '2025-02-12 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:46:19] Production.INFO: count ==2158 [2025-02-12 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:46:05 - End Time 2025-02-12 19:46:05 [2025-02-12 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461300', 'tblTempUsageDetail_20' ) start [2025-02-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461300', 'tblTempUsageDetail_20' ) end [2025-02-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461300', 'tblTempVendorCDR_20' ) start [2025-02-12 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461300', 'tblTempVendorCDR_20' ) end [2025-02-12 19:46:19] Production.INFO: ProcessCDR(1,14461300,1,1,2) [2025-02-12 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461300', 'tblTempUsageDetail_20' ) start [2025-02-12 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461300', 'tblTempUsageDetail_20' ) end [2025-02-12 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:46:24] Production.INFO: ==10438== Releasing lock... [2025-02-12 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:46:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-12 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:47:04 [end_date_ymd] => 2025-02-12 19:47:04 [RateCDR] => 1 ) [2025-02-12 19: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-12 16:47:04' and `end` < '2025-02-12 19: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-12 19:47:19] Production.INFO: count ==2153 [2025-02-12 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:47:04 - End Time 2025-02-12 19:47:04 [2025-02-12 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461305', 'tblTempUsageDetail_20' ) start [2025-02-12 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461305', 'tblTempUsageDetail_20' ) end [2025-02-12 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461305', 'tblTempVendorCDR_20' ) start [2025-02-12 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461305', 'tblTempVendorCDR_20' ) end [2025-02-12 19:47:19] Production.INFO: ProcessCDR(1,14461305,1,1,2) [2025-02-12 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461305', 'tblTempUsageDetail_20' ) start [2025-02-12 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461305', 'tblTempUsageDetail_20' ) end [2025-02-12 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:47:24] Production.INFO: ==10514== Releasing lock... [2025-02-12 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:47:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-12 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:48:05 [end_date_ymd] => 2025-02-12 19:48:05 [RateCDR] => 1 ) [2025-02-12 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:48:05' and `end` < '2025-02-12 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:48:18] Production.INFO: count ==2137 [2025-02-12 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:48:05 - End Time 2025-02-12 19:48:05 [2025-02-12 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461310', 'tblTempUsageDetail_20' ) start [2025-02-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461310', 'tblTempUsageDetail_20' ) end [2025-02-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461310', 'tblTempVendorCDR_20' ) start [2025-02-12 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461310', 'tblTempVendorCDR_20' ) end [2025-02-12 19:48:19] Production.INFO: ProcessCDR(1,14461310,1,1,2) [2025-02-12 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461310', 'tblTempUsageDetail_20' ) start [2025-02-12 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461310', 'tblTempUsageDetail_20' ) end [2025-02-12 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:48:22] Production.INFO: ==10593== Releasing lock... [2025-02-12 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:48:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-12 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:49:06 [end_date_ymd] => 2025-02-12 19:49:06 [RateCDR] => 1 ) [2025-02-12 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-12 16:49:06' and `end` < '2025-02-12 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-12 19:49:29] Production.INFO: count ==2136 [2025-02-12 19:49:29] Production.ERROR: pbx CDR StartTime 2025-02-12 16:49:06 - End Time 2025-02-12 19:49:06 [2025-02-12 19:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461315', 'tblTempUsageDetail_20' ) start [2025-02-12 19:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461315', 'tblTempUsageDetail_20' ) end [2025-02-12 19:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461315', 'tblTempVendorCDR_20' ) start [2025-02-12 19:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461315', 'tblTempVendorCDR_20' ) end [2025-02-12 19:49:29] Production.INFO: ProcessCDR(1,14461315,1,1,2) [2025-02-12 19:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:49:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:49:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:49:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461315', 'tblTempUsageDetail_20' ) start [2025-02-12 19:49:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461315', 'tblTempUsageDetail_20' ) end [2025-02-12 19:49:34] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:49:34] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:49:34] Production.INFO: ==10672== Releasing lock... [2025-02-12 19:49:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:49:34] Production.INFO: 43.75 MB #Memory Used# [2025-02-12 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:50:06 [end_date_ymd] => 2025-02-12 19:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 16:50:06' and `end` < '2025-02-12 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-12 19:50:30] Production.INFO: count ==2138 [2025-02-12 19:50:30] Production.ERROR: pbx CDR StartTime 2025-02-12 16:50:06 - End Time 2025-02-12 19:50:06 [2025-02-12 19:50:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461321', 'tblTempUsageDetail_20' ) start [2025-02-12 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461321', 'tblTempUsageDetail_20' ) end [2025-02-12 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461321', 'tblTempVendorCDR_20' ) start [2025-02-12 19:50:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461321', 'tblTempVendorCDR_20' ) end [2025-02-12 19:50:30] Production.INFO: ProcessCDR(1,14461321,1,1,2) [2025-02-12 19:50:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461321', 'tblTempUsageDetail_20' ) start [2025-02-12 19:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461321', 'tblTempUsageDetail_20' ) end [2025-02-12 19:50:35] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:50:35] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:50:35] Production.INFO: ==10754== Releasing lock... [2025-02-12 19:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:50:35] Production.INFO: 43.75 MB #Memory Used# [2025-02-12 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:51:05 [end_date_ymd] => 2025-02-12 19:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:51:05' and `end` < '2025-02-12 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-12 19:51:21] Production.INFO: count ==2070 [2025-02-12 19:51:21] Production.ERROR: pbx CDR StartTime 2025-02-12 16:51:05 - End Time 2025-02-12 19:51:05 [2025-02-12 19:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461326', 'tblTempUsageDetail_20' ) start [2025-02-12 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461326', 'tblTempUsageDetail_20' ) end [2025-02-12 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461326', 'tblTempVendorCDR_20' ) start [2025-02-12 19:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461326', 'tblTempVendorCDR_20' ) end [2025-02-12 19:51:21] Production.INFO: ProcessCDR(1,14461326,1,1,2) [2025-02-12 19:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461326', 'tblTempUsageDetail_20' ) start [2025-02-12 19:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461326', 'tblTempUsageDetail_20' ) end [2025-02-12 19:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:51:26] Production.INFO: ==10833== Releasing lock... [2025-02-12 19:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:51:26] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:52:05 [end_date_ymd] => 2025-02-12 19:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:52:05' and `end` < '2025-02-12 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-12 19:52:18] Production.INFO: count ==2074 [2025-02-12 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:52:05 - End Time 2025-02-12 19:52:05 [2025-02-12 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461331', 'tblTempUsageDetail_20' ) start [2025-02-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461331', 'tblTempUsageDetail_20' ) end [2025-02-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461331', 'tblTempVendorCDR_20' ) start [2025-02-12 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461331', 'tblTempVendorCDR_20' ) end [2025-02-12 19:52:19] Production.INFO: ProcessCDR(1,14461331,1,1,2) [2025-02-12 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461331', 'tblTempUsageDetail_20' ) start [2025-02-12 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461331', 'tblTempUsageDetail_20' ) end [2025-02-12 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:52:22] Production.INFO: ==10912== Releasing lock... [2025-02-12 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:52:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-12 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:53:05 [end_date_ymd] => 2025-02-12 19:53:05 [RateCDR] => 1 ) [2025-02-12 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:53:05' and `end` < '2025-02-12 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 19:53:20] Production.INFO: count ==2066 [2025-02-12 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-12 16:53:05 - End Time 2025-02-12 19:53:05 [2025-02-12 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461336', 'tblTempUsageDetail_20' ) start [2025-02-12 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461336', 'tblTempUsageDetail_20' ) end [2025-02-12 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461336', 'tblTempVendorCDR_20' ) start [2025-02-12 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461336', 'tblTempVendorCDR_20' ) end [2025-02-12 19:53:20] Production.INFO: ProcessCDR(1,14461336,1,1,2) [2025-02-12 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461336', 'tblTempUsageDetail_20' ) start [2025-02-12 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461336', 'tblTempUsageDetail_20' ) end [2025-02-12 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:53:23] Production.INFO: ==10991== Releasing lock... [2025-02-12 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:53:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:54:04 [end_date_ymd] => 2025-02-12 19:54:04 [RateCDR] => 1 ) [2025-02-12 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-12 16:54:04' and `end` < '2025-02-12 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-12 19:54:18] Production.INFO: count ==2055 [2025-02-12 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 16:54:04 - End Time 2025-02-12 19:54:04 [2025-02-12 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461341', 'tblTempUsageDetail_20' ) start [2025-02-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461341', 'tblTempUsageDetail_20' ) end [2025-02-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461341', 'tblTempVendorCDR_20' ) start [2025-02-12 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461341', 'tblTempVendorCDR_20' ) end [2025-02-12 19:54:18] Production.INFO: ProcessCDR(1,14461341,1,1,2) [2025-02-12 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461341', 'tblTempUsageDetail_20' ) start [2025-02-12 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461341', 'tblTempUsageDetail_20' ) end [2025-02-12 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:54:21] Production.INFO: ==11066== Releasing lock... [2025-02-12 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:54:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:55:05 [end_date_ymd] => 2025-02-12 19:55:05 [RateCDR] => 1 ) [2025-02-12 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 16:55:05' and `end` < '2025-02-12 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-12 19:55:19] Production.INFO: count ==2048 [2025-02-12 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:55:05 - End Time 2025-02-12 19:55:05 [2025-02-12 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461346', 'tblTempUsageDetail_20' ) start [2025-02-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461346', 'tblTempUsageDetail_20' ) end [2025-02-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461346', 'tblTempVendorCDR_20' ) start [2025-02-12 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461346', 'tblTempVendorCDR_20' ) end [2025-02-12 19:55:19] Production.INFO: ProcessCDR(1,14461346,1,1,2) [2025-02-12 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461346', 'tblTempUsageDetail_20' ) start [2025-02-12 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461346', 'tblTempUsageDetail_20' ) end [2025-02-12 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:55:24] Production.INFO: ==11139== Releasing lock... [2025-02-12 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:55:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-12 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:56:05 [end_date_ymd] => 2025-02-12 19:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:56:05' and `end` < '2025-02-12 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-12 19:56:19] Production.INFO: count ==2047 [2025-02-12 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:56:05 - End Time 2025-02-12 19:56:05 [2025-02-12 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461351', 'tblTempUsageDetail_20' ) start [2025-02-12 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461351', 'tblTempUsageDetail_20' ) end [2025-02-12 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461351', 'tblTempVendorCDR_20' ) start [2025-02-12 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461351', 'tblTempVendorCDR_20' ) end [2025-02-12 19:56:19] Production.INFO: ProcessCDR(1,14461351,1,1,2) [2025-02-12 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461351', 'tblTempUsageDetail_20' ) start [2025-02-12 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461351', 'tblTempUsageDetail_20' ) end [2025-02-12 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:56:24] Production.INFO: ==11215== Releasing lock... [2025-02-12 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:56:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:57:05 [end_date_ymd] => 2025-02-12 19:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:57:05' and `end` < '2025-02-12 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-12 19:57:18] Production.INFO: count ==2040 [2025-02-12 19:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 16:57:05 - End Time 2025-02-12 19:57:05 [2025-02-12 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461356', 'tblTempUsageDetail_20' ) start [2025-02-12 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461356', 'tblTempUsageDetail_20' ) end [2025-02-12 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461356', 'tblTempVendorCDR_20' ) start [2025-02-12 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461356', 'tblTempVendorCDR_20' ) end [2025-02-12 19:57:18] Production.INFO: ProcessCDR(1,14461356,1,1,2) [2025-02-12 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461356', 'tblTempUsageDetail_20' ) start [2025-02-12 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461356', 'tblTempUsageDetail_20' ) end [2025-02-12 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:57:22] Production.INFO: ==11330== Releasing lock... [2025-02-12 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:57:22] Production.INFO: 43 MB #Memory Used# [2025-02-12 19:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:58:06 [end_date_ymd] => 2025-02-12 19:58:06 [RateCDR] => 1 ) [2025-02-12 19: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-12 16:58:06' and `end` < '2025-02-12 19: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-12 19:58:19] Production.INFO: count ==2028 [2025-02-12 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:58:06 - End Time 2025-02-12 19:58:06 [2025-02-12 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461361', 'tblTempUsageDetail_20' ) start [2025-02-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461361', 'tblTempUsageDetail_20' ) end [2025-02-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461361', 'tblTempVendorCDR_20' ) start [2025-02-12 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461361', 'tblTempVendorCDR_20' ) end [2025-02-12 19:58:19] Production.INFO: ProcessCDR(1,14461361,1,1,2) [2025-02-12 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461361', 'tblTempUsageDetail_20' ) start [2025-02-12 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461361', 'tblTempUsageDetail_20' ) end [2025-02-12 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:58:23] Production.INFO: ==11410== Releasing lock... [2025-02-12 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:58:23] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 16:59:05 [end_date_ymd] => 2025-02-12 19:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 16:59:05' and `end` < '2025-02-12 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-12 19:59:18] Production.INFO: count ==2031 [2025-02-12 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 16:59:05 - End Time 2025-02-12 19:59:05 [2025-02-12 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461366', 'tblTempUsageDetail_20' ) start [2025-02-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461366', 'tblTempUsageDetail_20' ) end [2025-02-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461366', 'tblTempVendorCDR_20' ) start [2025-02-12 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461366', 'tblTempVendorCDR_20' ) end [2025-02-12 19:59:19] Production.INFO: ProcessCDR(1,14461366,1,1,2) [2025-02-12 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461366', 'tblTempUsageDetail_20' ) start [2025-02-12 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461366', 'tblTempUsageDetail_20' ) end [2025-02-12 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 19:59:22] Production.INFO: ==11481== Releasing lock... [2025-02-12 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 19:59:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-12 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:00:06 [end_date_ymd] => 2025-02-12 20:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:00:06' and `end` < '2025-02-12 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-12 20:00:19] Production.INFO: count ==2013 [2025-02-12 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:00:06 - End Time 2025-02-12 20:00:06 [2025-02-12 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461372', 'tblTempUsageDetail_20' ) start [2025-02-12 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461372', 'tblTempUsageDetail_20' ) end [2025-02-12 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461372', 'tblTempVendorCDR_20' ) start [2025-02-12 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461372', 'tblTempVendorCDR_20' ) end [2025-02-12 20:00:20] Production.INFO: ProcessCDR(1,14461372,1,1,2) [2025-02-12 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461372', 'tblTempUsageDetail_20' ) start [2025-02-12 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461372', 'tblTempUsageDetail_20' ) end [2025-02-12 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:00:23] Production.INFO: ==11562== Releasing lock... [2025-02-12 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:00:23] Production.INFO: 43 MB #Memory Used# [2025-02-12 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:01:05 [end_date_ymd] => 2025-02-12 20:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:01:05' and `end` < '2025-02-12 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-12 20:01:19] Production.INFO: count ==1980 [2025-02-12 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:01:05 - End Time 2025-02-12 20:01:05 [2025-02-12 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461377', 'tblTempUsageDetail_20' ) start [2025-02-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461377', 'tblTempUsageDetail_20' ) end [2025-02-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461377', 'tblTempVendorCDR_20' ) start [2025-02-12 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461377', 'tblTempVendorCDR_20' ) end [2025-02-12 20:01:19] Production.INFO: ProcessCDR(1,14461377,1,1,2) [2025-02-12 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461377', 'tblTempUsageDetail_20' ) start [2025-02-12 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461377', 'tblTempUsageDetail_20' ) end [2025-02-12 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:01:23] Production.INFO: ==11686== Releasing lock... [2025-02-12 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:01:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-12 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:02:06 [end_date_ymd] => 2025-02-12 20:02:06 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:02:06' and `end` < '2025-02-12 20: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-12 20:02:19] Production.INFO: count ==1973 [2025-02-12 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:02:06 - End Time 2025-02-12 20:02:06 [2025-02-12 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461382', 'tblTempUsageDetail_20' ) start [2025-02-12 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461382', 'tblTempUsageDetail_20' ) end [2025-02-12 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461382', 'tblTempVendorCDR_20' ) start [2025-02-12 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461382', 'tblTempVendorCDR_20' ) end [2025-02-12 20:02:19] Production.INFO: ProcessCDR(1,14461382,1,1,2) [2025-02-12 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461382', 'tblTempUsageDetail_20' ) start [2025-02-12 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461382', 'tblTempUsageDetail_20' ) end [2025-02-12 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:02:23] Production.INFO: ==11759== Releasing lock... [2025-02-12 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:02:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:03:05 [end_date_ymd] => 2025-02-12 20:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:03:05' and `end` < '2025-02-12 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-12 20:03:18] Production.INFO: count ==1969 [2025-02-12 20:03:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:03:05 - End Time 2025-02-12 20:03:05 [2025-02-12 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461387', 'tblTempUsageDetail_20' ) start [2025-02-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461387', 'tblTempUsageDetail_20' ) end [2025-02-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461387', 'tblTempVendorCDR_20' ) start [2025-02-12 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461387', 'tblTempVendorCDR_20' ) end [2025-02-12 20:03:19] Production.INFO: ProcessCDR(1,14461387,1,1,2) [2025-02-12 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461387', 'tblTempUsageDetail_20' ) start [2025-02-12 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461387', 'tblTempUsageDetail_20' ) end [2025-02-12 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:03:23] Production.INFO: ==11831== Releasing lock... [2025-02-12 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:03:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:04:05 [end_date_ymd] => 2025-02-12 20:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:04:05' and `end` < '2025-02-12 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-12 20:04:19] Production.INFO: count ==1964 [2025-02-12 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:04:05 - End Time 2025-02-12 20:04:05 [2025-02-12 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461392', 'tblTempUsageDetail_20' ) start [2025-02-12 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461392', 'tblTempUsageDetail_20' ) end [2025-02-12 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461392', 'tblTempVendorCDR_20' ) start [2025-02-12 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461392', 'tblTempVendorCDR_20' ) end [2025-02-12 20:04:19] Production.INFO: ProcessCDR(1,14461392,1,1,2) [2025-02-12 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461392', 'tblTempUsageDetail_20' ) start [2025-02-12 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461392', 'tblTempUsageDetail_20' ) end [2025-02-12 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:04:24] Production.INFO: ==11905== Releasing lock... [2025-02-12 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:04:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:05:05 [end_date_ymd] => 2025-02-12 20:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:05:05' and `end` < '2025-02-12 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-12 20:05:19] Production.INFO: count ==1976 [2025-02-12 20:05:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:05:05 - End Time 2025-02-12 20:05:05 [2025-02-12 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461397', 'tblTempUsageDetail_20' ) start [2025-02-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461397', 'tblTempUsageDetail_20' ) end [2025-02-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461397', 'tblTempVendorCDR_20' ) start [2025-02-12 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461397', 'tblTempVendorCDR_20' ) end [2025-02-12 20:05:19] Production.INFO: ProcessCDR(1,14461397,1,1,2) [2025-02-12 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461397', 'tblTempUsageDetail_20' ) start [2025-02-12 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461397', 'tblTempUsageDetail_20' ) end [2025-02-12 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:05:24] Production.INFO: ==11979== Releasing lock... [2025-02-12 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:05:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:06:04 [end_date_ymd] => 2025-02-12 20:06:04 [RateCDR] => 1 ) [2025-02-12 20:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:06:04' and `end` < '2025-02-12 20:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:06:18] Production.INFO: count ==1970 [2025-02-12 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:06:04 - End Time 2025-02-12 20:06:04 [2025-02-12 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461402', 'tblTempUsageDetail_20' ) start [2025-02-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461402', 'tblTempUsageDetail_20' ) end [2025-02-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461402', 'tblTempVendorCDR_20' ) start [2025-02-12 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461402', 'tblTempVendorCDR_20' ) end [2025-02-12 20:06:18] Production.INFO: ProcessCDR(1,14461402,1,1,2) [2025-02-12 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461402', 'tblTempUsageDetail_20' ) start [2025-02-12 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461402', 'tblTempUsageDetail_20' ) end [2025-02-12 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:06:21] Production.INFO: ==12051== Releasing lock... [2025-02-12 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:06:21] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:07:05 [end_date_ymd] => 2025-02-12 20:07:05 [RateCDR] => 1 ) [2025-02-12 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:07:05' and `end` < '2025-02-12 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:07:18] Production.INFO: count ==1962 [2025-02-12 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:07:05 - End Time 2025-02-12 20:07:05 [2025-02-12 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461407', 'tblTempUsageDetail_20' ) start [2025-02-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461407', 'tblTempUsageDetail_20' ) end [2025-02-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461407', 'tblTempVendorCDR_20' ) start [2025-02-12 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461407', 'tblTempVendorCDR_20' ) end [2025-02-12 20:07:19] Production.INFO: ProcessCDR(1,14461407,1,1,2) [2025-02-12 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461407', 'tblTempUsageDetail_20' ) start [2025-02-12 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461407', 'tblTempUsageDetail_20' ) end [2025-02-12 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:07:22] Production.INFO: ==12125== Releasing lock... [2025-02-12 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:07:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:08:05 [end_date_ymd] => 2025-02-12 20:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:08:05' and `end` < '2025-02-12 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-12 20:08:19] Production.INFO: count ==1956 [2025-02-12 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:08:05 - End Time 2025-02-12 20:08:05 [2025-02-12 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461412', 'tblTempUsageDetail_20' ) start [2025-02-12 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461412', 'tblTempUsageDetail_20' ) end [2025-02-12 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461412', 'tblTempVendorCDR_20' ) start [2025-02-12 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461412', 'tblTempVendorCDR_20' ) end [2025-02-12 20:08:19] Production.INFO: ProcessCDR(1,14461412,1,1,2) [2025-02-12 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461412', 'tblTempUsageDetail_20' ) start [2025-02-12 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461412', 'tblTempUsageDetail_20' ) end [2025-02-12 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:08:24] Production.INFO: ==12199== Releasing lock... [2025-02-12 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:08:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-12 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:09:05 [end_date_ymd] => 2025-02-12 20:09:05 [RateCDR] => 1 ) [2025-02-12 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:09:05' and `end` < '2025-02-12 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:09:18] Production.INFO: count ==1934 [2025-02-12 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:09:05 - End Time 2025-02-12 20:09:05 [2025-02-12 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461417', 'tblTempUsageDetail_20' ) start [2025-02-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461417', 'tblTempUsageDetail_20' ) end [2025-02-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461417', 'tblTempVendorCDR_20' ) start [2025-02-12 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461417', 'tblTempVendorCDR_20' ) end [2025-02-12 20:09:19] Production.INFO: ProcessCDR(1,14461417,1,1,2) [2025-02-12 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461417', 'tblTempUsageDetail_20' ) start [2025-02-12 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461417', 'tblTempUsageDetail_20' ) end [2025-02-12 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:09:22] Production.INFO: ==12272== Releasing lock... [2025-02-12 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:09:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-12 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:10:06 [end_date_ymd] => 2025-02-12 20:10:06 [RateCDR] => 1 ) [2025-02-12 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:10:06' and `end` < '2025-02-12 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:10:22] Production.INFO: count ==1931 [2025-02-12 20:10:22] Production.ERROR: pbx CDR StartTime 2025-02-12 17:10:06 - End Time 2025-02-12 20:10:06 [2025-02-12 20:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461423', 'tblTempUsageDetail_20' ) start [2025-02-12 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461423', 'tblTempUsageDetail_20' ) end [2025-02-12 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461423', 'tblTempVendorCDR_20' ) start [2025-02-12 20:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461423', 'tblTempVendorCDR_20' ) end [2025-02-12 20:10:22] Production.INFO: ProcessCDR(1,14461423,1,1,2) [2025-02-12 20:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461423', 'tblTempUsageDetail_20' ) start [2025-02-12 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461423', 'tblTempUsageDetail_20' ) end [2025-02-12 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:10:26] Production.INFO: ==12349== Releasing lock... [2025-02-12 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:10:26] Production.INFO: 42.25 MB #Memory Used# [2025-02-12 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:11:04 [end_date_ymd] => 2025-02-12 20:11:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:11:04' and `end` < '2025-02-12 20: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-12 20:11:21] Production.INFO: count ==1887 [2025-02-12 20:11:21] Production.ERROR: pbx CDR StartTime 2025-02-12 17:11:04 - End Time 2025-02-12 20:11:04 [2025-02-12 20:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461428', 'tblTempUsageDetail_20' ) start [2025-02-12 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461428', 'tblTempUsageDetail_20' ) end [2025-02-12 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461428', 'tblTempVendorCDR_20' ) start [2025-02-12 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461428', 'tblTempVendorCDR_20' ) end [2025-02-12 20:11:21] Production.INFO: ProcessCDR(1,14461428,1,1,2) [2025-02-12 20:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461428', 'tblTempUsageDetail_20' ) start [2025-02-12 20:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461428', 'tblTempUsageDetail_20' ) end [2025-02-12 20:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:11:26] Production.INFO: ==12427== Releasing lock... [2025-02-12 20:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:11:26] Production.INFO: 42 MB #Memory Used# [2025-02-12 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:12:05 [end_date_ymd] => 2025-02-12 20:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:12:05' and `end` < '2025-02-12 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-12 20:12:19] Production.INFO: count ==1875 [2025-02-12 20:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:12:05 - End Time 2025-02-12 20:12:05 [2025-02-12 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461433', 'tblTempUsageDetail_20' ) start [2025-02-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461433', 'tblTempUsageDetail_20' ) end [2025-02-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461433', 'tblTempVendorCDR_20' ) start [2025-02-12 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461433', 'tblTempVendorCDR_20' ) end [2025-02-12 20:12:19] Production.INFO: ProcessCDR(1,14461433,1,1,2) [2025-02-12 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461433', 'tblTempUsageDetail_20' ) start [2025-02-12 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461433', 'tblTempUsageDetail_20' ) end [2025-02-12 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:12:23] Production.INFO: ==12536== Releasing lock... [2025-02-12 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:12:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:13:05 [end_date_ymd] => 2025-02-12 20:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:13:05' and `end` < '2025-02-12 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-12 20:13:18] Production.INFO: count ==1871 [2025-02-12 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:13:05 - End Time 2025-02-12 20:13:05 [2025-02-12 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461438', 'tblTempUsageDetail_20' ) start [2025-02-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461438', 'tblTempUsageDetail_20' ) end [2025-02-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461438', 'tblTempVendorCDR_20' ) start [2025-02-12 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461438', 'tblTempVendorCDR_20' ) end [2025-02-12 20:13:18] Production.INFO: ProcessCDR(1,14461438,1,1,2) [2025-02-12 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461438', 'tblTempUsageDetail_20' ) start [2025-02-12 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461438', 'tblTempUsageDetail_20' ) end [2025-02-12 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:13:23] Production.INFO: ==12609== Releasing lock... [2025-02-12 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:13:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:14:05 [end_date_ymd] => 2025-02-12 20:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:14:05' and `end` < '2025-02-12 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-12 20:14:19] Production.INFO: count ==1869 [2025-02-12 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:14:05 - End Time 2025-02-12 20:14:05 [2025-02-12 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461443', 'tblTempUsageDetail_20' ) start [2025-02-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461443', 'tblTempUsageDetail_20' ) end [2025-02-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461443', 'tblTempVendorCDR_20' ) start [2025-02-12 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461443', 'tblTempVendorCDR_20' ) end [2025-02-12 20:14:19] Production.INFO: ProcessCDR(1,14461443,1,1,2) [2025-02-12 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461443', 'tblTempUsageDetail_20' ) start [2025-02-12 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461443', 'tblTempUsageDetail_20' ) end [2025-02-12 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:14:23] Production.INFO: ==12686== Releasing lock... [2025-02-12 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:14:23] Production.INFO: 42 MB #Memory Used# [2025-02-12 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:15:05 [end_date_ymd] => 2025-02-12 20:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:15:05' and `end` < '2025-02-12 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-12 20:15:18] Production.INFO: count ==1865 [2025-02-12 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:15:05 - End Time 2025-02-12 20:15:05 [2025-02-12 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461448', 'tblTempUsageDetail_20' ) start [2025-02-12 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461448', 'tblTempUsageDetail_20' ) end [2025-02-12 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461448', 'tblTempVendorCDR_20' ) start [2025-02-12 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461448', 'tblTempVendorCDR_20' ) end [2025-02-12 20:15:19] Production.INFO: ProcessCDR(1,14461448,1,1,2) [2025-02-12 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461448', 'tblTempUsageDetail_20' ) start [2025-02-12 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461448', 'tblTempUsageDetail_20' ) end [2025-02-12 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:15:23] Production.INFO: ==12759== Releasing lock... [2025-02-12 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:15:23] Production.INFO: 42 MB #Memory Used# [2025-02-12 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:16:05 [end_date_ymd] => 2025-02-12 20:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:16:05' and `end` < '2025-02-12 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-12 20:16:19] Production.INFO: count ==1863 [2025-02-12 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:16:05 - End Time 2025-02-12 20:16:05 [2025-02-12 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461453', 'tblTempUsageDetail_20' ) start [2025-02-12 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461453', 'tblTempUsageDetail_20' ) end [2025-02-12 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461453', 'tblTempVendorCDR_20' ) start [2025-02-12 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461453', 'tblTempVendorCDR_20' ) end [2025-02-12 20:16:20] Production.INFO: ProcessCDR(1,14461453,1,1,2) [2025-02-12 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461453', 'tblTempUsageDetail_20' ) start [2025-02-12 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461453', 'tblTempUsageDetail_20' ) end [2025-02-12 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:16:23] Production.INFO: ==12830== Releasing lock... [2025-02-12 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:16:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:17:05 [end_date_ymd] => 2025-02-12 20:17:05 [RateCDR] => 1 ) [2025-02-12 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:17:05' and `end` < '2025-02-12 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:17:18] Production.INFO: count ==1847 [2025-02-12 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:17:05 - End Time 2025-02-12 20:17:05 [2025-02-12 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461458', 'tblTempUsageDetail_20' ) start [2025-02-12 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461458', 'tblTempUsageDetail_20' ) end [2025-02-12 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461458', 'tblTempVendorCDR_20' ) start [2025-02-12 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461458', 'tblTempVendorCDR_20' ) end [2025-02-12 20:17:19] Production.INFO: ProcessCDR(1,14461458,1,1,2) [2025-02-12 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461458', 'tblTempUsageDetail_20' ) start [2025-02-12 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461458', 'tblTempUsageDetail_20' ) end [2025-02-12 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:17:22] Production.INFO: ==12901== Releasing lock... [2025-02-12 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:17:22] Production.INFO: 42 MB #Memory Used# [2025-02-12 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:18:05 [end_date_ymd] => 2025-02-12 20:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:18:05' and `end` < '2025-02-12 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-12 20:18:18] Production.INFO: count ==1847 [2025-02-12 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:18:05 - End Time 2025-02-12 20:18:05 [2025-02-12 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461463', 'tblTempUsageDetail_20' ) start [2025-02-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461463', 'tblTempUsageDetail_20' ) end [2025-02-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461463', 'tblTempVendorCDR_20' ) start [2025-02-12 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461463', 'tblTempVendorCDR_20' ) end [2025-02-12 20:18:19] Production.INFO: ProcessCDR(1,14461463,1,1,2) [2025-02-12 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461463', 'tblTempUsageDetail_20' ) start [2025-02-12 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461463', 'tblTempUsageDetail_20' ) end [2025-02-12 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:18:22] Production.INFO: ==12984== Releasing lock... [2025-02-12 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:18:22] Production.INFO: 42 MB #Memory Used# [2025-02-12 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:19:04 [end_date_ymd] => 2025-02-12 20:19:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:19:04' and `end` < '2025-02-12 20: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-12 20:19:17] Production.INFO: count ==1843 [2025-02-12 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:19:04 - End Time 2025-02-12 20:19:04 [2025-02-12 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461468', 'tblTempUsageDetail_20' ) start [2025-02-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461468', 'tblTempUsageDetail_20' ) end [2025-02-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461468', 'tblTempVendorCDR_20' ) start [2025-02-12 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461468', 'tblTempVendorCDR_20' ) end [2025-02-12 20:19:18] Production.INFO: ProcessCDR(1,14461468,1,1,2) [2025-02-12 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461468', 'tblTempUsageDetail_20' ) start [2025-02-12 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461468', 'tblTempUsageDetail_20' ) end [2025-02-12 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:19:21] Production.INFO: ==13056== Releasing lock... [2025-02-12 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:19:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:20:06 [end_date_ymd] => 2025-02-12 20:20:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:20:06' and `end` < '2025-02-12 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-12 20:20:20] Production.INFO: count ==1856 [2025-02-12 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:20:06 - End Time 2025-02-12 20:20:06 [2025-02-12 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461474', 'tblTempUsageDetail_20' ) start [2025-02-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461474', 'tblTempUsageDetail_20' ) end [2025-02-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461474', 'tblTempVendorCDR_20' ) start [2025-02-12 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461474', 'tblTempVendorCDR_20' ) end [2025-02-12 20:20:20] Production.INFO: ProcessCDR(1,14461474,1,1,2) [2025-02-12 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461474', 'tblTempUsageDetail_20' ) start [2025-02-12 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461474', 'tblTempUsageDetail_20' ) end [2025-02-12 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:20:23] Production.INFO: ==13135== Releasing lock... [2025-02-12 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:20:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:21:06 [end_date_ymd] => 2025-02-12 20:21:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:21:06' and `end` < '2025-02-12 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-12 20:21:20] Production.INFO: count ==1841 [2025-02-12 20:21:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:21:06 - End Time 2025-02-12 20:21:06 [2025-02-12 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461479', 'tblTempUsageDetail_20' ) start [2025-02-12 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461479', 'tblTempUsageDetail_20' ) end [2025-02-12 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461479', 'tblTempVendorCDR_20' ) start [2025-02-12 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461479', 'tblTempVendorCDR_20' ) end [2025-02-12 20:21:20] Production.INFO: ProcessCDR(1,14461479,1,1,2) [2025-02-12 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461479', 'tblTempUsageDetail_20' ) start [2025-02-12 20:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461479', 'tblTempUsageDetail_20' ) end [2025-02-12 20:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:21:23] Production.INFO: ==13208== Releasing lock... [2025-02-12 20:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:21:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:22:05 [end_date_ymd] => 2025-02-12 20:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:22:05' and `end` < '2025-02-12 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-12 20:22:18] Production.INFO: count ==1826 [2025-02-12 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:22:05 - End Time 2025-02-12 20:22:05 [2025-02-12 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461484', 'tblTempUsageDetail_20' ) start [2025-02-12 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461484', 'tblTempUsageDetail_20' ) end [2025-02-12 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461484', 'tblTempVendorCDR_20' ) start [2025-02-12 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461484', 'tblTempVendorCDR_20' ) end [2025-02-12 20:22:19] Production.INFO: ProcessCDR(1,14461484,1,1,2) [2025-02-12 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461484', 'tblTempUsageDetail_20' ) start [2025-02-12 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461484', 'tblTempUsageDetail_20' ) end [2025-02-12 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:22:22] Production.INFO: ==13282== Releasing lock... [2025-02-12 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:22:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:23:05 [end_date_ymd] => 2025-02-12 20:23:05 [RateCDR] => 1 ) [2025-02-12 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:23:05' and `end` < '2025-02-12 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:23:18] Production.INFO: count ==1826 [2025-02-12 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:23:05 - End Time 2025-02-12 20:23:05 [2025-02-12 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461489', 'tblTempUsageDetail_20' ) start [2025-02-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461489', 'tblTempUsageDetail_20' ) end [2025-02-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461489', 'tblTempVendorCDR_20' ) start [2025-02-12 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461489', 'tblTempVendorCDR_20' ) end [2025-02-12 20:23:18] Production.INFO: ProcessCDR(1,14461489,1,1,2) [2025-02-12 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461489', 'tblTempUsageDetail_20' ) start [2025-02-12 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461489', 'tblTempUsageDetail_20' ) end [2025-02-12 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:23:22] Production.INFO: ==13356== Releasing lock... [2025-02-12 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:23:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:24:06 [end_date_ymd] => 2025-02-12 20:24:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:24:06' and `end` < '2025-02-12 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-12 20:24:19] Production.INFO: count ==1821 [2025-02-12 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:24:06 - End Time 2025-02-12 20:24:06 [2025-02-12 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461494', 'tblTempUsageDetail_20' ) start [2025-02-12 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461494', 'tblTempUsageDetail_20' ) end [2025-02-12 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461494', 'tblTempVendorCDR_20' ) start [2025-02-12 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461494', 'tblTempVendorCDR_20' ) end [2025-02-12 20:24:19] Production.INFO: ProcessCDR(1,14461494,1,1,2) [2025-02-12 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461494', 'tblTempUsageDetail_20' ) start [2025-02-12 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461494', 'tblTempUsageDetail_20' ) end [2025-02-12 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:24:22] Production.INFO: ==13429== Releasing lock... [2025-02-12 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:24:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:25:05 [end_date_ymd] => 2025-02-12 20:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:25:05' and `end` < '2025-02-12 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-12 20:25:18] Production.INFO: count ==1818 [2025-02-12 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:25:05 - End Time 2025-02-12 20:25:05 [2025-02-12 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461499', 'tblTempUsageDetail_20' ) start [2025-02-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461499', 'tblTempUsageDetail_20' ) end [2025-02-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461499', 'tblTempVendorCDR_20' ) start [2025-02-12 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461499', 'tblTempVendorCDR_20' ) end [2025-02-12 20:25:19] Production.INFO: ProcessCDR(1,14461499,1,1,2) [2025-02-12 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461499', 'tblTempUsageDetail_20' ) start [2025-02-12 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461499', 'tblTempUsageDetail_20' ) end [2025-02-12 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:25:22] Production.INFO: ==13502== Releasing lock... [2025-02-12 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:25:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:26:05 [end_date_ymd] => 2025-02-12 20:26:05 [RateCDR] => 1 ) [2025-02-12 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:26:05' and `end` < '2025-02-12 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:26:21] Production.INFO: count ==1821 [2025-02-12 20:26:22] Production.ERROR: pbx CDR StartTime 2025-02-12 17:26:05 - End Time 2025-02-12 20:26:05 [2025-02-12 20:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461504', 'tblTempUsageDetail_20' ) start [2025-02-12 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461504', 'tblTempUsageDetail_20' ) end [2025-02-12 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461504', 'tblTempVendorCDR_20' ) start [2025-02-12 20:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461504', 'tblTempVendorCDR_20' ) end [2025-02-12 20:26:22] Production.INFO: ProcessCDR(1,14461504,1,1,2) [2025-02-12 20:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461504', 'tblTempUsageDetail_20' ) start [2025-02-12 20:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461504', 'tblTempUsageDetail_20' ) end [2025-02-12 20:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:26:25] Production.INFO: ==13634== Releasing lock... [2025-02-12 20:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:26:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:27:04 [end_date_ymd] => 2025-02-12 20:27:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:27:04' and `end` < '2025-02-12 20: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-12 20:27:18] Production.INFO: count ==1819 [2025-02-12 20:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:27:04 - End Time 2025-02-12 20:27:04 [2025-02-12 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461505', 'tblTempUsageDetail_20' ) start [2025-02-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461505', 'tblTempUsageDetail_20' ) end [2025-02-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461505', 'tblTempVendorCDR_20' ) start [2025-02-12 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461505', 'tblTempVendorCDR_20' ) end [2025-02-12 20:27:18] Production.INFO: ProcessCDR(1,14461505,1,1,2) [2025-02-12 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461505', 'tblTempUsageDetail_20' ) start [2025-02-12 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461505', 'tblTempUsageDetail_20' ) end [2025-02-12 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:27:21] Production.INFO: ==13704== Releasing lock... [2025-02-12 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:27:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-12 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:28:05 [end_date_ymd] => 2025-02-12 20:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:28:05' and `end` < '2025-02-12 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-12 20:28:18] Production.INFO: count ==1818 [2025-02-12 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:28:05 - End Time 2025-02-12 20:28:05 [2025-02-12 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461514', 'tblTempUsageDetail_20' ) start [2025-02-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461514', 'tblTempUsageDetail_20' ) end [2025-02-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461514', 'tblTempVendorCDR_20' ) start [2025-02-12 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461514', 'tblTempVendorCDR_20' ) end [2025-02-12 20:28:19] Production.INFO: ProcessCDR(1,14461514,1,1,2) [2025-02-12 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461514', 'tblTempUsageDetail_20' ) start [2025-02-12 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461514', 'tblTempUsageDetail_20' ) end [2025-02-12 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:28:22] Production.INFO: ==13845== Releasing lock... [2025-02-12 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:28:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:29:06 [end_date_ymd] => 2025-02-12 20:29:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:29:06' and `end` < '2025-02-12 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-12 20:29:19] Production.INFO: count ==1818 [2025-02-12 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:29:06 - End Time 2025-02-12 20:29:06 [2025-02-12 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461519', 'tblTempUsageDetail_20' ) start [2025-02-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461519', 'tblTempUsageDetail_20' ) end [2025-02-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461519', 'tblTempVendorCDR_20' ) start [2025-02-12 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461519', 'tblTempVendorCDR_20' ) end [2025-02-12 20:29:19] Production.INFO: ProcessCDR(1,14461519,1,1,2) [2025-02-12 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461519', 'tblTempUsageDetail_20' ) start [2025-02-12 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461519', 'tblTempUsageDetail_20' ) end [2025-02-12 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:29:22] Production.INFO: ==13923== Releasing lock... [2025-02-12 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:29:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:30:06 [end_date_ymd] => 2025-02-12 20:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:30:06' and `end` < '2025-02-12 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-12 20:30:19] Production.INFO: count ==1815 [2025-02-12 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:30:06 - End Time 2025-02-12 20:30:06 [2025-02-12 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461525', 'tblTempUsageDetail_20' ) start [2025-02-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461525', 'tblTempUsageDetail_20' ) end [2025-02-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461525', 'tblTempVendorCDR_20' ) start [2025-02-12 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461525', 'tblTempVendorCDR_20' ) end [2025-02-12 20:30:19] Production.INFO: ProcessCDR(1,14461525,1,1,2) [2025-02-12 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461525', 'tblTempUsageDetail_20' ) start [2025-02-12 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461525', 'tblTempUsageDetail_20' ) end [2025-02-12 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:30:23] Production.INFO: ==13997== Releasing lock... [2025-02-12 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:30:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:31:05 [end_date_ymd] => 2025-02-12 20:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:31:05' and `end` < '2025-02-12 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-12 20:31:19] Production.INFO: count ==1773 [2025-02-12 20:31:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:31:05 - End Time 2025-02-12 20:31:05 [2025-02-12 20:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461530', 'tblTempUsageDetail_20' ) start [2025-02-12 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461530', 'tblTempUsageDetail_20' ) end [2025-02-12 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461530', 'tblTempVendorCDR_20' ) start [2025-02-12 20:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461530', 'tblTempVendorCDR_20' ) end [2025-02-12 20:31:20] Production.INFO: ProcessCDR(1,14461530,1,1,2) [2025-02-12 20:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461530', 'tblTempUsageDetail_20' ) start [2025-02-12 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461530', 'tblTempUsageDetail_20' ) end [2025-02-12 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:31:23] Production.INFO: ==14070== Releasing lock... [2025-02-12 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:31:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:32:05 [end_date_ymd] => 2025-02-12 20:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:32:05' and `end` < '2025-02-12 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-12 20:32:19] Production.INFO: count ==1771 [2025-02-12 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:32:05 - End Time 2025-02-12 20:32:05 [2025-02-12 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461535', 'tblTempUsageDetail_20' ) start [2025-02-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461535', 'tblTempUsageDetail_20' ) end [2025-02-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461535', 'tblTempVendorCDR_20' ) start [2025-02-12 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461535', 'tblTempVendorCDR_20' ) end [2025-02-12 20:32:19] Production.INFO: ProcessCDR(1,14461535,1,1,2) [2025-02-12 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461535', 'tblTempUsageDetail_20' ) start [2025-02-12 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461535', 'tblTempUsageDetail_20' ) end [2025-02-12 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:32:23] Production.INFO: ==14140== Releasing lock... [2025-02-12 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:32:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:33:06 [end_date_ymd] => 2025-02-12 20:33:06 [RateCDR] => 1 ) [2025-02-12 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:33:06' and `end` < '2025-02-12 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:33:19] Production.INFO: count ==1766 [2025-02-12 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:33:06 - End Time 2025-02-12 20:33:06 [2025-02-12 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461540', 'tblTempUsageDetail_20' ) start [2025-02-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461540', 'tblTempUsageDetail_20' ) end [2025-02-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461540', 'tblTempVendorCDR_20' ) start [2025-02-12 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461540', 'tblTempVendorCDR_20' ) end [2025-02-12 20:33:19] Production.INFO: ProcessCDR(1,14461540,1,1,2) [2025-02-12 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461540', 'tblTempUsageDetail_20' ) start [2025-02-12 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461540', 'tblTempUsageDetail_20' ) end [2025-02-12 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:33:22] Production.INFO: ==14227== Releasing lock... [2025-02-12 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:33:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-12 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:34:04 [end_date_ymd] => 2025-02-12 20:34:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:34:04' and `end` < '2025-02-12 20: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-12 20:34:18] Production.INFO: count ==1768 [2025-02-12 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:34:04 - End Time 2025-02-12 20:34:04 [2025-02-12 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461545', 'tblTempUsageDetail_20' ) start [2025-02-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461545', 'tblTempUsageDetail_20' ) end [2025-02-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461545', 'tblTempVendorCDR_20' ) start [2025-02-12 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461545', 'tblTempVendorCDR_20' ) end [2025-02-12 20:34:19] Production.INFO: ProcessCDR(1,14461545,1,1,2) [2025-02-12 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461545', 'tblTempUsageDetail_20' ) start [2025-02-12 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461545', 'tblTempUsageDetail_20' ) end [2025-02-12 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:34:24] Production.INFO: ==14343== Releasing lock... [2025-02-12 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:34:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:35:05 [end_date_ymd] => 2025-02-12 20:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:35:05' and `end` < '2025-02-12 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-12 20:35:19] Production.INFO: count ==1757 [2025-02-12 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:35:05 - End Time 2025-02-12 20:35:05 [2025-02-12 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461550', 'tblTempUsageDetail_20' ) start [2025-02-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461550', 'tblTempUsageDetail_20' ) end [2025-02-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461550', 'tblTempVendorCDR_20' ) start [2025-02-12 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461550', 'tblTempVendorCDR_20' ) end [2025-02-12 20:35:19] Production.INFO: ProcessCDR(1,14461550,1,1,2) [2025-02-12 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461550', 'tblTempUsageDetail_20' ) start [2025-02-12 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461550', 'tblTempUsageDetail_20' ) end [2025-02-12 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:35:23] Production.INFO: ==14479== Releasing lock... [2025-02-12 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:35:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:36:05 [end_date_ymd] => 2025-02-12 20:36:05 [RateCDR] => 1 ) [2025-02-12 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:36:05' and `end` < '2025-02-12 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:36:18] Production.INFO: count ==1752 [2025-02-12 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:36:05 - End Time 2025-02-12 20:36:05 [2025-02-12 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461555', 'tblTempUsageDetail_20' ) start [2025-02-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461555', 'tblTempUsageDetail_20' ) end [2025-02-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461555', 'tblTempVendorCDR_20' ) start [2025-02-12 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461555', 'tblTempVendorCDR_20' ) end [2025-02-12 20:36:18] Production.INFO: ProcessCDR(1,14461555,1,1,2) [2025-02-12 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461555', 'tblTempUsageDetail_20' ) start [2025-02-12 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461555', 'tblTempUsageDetail_20' ) end [2025-02-12 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:36:21] Production.INFO: ==14594== Releasing lock... [2025-02-12 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:36:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-12 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:37:05 [end_date_ymd] => 2025-02-12 20:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:37:05' and `end` < '2025-02-12 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-12 20:37:19] Production.INFO: count ==1749 [2025-02-12 20:37:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:37:05 - End Time 2025-02-12 20:37:05 [2025-02-12 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461560', 'tblTempUsageDetail_20' ) start [2025-02-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461560', 'tblTempUsageDetail_20' ) end [2025-02-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461560', 'tblTempVendorCDR_20' ) start [2025-02-12 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461560', 'tblTempVendorCDR_20' ) end [2025-02-12 20:37:19] Production.INFO: ProcessCDR(1,14461560,1,1,2) [2025-02-12 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461560', 'tblTempUsageDetail_20' ) start [2025-02-12 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461560', 'tblTempUsageDetail_20' ) end [2025-02-12 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:37:22] Production.INFO: ==14712== Releasing lock... [2025-02-12 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:37:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-12 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:38:06 [end_date_ymd] => 2025-02-12 20:38:06 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:38:06' and `end` < '2025-02-12 20: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-12 20:38:19] Production.INFO: count ==1742 [2025-02-12 20:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:38:06 - End Time 2025-02-12 20:38:06 [2025-02-12 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461565', 'tblTempUsageDetail_20' ) start [2025-02-12 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461565', 'tblTempUsageDetail_20' ) end [2025-02-12 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461565', 'tblTempVendorCDR_20' ) start [2025-02-12 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461565', 'tblTempVendorCDR_20' ) end [2025-02-12 20:38:20] Production.INFO: ProcessCDR(1,14461565,1,1,2) [2025-02-12 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461565', 'tblTempUsageDetail_20' ) start [2025-02-12 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461565', 'tblTempUsageDetail_20' ) end [2025-02-12 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:38:23] Production.INFO: ==14833== Releasing lock... [2025-02-12 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:38:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:39:04 [end_date_ymd] => 2025-02-12 20:39:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:39:04' and `end` < '2025-02-12 20: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-12 20:39:17] Production.INFO: count ==1735 [2025-02-12 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:39:04 - End Time 2025-02-12 20:39:04 [2025-02-12 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461570', 'tblTempUsageDetail_20' ) start [2025-02-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461570', 'tblTempUsageDetail_20' ) end [2025-02-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461570', 'tblTempVendorCDR_20' ) start [2025-02-12 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461570', 'tblTempVendorCDR_20' ) end [2025-02-12 20:39:18] Production.INFO: ProcessCDR(1,14461570,1,1,2) [2025-02-12 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461570', 'tblTempUsageDetail_20' ) start [2025-02-12 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461570', 'tblTempUsageDetail_20' ) end [2025-02-12 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:39:21] Production.INFO: ==14962== Releasing lock... [2025-02-12 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:39:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:40:06 [end_date_ymd] => 2025-02-12 20:40:06 [RateCDR] => 1 ) [2025-02-12 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:40:06' and `end` < '2025-02-12 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:40:19] Production.INFO: count ==1736 [2025-02-12 20:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 17:40:06 - End Time 2025-02-12 20:40:06 [2025-02-12 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461576', 'tblTempUsageDetail_20' ) start [2025-02-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461576', 'tblTempUsageDetail_20' ) end [2025-02-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461576', 'tblTempVendorCDR_20' ) start [2025-02-12 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461576', 'tblTempVendorCDR_20' ) end [2025-02-12 20:40:20] Production.INFO: ProcessCDR(1,14461576,1,1,2) [2025-02-12 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461576', 'tblTempUsageDetail_20' ) start [2025-02-12 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461576', 'tblTempUsageDetail_20' ) end [2025-02-12 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:40:23] Production.INFO: ==15083== Releasing lock... [2025-02-12 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:40:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:41:05 [end_date_ymd] => 2025-02-12 20:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:41:05' and `end` < '2025-02-12 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-12 20:41:19] Production.INFO: count ==1722 [2025-02-12 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:41:05 - End Time 2025-02-12 20:41:05 [2025-02-12 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461581', 'tblTempUsageDetail_20' ) start [2025-02-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461581', 'tblTempUsageDetail_20' ) end [2025-02-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461581', 'tblTempVendorCDR_20' ) start [2025-02-12 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461581', 'tblTempVendorCDR_20' ) end [2025-02-12 20:41:19] Production.INFO: ProcessCDR(1,14461581,1,1,2) [2025-02-12 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461581', 'tblTempUsageDetail_20' ) start [2025-02-12 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461581', 'tblTempUsageDetail_20' ) end [2025-02-12 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:41:22] Production.INFO: ==15201== Releasing lock... [2025-02-12 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:42:05 [end_date_ymd] => 2025-02-12 20:42:05 [RateCDR] => 1 ) [2025-02-12 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:42:05' and `end` < '2025-02-12 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:42:18] Production.INFO: count ==1723 [2025-02-12 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:42:05 - End Time 2025-02-12 20:42:05 [2025-02-12 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461586', 'tblTempUsageDetail_20' ) start [2025-02-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461586', 'tblTempUsageDetail_20' ) end [2025-02-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461586', 'tblTempVendorCDR_20' ) start [2025-02-12 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461586', 'tblTempVendorCDR_20' ) end [2025-02-12 20:42:19] Production.INFO: ProcessCDR(1,14461586,1,1,2) [2025-02-12 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461586', 'tblTempUsageDetail_20' ) start [2025-02-12 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461586', 'tblTempUsageDetail_20' ) end [2025-02-12 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:42:22] Production.INFO: ==15314== Releasing lock... [2025-02-12 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:42:22] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:43:05 [end_date_ymd] => 2025-02-12 20:43:05 [RateCDR] => 1 ) [2025-02-12 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:43:05' and `end` < '2025-02-12 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:43:18] Production.INFO: count ==1718 [2025-02-12 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:43:05 - End Time 2025-02-12 20:43:05 [2025-02-12 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461591', 'tblTempUsageDetail_20' ) start [2025-02-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461591', 'tblTempUsageDetail_20' ) end [2025-02-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461591', 'tblTempVendorCDR_20' ) start [2025-02-12 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461591', 'tblTempVendorCDR_20' ) end [2025-02-12 20:43:19] Production.INFO: ProcessCDR(1,14461591,1,1,2) [2025-02-12 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461591', 'tblTempUsageDetail_20' ) start [2025-02-12 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461591', 'tblTempUsageDetail_20' ) end [2025-02-12 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:43:22] Production.INFO: ==15470== Releasing lock... [2025-02-12 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:43:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:44:05 [end_date_ymd] => 2025-02-12 20:44:05 [RateCDR] => 1 ) [2025-02-12 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:44:05' and `end` < '2025-02-12 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:44:19] Production.INFO: count ==1717 [2025-02-12 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:44:05 - End Time 2025-02-12 20:44:05 [2025-02-12 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461596', 'tblTempUsageDetail_20' ) start [2025-02-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461596', 'tblTempUsageDetail_20' ) end [2025-02-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461596', 'tblTempVendorCDR_20' ) start [2025-02-12 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461596', 'tblTempVendorCDR_20' ) end [2025-02-12 20:44:19] Production.INFO: ProcessCDR(1,14461596,1,1,2) [2025-02-12 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461596', 'tblTempUsageDetail_20' ) start [2025-02-12 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461596', 'tblTempUsageDetail_20' ) end [2025-02-12 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:44:22] Production.INFO: ==15586== Releasing lock... [2025-02-12 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:44:22] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:45:05 [end_date_ymd] => 2025-02-12 20:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:45:05' and `end` < '2025-02-12 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-12 20:45:18] Production.INFO: count ==1716 [2025-02-12 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:45:05 - End Time 2025-02-12 20:45:05 [2025-02-12 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461601', 'tblTempUsageDetail_20' ) start [2025-02-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461601', 'tblTempUsageDetail_20' ) end [2025-02-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461601', 'tblTempVendorCDR_20' ) start [2025-02-12 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461601', 'tblTempVendorCDR_20' ) end [2025-02-12 20:45:18] Production.INFO: ProcessCDR(1,14461601,1,1,2) [2025-02-12 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461601', 'tblTempUsageDetail_20' ) start [2025-02-12 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461601', 'tblTempUsageDetail_20' ) end [2025-02-12 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:45:23] Production.INFO: ==15711== Releasing lock... [2025-02-12 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:45:23] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:46:06 [end_date_ymd] => 2025-02-12 20:46:06 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:46:06' and `end` < '2025-02-12 20: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-12 20:46:19] Production.INFO: count ==1715 [2025-02-12 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:46:06 - End Time 2025-02-12 20:46:06 [2025-02-12 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461606', 'tblTempUsageDetail_20' ) start [2025-02-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461606', 'tblTempUsageDetail_20' ) end [2025-02-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461606', 'tblTempVendorCDR_20' ) start [2025-02-12 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461606', 'tblTempVendorCDR_20' ) end [2025-02-12 20:46:19] Production.INFO: ProcessCDR(1,14461606,1,1,2) [2025-02-12 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461606', 'tblTempUsageDetail_20' ) start [2025-02-12 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461606', 'tblTempUsageDetail_20' ) end [2025-02-12 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:46:22] Production.INFO: ==15829== Releasing lock... [2025-02-12 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:46:22] Production.INFO: 41 MB #Memory Used# [2025-02-12 20:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:47:04 [end_date_ymd] => 2025-02-12 20:47:04 [RateCDR] => 1 ) [2025-02-12 20: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-12 17:47:04' and `end` < '2025-02-12 20: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-12 20:47:18] Production.INFO: count ==1718 [2025-02-12 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:47:04 - End Time 2025-02-12 20:47:04 [2025-02-12 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461611', 'tblTempUsageDetail_20' ) start [2025-02-12 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461611', 'tblTempUsageDetail_20' ) end [2025-02-12 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461611', 'tblTempVendorCDR_20' ) start [2025-02-12 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461611', 'tblTempVendorCDR_20' ) end [2025-02-12 20:47:18] Production.INFO: ProcessCDR(1,14461611,1,1,2) [2025-02-12 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461611', 'tblTempUsageDetail_20' ) start [2025-02-12 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461611', 'tblTempUsageDetail_20' ) end [2025-02-12 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:47:22] Production.INFO: ==15944== Releasing lock... [2025-02-12 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:48:05 [end_date_ymd] => 2025-02-12 20:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:48:05' and `end` < '2025-02-12 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-12 20:48:18] Production.INFO: count ==1725 [2025-02-12 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:48:05 - End Time 2025-02-12 20:48:05 [2025-02-12 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461616', 'tblTempUsageDetail_20' ) start [2025-02-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461616', 'tblTempUsageDetail_20' ) end [2025-02-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461616', 'tblTempVendorCDR_20' ) start [2025-02-12 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461616', 'tblTempVendorCDR_20' ) end [2025-02-12 20:48:19] Production.INFO: ProcessCDR(1,14461616,1,1,2) [2025-02-12 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461616', 'tblTempUsageDetail_20' ) start [2025-02-12 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461616', 'tblTempUsageDetail_20' ) end [2025-02-12 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:48:22] Production.INFO: ==16061== Releasing lock... [2025-02-12 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:48:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-12 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:49:05 [end_date_ymd] => 2025-02-12 20:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:49:05' and `end` < '2025-02-12 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-12 20:49:18] Production.INFO: count ==1720 [2025-02-12 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:49:05 - End Time 2025-02-12 20:49:05 [2025-02-12 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461621', 'tblTempUsageDetail_20' ) start [2025-02-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461621', 'tblTempUsageDetail_20' ) end [2025-02-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461621', 'tblTempVendorCDR_20' ) start [2025-02-12 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461621', 'tblTempVendorCDR_20' ) end [2025-02-12 20:49:18] Production.INFO: ProcessCDR(1,14461621,1,1,2) [2025-02-12 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461621', 'tblTempUsageDetail_20' ) start [2025-02-12 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461621', 'tblTempUsageDetail_20' ) end [2025-02-12 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:49:21] Production.INFO: ==16174== Releasing lock... [2025-02-12 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:49:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:50:06 [end_date_ymd] => 2025-02-12 20:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 17:50:06' and `end` < '2025-02-12 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-12 20:50:19] Production.INFO: count ==1722 [2025-02-12 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:50:06 - End Time 2025-02-12 20:50:06 [2025-02-12 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461627', 'tblTempUsageDetail_20' ) start [2025-02-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461627', 'tblTempUsageDetail_20' ) end [2025-02-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461627', 'tblTempVendorCDR_20' ) start [2025-02-12 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461627', 'tblTempVendorCDR_20' ) end [2025-02-12 20:50:19] Production.INFO: ProcessCDR(1,14461627,1,1,2) [2025-02-12 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461627', 'tblTempUsageDetail_20' ) start [2025-02-12 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461627', 'tblTempUsageDetail_20' ) end [2025-02-12 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:50:23] Production.INFO: ==16296== Releasing lock... [2025-02-12 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-12 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:51:06 [end_date_ymd] => 2025-02-12 20:51:06 [RateCDR] => 1 ) [2025-02-12 20:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:51:06' and `end` < '2025-02-12 20:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:51:19] Production.INFO: count ==1673 [2025-02-12 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:51:06 - End Time 2025-02-12 20:51:06 [2025-02-12 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461632', 'tblTempUsageDetail_20' ) start [2025-02-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461632', 'tblTempUsageDetail_20' ) end [2025-02-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461632', 'tblTempVendorCDR_20' ) start [2025-02-12 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461632', 'tblTempVendorCDR_20' ) end [2025-02-12 20:51:19] Production.INFO: ProcessCDR(1,14461632,1,1,2) [2025-02-12 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461632', 'tblTempUsageDetail_20' ) start [2025-02-12 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461632', 'tblTempUsageDetail_20' ) end [2025-02-12 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:51:22] Production.INFO: ==16418== Releasing lock... [2025-02-12 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:51:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:52:05 [end_date_ymd] => 2025-02-12 20:52:05 [RateCDR] => 1 ) [2025-02-12 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:52:05' and `end` < '2025-02-12 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:52:19] Production.INFO: count ==1661 [2025-02-12 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:52:05 - End Time 2025-02-12 20:52:05 [2025-02-12 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461637', 'tblTempUsageDetail_20' ) start [2025-02-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461637', 'tblTempUsageDetail_20' ) end [2025-02-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461637', 'tblTempVendorCDR_20' ) start [2025-02-12 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461637', 'tblTempVendorCDR_20' ) end [2025-02-12 20:52:19] Production.INFO: ProcessCDR(1,14461637,1,1,2) [2025-02-12 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461637', 'tblTempUsageDetail_20' ) start [2025-02-12 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461637', 'tblTempUsageDetail_20' ) end [2025-02-12 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:52:22] Production.INFO: ==16556== Releasing lock... [2025-02-12 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:52:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:53:05 [end_date_ymd] => 2025-02-12 20:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:53:05' and `end` < '2025-02-12 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-12 20:53:19] Production.INFO: count ==1658 [2025-02-12 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:53:05 - End Time 2025-02-12 20:53:05 [2025-02-12 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461642', 'tblTempUsageDetail_20' ) start [2025-02-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461642', 'tblTempUsageDetail_20' ) end [2025-02-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461642', 'tblTempVendorCDR_20' ) start [2025-02-12 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461642', 'tblTempVendorCDR_20' ) end [2025-02-12 20:53:19] Production.INFO: ProcessCDR(1,14461642,1,1,2) [2025-02-12 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461642', 'tblTempUsageDetail_20' ) start [2025-02-12 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461642', 'tblTempUsageDetail_20' ) end [2025-02-12 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:53:22] Production.INFO: ==16633== Releasing lock... [2025-02-12 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:53:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:54:05 [end_date_ymd] => 2025-02-12 20:54:05 [RateCDR] => 1 ) [2025-02-12 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:54:05' and `end` < '2025-02-12 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:54:18] Production.INFO: count ==1656 [2025-02-12 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:54:05 - End Time 2025-02-12 20:54:05 [2025-02-12 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461647', 'tblTempUsageDetail_20' ) start [2025-02-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461647', 'tblTempUsageDetail_20' ) end [2025-02-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461647', 'tblTempVendorCDR_20' ) start [2025-02-12 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461647', 'tblTempVendorCDR_20' ) end [2025-02-12 20:54:19] Production.INFO: ProcessCDR(1,14461647,1,1,2) [2025-02-12 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461647', 'tblTempUsageDetail_20' ) start [2025-02-12 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461647', 'tblTempUsageDetail_20' ) end [2025-02-12 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:54:23] Production.INFO: ==16704== Releasing lock... [2025-02-12 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:55:05 [end_date_ymd] => 2025-02-12 20:55:05 [RateCDR] => 1 ) [2025-02-12 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:55:05' and `end` < '2025-02-12 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:55:18] Production.INFO: count ==1654 [2025-02-12 20:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:55:05 - End Time 2025-02-12 20:55:05 [2025-02-12 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461652', 'tblTempUsageDetail_20' ) start [2025-02-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461652', 'tblTempUsageDetail_20' ) end [2025-02-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461652', 'tblTempVendorCDR_20' ) start [2025-02-12 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461652', 'tblTempVendorCDR_20' ) end [2025-02-12 20:55:18] Production.INFO: ProcessCDR(1,14461652,1,1,2) [2025-02-12 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461652', 'tblTempUsageDetail_20' ) start [2025-02-12 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461652', 'tblTempUsageDetail_20' ) end [2025-02-12 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:55:21] Production.INFO: ==16778== Releasing lock... [2025-02-12 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:55:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-12 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:56:05 [end_date_ymd] => 2025-02-12 20:56:05 [RateCDR] => 1 ) [2025-02-12 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:56:05' and `end` < '2025-02-12 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:56:18] Production.INFO: count ==1644 [2025-02-12 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:56:05 - End Time 2025-02-12 20:56:05 [2025-02-12 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461657', 'tblTempUsageDetail_20' ) start [2025-02-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461657', 'tblTempUsageDetail_20' ) end [2025-02-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461657', 'tblTempVendorCDR_20' ) start [2025-02-12 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461657', 'tblTempVendorCDR_20' ) end [2025-02-12 20:56:19] Production.INFO: ProcessCDR(1,14461657,1,1,2) [2025-02-12 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461657', 'tblTempUsageDetail_20' ) start [2025-02-12 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461657', 'tblTempUsageDetail_20' ) end [2025-02-12 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:56:22] Production.INFO: ==16851== Releasing lock... [2025-02-12 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:56:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:57:05 [end_date_ymd] => 2025-02-12 20:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:57:05' and `end` < '2025-02-12 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-12 20:57:19] Production.INFO: count ==1640 [2025-02-12 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:57:05 - End Time 2025-02-12 20:57:05 [2025-02-12 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461662', 'tblTempUsageDetail_20' ) start [2025-02-12 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461662', 'tblTempUsageDetail_20' ) end [2025-02-12 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461662', 'tblTempVendorCDR_20' ) start [2025-02-12 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461662', 'tblTempVendorCDR_20' ) end [2025-02-12 20:57:19] Production.INFO: ProcessCDR(1,14461662,1,1,2) [2025-02-12 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461662', 'tblTempUsageDetail_20' ) start [2025-02-12 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461662', 'tblTempUsageDetail_20' ) end [2025-02-12 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:57:22] Production.INFO: ==16920== Releasing lock... [2025-02-12 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:57:22] Production.INFO: 40 MB #Memory Used# [2025-02-12 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:58:05 [end_date_ymd] => 2025-02-12 20:58:05 [RateCDR] => 1 ) [2025-02-12 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 17:58:05' and `end` < '2025-02-12 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 20:58:18] Production.INFO: count ==1640 [2025-02-12 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 17:58:05 - End Time 2025-02-12 20:58:05 [2025-02-12 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461667', 'tblTempUsageDetail_20' ) start [2025-02-12 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461667', 'tblTempUsageDetail_20' ) end [2025-02-12 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461667', 'tblTempVendorCDR_20' ) start [2025-02-12 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461667', 'tblTempVendorCDR_20' ) end [2025-02-12 20:58:18] Production.INFO: ProcessCDR(1,14461667,1,1,2) [2025-02-12 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461667', 'tblTempUsageDetail_20' ) start [2025-02-12 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461667', 'tblTempUsageDetail_20' ) end [2025-02-12 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:58:21] Production.INFO: ==16999== Releasing lock... [2025-02-12 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:58:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 17:59:05 [end_date_ymd] => 2025-02-12 20:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 17:59:05' and `end` < '2025-02-12 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-12 20:59:18] Production.INFO: count ==1641 [2025-02-12 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 17:59:05 - End Time 2025-02-12 20:59:05 [2025-02-12 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461672', 'tblTempUsageDetail_20' ) start [2025-02-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461672', 'tblTempUsageDetail_20' ) end [2025-02-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461672', 'tblTempVendorCDR_20' ) start [2025-02-12 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461672', 'tblTempVendorCDR_20' ) end [2025-02-12 20:59:19] Production.INFO: ProcessCDR(1,14461672,1,1,2) [2025-02-12 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461672', 'tblTempUsageDetail_20' ) start [2025-02-12 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461672', 'tblTempUsageDetail_20' ) end [2025-02-12 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 20:59:22] Production.INFO: ==17111== Releasing lock... [2025-02-12 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 20:59:22] Production.INFO: 40 MB #Memory Used# [2025-02-12 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:00:06 [end_date_ymd] => 2025-02-12 21:00:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:00:06' and `end` < '2025-02-12 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-12 21:00:19] Production.INFO: count ==1646 [2025-02-12 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:00:06 - End Time 2025-02-12 21:00:06 [2025-02-12 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461678', 'tblTempUsageDetail_20' ) start [2025-02-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461678', 'tblTempUsageDetail_20' ) end [2025-02-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461678', 'tblTempVendorCDR_20' ) start [2025-02-12 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461678', 'tblTempVendorCDR_20' ) end [2025-02-12 21:00:20] Production.INFO: ProcessCDR(1,14461678,1,1,2) [2025-02-12 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461678', 'tblTempUsageDetail_20' ) start [2025-02-12 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461678', 'tblTempUsageDetail_20' ) end [2025-02-12 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:00:23] Production.INFO: ==17219== Releasing lock... [2025-02-12 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:00:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:01:05 [end_date_ymd] => 2025-02-12 21:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:01:05' and `end` < '2025-02-12 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-12 21:01:18] Production.INFO: count ==1607 [2025-02-12 21:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:01:05 - End Time 2025-02-12 21:01:05 [2025-02-12 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461683', 'tblTempUsageDetail_20' ) start [2025-02-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461683', 'tblTempUsageDetail_20' ) end [2025-02-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461683', 'tblTempVendorCDR_20' ) start [2025-02-12 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461683', 'tblTempVendorCDR_20' ) end [2025-02-12 21:01:18] Production.INFO: ProcessCDR(1,14461683,1,1,2) [2025-02-12 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461683', 'tblTempUsageDetail_20' ) start [2025-02-12 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461683', 'tblTempUsageDetail_20' ) end [2025-02-12 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:01:21] Production.INFO: ==17306== Releasing lock... [2025-02-12 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:01:21] Production.INFO: 40 MB #Memory Used# [2025-02-12 21:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:02:06 [end_date_ymd] => 2025-02-12 21:02:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:02:06' and `end` < '2025-02-12 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-12 21:02:19] Production.INFO: count ==1601 [2025-02-12 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:02:06 - End Time 2025-02-12 21:02:06 [2025-02-12 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461688', 'tblTempUsageDetail_20' ) start [2025-02-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461688', 'tblTempUsageDetail_20' ) end [2025-02-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461688', 'tblTempVendorCDR_20' ) start [2025-02-12 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461688', 'tblTempVendorCDR_20' ) end [2025-02-12 21:02:19] Production.INFO: ProcessCDR(1,14461688,1,1,2) [2025-02-12 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461688', 'tblTempUsageDetail_20' ) start [2025-02-12 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461688', 'tblTempUsageDetail_20' ) end [2025-02-12 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:02:23] Production.INFO: ==17380== Releasing lock... [2025-02-12 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:02:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:03:05 [end_date_ymd] => 2025-02-12 21:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:03:05' and `end` < '2025-02-12 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-12 21:03:18] Production.INFO: count ==1598 [2025-02-12 21:03:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:03:05 - End Time 2025-02-12 21:03:05 [2025-02-12 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461693', 'tblTempUsageDetail_20' ) start [2025-02-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461693', 'tblTempUsageDetail_20' ) end [2025-02-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461693', 'tblTempVendorCDR_20' ) start [2025-02-12 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461693', 'tblTempVendorCDR_20' ) end [2025-02-12 21:03:19] Production.INFO: ProcessCDR(1,14461693,1,1,2) [2025-02-12 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461693', 'tblTempUsageDetail_20' ) start [2025-02-12 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461693', 'tblTempUsageDetail_20' ) end [2025-02-12 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:03:22] Production.INFO: ==17455== Releasing lock... [2025-02-12 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:03:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:04:06 [end_date_ymd] => 2025-02-12 21:04:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:04:06' and `end` < '2025-02-12 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-12 21:04:19] Production.INFO: count ==1591 [2025-02-12 21:04:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:04:06 - End Time 2025-02-12 21:04:06 [2025-02-12 21:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461698', 'tblTempUsageDetail_20' ) start [2025-02-12 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461698', 'tblTempUsageDetail_20' ) end [2025-02-12 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461698', 'tblTempVendorCDR_20' ) start [2025-02-12 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461698', 'tblTempVendorCDR_20' ) end [2025-02-12 21:04:20] Production.INFO: ProcessCDR(1,14461698,1,1,2) [2025-02-12 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461698', 'tblTempUsageDetail_20' ) start [2025-02-12 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461698', 'tblTempUsageDetail_20' ) end [2025-02-12 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:04:23] Production.INFO: ==17527== Releasing lock... [2025-02-12 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:04:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:05:04 [end_date_ymd] => 2025-02-12 21:05:04 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:05:04' and `end` < '2025-02-12 21: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-12 21:05:18] Production.INFO: count ==1594 [2025-02-12 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:05:04 - End Time 2025-02-12 21:05:04 [2025-02-12 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461703', 'tblTempUsageDetail_20' ) start [2025-02-12 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461703', 'tblTempUsageDetail_20' ) end [2025-02-12 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461703', 'tblTempVendorCDR_20' ) start [2025-02-12 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461703', 'tblTempVendorCDR_20' ) end [2025-02-12 21:05:18] Production.INFO: ProcessCDR(1,14461703,1,1,2) [2025-02-12 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461703', 'tblTempUsageDetail_20' ) start [2025-02-12 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461703', 'tblTempUsageDetail_20' ) end [2025-02-12 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:05:21] Production.INFO: ==17595== Releasing lock... [2025-02-12 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:05:21] Production.INFO: 40 MB #Memory Used# [2025-02-12 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:06:05 [end_date_ymd] => 2025-02-12 21:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:06:05' and `end` < '2025-02-12 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-12 21:06:19] Production.INFO: count ==1598 [2025-02-12 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:06:05 - End Time 2025-02-12 21:06:05 [2025-02-12 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461708', 'tblTempUsageDetail_20' ) start [2025-02-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461708', 'tblTempUsageDetail_20' ) end [2025-02-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461708', 'tblTempVendorCDR_20' ) start [2025-02-12 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461708', 'tblTempVendorCDR_20' ) end [2025-02-12 21:06:19] Production.INFO: ProcessCDR(1,14461708,1,1,2) [2025-02-12 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461708', 'tblTempUsageDetail_20' ) start [2025-02-12 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461708', 'tblTempUsageDetail_20' ) end [2025-02-12 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:06:22] Production.INFO: ==17666== Releasing lock... [2025-02-12 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:06:22] Production.INFO: 40 MB #Memory Used# [2025-02-12 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:07:05 [end_date_ymd] => 2025-02-12 21:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:07:05' and `end` < '2025-02-12 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-12 21:07:18] Production.INFO: count ==1599 [2025-02-12 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:07:05 - End Time 2025-02-12 21:07:05 [2025-02-12 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461713', 'tblTempUsageDetail_20' ) start [2025-02-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461713', 'tblTempUsageDetail_20' ) end [2025-02-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461713', 'tblTempVendorCDR_20' ) start [2025-02-12 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461713', 'tblTempVendorCDR_20' ) end [2025-02-12 21:07:18] Production.INFO: ProcessCDR(1,14461713,1,1,2) [2025-02-12 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461713', 'tblTempUsageDetail_20' ) start [2025-02-12 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461713', 'tblTempUsageDetail_20' ) end [2025-02-12 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:07:21] Production.INFO: ==17740== Releasing lock... [2025-02-12 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:07:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:08:05 [end_date_ymd] => 2025-02-12 21:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:08:05' and `end` < '2025-02-12 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-12 21:08:18] Production.INFO: count ==1598 [2025-02-12 21:08:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:08:05 - End Time 2025-02-12 21:08:05 [2025-02-12 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461718', 'tblTempUsageDetail_20' ) start [2025-02-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461718', 'tblTempUsageDetail_20' ) end [2025-02-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461718', 'tblTempVendorCDR_20' ) start [2025-02-12 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461718', 'tblTempVendorCDR_20' ) end [2025-02-12 21:08:19] Production.INFO: ProcessCDR(1,14461718,1,1,2) [2025-02-12 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461718', 'tblTempUsageDetail_20' ) start [2025-02-12 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461718', 'tblTempUsageDetail_20' ) end [2025-02-12 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:08:22] Production.INFO: ==17814== Releasing lock... [2025-02-12 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:08:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:09:04 [end_date_ymd] => 2025-02-12 21:09:04 [RateCDR] => 1 ) [2025-02-12 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-12 18:09:04' and `end` < '2025-02-12 21: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-12 21:09:18] Production.INFO: count ==1593 [2025-02-12 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:09:04 - End Time 2025-02-12 21:09:04 [2025-02-12 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461723', 'tblTempUsageDetail_20' ) start [2025-02-12 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461723', 'tblTempUsageDetail_20' ) end [2025-02-12 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461723', 'tblTempVendorCDR_20' ) start [2025-02-12 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461723', 'tblTempVendorCDR_20' ) end [2025-02-12 21:09:19] Production.INFO: ProcessCDR(1,14461723,1,1,2) [2025-02-12 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461723', 'tblTempUsageDetail_20' ) start [2025-02-12 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461723', 'tblTempUsageDetail_20' ) end [2025-02-12 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:09:23] Production.INFO: ==17884== Releasing lock... [2025-02-12 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:09:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:10:06 [end_date_ymd] => 2025-02-12 21:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:10:06' and `end` < '2025-02-12 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-12 21:10:19] Production.INFO: count ==1591 [2025-02-12 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:10:06 - End Time 2025-02-12 21:10:06 [2025-02-12 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461729', 'tblTempUsageDetail_20' ) start [2025-02-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461729', 'tblTempUsageDetail_20' ) end [2025-02-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461729', 'tblTempVendorCDR_20' ) start [2025-02-12 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461729', 'tblTempVendorCDR_20' ) end [2025-02-12 21:10:20] Production.INFO: ProcessCDR(1,14461729,1,1,2) [2025-02-12 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461729', 'tblTempUsageDetail_20' ) start [2025-02-12 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461729', 'tblTempUsageDetail_20' ) end [2025-02-12 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:10:23] Production.INFO: ==17956== Releasing lock... [2025-02-12 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:10:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:11:05 [end_date_ymd] => 2025-02-12 21:11:05 [RateCDR] => 1 ) [2025-02-12 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:11:05' and `end` < '2025-02-12 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:11:19] Production.INFO: count ==1556 [2025-02-12 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:11:05 - End Time 2025-02-12 21:11:05 [2025-02-12 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461734', 'tblTempUsageDetail_20' ) start [2025-02-12 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461734', 'tblTempUsageDetail_20' ) end [2025-02-12 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461734', 'tblTempVendorCDR_20' ) start [2025-02-12 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461734', 'tblTempVendorCDR_20' ) end [2025-02-12 21:11:19] Production.INFO: ProcessCDR(1,14461734,1,1,2) [2025-02-12 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461734', 'tblTempUsageDetail_20' ) start [2025-02-12 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461734', 'tblTempUsageDetail_20' ) end [2025-02-12 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:11:22] Production.INFO: ==18036== Releasing lock... [2025-02-12 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:12:06 [end_date_ymd] => 2025-02-12 21:12:06 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:12:06' and `end` < '2025-02-12 21: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-12 21:12:19] Production.INFO: count ==1559 [2025-02-12 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:12:06 - End Time 2025-02-12 21:12:06 [2025-02-12 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461739', 'tblTempUsageDetail_20' ) start [2025-02-12 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461739', 'tblTempUsageDetail_20' ) end [2025-02-12 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461739', 'tblTempVendorCDR_20' ) start [2025-02-12 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461739', 'tblTempVendorCDR_20' ) end [2025-02-12 21:12:19] Production.INFO: ProcessCDR(1,14461739,1,1,2) [2025-02-12 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461739', 'tblTempUsageDetail_20' ) start [2025-02-12 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461739', 'tblTempUsageDetail_20' ) end [2025-02-12 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:12:23] Production.INFO: ==18109== Releasing lock... [2025-02-12 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:12:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:13:05 [end_date_ymd] => 2025-02-12 21:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:13:05' and `end` < '2025-02-12 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-12 21:13:19] Production.INFO: count ==1560 [2025-02-12 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:13:05 - End Time 2025-02-12 21:13:05 [2025-02-12 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461744', 'tblTempUsageDetail_20' ) start [2025-02-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461744', 'tblTempUsageDetail_20' ) end [2025-02-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461744', 'tblTempVendorCDR_20' ) start [2025-02-12 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461744', 'tblTempVendorCDR_20' ) end [2025-02-12 21:13:19] Production.INFO: ProcessCDR(1,14461744,1,1,2) [2025-02-12 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461744', 'tblTempUsageDetail_20' ) start [2025-02-12 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461744', 'tblTempUsageDetail_20' ) end [2025-02-12 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:13:23] Production.INFO: ==18178== Releasing lock... [2025-02-12 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-12 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:14:05 [end_date_ymd] => 2025-02-12 21:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:14:05' and `end` < '2025-02-12 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-12 21:14:18] Production.INFO: count ==1559 [2025-02-12 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:14:05 - End Time 2025-02-12 21:14:05 [2025-02-12 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461749', 'tblTempUsageDetail_20' ) start [2025-02-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461749', 'tblTempUsageDetail_20' ) end [2025-02-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461749', 'tblTempVendorCDR_20' ) start [2025-02-12 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461749', 'tblTempVendorCDR_20' ) end [2025-02-12 21:14:19] Production.INFO: ProcessCDR(1,14461749,1,1,2) [2025-02-12 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461749', 'tblTempUsageDetail_20' ) start [2025-02-12 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461749', 'tblTempUsageDetail_20' ) end [2025-02-12 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:14:22] Production.INFO: ==18290== Releasing lock... [2025-02-12 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:14:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:15:04 [end_date_ymd] => 2025-02-12 21:15:04 [RateCDR] => 1 ) [2025-02-12 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:15:04' and `end` < '2025-02-12 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:15:17] Production.INFO: count ==1554 [2025-02-12 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:15:04 - End Time 2025-02-12 21:15:04 [2025-02-12 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461754', 'tblTempUsageDetail_20' ) start [2025-02-12 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461754', 'tblTempUsageDetail_20' ) end [2025-02-12 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461754', 'tblTempVendorCDR_20' ) start [2025-02-12 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461754', 'tblTempVendorCDR_20' ) end [2025-02-12 21:15:18] Production.INFO: ProcessCDR(1,14461754,1,1,2) [2025-02-12 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461754', 'tblTempUsageDetail_20' ) start [2025-02-12 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461754', 'tblTempUsageDetail_20' ) end [2025-02-12 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:15:22] Production.INFO: ==18362== Releasing lock... [2025-02-12 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:15:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:16:05 [end_date_ymd] => 2025-02-12 21:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:16:05' and `end` < '2025-02-12 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-12 21:16:19] Production.INFO: count ==1555 [2025-02-12 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:16:05 - End Time 2025-02-12 21:16:05 [2025-02-12 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461759', 'tblTempUsageDetail_20' ) start [2025-02-12 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461759', 'tblTempUsageDetail_20' ) end [2025-02-12 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461759', 'tblTempVendorCDR_20' ) start [2025-02-12 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461759', 'tblTempVendorCDR_20' ) end [2025-02-12 21:16:19] Production.INFO: ProcessCDR(1,14461759,1,1,2) [2025-02-12 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461759', 'tblTempUsageDetail_20' ) start [2025-02-12 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461759', 'tblTempUsageDetail_20' ) end [2025-02-12 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:16:22] Production.INFO: ==18444== Releasing lock... [2025-02-12 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:16:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:17:05 [end_date_ymd] => 2025-02-12 21:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:17:05' and `end` < '2025-02-12 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-12 21:17:20] Production.INFO: count ==1555 [2025-02-12 21:17:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:17:05 - End Time 2025-02-12 21:17:05 [2025-02-12 21:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461764', 'tblTempUsageDetail_20' ) start [2025-02-12 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461764', 'tblTempUsageDetail_20' ) end [2025-02-12 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461764', 'tblTempVendorCDR_20' ) start [2025-02-12 21:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461764', 'tblTempVendorCDR_20' ) end [2025-02-12 21:17:20] Production.INFO: ProcessCDR(1,14461764,1,1,2) [2025-02-12 21:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461764', 'tblTempUsageDetail_20' ) start [2025-02-12 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461764', 'tblTempUsageDetail_20' ) end [2025-02-12 21:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:17:25] Production.INFO: ==18515== Releasing lock... [2025-02-12 21:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:17:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:18:05 [end_date_ymd] => 2025-02-12 21:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:18:05' and `end` < '2025-02-12 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-12 21:18:18] Production.INFO: count ==1549 [2025-02-12 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:18:05 - End Time 2025-02-12 21:18:05 [2025-02-12 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461769', 'tblTempUsageDetail_20' ) start [2025-02-12 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461769', 'tblTempUsageDetail_20' ) end [2025-02-12 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461769', 'tblTempVendorCDR_20' ) start [2025-02-12 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461769', 'tblTempVendorCDR_20' ) end [2025-02-12 21:18:19] Production.INFO: ProcessCDR(1,14461769,1,1,2) [2025-02-12 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461769', 'tblTempUsageDetail_20' ) start [2025-02-12 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461769', 'tblTempUsageDetail_20' ) end [2025-02-12 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:18:22] Production.INFO: ==18589== Releasing lock... [2025-02-12 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:18:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:19:05 [end_date_ymd] => 2025-02-12 21:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:19:05' and `end` < '2025-02-12 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-12 21:19:18] Production.INFO: count ==1548 [2025-02-12 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:19:05 - End Time 2025-02-12 21:19:05 [2025-02-12 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461774', 'tblTempUsageDetail_20' ) start [2025-02-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461774', 'tblTempUsageDetail_20' ) end [2025-02-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461774', 'tblTempVendorCDR_20' ) start [2025-02-12 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461774', 'tblTempVendorCDR_20' ) end [2025-02-12 21:19:18] Production.INFO: ProcessCDR(1,14461774,1,1,2) [2025-02-12 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461774', 'tblTempUsageDetail_20' ) start [2025-02-12 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461774', 'tblTempUsageDetail_20' ) end [2025-02-12 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:19:22] Production.INFO: ==18662== Releasing lock... [2025-02-12 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:19:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:20:05 [end_date_ymd] => 2025-02-12 21:20:05 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:20:05' and `end` < '2025-02-12 21: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-12 21:20:18] Production.INFO: count ==1548 [2025-02-12 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:20:05 - End Time 2025-02-12 21:20:05 [2025-02-12 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461780', 'tblTempUsageDetail_20' ) start [2025-02-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461780', 'tblTempUsageDetail_20' ) end [2025-02-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461780', 'tblTempVendorCDR_20' ) start [2025-02-12 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461780', 'tblTempVendorCDR_20' ) end [2025-02-12 21:20:19] Production.INFO: ProcessCDR(1,14461780,1,1,2) [2025-02-12 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461780', 'tblTempUsageDetail_20' ) start [2025-02-12 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461780', 'tblTempUsageDetail_20' ) end [2025-02-12 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:20:24] Production.INFO: ==18733== Releasing lock... [2025-02-12 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:20:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:21:05 [end_date_ymd] => 2025-02-12 21:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:21:05' and `end` < '2025-02-12 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-12 21:21:18] Production.INFO: count ==1550 [2025-02-12 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:21:05 - End Time 2025-02-12 21:21:05 [2025-02-12 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461785', 'tblTempUsageDetail_20' ) start [2025-02-12 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461785', 'tblTempUsageDetail_20' ) end [2025-02-12 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461785', 'tblTempVendorCDR_20' ) start [2025-02-12 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461785', 'tblTempVendorCDR_20' ) end [2025-02-12 21:21:19] Production.INFO: ProcessCDR(1,14461785,1,1,2) [2025-02-12 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461785', 'tblTempUsageDetail_20' ) start [2025-02-12 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461785', 'tblTempUsageDetail_20' ) end [2025-02-12 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:21:23] Production.INFO: ==18812== Releasing lock... [2025-02-12 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:21:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:22:05 [end_date_ymd] => 2025-02-12 21:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:22:05' and `end` < '2025-02-12 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-12 21:22:18] Production.INFO: count ==1560 [2025-02-12 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:22:05 - End Time 2025-02-12 21:22:05 [2025-02-12 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461790', 'tblTempUsageDetail_20' ) start [2025-02-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461790', 'tblTempUsageDetail_20' ) end [2025-02-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461790', 'tblTempVendorCDR_20' ) start [2025-02-12 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461790', 'tblTempVendorCDR_20' ) end [2025-02-12 21:22:18] Production.INFO: ProcessCDR(1,14461790,1,1,2) [2025-02-12 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461790', 'tblTempUsageDetail_20' ) start [2025-02-12 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461790', 'tblTempUsageDetail_20' ) end [2025-02-12 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:22:23] Production.INFO: ==18889== Releasing lock... [2025-02-12 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:22:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:23:05 [end_date_ymd] => 2025-02-12 21:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:23:05' and `end` < '2025-02-12 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-12 21:23:18] Production.INFO: count ==1559 [2025-02-12 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:23:05 - End Time 2025-02-12 21:23:05 [2025-02-12 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461795', 'tblTempUsageDetail_20' ) start [2025-02-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461795', 'tblTempUsageDetail_20' ) end [2025-02-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461795', 'tblTempVendorCDR_20' ) start [2025-02-12 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461795', 'tblTempVendorCDR_20' ) end [2025-02-12 21:23:19] Production.INFO: ProcessCDR(1,14461795,1,1,2) [2025-02-12 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461795', 'tblTempUsageDetail_20' ) start [2025-02-12 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461795', 'tblTempUsageDetail_20' ) end [2025-02-12 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:23:22] Production.INFO: ==18962== Releasing lock... [2025-02-12 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:23:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:24:05 [end_date_ymd] => 2025-02-12 21:24:05 [RateCDR] => 1 ) [2025-02-12 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:24:05' and `end` < '2025-02-12 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:24:18] Production.INFO: count ==1544 [2025-02-12 21:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:24:05 - End Time 2025-02-12 21:24:05 [2025-02-12 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461800', 'tblTempUsageDetail_20' ) start [2025-02-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461800', 'tblTempUsageDetail_20' ) end [2025-02-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461800', 'tblTempVendorCDR_20' ) start [2025-02-12 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461800', 'tblTempVendorCDR_20' ) end [2025-02-12 21:24:18] Production.INFO: ProcessCDR(1,14461800,1,1,2) [2025-02-12 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461800', 'tblTempUsageDetail_20' ) start [2025-02-12 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461800', 'tblTempUsageDetail_20' ) end [2025-02-12 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:24:23] Production.INFO: ==19031== Releasing lock... [2025-02-12 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:24:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:25:05 [end_date_ymd] => 2025-02-12 21:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:25:05' and `end` < '2025-02-12 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-12 21:25:19] Production.INFO: count ==1535 [2025-02-12 21:25:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:25:05 - End Time 2025-02-12 21:25:05 [2025-02-12 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461805', 'tblTempUsageDetail_20' ) start [2025-02-12 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461805', 'tblTempUsageDetail_20' ) end [2025-02-12 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461805', 'tblTempVendorCDR_20' ) start [2025-02-12 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461805', 'tblTempVendorCDR_20' ) end [2025-02-12 21:25:20] Production.INFO: ProcessCDR(1,14461805,1,1,2) [2025-02-12 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461805', 'tblTempUsageDetail_20' ) start [2025-02-12 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461805', 'tblTempUsageDetail_20' ) end [2025-02-12 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:25:24] Production.INFO: ==19109== Releasing lock... [2025-02-12 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:25:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:26:05 [end_date_ymd] => 2025-02-12 21:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:26:05' and `end` < '2025-02-12 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-12 21:26:19] Production.INFO: count ==1531 [2025-02-12 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:26:05 - End Time 2025-02-12 21:26:05 [2025-02-12 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461810', 'tblTempUsageDetail_20' ) start [2025-02-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461810', 'tblTempUsageDetail_20' ) end [2025-02-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461810', 'tblTempVendorCDR_20' ) start [2025-02-12 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461810', 'tblTempVendorCDR_20' ) end [2025-02-12 21:26:19] Production.INFO: ProcessCDR(1,14461810,1,1,2) [2025-02-12 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461810', 'tblTempUsageDetail_20' ) start [2025-02-12 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461810', 'tblTempUsageDetail_20' ) end [2025-02-12 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:26:22] Production.INFO: ==19180== Releasing lock... [2025-02-12 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:26:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-12 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:27:05 [end_date_ymd] => 2025-02-12 21:27:05 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:27:05' and `end` < '2025-02-12 21: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-12 21:27:18] Production.INFO: count ==1531 [2025-02-12 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:27:05 - End Time 2025-02-12 21:27:05 [2025-02-12 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461815', 'tblTempUsageDetail_20' ) start [2025-02-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461815', 'tblTempUsageDetail_20' ) end [2025-02-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461815', 'tblTempVendorCDR_20' ) start [2025-02-12 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461815', 'tblTempVendorCDR_20' ) end [2025-02-12 21:27:19] Production.INFO: ProcessCDR(1,14461815,1,1,2) [2025-02-12 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461815', 'tblTempUsageDetail_20' ) start [2025-02-12 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461815', 'tblTempUsageDetail_20' ) end [2025-02-12 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:27:22] Production.INFO: ==19249== Releasing lock... [2025-02-12 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:28:05 [end_date_ymd] => 2025-02-12 21:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:28:05' and `end` < '2025-02-12 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-12 21:28:19] Production.INFO: count ==1529 [2025-02-12 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:28:05 - End Time 2025-02-12 21:28:05 [2025-02-12 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461820', 'tblTempUsageDetail_20' ) start [2025-02-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461820', 'tblTempUsageDetail_20' ) end [2025-02-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461820', 'tblTempVendorCDR_20' ) start [2025-02-12 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461820', 'tblTempVendorCDR_20' ) end [2025-02-12 21:28:19] Production.INFO: ProcessCDR(1,14461820,1,1,2) [2025-02-12 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461820', 'tblTempUsageDetail_20' ) start [2025-02-12 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461820', 'tblTempUsageDetail_20' ) end [2025-02-12 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:28:22] Production.INFO: ==19320== Releasing lock... [2025-02-12 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:28:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:29:05 [end_date_ymd] => 2025-02-12 21:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:29:05' and `end` < '2025-02-12 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-12 21:29:19] Production.INFO: count ==1527 [2025-02-12 21:29:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:29:05 - End Time 2025-02-12 21:29:05 [2025-02-12 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461825', 'tblTempUsageDetail_20' ) start [2025-02-12 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461825', 'tblTempUsageDetail_20' ) end [2025-02-12 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461825', 'tblTempVendorCDR_20' ) start [2025-02-12 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461825', 'tblTempVendorCDR_20' ) end [2025-02-12 21:29:20] Production.INFO: ProcessCDR(1,14461825,1,1,2) [2025-02-12 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461825', 'tblTempUsageDetail_20' ) start [2025-02-12 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461825', 'tblTempUsageDetail_20' ) end [2025-02-12 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:29:23] Production.INFO: ==19394== Releasing lock... [2025-02-12 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-12 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:30:05 [end_date_ymd] => 2025-02-12 21:30:05 [RateCDR] => 1 ) [2025-02-12 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:30:05' and `end` < '2025-02-12 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:30:18] Production.INFO: count ==1525 [2025-02-12 21:30:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:30:05 - End Time 2025-02-12 21:30:05 [2025-02-12 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461831', 'tblTempUsageDetail_20' ) start [2025-02-12 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461831', 'tblTempUsageDetail_20' ) end [2025-02-12 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461831', 'tblTempVendorCDR_20' ) start [2025-02-12 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461831', 'tblTempVendorCDR_20' ) end [2025-02-12 21:30:18] Production.INFO: ProcessCDR(1,14461831,1,1,2) [2025-02-12 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461831', 'tblTempUsageDetail_20' ) start [2025-02-12 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461831', 'tblTempUsageDetail_20' ) end [2025-02-12 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:30:23] Production.INFO: ==19505== Releasing lock... [2025-02-12 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:30:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-12 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:31:05 [end_date_ymd] => 2025-02-12 21:31:05 [RateCDR] => 1 ) [2025-02-12 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:31:05' and `end` < '2025-02-12 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:31:18] Production.INFO: count ==1478 [2025-02-12 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:31:05 - End Time 2025-02-12 21:31:05 [2025-02-12 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461836', 'tblTempUsageDetail_20' ) start [2025-02-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461836', 'tblTempUsageDetail_20' ) end [2025-02-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461836', 'tblTempVendorCDR_20' ) start [2025-02-12 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461836', 'tblTempVendorCDR_20' ) end [2025-02-12 21:31:19] Production.INFO: ProcessCDR(1,14461836,1,1,2) [2025-02-12 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461836', 'tblTempUsageDetail_20' ) start [2025-02-12 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461836', 'tblTempUsageDetail_20' ) end [2025-02-12 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:31:22] Production.INFO: ==19577== Releasing lock... [2025-02-12 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:31:22] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:32:06 [end_date_ymd] => 2025-02-12 21:32:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:32:06' and `end` < '2025-02-12 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-12 21:32:19] Production.INFO: count ==1479 [2025-02-12 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:32:06 - End Time 2025-02-12 21:32:06 [2025-02-12 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461841', 'tblTempUsageDetail_20' ) start [2025-02-12 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461841', 'tblTempUsageDetail_20' ) end [2025-02-12 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461841', 'tblTempVendorCDR_20' ) start [2025-02-12 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461841', 'tblTempVendorCDR_20' ) end [2025-02-12 21:32:20] Production.INFO: ProcessCDR(1,14461841,1,1,2) [2025-02-12 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461841', 'tblTempUsageDetail_20' ) start [2025-02-12 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461841', 'tblTempUsageDetail_20' ) end [2025-02-12 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:32:23] Production.INFO: ==19650== Releasing lock... [2025-02-12 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:32:23] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:33:05 [end_date_ymd] => 2025-02-12 21:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:33:05' and `end` < '2025-02-12 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-12 21:33:18] Production.INFO: count ==1474 [2025-02-12 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:33:05 - End Time 2025-02-12 21:33:05 [2025-02-12 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461846', 'tblTempUsageDetail_20' ) start [2025-02-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461846', 'tblTempUsageDetail_20' ) end [2025-02-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461846', 'tblTempVendorCDR_20' ) start [2025-02-12 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461846', 'tblTempVendorCDR_20' ) end [2025-02-12 21:33:18] Production.INFO: ProcessCDR(1,14461846,1,1,2) [2025-02-12 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461846', 'tblTempUsageDetail_20' ) start [2025-02-12 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461846', 'tblTempUsageDetail_20' ) end [2025-02-12 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:33:22] Production.INFO: ==19719== Releasing lock... [2025-02-12 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:33:22] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:34:05 [end_date_ymd] => 2025-02-12 21:34:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:34:05' and `end` < '2025-02-12 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-12 21:34:18] Production.INFO: count ==1472 [2025-02-12 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:34:05 - End Time 2025-02-12 21:34:05 [2025-02-12 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461851', 'tblTempUsageDetail_20' ) start [2025-02-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461851', 'tblTempUsageDetail_20' ) end [2025-02-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461851', 'tblTempVendorCDR_20' ) start [2025-02-12 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461851', 'tblTempVendorCDR_20' ) end [2025-02-12 21:34:18] Production.INFO: ProcessCDR(1,14461851,1,1,2) [2025-02-12 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461851', 'tblTempUsageDetail_20' ) start [2025-02-12 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461851', 'tblTempUsageDetail_20' ) end [2025-02-12 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:34:22] Production.INFO: ==19791== Releasing lock... [2025-02-12 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:34:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-12 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:35:05 [end_date_ymd] => 2025-02-12 21:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:35:05' and `end` < '2025-02-12 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-12 21:35:20] Production.INFO: count ==1471 [2025-02-12 21:35:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:35:05 - End Time 2025-02-12 21:35:05 [2025-02-12 21:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461856', 'tblTempUsageDetail_20' ) start [2025-02-12 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461856', 'tblTempUsageDetail_20' ) end [2025-02-12 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461856', 'tblTempVendorCDR_20' ) start [2025-02-12 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461856', 'tblTempVendorCDR_20' ) end [2025-02-12 21:35:20] Production.INFO: ProcessCDR(1,14461856,1,1,2) [2025-02-12 21:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461856', 'tblTempUsageDetail_20' ) start [2025-02-12 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461856', 'tblTempUsageDetail_20' ) end [2025-02-12 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:35:23] Production.INFO: ==19863== Releasing lock... [2025-02-12 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:35:23] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:36:05 [end_date_ymd] => 2025-02-12 21:36:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:36:05' and `end` < '2025-02-12 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-12 21:36:18] Production.INFO: count ==1469 [2025-02-12 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:36:05 - End Time 2025-02-12 21:36:05 [2025-02-12 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461861', 'tblTempUsageDetail_20' ) start [2025-02-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461861', 'tblTempUsageDetail_20' ) end [2025-02-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461861', 'tblTempVendorCDR_20' ) start [2025-02-12 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461861', 'tblTempVendorCDR_20' ) end [2025-02-12 21:36:19] Production.INFO: ProcessCDR(1,14461861,1,1,2) [2025-02-12 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461861', 'tblTempUsageDetail_20' ) start [2025-02-12 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461861', 'tblTempUsageDetail_20' ) end [2025-02-12 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:36:22] Production.INFO: ==19937== Releasing lock... [2025-02-12 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:37:04 [end_date_ymd] => 2025-02-12 21:37:04 [RateCDR] => 1 ) [2025-02-12 21:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:37:04' and `end` < '2025-02-12 21:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:37:18] Production.INFO: count ==1466 [2025-02-12 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:37:04 - End Time 2025-02-12 21:37:04 [2025-02-12 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461866', 'tblTempUsageDetail_20' ) start [2025-02-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461866', 'tblTempUsageDetail_20' ) end [2025-02-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461866', 'tblTempVendorCDR_20' ) start [2025-02-12 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461866', 'tblTempVendorCDR_20' ) end [2025-02-12 21:37:19] Production.INFO: ProcessCDR(1,14461866,1,1,2) [2025-02-12 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461866', 'tblTempUsageDetail_20' ) start [2025-02-12 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461866', 'tblTempUsageDetail_20' ) end [2025-02-12 21:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:37:24] Production.INFO: ==20014== Releasing lock... [2025-02-12 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:37:24] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:38:05 [end_date_ymd] => 2025-02-12 21:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:38:05' and `end` < '2025-02-12 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-12 21:38:19] Production.INFO: count ==1467 [2025-02-12 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:38:05 - End Time 2025-02-12 21:38:05 [2025-02-12 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461871', 'tblTempUsageDetail_20' ) start [2025-02-12 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461871', 'tblTempUsageDetail_20' ) end [2025-02-12 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461871', 'tblTempVendorCDR_20' ) start [2025-02-12 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461871', 'tblTempVendorCDR_20' ) end [2025-02-12 21:38:19] Production.INFO: ProcessCDR(1,14461871,1,1,2) [2025-02-12 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461871', 'tblTempUsageDetail_20' ) start [2025-02-12 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461871', 'tblTempUsageDetail_20' ) end [2025-02-12 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:38:22] Production.INFO: ==20089== Releasing lock... [2025-02-12 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:38:22] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:39:05 [end_date_ymd] => 2025-02-12 21:39:05 [RateCDR] => 1 ) [2025-02-12 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:39:05' and `end` < '2025-02-12 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:39:18] Production.INFO: count ==1468 [2025-02-12 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:39:05 - End Time 2025-02-12 21:39:05 [2025-02-12 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461876', 'tblTempUsageDetail_20' ) start [2025-02-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461876', 'tblTempUsageDetail_20' ) end [2025-02-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461876', 'tblTempVendorCDR_20' ) start [2025-02-12 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461876', 'tblTempVendorCDR_20' ) end [2025-02-12 21:39:18] Production.INFO: ProcessCDR(1,14461876,1,1,2) [2025-02-12 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461876', 'tblTempUsageDetail_20' ) start [2025-02-12 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461876', 'tblTempUsageDetail_20' ) end [2025-02-12 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:39:21] Production.INFO: ==20163== Releasing lock... [2025-02-12 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:39:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-12 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:40:06 [end_date_ymd] => 2025-02-12 21:40:06 [RateCDR] => 1 ) [2025-02-12 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:40:06' and `end` < '2025-02-12 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:40:20] Production.INFO: count ==1469 [2025-02-12 21:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 18:40:06 - End Time 2025-02-12 21:40:06 [2025-02-12 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461882', 'tblTempUsageDetail_20' ) start [2025-02-12 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461882', 'tblTempUsageDetail_20' ) end [2025-02-12 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461882', 'tblTempVendorCDR_20' ) start [2025-02-12 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461882', 'tblTempVendorCDR_20' ) end [2025-02-12 21:40:20] Production.INFO: ProcessCDR(1,14461882,1,1,2) [2025-02-12 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461882', 'tblTempUsageDetail_20' ) start [2025-02-12 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461882', 'tblTempUsageDetail_20' ) end [2025-02-12 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:40:24] Production.INFO: ==20235== Releasing lock... [2025-02-12 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:40:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:41:05 [end_date_ymd] => 2025-02-12 21:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:41:05' and `end` < '2025-02-12 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-12 21:41:19] Production.INFO: count ==1410 [2025-02-12 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:41:05 - End Time 2025-02-12 21:41:05 [2025-02-12 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461887', 'tblTempUsageDetail_20' ) start [2025-02-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461887', 'tblTempUsageDetail_20' ) end [2025-02-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461887', 'tblTempVendorCDR_20' ) start [2025-02-12 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461887', 'tblTempVendorCDR_20' ) end [2025-02-12 21:41:19] Production.INFO: ProcessCDR(1,14461887,1,1,2) [2025-02-12 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461887', 'tblTempUsageDetail_20' ) start [2025-02-12 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461887', 'tblTempUsageDetail_20' ) end [2025-02-12 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:41:22] Production.INFO: ==20308== Releasing lock... [2025-02-12 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:41:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:42:05 [end_date_ymd] => 2025-02-12 21:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:42:05' and `end` < '2025-02-12 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-12 21:42:18] Production.INFO: count ==1414 [2025-02-12 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:42:05 - End Time 2025-02-12 21:42:05 [2025-02-12 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461892', 'tblTempUsageDetail_20' ) start [2025-02-12 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461892', 'tblTempUsageDetail_20' ) end [2025-02-12 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461892', 'tblTempVendorCDR_20' ) start [2025-02-12 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461892', 'tblTempVendorCDR_20' ) end [2025-02-12 21:42:19] Production.INFO: ProcessCDR(1,14461892,1,1,2) [2025-02-12 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461892', 'tblTempUsageDetail_20' ) start [2025-02-12 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461892', 'tblTempUsageDetail_20' ) end [2025-02-12 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:42:24] Production.INFO: ==20381== Releasing lock... [2025-02-12 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:42:24] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:43:05 [end_date_ymd] => 2025-02-12 21:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:43:05' and `end` < '2025-02-12 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-12 21:43:18] Production.INFO: count ==1412 [2025-02-12 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:43:05 - End Time 2025-02-12 21:43:05 [2025-02-12 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461897', 'tblTempUsageDetail_20' ) start [2025-02-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461897', 'tblTempUsageDetail_20' ) end [2025-02-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461897', 'tblTempVendorCDR_20' ) start [2025-02-12 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461897', 'tblTempVendorCDR_20' ) end [2025-02-12 21:43:18] Production.INFO: ProcessCDR(1,14461897,1,1,2) [2025-02-12 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461897', 'tblTempUsageDetail_20' ) start [2025-02-12 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461897', 'tblTempUsageDetail_20' ) end [2025-02-12 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:43:23] Production.INFO: ==20450== Releasing lock... [2025-02-12 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:43:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:44:05 [end_date_ymd] => 2025-02-12 21:44:05 [RateCDR] => 1 ) [2025-02-12 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:44:05' and `end` < '2025-02-12 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:44:18] Production.INFO: count ==1408 [2025-02-12 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:44:05 - End Time 2025-02-12 21:44:05 [2025-02-12 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461902', 'tblTempUsageDetail_20' ) start [2025-02-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461902', 'tblTempUsageDetail_20' ) end [2025-02-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461902', 'tblTempVendorCDR_20' ) start [2025-02-12 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461902', 'tblTempVendorCDR_20' ) end [2025-02-12 21:44:18] Production.INFO: ProcessCDR(1,14461902,1,1,2) [2025-02-12 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461902', 'tblTempUsageDetail_20' ) start [2025-02-12 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461902', 'tblTempUsageDetail_20' ) end [2025-02-12 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:44:21] Production.INFO: ==20522== Releasing lock... [2025-02-12 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:44:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:45:04 [end_date_ymd] => 2025-02-12 21:45:04 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:45:04' and `end` < '2025-02-12 21: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-12 21:45:18] Production.INFO: count ==1413 [2025-02-12 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:45:04 - End Time 2025-02-12 21:45:04 [2025-02-12 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461907', 'tblTempUsageDetail_20' ) start [2025-02-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461907', 'tblTempUsageDetail_20' ) end [2025-02-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461907', 'tblTempVendorCDR_20' ) start [2025-02-12 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461907', 'tblTempVendorCDR_20' ) end [2025-02-12 21:45:18] Production.INFO: ProcessCDR(1,14461907,1,1,2) [2025-02-12 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461907', 'tblTempUsageDetail_20' ) start [2025-02-12 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461907', 'tblTempUsageDetail_20' ) end [2025-02-12 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:45:21] Production.INFO: ==20632== Releasing lock... [2025-02-12 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:45:21] Production.INFO: 39 MB #Memory Used# [2025-02-12 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:46:05 [end_date_ymd] => 2025-02-12 21:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:46:05' and `end` < '2025-02-12 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-12 21:46:19] Production.INFO: count ==1409 [2025-02-12 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:46:05 - End Time 2025-02-12 21:46:05 [2025-02-12 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461912', 'tblTempUsageDetail_20' ) start [2025-02-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461912', 'tblTempUsageDetail_20' ) end [2025-02-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461912', 'tblTempVendorCDR_20' ) start [2025-02-12 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461912', 'tblTempVendorCDR_20' ) end [2025-02-12 21:46:19] Production.INFO: ProcessCDR(1,14461912,1,1,2) [2025-02-12 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461912', 'tblTempUsageDetail_20' ) start [2025-02-12 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461912', 'tblTempUsageDetail_20' ) end [2025-02-12 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:46:23] Production.INFO: ==20703== Releasing lock... [2025-02-12 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:46:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:47:06 [end_date_ymd] => 2025-02-12 21:47:06 [RateCDR] => 1 ) [2025-02-12 21:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:47:06' and `end` < '2025-02-12 21:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:47:19] Production.INFO: count ==1412 [2025-02-12 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:47:06 - End Time 2025-02-12 21:47:06 [2025-02-12 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461917', 'tblTempUsageDetail_20' ) start [2025-02-12 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461917', 'tblTempUsageDetail_20' ) end [2025-02-12 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461917', 'tblTempVendorCDR_20' ) start [2025-02-12 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461917', 'tblTempVendorCDR_20' ) end [2025-02-12 21:47:19] Production.INFO: ProcessCDR(1,14461917,1,1,2) [2025-02-12 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461917', 'tblTempUsageDetail_20' ) start [2025-02-12 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461917', 'tblTempUsageDetail_20' ) end [2025-02-12 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:47:23] Production.INFO: ==20773== Releasing lock... [2025-02-12 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:47:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:48:05 [end_date_ymd] => 2025-02-12 21:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:48:05' and `end` < '2025-02-12 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-12 21:48:18] Production.INFO: count ==1408 [2025-02-12 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:48:05 - End Time 2025-02-12 21:48:05 [2025-02-12 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461922', 'tblTempUsageDetail_20' ) start [2025-02-12 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461922', 'tblTempUsageDetail_20' ) end [2025-02-12 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461922', 'tblTempVendorCDR_20' ) start [2025-02-12 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461922', 'tblTempVendorCDR_20' ) end [2025-02-12 21:48:19] Production.INFO: ProcessCDR(1,14461922,1,1,2) [2025-02-12 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461922', 'tblTempUsageDetail_20' ) start [2025-02-12 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461922', 'tblTempUsageDetail_20' ) end [2025-02-12 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:48:22] Production.INFO: ==20847== Releasing lock... [2025-02-12 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:49:05 [end_date_ymd] => 2025-02-12 21:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:49:05' and `end` < '2025-02-12 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-12 21:49:18] Production.INFO: count ==1411 [2025-02-12 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:49:05 - End Time 2025-02-12 21:49:05 [2025-02-12 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461927', 'tblTempUsageDetail_20' ) start [2025-02-12 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461927', 'tblTempUsageDetail_20' ) end [2025-02-12 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461927', 'tblTempVendorCDR_20' ) start [2025-02-12 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461927', 'tblTempVendorCDR_20' ) end [2025-02-12 21:49:18] Production.INFO: ProcessCDR(1,14461927,1,1,2) [2025-02-12 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461927', 'tblTempUsageDetail_20' ) start [2025-02-12 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461927', 'tblTempUsageDetail_20' ) end [2025-02-12 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:49:22] Production.INFO: ==20920== Releasing lock... [2025-02-12 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:49:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:50:06 [end_date_ymd] => 2025-02-12 21:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 18:50:06' and `end` < '2025-02-12 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-12 21:50:19] Production.INFO: count ==1413 [2025-02-12 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:50:06 - End Time 2025-02-12 21:50:06 [2025-02-12 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461933', 'tblTempUsageDetail_20' ) start [2025-02-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461933', 'tblTempUsageDetail_20' ) end [2025-02-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461933', 'tblTempVendorCDR_20' ) start [2025-02-12 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461933', 'tblTempVendorCDR_20' ) end [2025-02-12 21:50:19] Production.INFO: ProcessCDR(1,14461933,1,1,2) [2025-02-12 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461933', 'tblTempUsageDetail_20' ) start [2025-02-12 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461933', 'tblTempUsageDetail_20' ) end [2025-02-12 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:50:23] Production.INFO: ==20999== Releasing lock... [2025-02-12 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:50:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-12 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:51:04 [end_date_ymd] => 2025-02-12 21:51:04 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:51:04' and `end` < '2025-02-12 21: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-12 21:51:18] Production.INFO: count ==1381 [2025-02-12 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:51:04 - End Time 2025-02-12 21:51:04 [2025-02-12 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461938', 'tblTempUsageDetail_20' ) start [2025-02-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461938', 'tblTempUsageDetail_20' ) end [2025-02-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461938', 'tblTempVendorCDR_20' ) start [2025-02-12 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461938', 'tblTempVendorCDR_20' ) end [2025-02-12 21:51:18] Production.INFO: ProcessCDR(1,14461938,1,1,2) [2025-02-12 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461938', 'tblTempUsageDetail_20' ) start [2025-02-12 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461938', 'tblTempUsageDetail_20' ) end [2025-02-12 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:51:23] Production.INFO: ==21071== Releasing lock... [2025-02-12 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:51:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:52:05 [end_date_ymd] => 2025-02-12 21:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:52:05' and `end` < '2025-02-12 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-12 21:52:19] Production.INFO: count ==1381 [2025-02-12 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:52:05 - End Time 2025-02-12 21:52:05 [2025-02-12 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461943', 'tblTempUsageDetail_20' ) start [2025-02-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461943', 'tblTempUsageDetail_20' ) end [2025-02-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461943', 'tblTempVendorCDR_20' ) start [2025-02-12 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461943', 'tblTempVendorCDR_20' ) end [2025-02-12 21:52:19] Production.INFO: ProcessCDR(1,14461943,1,1,2) [2025-02-12 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461943', 'tblTempUsageDetail_20' ) start [2025-02-12 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461943', 'tblTempUsageDetail_20' ) end [2025-02-12 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:52:24] Production.INFO: ==21144== Releasing lock... [2025-02-12 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:52:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:53:05 [end_date_ymd] => 2025-02-12 21:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:53:05' and `end` < '2025-02-12 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-12 21:53:18] Production.INFO: count ==1382 [2025-02-12 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:53:05 - End Time 2025-02-12 21:53:05 [2025-02-12 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461948', 'tblTempUsageDetail_20' ) start [2025-02-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461948', 'tblTempUsageDetail_20' ) end [2025-02-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461948', 'tblTempVendorCDR_20' ) start [2025-02-12 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461948', 'tblTempVendorCDR_20' ) end [2025-02-12 21:53:19] Production.INFO: ProcessCDR(1,14461948,1,1,2) [2025-02-12 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461948', 'tblTempUsageDetail_20' ) start [2025-02-12 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461948', 'tblTempUsageDetail_20' ) end [2025-02-12 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:53:22] Production.INFO: ==21215== Releasing lock... [2025-02-12 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:54:05 [end_date_ymd] => 2025-02-12 21:54:05 [RateCDR] => 1 ) [2025-02-12 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:54:05' and `end` < '2025-02-12 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:54:18] Production.INFO: count ==1387 [2025-02-12 21:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:54:05 - End Time 2025-02-12 21:54:05 [2025-02-12 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461953', 'tblTempUsageDetail_20' ) start [2025-02-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461953', 'tblTempUsageDetail_20' ) end [2025-02-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461953', 'tblTempVendorCDR_20' ) start [2025-02-12 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461953', 'tblTempVendorCDR_20' ) end [2025-02-12 21:54:18] Production.INFO: ProcessCDR(1,14461953,1,1,2) [2025-02-12 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461953', 'tblTempUsageDetail_20' ) start [2025-02-12 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461953', 'tblTempUsageDetail_20' ) end [2025-02-12 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:54:22] Production.INFO: ==21287== Releasing lock... [2025-02-12 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:55:06 [end_date_ymd] => 2025-02-12 21:55:06 [RateCDR] => 1 ) [2025-02-12 21: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-12 18:55:06' and `end` < '2025-02-12 21: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-12 21:55:19] Production.INFO: count ==1383 [2025-02-12 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:55:06 - End Time 2025-02-12 21:55:06 [2025-02-12 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461958', 'tblTempUsageDetail_20' ) start [2025-02-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461958', 'tblTempUsageDetail_20' ) end [2025-02-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461958', 'tblTempVendorCDR_20' ) start [2025-02-12 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461958', 'tblTempVendorCDR_20' ) end [2025-02-12 21:55:19] Production.INFO: ProcessCDR(1,14461958,1,1,2) [2025-02-12 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461958', 'tblTempUsageDetail_20' ) start [2025-02-12 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461958', 'tblTempUsageDetail_20' ) end [2025-02-12 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:55:22] Production.INFO: ==21361== Releasing lock... [2025-02-12 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:56:05 [end_date_ymd] => 2025-02-12 21:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:56:05' and `end` < '2025-02-12 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-12 21:56:19] Production.INFO: count ==1380 [2025-02-12 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:56:05 - End Time 2025-02-12 21:56:05 [2025-02-12 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461963', 'tblTempUsageDetail_20' ) start [2025-02-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461963', 'tblTempUsageDetail_20' ) end [2025-02-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461963', 'tblTempVendorCDR_20' ) start [2025-02-12 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461963', 'tblTempVendorCDR_20' ) end [2025-02-12 21:56:19] Production.INFO: ProcessCDR(1,14461963,1,1,2) [2025-02-12 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461963', 'tblTempUsageDetail_20' ) start [2025-02-12 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461963', 'tblTempUsageDetail_20' ) end [2025-02-12 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:56:22] Production.INFO: ==21437== Releasing lock... [2025-02-12 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:57:05 [end_date_ymd] => 2025-02-12 21:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 18:57:05' and `end` < '2025-02-12 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-12 21:57:19] Production.INFO: count ==1380 [2025-02-12 21:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:57:05 - End Time 2025-02-12 21:57:05 [2025-02-12 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461968', 'tblTempUsageDetail_20' ) start [2025-02-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461968', 'tblTempUsageDetail_20' ) end [2025-02-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461968', 'tblTempVendorCDR_20' ) start [2025-02-12 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461968', 'tblTempVendorCDR_20' ) end [2025-02-12 21:57:19] Production.INFO: ProcessCDR(1,14461968,1,1,2) [2025-02-12 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461968', 'tblTempUsageDetail_20' ) start [2025-02-12 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461968', 'tblTempUsageDetail_20' ) end [2025-02-12 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:57:22] Production.INFO: ==21508== Releasing lock... [2025-02-12 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:57:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:58:05 [end_date_ymd] => 2025-02-12 21:58:05 [RateCDR] => 1 ) [2025-02-12 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:58:05' and `end` < '2025-02-12 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:58:18] Production.INFO: count ==1376 [2025-02-12 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 18:58:05 - End Time 2025-02-12 21:58:05 [2025-02-12 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461973', 'tblTempUsageDetail_20' ) start [2025-02-12 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461973', 'tblTempUsageDetail_20' ) end [2025-02-12 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461973', 'tblTempVendorCDR_20' ) start [2025-02-12 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461973', 'tblTempVendorCDR_20' ) end [2025-02-12 21:58:18] Production.INFO: ProcessCDR(1,14461973,1,1,2) [2025-02-12 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461973', 'tblTempUsageDetail_20' ) start [2025-02-12 21:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461973', 'tblTempUsageDetail_20' ) end [2025-02-12 21:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:58:23] Production.INFO: ==21579== Releasing lock... [2025-02-12 21:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:58:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 18:59:05 [end_date_ymd] => 2025-02-12 21:59:05 [RateCDR] => 1 ) [2025-02-12 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 18:59:05' and `end` < '2025-02-12 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 21:59:18] Production.INFO: count ==1380 [2025-02-12 21:59:19] Production.ERROR: pbx CDR StartTime 2025-02-12 18:59:05 - End Time 2025-02-12 21:59:05 [2025-02-12 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461978', 'tblTempUsageDetail_20' ) start [2025-02-12 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461978', 'tblTempUsageDetail_20' ) end [2025-02-12 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461978', 'tblTempVendorCDR_20' ) start [2025-02-12 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461978', 'tblTempVendorCDR_20' ) end [2025-02-12 21:59:19] Production.INFO: ProcessCDR(1,14461978,1,1,2) [2025-02-12 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461978', 'tblTempUsageDetail_20' ) start [2025-02-12 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461978', 'tblTempUsageDetail_20' ) end [2025-02-12 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 21:59:22] Production.INFO: ==21651== Releasing lock... [2025-02-12 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 21:59:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-12 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:00:06 [end_date_ymd] => 2025-02-12 22:00:06 [RateCDR] => 1 ) [2025-02-12 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:00:06' and `end` < '2025-02-12 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:00:19] Production.INFO: count ==1390 [2025-02-12 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:00:06 - End Time 2025-02-12 22:00:06 [2025-02-12 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461983', 'tblTempUsageDetail_20' ) start [2025-02-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461983', 'tblTempUsageDetail_20' ) end [2025-02-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461983', 'tblTempVendorCDR_20' ) start [2025-02-12 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461983', 'tblTempVendorCDR_20' ) end [2025-02-12 22:00:19] Production.INFO: ProcessCDR(1,14461983,1,1,2) [2025-02-12 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461983', 'tblTempUsageDetail_20' ) start [2025-02-12 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461983', 'tblTempUsageDetail_20' ) end [2025-02-12 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:00:23] Production.INFO: ==21729== Releasing lock... [2025-02-12 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-12 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:01:05 [end_date_ymd] => 2025-02-12 22:01:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:01:05' and `end` < '2025-02-12 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-12 22:01:18] Production.INFO: count ==1349 [2025-02-12 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:01:05 - End Time 2025-02-12 22:01:05 [2025-02-12 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461989', 'tblTempUsageDetail_20' ) start [2025-02-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461989', 'tblTempUsageDetail_20' ) end [2025-02-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461989', 'tblTempVendorCDR_20' ) start [2025-02-12 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461989', 'tblTempVendorCDR_20' ) end [2025-02-12 22:01:18] Production.INFO: ProcessCDR(1,14461989,1,1,2) [2025-02-12 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461989', 'tblTempUsageDetail_20' ) start [2025-02-12 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461989', 'tblTempUsageDetail_20' ) end [2025-02-12 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:01:21] Production.INFO: ==21852== Releasing lock... [2025-02-12 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:01:21] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:02:04 [end_date_ymd] => 2025-02-12 22:02:04 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:02:04' and `end` < '2025-02-12 22: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-12 22:02:18] Production.INFO: count ==1344 [2025-02-12 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:02:04 - End Time 2025-02-12 22:02:04 [2025-02-12 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461994', 'tblTempUsageDetail_20' ) start [2025-02-12 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461994', 'tblTempUsageDetail_20' ) end [2025-02-12 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461994', 'tblTempVendorCDR_20' ) start [2025-02-12 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461994', 'tblTempVendorCDR_20' ) end [2025-02-12 22:02:18] Production.INFO: ProcessCDR(1,14461994,1,1,2) [2025-02-12 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461994', 'tblTempUsageDetail_20' ) start [2025-02-12 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461994', 'tblTempUsageDetail_20' ) end [2025-02-12 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:02:22] Production.INFO: ==21920== Releasing lock... [2025-02-12 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:02:22] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:03:05 [end_date_ymd] => 2025-02-12 22:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:03:05' and `end` < '2025-02-12 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-12 22:03:18] Production.INFO: count ==1341 [2025-02-12 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:03:05 - End Time 2025-02-12 22:03:05 [2025-02-12 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461999', 'tblTempUsageDetail_20' ) start [2025-02-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14461999', 'tblTempUsageDetail_20' ) end [2025-02-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461999', 'tblTempVendorCDR_20' ) start [2025-02-12 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14461999', 'tblTempVendorCDR_20' ) end [2025-02-12 22:03:18] Production.INFO: ProcessCDR(1,14461999,1,1,2) [2025-02-12 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14461999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14461999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14461999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14461999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461999', 'tblTempUsageDetail_20' ) start [2025-02-12 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14461999', 'tblTempUsageDetail_20' ) end [2025-02-12 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:03:21] Production.INFO: ==21998== Releasing lock... [2025-02-12 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:03:21] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:04:06 [end_date_ymd] => 2025-02-12 22:04:06 [RateCDR] => 1 ) [2025-02-12 22:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:04:06' and `end` < '2025-02-12 22:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:04:19] Production.INFO: count ==1332 [2025-02-12 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:04:06 - End Time 2025-02-12 22:04:06 [2025-02-12 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462004', 'tblTempUsageDetail_20' ) start [2025-02-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462004', 'tblTempUsageDetail_20' ) end [2025-02-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462004', 'tblTempVendorCDR_20' ) start [2025-02-12 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462004', 'tblTempVendorCDR_20' ) end [2025-02-12 22:04:19] Production.INFO: ProcessCDR(1,14462004,1,1,2) [2025-02-12 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462004', 'tblTempUsageDetail_20' ) start [2025-02-12 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462004', 'tblTempUsageDetail_20' ) end [2025-02-12 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:04:23] Production.INFO: ==22073== Releasing lock... [2025-02-12 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:04:23] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:05:05 [end_date_ymd] => 2025-02-12 22:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:05:05' and `end` < '2025-02-12 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-12 22:05:19] Production.INFO: count ==1325 [2025-02-12 22:05:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:05:05 - End Time 2025-02-12 22:05:05 [2025-02-12 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462009', 'tblTempUsageDetail_20' ) start [2025-02-12 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462009', 'tblTempUsageDetail_20' ) end [2025-02-12 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462009', 'tblTempVendorCDR_20' ) start [2025-02-12 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462009', 'tblTempVendorCDR_20' ) end [2025-02-12 22:05:19] Production.INFO: ProcessCDR(1,14462009,1,1,2) [2025-02-12 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462009', 'tblTempUsageDetail_20' ) start [2025-02-12 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462009', 'tblTempUsageDetail_20' ) end [2025-02-12 22:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:05:24] Production.INFO: ==22141== Releasing lock... [2025-02-12 22:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:05:24] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:06:05 [end_date_ymd] => 2025-02-12 22:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:06:05' and `end` < '2025-02-12 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-12 22:06:18] Production.INFO: count ==1325 [2025-02-12 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:06:05 - End Time 2025-02-12 22:06:05 [2025-02-12 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462014', 'tblTempUsageDetail_20' ) start [2025-02-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462014', 'tblTempUsageDetail_20' ) end [2025-02-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462014', 'tblTempVendorCDR_20' ) start [2025-02-12 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462014', 'tblTempVendorCDR_20' ) end [2025-02-12 22:06:18] Production.INFO: ProcessCDR(1,14462014,1,1,2) [2025-02-12 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462014', 'tblTempUsageDetail_20' ) start [2025-02-12 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462014', 'tblTempUsageDetail_20' ) end [2025-02-12 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:06:23] Production.INFO: ==22213== Releasing lock... [2025-02-12 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:06:23] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:07:05 [end_date_ymd] => 2025-02-12 22:07:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:07:05' and `end` < '2025-02-12 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-12 22:07:18] Production.INFO: count ==1324 [2025-02-12 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:07:05 - End Time 2025-02-12 22:07:05 [2025-02-12 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462019', 'tblTempUsageDetail_20' ) start [2025-02-12 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462019', 'tblTempUsageDetail_20' ) end [2025-02-12 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462019', 'tblTempVendorCDR_20' ) start [2025-02-12 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462019', 'tblTempVendorCDR_20' ) end [2025-02-12 22:07:19] Production.INFO: ProcessCDR(1,14462019,1,1,2) [2025-02-12 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462019', 'tblTempUsageDetail_20' ) start [2025-02-12 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462019', 'tblTempUsageDetail_20' ) end [2025-02-12 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:07:23] Production.INFO: ==22283== Releasing lock... [2025-02-12 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:07:23] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:08:05 [end_date_ymd] => 2025-02-12 22:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:08:05' and `end` < '2025-02-12 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-12 22:08:18] Production.INFO: count ==1313 [2025-02-12 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:08:05 - End Time 2025-02-12 22:08:05 [2025-02-12 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462024', 'tblTempUsageDetail_20' ) start [2025-02-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462024', 'tblTempUsageDetail_20' ) end [2025-02-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462024', 'tblTempVendorCDR_20' ) start [2025-02-12 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462024', 'tblTempVendorCDR_20' ) end [2025-02-12 22:08:18] Production.INFO: ProcessCDR(1,14462024,1,1,2) [2025-02-12 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462024', 'tblTempUsageDetail_20' ) start [2025-02-12 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462024', 'tblTempUsageDetail_20' ) end [2025-02-12 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:08:21] Production.INFO: ==22360== Releasing lock... [2025-02-12 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:08:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-12 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:09:05 [end_date_ymd] => 2025-02-12 22:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:09:05' and `end` < '2025-02-12 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-12 22:09:18] Production.INFO: count ==1317 [2025-02-12 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:09:05 - End Time 2025-02-12 22:09:05 [2025-02-12 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462029', 'tblTempUsageDetail_20' ) start [2025-02-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462029', 'tblTempUsageDetail_20' ) end [2025-02-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462029', 'tblTempVendorCDR_20' ) start [2025-02-12 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462029', 'tblTempVendorCDR_20' ) end [2025-02-12 22:09:18] Production.INFO: ProcessCDR(1,14462029,1,1,2) [2025-02-12 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462029', 'tblTempUsageDetail_20' ) start [2025-02-12 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462029', 'tblTempUsageDetail_20' ) end [2025-02-12 22:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:09:23] Production.INFO: ==22432== Releasing lock... [2025-02-12 22:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:09:23] Production.INFO: 38 MB #Memory Used# [2025-02-12 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:10:06 [end_date_ymd] => 2025-02-12 22:10:06 [RateCDR] => 1 ) [2025-02-12 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-12 19:10:06' and `end` < '2025-02-12 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-12 22:10:19] Production.INFO: count ==1316 [2025-02-12 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:10:06 - End Time 2025-02-12 22:10:06 [2025-02-12 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462035', 'tblTempUsageDetail_20' ) start [2025-02-12 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462035', 'tblTempUsageDetail_20' ) end [2025-02-12 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462035', 'tblTempVendorCDR_20' ) start [2025-02-12 22:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462035', 'tblTempVendorCDR_20' ) end [2025-02-12 22:10:20] Production.INFO: ProcessCDR(1,14462035,1,1,2) [2025-02-12 22:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462035', 'tblTempUsageDetail_20' ) start [2025-02-12 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462035', 'tblTempUsageDetail_20' ) end [2025-02-12 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:10:23] Production.INFO: ==22506== Releasing lock... [2025-02-12 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:10:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-12 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:11:05 [end_date_ymd] => 2025-02-12 22:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:11:05' and `end` < '2025-02-12 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-12 22:11:18] Production.INFO: count ==1260 [2025-02-12 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:11:05 - End Time 2025-02-12 22:11:05 [2025-02-12 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462040', 'tblTempUsageDetail_20' ) start [2025-02-12 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462040', 'tblTempUsageDetail_20' ) end [2025-02-12 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462040', 'tblTempVendorCDR_20' ) start [2025-02-12 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462040', 'tblTempVendorCDR_20' ) end [2025-02-12 22:11:19] Production.INFO: ProcessCDR(1,14462040,1,1,2) [2025-02-12 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462040', 'tblTempUsageDetail_20' ) start [2025-02-12 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462040', 'tblTempUsageDetail_20' ) end [2025-02-12 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:11:22] Production.INFO: ==22579== Releasing lock... [2025-02-12 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:11:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:12:05 [end_date_ymd] => 2025-02-12 22:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:12:05' and `end` < '2025-02-12 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-12 22:12:18] Production.INFO: count ==1255 [2025-02-12 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:12:05 - End Time 2025-02-12 22:12:05 [2025-02-12 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462045', 'tblTempUsageDetail_20' ) start [2025-02-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462045', 'tblTempUsageDetail_20' ) end [2025-02-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462045', 'tblTempVendorCDR_20' ) start [2025-02-12 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462045', 'tblTempVendorCDR_20' ) end [2025-02-12 22:12:19] Production.INFO: ProcessCDR(1,14462045,1,1,2) [2025-02-12 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462045', 'tblTempUsageDetail_20' ) start [2025-02-12 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462045', 'tblTempUsageDetail_20' ) end [2025-02-12 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:12:22] Production.INFO: ==22650== Releasing lock... [2025-02-12 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-12 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:13:05 [end_date_ymd] => 2025-02-12 22:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:13:05' and `end` < '2025-02-12 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-12 22:13:18] Production.INFO: count ==1262 [2025-02-12 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:13:05 - End Time 2025-02-12 22:13:05 [2025-02-12 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462050', 'tblTempUsageDetail_20' ) start [2025-02-12 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462050', 'tblTempUsageDetail_20' ) end [2025-02-12 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462050', 'tblTempVendorCDR_20' ) start [2025-02-12 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462050', 'tblTempVendorCDR_20' ) end [2025-02-12 22:13:19] Production.INFO: ProcessCDR(1,14462050,1,1,2) [2025-02-12 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462050', 'tblTempUsageDetail_20' ) start [2025-02-12 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462050', 'tblTempUsageDetail_20' ) end [2025-02-12 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:13:23] Production.INFO: ==22721== Releasing lock... [2025-02-12 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:13:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:14:05 [end_date_ymd] => 2025-02-12 22:14:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:14:05' and `end` < '2025-02-12 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-12 22:14:19] Production.INFO: count ==1262 [2025-02-12 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:14:05 - End Time 2025-02-12 22:14:05 [2025-02-12 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462055', 'tblTempUsageDetail_20' ) start [2025-02-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462055', 'tblTempUsageDetail_20' ) end [2025-02-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462055', 'tblTempVendorCDR_20' ) start [2025-02-12 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462055', 'tblTempVendorCDR_20' ) end [2025-02-12 22:14:19] Production.INFO: ProcessCDR(1,14462055,1,1,2) [2025-02-12 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462055', 'tblTempUsageDetail_20' ) start [2025-02-12 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462055', 'tblTempUsageDetail_20' ) end [2025-02-12 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:14:24] Production.INFO: ==22793== Releasing lock... [2025-02-12 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:14:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:15:06 [end_date_ymd] => 2025-02-12 22:15:06 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:15:06' and `end` < '2025-02-12 22: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-12 22:15:19] Production.INFO: count ==1251 [2025-02-12 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:15:06 - End Time 2025-02-12 22:15:06 [2025-02-12 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462060', 'tblTempUsageDetail_20' ) start [2025-02-12 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462060', 'tblTempUsageDetail_20' ) end [2025-02-12 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462060', 'tblTempVendorCDR_20' ) start [2025-02-12 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462060', 'tblTempVendorCDR_20' ) end [2025-02-12 22:15:19] Production.INFO: ProcessCDR(1,14462060,1,1,2) [2025-02-12 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462060', 'tblTempUsageDetail_20' ) start [2025-02-12 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462060', 'tblTempUsageDetail_20' ) end [2025-02-12 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:15:22] Production.INFO: ==22864== Releasing lock... [2025-02-12 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-12 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:16:05 [end_date_ymd] => 2025-02-12 22:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:16:05' and `end` < '2025-02-12 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-12 22:16:18] Production.INFO: count ==1255 [2025-02-12 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:16:05 - End Time 2025-02-12 22:16:05 [2025-02-12 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462065', 'tblTempUsageDetail_20' ) start [2025-02-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462065', 'tblTempUsageDetail_20' ) end [2025-02-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462065', 'tblTempVendorCDR_20' ) start [2025-02-12 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462065', 'tblTempVendorCDR_20' ) end [2025-02-12 22:16:18] Production.INFO: ProcessCDR(1,14462065,1,1,2) [2025-02-12 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462065', 'tblTempUsageDetail_20' ) start [2025-02-12 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462065', 'tblTempUsageDetail_20' ) end [2025-02-12 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:16:22] Production.INFO: ==22980== Releasing lock... [2025-02-12 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:16:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-12 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:17:05 [end_date_ymd] => 2025-02-12 22:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:17:05' and `end` < '2025-02-12 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-12 22:17:18] Production.INFO: count ==1250 [2025-02-12 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:17:05 - End Time 2025-02-12 22:17:05 [2025-02-12 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462070', 'tblTempUsageDetail_20' ) start [2025-02-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462070', 'tblTempUsageDetail_20' ) end [2025-02-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462070', 'tblTempVendorCDR_20' ) start [2025-02-12 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462070', 'tblTempVendorCDR_20' ) end [2025-02-12 22:17:19] Production.INFO: ProcessCDR(1,14462070,1,1,2) [2025-02-12 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462070', 'tblTempUsageDetail_20' ) start [2025-02-12 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462070', 'tblTempUsageDetail_20' ) end [2025-02-12 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:17:22] Production.INFO: ==23068== Releasing lock... [2025-02-12 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:17:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-12 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:18:05 [end_date_ymd] => 2025-02-12 22:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:18:05' and `end` < '2025-02-12 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-12 22:18:18] Production.INFO: count ==1246 [2025-02-12 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:18:05 - End Time 2025-02-12 22:18:05 [2025-02-12 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462075', 'tblTempUsageDetail_20' ) start [2025-02-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462075', 'tblTempUsageDetail_20' ) end [2025-02-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462075', 'tblTempVendorCDR_20' ) start [2025-02-12 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462075', 'tblTempVendorCDR_20' ) end [2025-02-12 22:18:19] Production.INFO: ProcessCDR(1,14462075,1,1,2) [2025-02-12 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462075', 'tblTempUsageDetail_20' ) start [2025-02-12 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462075', 'tblTempUsageDetail_20' ) end [2025-02-12 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:18:22] Production.INFO: ==23143== Releasing lock... [2025-02-12 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:18:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:19:06 [end_date_ymd] => 2025-02-12 22:19:06 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:19:06' and `end` < '2025-02-12 22: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-12 22:19:19] Production.INFO: count ==1239 [2025-02-12 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:19:06 - End Time 2025-02-12 22:19:06 [2025-02-12 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462080', 'tblTempUsageDetail_20' ) start [2025-02-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462080', 'tblTempUsageDetail_20' ) end [2025-02-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462080', 'tblTempVendorCDR_20' ) start [2025-02-12 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462080', 'tblTempVendorCDR_20' ) end [2025-02-12 22:19:19] Production.INFO: ProcessCDR(1,14462080,1,1,2) [2025-02-12 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462080', 'tblTempUsageDetail_20' ) start [2025-02-12 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462080', 'tblTempUsageDetail_20' ) end [2025-02-12 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:19:22] Production.INFO: ==23234== Releasing lock... [2025-02-12 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:20:05 [end_date_ymd] => 2025-02-12 22:20:05 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:20:05' and `end` < '2025-02-12 22: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-12 22:20:18] Production.INFO: count ==1238 [2025-02-12 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:20:05 - End Time 2025-02-12 22:20:05 [2025-02-12 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462086', 'tblTempUsageDetail_20' ) start [2025-02-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462086', 'tblTempUsageDetail_20' ) end [2025-02-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462086', 'tblTempVendorCDR_20' ) start [2025-02-12 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462086', 'tblTempVendorCDR_20' ) end [2025-02-12 22:20:19] Production.INFO: ProcessCDR(1,14462086,1,1,2) [2025-02-12 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462086', 'tblTempUsageDetail_20' ) start [2025-02-12 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462086', 'tblTempUsageDetail_20' ) end [2025-02-12 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:20:22] Production.INFO: ==23353== Releasing lock... [2025-02-12 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:20:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-12 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:21:05 [end_date_ymd] => 2025-02-12 22:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:21:05' and `end` < '2025-02-12 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-12 22:21:18] Production.INFO: count ==1197 [2025-02-12 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:21:05 - End Time 2025-02-12 22:21:05 [2025-02-12 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462091', 'tblTempUsageDetail_20' ) start [2025-02-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462091', 'tblTempUsageDetail_20' ) end [2025-02-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462091', 'tblTempVendorCDR_20' ) start [2025-02-12 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462091', 'tblTempVendorCDR_20' ) end [2025-02-12 22:21:18] Production.INFO: ProcessCDR(1,14462091,1,1,2) [2025-02-12 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462091', 'tblTempUsageDetail_20' ) start [2025-02-12 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462091', 'tblTempUsageDetail_20' ) end [2025-02-12 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:21:21] Production.INFO: ==23431== Releasing lock... [2025-02-12 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:21:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:22:05 [end_date_ymd] => 2025-02-12 22:22:05 [RateCDR] => 1 ) [2025-02-12 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:22:05' and `end` < '2025-02-12 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:22:18] Production.INFO: count ==1196 [2025-02-12 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:22:05 - End Time 2025-02-12 22:22:05 [2025-02-12 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462096', 'tblTempUsageDetail_20' ) start [2025-02-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462096', 'tblTempUsageDetail_20' ) end [2025-02-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462096', 'tblTempVendorCDR_20' ) start [2025-02-12 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462096', 'tblTempVendorCDR_20' ) end [2025-02-12 22:22:18] Production.INFO: ProcessCDR(1,14462096,1,1,2) [2025-02-12 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462096', 'tblTempUsageDetail_20' ) start [2025-02-12 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462096', 'tblTempUsageDetail_20' ) end [2025-02-12 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:22:21] Production.INFO: ==23502== Releasing lock... [2025-02-12 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:22:21] Production.INFO: 37 MB #Memory Used# [2025-02-12 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:23:05 [end_date_ymd] => 2025-02-12 22:23:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:23:05' and `end` < '2025-02-12 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-12 22:23:19] Production.INFO: count ==1188 [2025-02-12 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:23:05 - End Time 2025-02-12 22:23:05 [2025-02-12 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462101', 'tblTempUsageDetail_20' ) start [2025-02-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462101', 'tblTempUsageDetail_20' ) end [2025-02-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462101', 'tblTempVendorCDR_20' ) start [2025-02-12 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462101', 'tblTempVendorCDR_20' ) end [2025-02-12 22:23:19] Production.INFO: ProcessCDR(1,14462101,1,1,2) [2025-02-12 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462101', 'tblTempUsageDetail_20' ) start [2025-02-12 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462101', 'tblTempUsageDetail_20' ) end [2025-02-12 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:23:23] Production.INFO: ==23574== Releasing lock... [2025-02-12 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:23:23] Production.INFO: 37 MB #Memory Used# [2025-02-12 22:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:24:04 [end_date_ymd] => 2025-02-12 22:24:04 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:24:04' and `end` < '2025-02-12 22: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-12 22:24:17] Production.INFO: count ==1183 [2025-02-12 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:24:04 - End Time 2025-02-12 22:24:04 [2025-02-12 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462106', 'tblTempUsageDetail_20' ) start [2025-02-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462106', 'tblTempUsageDetail_20' ) end [2025-02-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462106', 'tblTempVendorCDR_20' ) start [2025-02-12 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462106', 'tblTempVendorCDR_20' ) end [2025-02-12 22:24:18] Production.INFO: ProcessCDR(1,14462106,1,1,2) [2025-02-12 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462106', 'tblTempUsageDetail_20' ) start [2025-02-12 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462106', 'tblTempUsageDetail_20' ) end [2025-02-12 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:24:21] Production.INFO: ==23645== Releasing lock... [2025-02-12 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:24:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:25:05 [end_date_ymd] => 2025-02-12 22:25:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:25:05' and `end` < '2025-02-12 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-12 22:25:18] Production.INFO: count ==1161 [2025-02-12 22:25:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:25:05 - End Time 2025-02-12 22:25:05 [2025-02-12 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462111', 'tblTempUsageDetail_20' ) start [2025-02-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462111', 'tblTempUsageDetail_20' ) end [2025-02-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462111', 'tblTempVendorCDR_20' ) start [2025-02-12 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462111', 'tblTempVendorCDR_20' ) end [2025-02-12 22:25:19] Production.INFO: ProcessCDR(1,14462111,1,1,2) [2025-02-12 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462111', 'tblTempUsageDetail_20' ) start [2025-02-12 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462111', 'tblTempUsageDetail_20' ) end [2025-02-12 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:25:22] Production.INFO: ==23716== Releasing lock... [2025-02-12 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:25:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:26:05 [end_date_ymd] => 2025-02-12 22:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:26:05' and `end` < '2025-02-12 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-12 22:26:18] Production.INFO: count ==1155 [2025-02-12 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:26:05 - End Time 2025-02-12 22:26:05 [2025-02-12 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462116', 'tblTempUsageDetail_20' ) start [2025-02-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462116', 'tblTempUsageDetail_20' ) end [2025-02-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462116', 'tblTempVendorCDR_20' ) start [2025-02-12 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462116', 'tblTempVendorCDR_20' ) end [2025-02-12 22:26:19] Production.INFO: ProcessCDR(1,14462116,1,1,2) [2025-02-12 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462116', 'tblTempUsageDetail_20' ) start [2025-02-12 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462116', 'tblTempUsageDetail_20' ) end [2025-02-12 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:26:22] Production.INFO: ==23788== Releasing lock... [2025-02-12 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:26:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:27:05 [end_date_ymd] => 2025-02-12 22:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:27:05' and `end` < '2025-02-12 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-12 22:27:18] Production.INFO: count ==1155 [2025-02-12 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:27:05 - End Time 2025-02-12 22:27:05 [2025-02-12 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462121', 'tblTempUsageDetail_20' ) start [2025-02-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462121', 'tblTempUsageDetail_20' ) end [2025-02-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462121', 'tblTempVendorCDR_20' ) start [2025-02-12 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462121', 'tblTempVendorCDR_20' ) end [2025-02-12 22:27:18] Production.INFO: ProcessCDR(1,14462121,1,1,2) [2025-02-12 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462121', 'tblTempUsageDetail_20' ) start [2025-02-12 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462121', 'tblTempUsageDetail_20' ) end [2025-02-12 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:27:23] Production.INFO: ==23859== Releasing lock... [2025-02-12 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:27:23] Production.INFO: 37 MB #Memory Used# [2025-02-12 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:28:05 [end_date_ymd] => 2025-02-12 22:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:28:05' and `end` < '2025-02-12 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-12 22:28:18] Production.INFO: count ==1152 [2025-02-12 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:28:05 - End Time 2025-02-12 22:28:05 [2025-02-12 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462126', 'tblTempUsageDetail_20' ) start [2025-02-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462126', 'tblTempUsageDetail_20' ) end [2025-02-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462126', 'tblTempVendorCDR_20' ) start [2025-02-12 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462126', 'tblTempVendorCDR_20' ) end [2025-02-12 22:28:18] Production.INFO: ProcessCDR(1,14462126,1,1,2) [2025-02-12 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462126', 'tblTempUsageDetail_20' ) start [2025-02-12 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462126', 'tblTempUsageDetail_20' ) end [2025-02-12 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:28:22] Production.INFO: ==23929== Releasing lock... [2025-02-12 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:28:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:29:05 [end_date_ymd] => 2025-02-12 22:29:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:29:05' and `end` < '2025-02-12 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-12 22:29:18] Production.INFO: count ==1150 [2025-02-12 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:29:05 - End Time 2025-02-12 22:29:05 [2025-02-12 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462131', 'tblTempUsageDetail_20' ) start [2025-02-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462131', 'tblTempUsageDetail_20' ) end [2025-02-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462131', 'tblTempVendorCDR_20' ) start [2025-02-12 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462131', 'tblTempVendorCDR_20' ) end [2025-02-12 22:29:19] Production.INFO: ProcessCDR(1,14462131,1,1,2) [2025-02-12 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462131', 'tblTempUsageDetail_20' ) start [2025-02-12 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462131', 'tblTempUsageDetail_20' ) end [2025-02-12 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:29:21] Production.INFO: ==23998== Releasing lock... [2025-02-12 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:29:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:30:06 [end_date_ymd] => 2025-02-12 22:30:06 [RateCDR] => 1 ) [2025-02-12 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:30:06' and `end` < '2025-02-12 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:30:19] Production.INFO: count ==1148 [2025-02-12 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:30:06 - End Time 2025-02-12 22:30:06 [2025-02-12 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462136', 'tblTempUsageDetail_20' ) start [2025-02-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462136', 'tblTempUsageDetail_20' ) end [2025-02-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462136', 'tblTempVendorCDR_20' ) start [2025-02-12 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462136', 'tblTempVendorCDR_20' ) end [2025-02-12 22:30:19] Production.INFO: ProcessCDR(1,14462136,1,1,2) [2025-02-12 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462136', 'tblTempUsageDetail_20' ) start [2025-02-12 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462136', 'tblTempUsageDetail_20' ) end [2025-02-12 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:30:23] Production.INFO: ==24073== Releasing lock... [2025-02-12 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:30:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:31:05 [end_date_ymd] => 2025-02-12 22:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:31:05' and `end` < '2025-02-12 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-12 22:31:18] Production.INFO: count ==1133 [2025-02-12 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:31:05 - End Time 2025-02-12 22:31:05 [2025-02-12 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462142', 'tblTempUsageDetail_20' ) start [2025-02-12 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462142', 'tblTempUsageDetail_20' ) end [2025-02-12 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462142', 'tblTempVendorCDR_20' ) start [2025-02-12 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462142', 'tblTempVendorCDR_20' ) end [2025-02-12 22:31:18] Production.INFO: ProcessCDR(1,14462142,1,1,2) [2025-02-12 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462142', 'tblTempUsageDetail_20' ) start [2025-02-12 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462142', 'tblTempUsageDetail_20' ) end [2025-02-12 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:31:21] Production.INFO: ==24186== Releasing lock... [2025-02-12 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:31:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:32:05 [end_date_ymd] => 2025-02-12 22:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:32:05' and `end` < '2025-02-12 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-12 22:32:18] Production.INFO: count ==1132 [2025-02-12 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:32:05 - End Time 2025-02-12 22:32:05 [2025-02-12 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462147', 'tblTempUsageDetail_20' ) start [2025-02-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462147', 'tblTempUsageDetail_20' ) end [2025-02-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462147', 'tblTempVendorCDR_20' ) start [2025-02-12 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462147', 'tblTempVendorCDR_20' ) end [2025-02-12 22:32:18] Production.INFO: ProcessCDR(1,14462147,1,1,2) [2025-02-12 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462147', 'tblTempUsageDetail_20' ) start [2025-02-12 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462147', 'tblTempUsageDetail_20' ) end [2025-02-12 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:32:22] Production.INFO: ==24262== Releasing lock... [2025-02-12 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:32:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:33:05 [end_date_ymd] => 2025-02-12 22:33:05 [RateCDR] => 1 ) [2025-02-12 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:33:05' and `end` < '2025-02-12 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:33:19] Production.INFO: count ==1130 [2025-02-12 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:33:05 - End Time 2025-02-12 22:33:05 [2025-02-12 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462152', 'tblTempUsageDetail_20' ) start [2025-02-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462152', 'tblTempUsageDetail_20' ) end [2025-02-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462152', 'tblTempVendorCDR_20' ) start [2025-02-12 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462152', 'tblTempVendorCDR_20' ) end [2025-02-12 22:33:19] Production.INFO: ProcessCDR(1,14462152,1,1,2) [2025-02-12 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462152', 'tblTempUsageDetail_20' ) start [2025-02-12 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462152', 'tblTempUsageDetail_20' ) end [2025-02-12 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:33:22] Production.INFO: ==24335== Releasing lock... [2025-02-12 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:33:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:34:05 [end_date_ymd] => 2025-02-12 22:34:05 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:34:05' and `end` < '2025-02-12 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-12 22:34:19] Production.INFO: count ==1132 [2025-02-12 22:34:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:34:05 - End Time 2025-02-12 22:34:05 [2025-02-12 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462157', 'tblTempUsageDetail_20' ) start [2025-02-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462157', 'tblTempUsageDetail_20' ) end [2025-02-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462157', 'tblTempVendorCDR_20' ) start [2025-02-12 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462157', 'tblTempVendorCDR_20' ) end [2025-02-12 22:34:19] Production.INFO: ProcessCDR(1,14462157,1,1,2) [2025-02-12 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462157', 'tblTempUsageDetail_20' ) start [2025-02-12 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462157', 'tblTempUsageDetail_20' ) end [2025-02-12 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:34:23] Production.INFO: ==24408== Releasing lock... [2025-02-12 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-12 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:35:05 [end_date_ymd] => 2025-02-12 22:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:35:05' and `end` < '2025-02-12 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-12 22:35:18] Production.INFO: count ==1132 [2025-02-12 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:35:05 - End Time 2025-02-12 22:35:05 [2025-02-12 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462162', 'tblTempUsageDetail_20' ) start [2025-02-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462162', 'tblTempUsageDetail_20' ) end [2025-02-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462162', 'tblTempVendorCDR_20' ) start [2025-02-12 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462162', 'tblTempVendorCDR_20' ) end [2025-02-12 22:35:19] Production.INFO: ProcessCDR(1,14462162,1,1,2) [2025-02-12 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462162', 'tblTempUsageDetail_20' ) start [2025-02-12 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462162', 'tblTempUsageDetail_20' ) end [2025-02-12 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:35:22] Production.INFO: ==24485== Releasing lock... [2025-02-12 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:35:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:36:06 [end_date_ymd] => 2025-02-12 22:36:06 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:36:06' and `end` < '2025-02-12 22: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-12 22:36:19] Production.INFO: count ==1131 [2025-02-12 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:36:06 - End Time 2025-02-12 22:36:06 [2025-02-12 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462167', 'tblTempUsageDetail_20' ) start [2025-02-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462167', 'tblTempUsageDetail_20' ) end [2025-02-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462167', 'tblTempVendorCDR_20' ) start [2025-02-12 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462167', 'tblTempVendorCDR_20' ) end [2025-02-12 22:36:19] Production.INFO: ProcessCDR(1,14462167,1,1,2) [2025-02-12 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462167', 'tblTempUsageDetail_20' ) start [2025-02-12 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462167', 'tblTempUsageDetail_20' ) end [2025-02-12 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:36:22] Production.INFO: ==24556== Releasing lock... [2025-02-12 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:36:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:37:05 [end_date_ymd] => 2025-02-12 22:37:05 [RateCDR] => 1 ) [2025-02-12 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:37:05' and `end` < '2025-02-12 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:37:18] Production.INFO: count ==1134 [2025-02-12 22:37:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:37:05 - End Time 2025-02-12 22:37:05 [2025-02-12 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462172', 'tblTempUsageDetail_20' ) start [2025-02-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462172', 'tblTempUsageDetail_20' ) end [2025-02-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462172', 'tblTempVendorCDR_20' ) start [2025-02-12 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462172', 'tblTempVendorCDR_20' ) end [2025-02-12 22:37:19] Production.INFO: ProcessCDR(1,14462172,1,1,2) [2025-02-12 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462172', 'tblTempUsageDetail_20' ) start [2025-02-12 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462172', 'tblTempUsageDetail_20' ) end [2025-02-12 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:37:22] Production.INFO: ==24626== Releasing lock... [2025-02-12 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:37:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:38:05 [end_date_ymd] => 2025-02-12 22:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:38:05' and `end` < '2025-02-12 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-12 22:38:18] Production.INFO: count ==1133 [2025-02-12 22:38:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:38:05 - End Time 2025-02-12 22:38:05 [2025-02-12 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462177', 'tblTempUsageDetail_20' ) start [2025-02-12 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462177', 'tblTempUsageDetail_20' ) end [2025-02-12 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462177', 'tblTempVendorCDR_20' ) start [2025-02-12 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462177', 'tblTempVendorCDR_20' ) end [2025-02-12 22:38:19] Production.INFO: ProcessCDR(1,14462177,1,1,2) [2025-02-12 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462177', 'tblTempUsageDetail_20' ) start [2025-02-12 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462177', 'tblTempUsageDetail_20' ) end [2025-02-12 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:38:22] Production.INFO: ==24699== Releasing lock... [2025-02-12 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-12 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:39:05 [end_date_ymd] => 2025-02-12 22:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:39:05' and `end` < '2025-02-12 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-12 22:39:19] Production.INFO: count ==1129 [2025-02-12 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:39:05 - End Time 2025-02-12 22:39:05 [2025-02-12 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462182', 'tblTempUsageDetail_20' ) start [2025-02-12 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462182', 'tblTempUsageDetail_20' ) end [2025-02-12 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462182', 'tblTempVendorCDR_20' ) start [2025-02-12 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462182', 'tblTempVendorCDR_20' ) end [2025-02-12 22:39:19] Production.INFO: ProcessCDR(1,14462182,1,1,2) [2025-02-12 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462182', 'tblTempUsageDetail_20' ) start [2025-02-12 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462182', 'tblTempUsageDetail_20' ) end [2025-02-12 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:39:22] Production.INFO: ==24770== Releasing lock... [2025-02-12 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:39:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-12 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:40:07 [end_date_ymd] => 2025-02-12 22:40:07 [RateCDR] => 1 ) [2025-02-12 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:40:07' and `end` < '2025-02-12 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:40:20] Production.INFO: count ==1125 [2025-02-12 22:40:20] Production.ERROR: pbx CDR StartTime 2025-02-12 19:40:07 - End Time 2025-02-12 22:40:07 [2025-02-12 22:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462188', 'tblTempUsageDetail_20' ) start [2025-02-12 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462188', 'tblTempUsageDetail_20' ) end [2025-02-12 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462188', 'tblTempVendorCDR_20' ) start [2025-02-12 22:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462188', 'tblTempVendorCDR_20' ) end [2025-02-12 22:40:20] Production.INFO: ProcessCDR(1,14462188,1,1,2) [2025-02-12 22:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462188', 'tblTempUsageDetail_20' ) start [2025-02-12 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462188', 'tblTempUsageDetail_20' ) end [2025-02-12 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:40:23] Production.INFO: ==24841== Releasing lock... [2025-02-12 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-12 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:41:05 [end_date_ymd] => 2025-02-12 22:41:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:41:05' and `end` < '2025-02-12 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-12 22:41:20] Production.INFO: count ==1076 [2025-02-12 22:41:21] Production.ERROR: pbx CDR StartTime 2025-02-12 19:41:05 - End Time 2025-02-12 22:41:05 [2025-02-12 22:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462193', 'tblTempUsageDetail_20' ) start [2025-02-12 22:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462193', 'tblTempUsageDetail_20' ) end [2025-02-12 22:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462193', 'tblTempVendorCDR_20' ) start [2025-02-12 22:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462193', 'tblTempVendorCDR_20' ) end [2025-02-12 22:41:21] Production.INFO: ProcessCDR(1,14462193,1,1,2) [2025-02-12 22:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462193', 'tblTempUsageDetail_20' ) start [2025-02-12 22:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462193', 'tblTempUsageDetail_20' ) end [2025-02-12 22:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:41:24] Production.INFO: ==24918== Releasing lock... [2025-02-12 22:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:41:24] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:42:06 [end_date_ymd] => 2025-02-12 22:42:06 [RateCDR] => 1 ) [2025-02-12 22:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:42:06' and `end` < '2025-02-12 22:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:42:19] Production.INFO: count ==1076 [2025-02-12 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:42:06 - End Time 2025-02-12 22:42:06 [2025-02-12 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462198', 'tblTempUsageDetail_20' ) start [2025-02-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462198', 'tblTempUsageDetail_20' ) end [2025-02-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462198', 'tblTempVendorCDR_20' ) start [2025-02-12 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462198', 'tblTempVendorCDR_20' ) end [2025-02-12 22:42:19] Production.INFO: ProcessCDR(1,14462198,1,1,2) [2025-02-12 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462198', 'tblTempUsageDetail_20' ) start [2025-02-12 22:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462198', 'tblTempUsageDetail_20' ) end [2025-02-12 22:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:42:24] Production.INFO: ==24989== Releasing lock... [2025-02-12 22:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:42:24] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:43:05 [end_date_ymd] => 2025-02-12 22:43:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:43:05' and `end` < '2025-02-12 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-12 22:43:18] Production.INFO: count ==1071 [2025-02-12 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:43:05 - End Time 2025-02-12 22:43:05 [2025-02-12 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462203', 'tblTempUsageDetail_20' ) start [2025-02-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462203', 'tblTempUsageDetail_20' ) end [2025-02-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462203', 'tblTempVendorCDR_20' ) start [2025-02-12 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462203', 'tblTempVendorCDR_20' ) end [2025-02-12 22:43:19] Production.INFO: ProcessCDR(1,14462203,1,1,2) [2025-02-12 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462203', 'tblTempUsageDetail_20' ) start [2025-02-12 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462203', 'tblTempUsageDetail_20' ) end [2025-02-12 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:43:22] Production.INFO: ==25062== Releasing lock... [2025-02-12 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:43:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:44:06 [end_date_ymd] => 2025-02-12 22:44:06 [RateCDR] => 1 ) [2025-02-12 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:44:06' and `end` < '2025-02-12 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:44:19] Production.INFO: count ==1069 [2025-02-12 22:44:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:44:06 - End Time 2025-02-12 22:44:06 [2025-02-12 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462208', 'tblTempUsageDetail_20' ) start [2025-02-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462208', 'tblTempUsageDetail_20' ) end [2025-02-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462208', 'tblTempVendorCDR_20' ) start [2025-02-12 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462208', 'tblTempVendorCDR_20' ) end [2025-02-12 22:44:19] Production.INFO: ProcessCDR(1,14462208,1,1,2) [2025-02-12 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462208', 'tblTempUsageDetail_20' ) start [2025-02-12 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462208', 'tblTempUsageDetail_20' ) end [2025-02-12 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:44:22] Production.INFO: ==25132== Releasing lock... [2025-02-12 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:44:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:45:05 [end_date_ymd] => 2025-02-12 22:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:45:05' and `end` < '2025-02-12 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-12 22:45:18] Production.INFO: count ==1064 [2025-02-12 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:45:05 - End Time 2025-02-12 22:45:05 [2025-02-12 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462213', 'tblTempUsageDetail_20' ) start [2025-02-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462213', 'tblTempUsageDetail_20' ) end [2025-02-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462213', 'tblTempVendorCDR_20' ) start [2025-02-12 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462213', 'tblTempVendorCDR_20' ) end [2025-02-12 22:45:18] Production.INFO: ProcessCDR(1,14462213,1,1,2) [2025-02-12 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462213', 'tblTempUsageDetail_20' ) start [2025-02-12 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462213', 'tblTempUsageDetail_20' ) end [2025-02-12 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:45:22] Production.INFO: ==25202== Releasing lock... [2025-02-12 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:45:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:46:05 [end_date_ymd] => 2025-02-12 22:46:05 [RateCDR] => 1 ) [2025-02-12 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:46:05' and `end` < '2025-02-12 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:46:19] Production.INFO: count ==1064 [2025-02-12 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:46:05 - End Time 2025-02-12 22:46:05 [2025-02-12 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462218', 'tblTempUsageDetail_20' ) start [2025-02-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462218', 'tblTempUsageDetail_20' ) end [2025-02-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462218', 'tblTempVendorCDR_20' ) start [2025-02-12 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462218', 'tblTempVendorCDR_20' ) end [2025-02-12 22:46:19] Production.INFO: ProcessCDR(1,14462218,1,1,2) [2025-02-12 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462218', 'tblTempUsageDetail_20' ) start [2025-02-12 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462218', 'tblTempUsageDetail_20' ) end [2025-02-12 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:46:22] Production.INFO: ==25275== Releasing lock... [2025-02-12 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:46:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:47:05 [end_date_ymd] => 2025-02-12 22:47:05 [RateCDR] => 1 ) [2025-02-12 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:47:05' and `end` < '2025-02-12 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:47:19] Production.INFO: count ==1059 [2025-02-12 22:47:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:47:05 - End Time 2025-02-12 22:47:05 [2025-02-12 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462223', 'tblTempUsageDetail_20' ) start [2025-02-12 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462223', 'tblTempUsageDetail_20' ) end [2025-02-12 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462223', 'tblTempVendorCDR_20' ) start [2025-02-12 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462223', 'tblTempVendorCDR_20' ) end [2025-02-12 22:47:19] Production.INFO: ProcessCDR(1,14462223,1,1,2) [2025-02-12 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462223', 'tblTempUsageDetail_20' ) start [2025-02-12 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462223', 'tblTempUsageDetail_20' ) end [2025-02-12 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:47:22] Production.INFO: ==25384== Releasing lock... [2025-02-12 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:47:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:48:05 [end_date_ymd] => 2025-02-12 22:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:48:05' and `end` < '2025-02-12 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-12 22:48:18] Production.INFO: count ==1057 [2025-02-12 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:48:05 - End Time 2025-02-12 22:48:05 [2025-02-12 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462228', 'tblTempUsageDetail_20' ) start [2025-02-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462228', 'tblTempUsageDetail_20' ) end [2025-02-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462228', 'tblTempVendorCDR_20' ) start [2025-02-12 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462228', 'tblTempVendorCDR_20' ) end [2025-02-12 22:48:19] Production.INFO: ProcessCDR(1,14462228,1,1,2) [2025-02-12 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462228', 'tblTempUsageDetail_20' ) start [2025-02-12 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462228', 'tblTempUsageDetail_20' ) end [2025-02-12 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:48:22] Production.INFO: ==25455== Releasing lock... [2025-02-12 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:48:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:49:05 [end_date_ymd] => 2025-02-12 22:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:49:05' and `end` < '2025-02-12 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-12 22:49:18] Production.INFO: count ==1059 [2025-02-12 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:49:05 - End Time 2025-02-12 22:49:05 [2025-02-12 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462233', 'tblTempUsageDetail_20' ) start [2025-02-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462233', 'tblTempUsageDetail_20' ) end [2025-02-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462233', 'tblTempVendorCDR_20' ) start [2025-02-12 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462233', 'tblTempVendorCDR_20' ) end [2025-02-12 22:49:18] Production.INFO: ProcessCDR(1,14462233,1,1,2) [2025-02-12 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462233', 'tblTempUsageDetail_20' ) start [2025-02-12 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462233', 'tblTempUsageDetail_20' ) end [2025-02-12 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:49:23] Production.INFO: ==25531== Releasing lock... [2025-02-12 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:49:23] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:50:06 [end_date_ymd] => 2025-02-12 22:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 19:50:06' and `end` < '2025-02-12 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-12 22:50:19] Production.INFO: count ==1053 [2025-02-12 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:50:06 - End Time 2025-02-12 22:50:06 [2025-02-12 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462238', 'tblTempUsageDetail_20' ) start [2025-02-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462238', 'tblTempUsageDetail_20' ) end [2025-02-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462238', 'tblTempVendorCDR_20' ) start [2025-02-12 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462238', 'tblTempVendorCDR_20' ) end [2025-02-12 22:50:19] Production.INFO: ProcessCDR(1,14462238,1,1,2) [2025-02-12 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462238', 'tblTempUsageDetail_20' ) start [2025-02-12 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462238', 'tblTempUsageDetail_20' ) end [2025-02-12 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:50:22] Production.INFO: ==25605== Releasing lock... [2025-02-12 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:50:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:51:04 [end_date_ymd] => 2025-02-12 22:51:04 [RateCDR] => 1 ) [2025-02-12 22: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-12 19:51:04' and `end` < '2025-02-12 22: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-12 22:51:17] Production.INFO: count ==1032 [2025-02-12 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:51:04 - End Time 2025-02-12 22:51:04 [2025-02-12 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462244', 'tblTempUsageDetail_20' ) start [2025-02-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462244', 'tblTempUsageDetail_20' ) end [2025-02-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462244', 'tblTempVendorCDR_20' ) start [2025-02-12 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462244', 'tblTempVendorCDR_20' ) end [2025-02-12 22:51:18] Production.INFO: ProcessCDR(1,14462244,1,1,2) [2025-02-12 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462244', 'tblTempUsageDetail_20' ) start [2025-02-12 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462244', 'tblTempUsageDetail_20' ) end [2025-02-12 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:51:22] Production.INFO: ==25677== Releasing lock... [2025-02-12 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:51:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:52:05 [end_date_ymd] => 2025-02-12 22:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:52:05' and `end` < '2025-02-12 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-12 22:52:18] Production.INFO: count ==1023 [2025-02-12 22:52:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:52:05 - End Time 2025-02-12 22:52:05 [2025-02-12 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462249', 'tblTempUsageDetail_20' ) start [2025-02-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462249', 'tblTempUsageDetail_20' ) end [2025-02-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462249', 'tblTempVendorCDR_20' ) start [2025-02-12 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462249', 'tblTempVendorCDR_20' ) end [2025-02-12 22:52:19] Production.INFO: ProcessCDR(1,14462249,1,1,2) [2025-02-12 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462249', 'tblTempUsageDetail_20' ) start [2025-02-12 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462249', 'tblTempUsageDetail_20' ) end [2025-02-12 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:52:22] Production.INFO: ==25747== Releasing lock... [2025-02-12 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:53:05 [end_date_ymd] => 2025-02-12 22:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:53:05' and `end` < '2025-02-12 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-12 22:53:19] Production.INFO: count ==1022 [2025-02-12 22:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:53:05 - End Time 2025-02-12 22:53:05 [2025-02-12 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462254', 'tblTempUsageDetail_20' ) start [2025-02-12 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462254', 'tblTempUsageDetail_20' ) end [2025-02-12 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462254', 'tblTempVendorCDR_20' ) start [2025-02-12 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462254', 'tblTempVendorCDR_20' ) end [2025-02-12 22:53:19] Production.INFO: ProcessCDR(1,14462254,1,1,2) [2025-02-12 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462254', 'tblTempUsageDetail_20' ) start [2025-02-12 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462254', 'tblTempUsageDetail_20' ) end [2025-02-12 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:53:23] Production.INFO: ==25817== Releasing lock... [2025-02-12 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:53:23] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:54:05 [end_date_ymd] => 2025-02-12 22:54:05 [RateCDR] => 1 ) [2025-02-12 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:54:05' and `end` < '2025-02-12 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:54:18] Production.INFO: count ==1022 [2025-02-12 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:54:05 - End Time 2025-02-12 22:54:05 [2025-02-12 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462259', 'tblTempUsageDetail_20' ) start [2025-02-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462259', 'tblTempUsageDetail_20' ) end [2025-02-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462259', 'tblTempVendorCDR_20' ) start [2025-02-12 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462259', 'tblTempVendorCDR_20' ) end [2025-02-12 22:54:18] Production.INFO: ProcessCDR(1,14462259,1,1,2) [2025-02-12 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462259', 'tblTempUsageDetail_20' ) start [2025-02-12 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462259', 'tblTempUsageDetail_20' ) end [2025-02-12 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:54:22] Production.INFO: ==25889== Releasing lock... [2025-02-12 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:54:22] Production.INFO: 36 MB #Memory Used# [2025-02-12 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:55:05 [end_date_ymd] => 2025-02-12 22:55:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:55:05' and `end` < '2025-02-12 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-12 22:55:18] Production.INFO: count ==1020 [2025-02-12 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:55:05 - End Time 2025-02-12 22:55:05 [2025-02-12 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462264', 'tblTempUsageDetail_20' ) start [2025-02-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462264', 'tblTempUsageDetail_20' ) end [2025-02-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462264', 'tblTempVendorCDR_20' ) start [2025-02-12 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462264', 'tblTempVendorCDR_20' ) end [2025-02-12 22:55:18] Production.INFO: ProcessCDR(1,14462264,1,1,2) [2025-02-12 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462264', 'tblTempUsageDetail_20' ) start [2025-02-12 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462264', 'tblTempUsageDetail_20' ) end [2025-02-12 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:55:21] Production.INFO: ==25964== Releasing lock... [2025-02-12 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:55:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-12 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:56:05 [end_date_ymd] => 2025-02-12 22:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:56:05' and `end` < '2025-02-12 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-12 22:56:19] Production.INFO: count ==1016 [2025-02-12 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:56:05 - End Time 2025-02-12 22:56:05 [2025-02-12 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462269', 'tblTempUsageDetail_20' ) start [2025-02-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462269', 'tblTempUsageDetail_20' ) end [2025-02-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462269', 'tblTempVendorCDR_20' ) start [2025-02-12 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462269', 'tblTempVendorCDR_20' ) end [2025-02-12 22:56:19] Production.INFO: ProcessCDR(1,14462269,1,1,2) [2025-02-12 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462269', 'tblTempUsageDetail_20' ) start [2025-02-12 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462269', 'tblTempUsageDetail_20' ) end [2025-02-12 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:56:22] Production.INFO: ==26038== Releasing lock... [2025-02-12 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:56:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:57:06 [end_date_ymd] => 2025-02-12 22:57:06 [RateCDR] => 1 ) [2025-02-12 22:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 19:57:06' and `end` < '2025-02-12 22:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 22:57:19] Production.INFO: count ==1016 [2025-02-12 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-12 19:57:06 - End Time 2025-02-12 22:57:06 [2025-02-12 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462274', 'tblTempUsageDetail_20' ) start [2025-02-12 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462274', 'tblTempUsageDetail_20' ) end [2025-02-12 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462274', 'tblTempVendorCDR_20' ) start [2025-02-12 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462274', 'tblTempVendorCDR_20' ) end [2025-02-12 22:57:19] Production.INFO: ProcessCDR(1,14462274,1,1,2) [2025-02-12 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462274', 'tblTempUsageDetail_20' ) start [2025-02-12 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462274', 'tblTempUsageDetail_20' ) end [2025-02-12 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:57:22] Production.INFO: ==26112== Releasing lock... [2025-02-12 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:57:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:58:05 [end_date_ymd] => 2025-02-12 22:58:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:58:05' and `end` < '2025-02-12 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-12 22:58:18] Production.INFO: count ==1009 [2025-02-12 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 19:58:05 - End Time 2025-02-12 22:58:05 [2025-02-12 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462279', 'tblTempUsageDetail_20' ) start [2025-02-12 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462279', 'tblTempUsageDetail_20' ) end [2025-02-12 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462279', 'tblTempVendorCDR_20' ) start [2025-02-12 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462279', 'tblTempVendorCDR_20' ) end [2025-02-12 22:58:18] Production.INFO: ProcessCDR(1,14462279,1,1,2) [2025-02-12 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462279', 'tblTempUsageDetail_20' ) start [2025-02-12 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462279', 'tblTempUsageDetail_20' ) end [2025-02-12 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:58:22] Production.INFO: ==26181== Releasing lock... [2025-02-12 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:58:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 19:59:05 [end_date_ymd] => 2025-02-12 22:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 19:59:05' and `end` < '2025-02-12 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-12 22:59:20] Production.INFO: count ==1008 [2025-02-12 22:59:20] Production.ERROR: pbx CDR StartTime 2025-02-12 19:59:05 - End Time 2025-02-12 22:59:05 [2025-02-12 22:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 22:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462284', 'tblTempUsageDetail_20' ) start [2025-02-12 22:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462284', 'tblTempUsageDetail_20' ) end [2025-02-12 22:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462284', 'tblTempVendorCDR_20' ) start [2025-02-12 22:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462284', 'tblTempVendorCDR_20' ) end [2025-02-12 22:59:20] Production.INFO: ProcessCDR(1,14462284,1,1,2) [2025-02-12 22:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462284', 'tblTempUsageDetail_20' ) start [2025-02-12 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462284', 'tblTempUsageDetail_20' ) end [2025-02-12 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 22:59:23] Production.INFO: ==26251== Releasing lock... [2025-02-12 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 22:59:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:00:06 [end_date_ymd] => 2025-02-12 23:00:06 [RateCDR] => 1 ) [2025-02-12 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:00:06' and `end` < '2025-02-12 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:00:19] Production.INFO: count ==1008 [2025-02-12 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:00:06 - End Time 2025-02-12 23:00:06 [2025-02-12 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462289', 'tblTempUsageDetail_20' ) start [2025-02-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462289', 'tblTempUsageDetail_20' ) end [2025-02-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462289', 'tblTempVendorCDR_20' ) start [2025-02-12 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462289', 'tblTempVendorCDR_20' ) end [2025-02-12 23:00:19] Production.INFO: ProcessCDR(1,14462289,1,1,2) [2025-02-12 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462289', 'tblTempUsageDetail_20' ) start [2025-02-12 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462289', 'tblTempUsageDetail_20' ) end [2025-02-12 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:00:22] Production.INFO: ==26328== Releasing lock... [2025-02-12 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:00:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-12 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:01:06 [end_date_ymd] => 2025-02-12 23:01:06 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:01:06' and `end` < '2025-02-12 23: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-12 23:01:19] Production.INFO: count ==960 [2025-02-12 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:01:06 - End Time 2025-02-12 23:01:06 [2025-02-12 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462295', 'tblTempUsageDetail_20' ) start [2025-02-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462295', 'tblTempUsageDetail_20' ) end [2025-02-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462295', 'tblTempVendorCDR_20' ) start [2025-02-12 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462295', 'tblTempVendorCDR_20' ) end [2025-02-12 23:01:19] Production.INFO: ProcessCDR(1,14462295,1,1,2) [2025-02-12 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462295', 'tblTempUsageDetail_20' ) start [2025-02-12 23:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462295', 'tblTempUsageDetail_20' ) end [2025-02-12 23:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:01:24] Production.INFO: ==26414== Releasing lock... [2025-02-12 23:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:01:24] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:02:05 [end_date_ymd] => 2025-02-12 23:02:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:02:05' and `end` < '2025-02-12 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-12 23:02:19] Production.INFO: count ==960 [2025-02-12 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:02:05 - End Time 2025-02-12 23:02:05 [2025-02-12 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462300', 'tblTempUsageDetail_20' ) start [2025-02-12 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462300', 'tblTempUsageDetail_20' ) end [2025-02-12 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462300', 'tblTempVendorCDR_20' ) start [2025-02-12 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462300', 'tblTempVendorCDR_20' ) end [2025-02-12 23:02:19] Production.INFO: ProcessCDR(1,14462300,1,1,2) [2025-02-12 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462300', 'tblTempUsageDetail_20' ) start [2025-02-12 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462300', 'tblTempUsageDetail_20' ) end [2025-02-12 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:02:23] Production.INFO: ==26602== Releasing lock... [2025-02-12 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:02:23] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:03:05 [end_date_ymd] => 2025-02-12 23:03:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:03:05' and `end` < '2025-02-12 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-12 23:03:18] Production.INFO: count ==968 [2025-02-12 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:03:05 - End Time 2025-02-12 23:03:05 [2025-02-12 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462305', 'tblTempUsageDetail_20' ) start [2025-02-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462305', 'tblTempUsageDetail_20' ) end [2025-02-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462305', 'tblTempVendorCDR_20' ) start [2025-02-12 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462305', 'tblTempVendorCDR_20' ) end [2025-02-12 23:03:18] Production.INFO: ProcessCDR(1,14462305,1,1,2) [2025-02-12 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462305', 'tblTempUsageDetail_20' ) start [2025-02-12 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462305', 'tblTempUsageDetail_20' ) end [2025-02-12 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:03:22] Production.INFO: ==26672== Releasing lock... [2025-02-12 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-12 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:04:05 [end_date_ymd] => 2025-02-12 23:04:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:04:05' and `end` < '2025-02-12 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-12 23:04:18] Production.INFO: count ==965 [2025-02-12 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:04:05 - End Time 2025-02-12 23:04:05 [2025-02-12 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462310', 'tblTempUsageDetail_20' ) start [2025-02-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462310', 'tblTempUsageDetail_20' ) end [2025-02-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462310', 'tblTempVendorCDR_20' ) start [2025-02-12 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462310', 'tblTempVendorCDR_20' ) end [2025-02-12 23:04:18] Production.INFO: ProcessCDR(1,14462310,1,1,2) [2025-02-12 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462310', 'tblTempUsageDetail_20' ) start [2025-02-12 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462310', 'tblTempUsageDetail_20' ) end [2025-02-12 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:04:22] Production.INFO: ==26745== Releasing lock... [2025-02-12 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-12 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:05:05 [end_date_ymd] => 2025-02-12 23:05:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:05:05' and `end` < '2025-02-12 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-12 23:05:19] Production.INFO: count ==940 [2025-02-12 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:05:05 - End Time 2025-02-12 23:05:05 [2025-02-12 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462315', 'tblTempUsageDetail_20' ) start [2025-02-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462315', 'tblTempUsageDetail_20' ) end [2025-02-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462315', 'tblTempVendorCDR_20' ) start [2025-02-12 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462315', 'tblTempVendorCDR_20' ) end [2025-02-12 23:05:19] Production.INFO: ProcessCDR(1,14462315,1,1,2) [2025-02-12 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462315', 'tblTempUsageDetail_20' ) start [2025-02-12 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462315', 'tblTempUsageDetail_20' ) end [2025-02-12 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:05:23] Production.INFO: ==26907== Releasing lock... [2025-02-12 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:05:23] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:06:05 [end_date_ymd] => 2025-02-12 23:06:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:06:05' and `end` < '2025-02-12 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-12 23:06:18] Production.INFO: count ==940 [2025-02-12 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:06:05 - End Time 2025-02-12 23:06:05 [2025-02-12 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462320', 'tblTempUsageDetail_20' ) start [2025-02-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462320', 'tblTempUsageDetail_20' ) end [2025-02-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462320', 'tblTempVendorCDR_20' ) start [2025-02-12 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462320', 'tblTempVendorCDR_20' ) end [2025-02-12 23:06:18] Production.INFO: ProcessCDR(1,14462320,1,1,2) [2025-02-12 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462320', 'tblTempUsageDetail_20' ) start [2025-02-12 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462320', 'tblTempUsageDetail_20' ) end [2025-02-12 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:06:22] Production.INFO: ==26985== Releasing lock... [2025-02-12 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:06:22] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:07:05 [end_date_ymd] => 2025-02-12 23:07:05 [RateCDR] => 1 ) [2025-02-12 23:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:07:05' and `end` < '2025-02-12 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-12 23:07:19] Production.INFO: count ==940 [2025-02-12 23:07:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:07:05 - End Time 2025-02-12 23:07:05 [2025-02-12 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462325', 'tblTempUsageDetail_20' ) start [2025-02-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462325', 'tblTempUsageDetail_20' ) end [2025-02-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462325', 'tblTempVendorCDR_20' ) start [2025-02-12 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462325', 'tblTempVendorCDR_20' ) end [2025-02-12 23:07:19] Production.INFO: ProcessCDR(1,14462325,1,1,2) [2025-02-12 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462325', 'tblTempUsageDetail_20' ) start [2025-02-12 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462325', 'tblTempUsageDetail_20' ) end [2025-02-12 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:07:22] Production.INFO: ==27066== Releasing lock... [2025-02-12 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:07:22] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:08:05 [end_date_ymd] => 2025-02-12 23:08:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:08:05' and `end` < '2025-02-12 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-12 23:08:18] Production.INFO: count ==943 [2025-02-12 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:08:05 - End Time 2025-02-12 23:08:05 [2025-02-12 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462330', 'tblTempUsageDetail_20' ) start [2025-02-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462330', 'tblTempUsageDetail_20' ) end [2025-02-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462330', 'tblTempVendorCDR_20' ) start [2025-02-12 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462330', 'tblTempVendorCDR_20' ) end [2025-02-12 23:08:18] Production.INFO: ProcessCDR(1,14462330,1,1,2) [2025-02-12 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462330', 'tblTempUsageDetail_20' ) start [2025-02-12 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462330', 'tblTempUsageDetail_20' ) end [2025-02-12 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:08:21] Production.INFO: ==27223== Releasing lock... [2025-02-12 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:08:21] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:09:05 [end_date_ymd] => 2025-02-12 23:09:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:09:05' and `end` < '2025-02-12 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-12 23:09:18] Production.INFO: count ==940 [2025-02-12 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:09:05 - End Time 2025-02-12 23:09:05 [2025-02-12 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462335', 'tblTempUsageDetail_20' ) start [2025-02-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462335', 'tblTempUsageDetail_20' ) end [2025-02-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462335', 'tblTempVendorCDR_20' ) start [2025-02-12 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462335', 'tblTempVendorCDR_20' ) end [2025-02-12 23:09:18] Production.INFO: ProcessCDR(1,14462335,1,1,2) [2025-02-12 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462335', 'tblTempUsageDetail_20' ) start [2025-02-12 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462335', 'tblTempUsageDetail_20' ) end [2025-02-12 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:09:21] Production.INFO: ==27300== Releasing lock... [2025-02-12 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:09:21] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:10:07 [end_date_ymd] => 2025-02-12 23:10:07 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:10:07' and `end` < '2025-02-12 23: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-12 23:10:20] Production.INFO: count ==938 [2025-02-12 23:10:20] Production.ERROR: pbx CDR StartTime 2025-02-12 20:10:07 - End Time 2025-02-12 23:10:07 [2025-02-12 23:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462341', 'tblTempUsageDetail_20' ) start [2025-02-12 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462341', 'tblTempUsageDetail_20' ) end [2025-02-12 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462341', 'tblTempVendorCDR_20' ) start [2025-02-12 23:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462341', 'tblTempVendorCDR_20' ) end [2025-02-12 23:10:20] Production.INFO: ProcessCDR(1,14462341,1,1,2) [2025-02-12 23:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462341', 'tblTempUsageDetail_20' ) start [2025-02-12 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462341', 'tblTempUsageDetail_20' ) end [2025-02-12 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:10:23] Production.INFO: ==27381== Releasing lock... [2025-02-12 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:10:23] Production.INFO: 35 MB #Memory Used# [2025-02-12 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:11:05 [end_date_ymd] => 2025-02-12 23:11:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:11:05' and `end` < '2025-02-12 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-12 23:11:18] Production.INFO: count ==901 [2025-02-12 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:11:05 - End Time 2025-02-12 23:11:05 [2025-02-12 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462346', 'tblTempUsageDetail_20' ) start [2025-02-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462346', 'tblTempUsageDetail_20' ) end [2025-02-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462346', 'tblTempVendorCDR_20' ) start [2025-02-12 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462346', 'tblTempVendorCDR_20' ) end [2025-02-12 23:11:18] Production.INFO: ProcessCDR(1,14462346,1,1,2) [2025-02-12 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462346', 'tblTempUsageDetail_20' ) start [2025-02-12 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462346', 'tblTempUsageDetail_20' ) end [2025-02-12 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:11:21] Production.INFO: ==27461== Releasing lock... [2025-02-12 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:11:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:12:05 [end_date_ymd] => 2025-02-12 23:12:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:12:05' and `end` < '2025-02-12 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-12 23:12:18] Production.INFO: count ==897 [2025-02-12 23:12:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:12:05 - End Time 2025-02-12 23:12:05 [2025-02-12 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462351', 'tblTempUsageDetail_20' ) start [2025-02-12 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462351', 'tblTempUsageDetail_20' ) end [2025-02-12 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462351', 'tblTempVendorCDR_20' ) start [2025-02-12 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462351', 'tblTempVendorCDR_20' ) end [2025-02-12 23:12:19] Production.INFO: ProcessCDR(1,14462351,1,1,2) [2025-02-12 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462351', 'tblTempUsageDetail_20' ) start [2025-02-12 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462351', 'tblTempUsageDetail_20' ) end [2025-02-12 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:12:22] Production.INFO: ==27615== Releasing lock... [2025-02-12 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:12:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:13:05 [end_date_ymd] => 2025-02-12 23:13:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:13:05' and `end` < '2025-02-12 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-12 23:13:18] Production.INFO: count ==896 [2025-02-12 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:13:05 - End Time 2025-02-12 23:13:05 [2025-02-12 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462356', 'tblTempUsageDetail_20' ) start [2025-02-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462356', 'tblTempUsageDetail_20' ) end [2025-02-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462356', 'tblTempVendorCDR_20' ) start [2025-02-12 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462356', 'tblTempVendorCDR_20' ) end [2025-02-12 23:13:18] Production.INFO: ProcessCDR(1,14462356,1,1,2) [2025-02-12 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462356', 'tblTempUsageDetail_20' ) start [2025-02-12 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462356', 'tblTempUsageDetail_20' ) end [2025-02-12 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:13:21] Production.INFO: ==27702== Releasing lock... [2025-02-12 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:13:21] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:14:05 [end_date_ymd] => 2025-02-12 23:14:05 [RateCDR] => 1 ) [2025-02-12 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:14:05' and `end` < '2025-02-12 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:14:19] Production.INFO: count ==899 [2025-02-12 23:14:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:14:05 - End Time 2025-02-12 23:14:05 [2025-02-12 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462361', 'tblTempUsageDetail_20' ) start [2025-02-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462361', 'tblTempUsageDetail_20' ) end [2025-02-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462361', 'tblTempVendorCDR_20' ) start [2025-02-12 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462361', 'tblTempVendorCDR_20' ) end [2025-02-12 23:14:19] Production.INFO: ProcessCDR(1,14462361,1,1,2) [2025-02-12 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462361', 'tblTempUsageDetail_20' ) start [2025-02-12 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462361', 'tblTempUsageDetail_20' ) end [2025-02-12 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:14:22] Production.INFO: ==27788== Releasing lock... [2025-02-12 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:14:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-12 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:15:05 [end_date_ymd] => 2025-02-12 23:15:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:15:05' and `end` < '2025-02-12 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-12 23:15:18] Production.INFO: count ==898 [2025-02-12 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:15:05 - End Time 2025-02-12 23:15:05 [2025-02-12 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462366', 'tblTempUsageDetail_20' ) start [2025-02-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462366', 'tblTempUsageDetail_20' ) end [2025-02-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462366', 'tblTempVendorCDR_20' ) start [2025-02-12 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462366', 'tblTempVendorCDR_20' ) end [2025-02-12 23:15:18] Production.INFO: ProcessCDR(1,14462366,1,1,2) [2025-02-12 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462366', 'tblTempUsageDetail_20' ) start [2025-02-12 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462366', 'tblTempUsageDetail_20' ) end [2025-02-12 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:15:21] Production.INFO: ==27951== Releasing lock... [2025-02-12 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:15:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-12 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:16:05 [end_date_ymd] => 2025-02-12 23:16:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:16:05' and `end` < '2025-02-12 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-12 23:16:18] Production.INFO: count ==898 [2025-02-12 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:16:05 - End Time 2025-02-12 23:16:05 [2025-02-12 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462371', 'tblTempUsageDetail_20' ) start [2025-02-12 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462371', 'tblTempUsageDetail_20' ) end [2025-02-12 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462371', 'tblTempVendorCDR_20' ) start [2025-02-12 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462371', 'tblTempVendorCDR_20' ) end [2025-02-12 23:16:18] Production.INFO: ProcessCDR(1,14462371,1,1,2) [2025-02-12 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462371', 'tblTempUsageDetail_20' ) start [2025-02-12 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462371', 'tblTempUsageDetail_20' ) end [2025-02-12 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:16:21] Production.INFO: ==28038== Releasing lock... [2025-02-12 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-12 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:17:05 [end_date_ymd] => 2025-02-12 23:17:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:17:05' and `end` < '2025-02-12 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-12 23:17:19] Production.INFO: count ==894 [2025-02-12 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:17:05 - End Time 2025-02-12 23:17:05 [2025-02-12 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462376', 'tblTempUsageDetail_20' ) start [2025-02-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462376', 'tblTempUsageDetail_20' ) end [2025-02-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462376', 'tblTempVendorCDR_20' ) start [2025-02-12 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462376', 'tblTempVendorCDR_20' ) end [2025-02-12 23:17:19] Production.INFO: ProcessCDR(1,14462376,1,1,2) [2025-02-12 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462376', 'tblTempUsageDetail_20' ) start [2025-02-12 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462376', 'tblTempUsageDetail_20' ) end [2025-02-12 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:17:23] Production.INFO: ==28114== Releasing lock... [2025-02-12 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:17:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:18:05 [end_date_ymd] => 2025-02-12 23:18:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:18:05' and `end` < '2025-02-12 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-12 23:18:18] Production.INFO: count ==887 [2025-02-12 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:18:05 - End Time 2025-02-12 23:18:05 [2025-02-12 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462381', 'tblTempUsageDetail_20' ) start [2025-02-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462381', 'tblTempUsageDetail_20' ) end [2025-02-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462381', 'tblTempVendorCDR_20' ) start [2025-02-12 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462381', 'tblTempVendorCDR_20' ) end [2025-02-12 23:18:18] Production.INFO: ProcessCDR(1,14462381,1,1,2) [2025-02-12 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462381', 'tblTempUsageDetail_20' ) start [2025-02-12 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462381', 'tblTempUsageDetail_20' ) end [2025-02-12 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:18:21] Production.INFO: ==28232== Releasing lock... [2025-02-12 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:18:21] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:19:05 [end_date_ymd] => 2025-02-12 23:19:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:19:05' and `end` < '2025-02-12 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-12 23:19:18] Production.INFO: count ==887 [2025-02-12 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:19:05 - End Time 2025-02-12 23:19:05 [2025-02-12 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462386', 'tblTempUsageDetail_20' ) start [2025-02-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462386', 'tblTempUsageDetail_20' ) end [2025-02-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462386', 'tblTempVendorCDR_20' ) start [2025-02-12 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462386', 'tblTempVendorCDR_20' ) end [2025-02-12 23:19:18] Production.INFO: ProcessCDR(1,14462386,1,1,2) [2025-02-12 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462386', 'tblTempUsageDetail_20' ) start [2025-02-12 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462386', 'tblTempUsageDetail_20' ) end [2025-02-12 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:19:21] Production.INFO: ==28308== Releasing lock... [2025-02-12 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:19:21] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:20:06 [end_date_ymd] => 2025-02-12 23:20:06 [RateCDR] => 1 ) [2025-02-12 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:20:06' and `end` < '2025-02-12 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:20:19] Production.INFO: count ==881 [2025-02-12 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:20:06 - End Time 2025-02-12 23:20:06 [2025-02-12 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462391', 'tblTempUsageDetail_20' ) start [2025-02-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462391', 'tblTempUsageDetail_20' ) end [2025-02-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462391', 'tblTempVendorCDR_20' ) start [2025-02-12 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462391', 'tblTempVendorCDR_20' ) end [2025-02-12 23:20:19] Production.INFO: ProcessCDR(1,14462391,1,1,2) [2025-02-12 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462391', 'tblTempUsageDetail_20' ) start [2025-02-12 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462391', 'tblTempUsageDetail_20' ) end [2025-02-12 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:20:22] Production.INFO: ==28390== Releasing lock... [2025-02-12 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:21:05 [end_date_ymd] => 2025-02-12 23:21:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:21:05' and `end` < '2025-02-12 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-12 23:21:18] Production.INFO: count ==868 [2025-02-12 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:21:05 - End Time 2025-02-12 23:21:05 [2025-02-12 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462397', 'tblTempUsageDetail_20' ) start [2025-02-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462397', 'tblTempUsageDetail_20' ) end [2025-02-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462397', 'tblTempVendorCDR_20' ) start [2025-02-12 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462397', 'tblTempVendorCDR_20' ) end [2025-02-12 23:21:18] Production.INFO: ProcessCDR(1,14462397,1,1,2) [2025-02-12 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462397', 'tblTempUsageDetail_20' ) start [2025-02-12 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462397', 'tblTempUsageDetail_20' ) end [2025-02-12 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:21:21] Production.INFO: ==28474== Releasing lock... [2025-02-12 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:22:05 [end_date_ymd] => 2025-02-12 23:22:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:22:05' and `end` < '2025-02-12 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-12 23:22:18] Production.INFO: count ==868 [2025-02-12 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:22:05 - End Time 2025-02-12 23:22:05 [2025-02-12 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462402', 'tblTempUsageDetail_20' ) start [2025-02-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462402', 'tblTempUsageDetail_20' ) end [2025-02-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462402', 'tblTempVendorCDR_20' ) start [2025-02-12 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462402', 'tblTempVendorCDR_20' ) end [2025-02-12 23:22:18] Production.INFO: ProcessCDR(1,14462402,1,1,2) [2025-02-12 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462402', 'tblTempUsageDetail_20' ) start [2025-02-12 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462402', 'tblTempUsageDetail_20' ) end [2025-02-12 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:22:21] Production.INFO: ==28552== Releasing lock... [2025-02-12 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:22:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:23:06 [end_date_ymd] => 2025-02-12 23:23:06 [RateCDR] => 1 ) [2025-02-12 23:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:23:06' and `end` < '2025-02-12 23:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:23:19] Production.INFO: count ==860 [2025-02-12 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:23:06 - End Time 2025-02-12 23:23:06 [2025-02-12 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462407', 'tblTempUsageDetail_20' ) start [2025-02-12 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462407', 'tblTempUsageDetail_20' ) end [2025-02-12 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462407', 'tblTempVendorCDR_20' ) start [2025-02-12 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462407', 'tblTempVendorCDR_20' ) end [2025-02-12 23:23:19] Production.INFO: ProcessCDR(1,14462407,1,1,2) [2025-02-12 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462407', 'tblTempUsageDetail_20' ) start [2025-02-12 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462407', 'tblTempUsageDetail_20' ) end [2025-02-12 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:23:22] Production.INFO: ==28631== Releasing lock... [2025-02-12 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:23:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:24:05 [end_date_ymd] => 2025-02-12 23:24:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:24:05' and `end` < '2025-02-12 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-12 23:24:18] Production.INFO: count ==860 [2025-02-12 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:24:05 - End Time 2025-02-12 23:24:05 [2025-02-12 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462412', 'tblTempUsageDetail_20' ) start [2025-02-12 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462412', 'tblTempUsageDetail_20' ) end [2025-02-12 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462412', 'tblTempVendorCDR_20' ) start [2025-02-12 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462412', 'tblTempVendorCDR_20' ) end [2025-02-12 23:24:19] Production.INFO: ProcessCDR(1,14462412,1,1,2) [2025-02-12 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462412', 'tblTempUsageDetail_20' ) start [2025-02-12 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462412', 'tblTempUsageDetail_20' ) end [2025-02-12 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:24:22] Production.INFO: ==28707== Releasing lock... [2025-02-12 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:24:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:25:06 [end_date_ymd] => 2025-02-12 23:25:06 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:25:06' and `end` < '2025-02-12 23: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-12 23:25:19] Production.INFO: count ==857 [2025-02-12 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:25:06 - End Time 2025-02-12 23:25:06 [2025-02-12 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462417', 'tblTempUsageDetail_20' ) start [2025-02-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462417', 'tblTempUsageDetail_20' ) end [2025-02-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462417', 'tblTempVendorCDR_20' ) start [2025-02-12 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462417', 'tblTempVendorCDR_20' ) end [2025-02-12 23:25:19] Production.INFO: ProcessCDR(1,14462417,1,1,2) [2025-02-12 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462417', 'tblTempUsageDetail_20' ) start [2025-02-12 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462417', 'tblTempUsageDetail_20' ) end [2025-02-12 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:25:22] Production.INFO: ==28784== Releasing lock... [2025-02-12 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:25:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:26:05 [end_date_ymd] => 2025-02-12 23:26:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:26:05' and `end` < '2025-02-12 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-12 23:26:19] Production.INFO: count ==856 [2025-02-12 23:26:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:26:05 - End Time 2025-02-12 23:26:05 [2025-02-12 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462422', 'tblTempUsageDetail_20' ) start [2025-02-12 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462422', 'tblTempUsageDetail_20' ) end [2025-02-12 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462422', 'tblTempVendorCDR_20' ) start [2025-02-12 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462422', 'tblTempVendorCDR_20' ) end [2025-02-12 23:26:19] Production.INFO: ProcessCDR(1,14462422,1,1,2) [2025-02-12 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462422', 'tblTempUsageDetail_20' ) start [2025-02-12 23:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462422', 'tblTempUsageDetail_20' ) end [2025-02-12 23:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:26:23] Production.INFO: ==28863== Releasing lock... [2025-02-12 23:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:26:23] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:27:05 [end_date_ymd] => 2025-02-12 23:27:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:27:05' and `end` < '2025-02-12 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-12 23:27:18] Production.INFO: count ==856 [2025-02-12 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:27:05 - End Time 2025-02-12 23:27:05 [2025-02-12 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462427', 'tblTempUsageDetail_20' ) start [2025-02-12 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462427', 'tblTempUsageDetail_20' ) end [2025-02-12 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462427', 'tblTempVendorCDR_20' ) start [2025-02-12 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462427', 'tblTempVendorCDR_20' ) end [2025-02-12 23:27:18] Production.INFO: ProcessCDR(1,14462427,1,1,2) [2025-02-12 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462427', 'tblTempUsageDetail_20' ) start [2025-02-12 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462427', 'tblTempUsageDetail_20' ) end [2025-02-12 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:27:22] Production.INFO: ==28941== Releasing lock... [2025-02-12 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:27:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:28:05 [end_date_ymd] => 2025-02-12 23:28:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:28:05' and `end` < '2025-02-12 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-12 23:28:18] Production.INFO: count ==861 [2025-02-12 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:28:05 - End Time 2025-02-12 23:28:05 [2025-02-12 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462432', 'tblTempUsageDetail_20' ) start [2025-02-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462432', 'tblTempUsageDetail_20' ) end [2025-02-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462432', 'tblTempVendorCDR_20' ) start [2025-02-12 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462432', 'tblTempVendorCDR_20' ) end [2025-02-12 23:28:18] Production.INFO: ProcessCDR(1,14462432,1,1,2) [2025-02-12 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462432', 'tblTempUsageDetail_20' ) start [2025-02-12 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462432', 'tblTempUsageDetail_20' ) end [2025-02-12 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:28:21] Production.INFO: ==29023== Releasing lock... [2025-02-12 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:28:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:29:06 [end_date_ymd] => 2025-02-12 23:29:06 [RateCDR] => 1 ) [2025-02-12 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-12 20:29:06' and `end` < '2025-02-12 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-12 23:29:19] Production.INFO: count ==865 [2025-02-12 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:29:06 - End Time 2025-02-12 23:29:06 [2025-02-12 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462433', 'tblTempUsageDetail_20' ) start [2025-02-12 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462433', 'tblTempUsageDetail_20' ) end [2025-02-12 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462433', 'tblTempVendorCDR_20' ) start [2025-02-12 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462433', 'tblTempVendorCDR_20' ) end [2025-02-12 23:29:19] Production.INFO: ProcessCDR(1,14462433,1,1,2) [2025-02-12 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462433', 'tblTempUsageDetail_20' ) start [2025-02-12 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462433', 'tblTempUsageDetail_20' ) end [2025-02-12 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:29:22] Production.INFO: ==29104== Releasing lock... [2025-02-12 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:29:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:30:06 [end_date_ymd] => 2025-02-12 23:30:06 [RateCDR] => 1 ) [2025-02-12 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-12 20:30:06' and `end` < '2025-02-12 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-12 23:30:19] Production.INFO: count ==863 [2025-02-12 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:30:06 - End Time 2025-02-12 23:30:06 [2025-02-12 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462443', 'tblTempUsageDetail_20' ) start [2025-02-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462443', 'tblTempUsageDetail_20' ) end [2025-02-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462443', 'tblTempVendorCDR_20' ) start [2025-02-12 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462443', 'tblTempVendorCDR_20' ) end [2025-02-12 23:30:19] Production.INFO: ProcessCDR(1,14462443,1,1,2) [2025-02-12 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462443', 'tblTempUsageDetail_20' ) start [2025-02-12 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462443', 'tblTempUsageDetail_20' ) end [2025-02-12 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:30:22] Production.INFO: ==29181== Releasing lock... [2025-02-12 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:30:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:31:05 [end_date_ymd] => 2025-02-12 23:31:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:31:05' and `end` < '2025-02-12 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-12 23:31:19] Production.INFO: count ==855 [2025-02-12 23:31:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:31:05 - End Time 2025-02-12 23:31:05 [2025-02-12 23:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462448', 'tblTempUsageDetail_20' ) start [2025-02-12 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462448', 'tblTempUsageDetail_20' ) end [2025-02-12 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462448', 'tblTempVendorCDR_20' ) start [2025-02-12 23:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462448', 'tblTempVendorCDR_20' ) end [2025-02-12 23:31:19] Production.INFO: ProcessCDR(1,14462448,1,1,2) [2025-02-12 23:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462448', 'tblTempUsageDetail_20' ) start [2025-02-12 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462448', 'tblTempUsageDetail_20' ) end [2025-02-12 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:31:22] Production.INFO: ==29256== Releasing lock... [2025-02-12 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:31:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:32:05 [end_date_ymd] => 2025-02-12 23:32:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:32:05' and `end` < '2025-02-12 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-12 23:32:19] Production.INFO: count ==855 [2025-02-12 23:32:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:32:05 - End Time 2025-02-12 23:32:05 [2025-02-12 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462453', 'tblTempUsageDetail_20' ) start [2025-02-12 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462453', 'tblTempUsageDetail_20' ) end [2025-02-12 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462453', 'tblTempVendorCDR_20' ) start [2025-02-12 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462453', 'tblTempVendorCDR_20' ) end [2025-02-12 23:32:20] Production.INFO: ProcessCDR(1,14462453,1,1,2) [2025-02-12 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462453', 'tblTempUsageDetail_20' ) start [2025-02-12 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462453', 'tblTempUsageDetail_20' ) end [2025-02-12 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:32:23] Production.INFO: ==29329== Releasing lock... [2025-02-12 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:32:23] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:33:05 [end_date_ymd] => 2025-02-12 23:33:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:33:05' and `end` < '2025-02-12 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-12 23:33:18] Production.INFO: count ==855 [2025-02-12 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:33:05 - End Time 2025-02-12 23:33:05 [2025-02-12 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462458', 'tblTempUsageDetail_20' ) start [2025-02-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462458', 'tblTempUsageDetail_20' ) end [2025-02-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462458', 'tblTempVendorCDR_20' ) start [2025-02-12 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462458', 'tblTempVendorCDR_20' ) end [2025-02-12 23:33:18] Production.INFO: ProcessCDR(1,14462458,1,1,2) [2025-02-12 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462458', 'tblTempUsageDetail_20' ) start [2025-02-12 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462458', 'tblTempUsageDetail_20' ) end [2025-02-12 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:33:22] Production.INFO: ==29445== Releasing lock... [2025-02-12 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:33:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:34:05 [end_date_ymd] => 2025-02-12 23:34:05 [RateCDR] => 1 ) [2025-02-12 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:34:05' and `end` < '2025-02-12 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:34:18] Production.INFO: count ==847 [2025-02-12 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:34:05 - End Time 2025-02-12 23:34:05 [2025-02-12 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462463', 'tblTempUsageDetail_20' ) start [2025-02-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462463', 'tblTempUsageDetail_20' ) end [2025-02-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462463', 'tblTempVendorCDR_20' ) start [2025-02-12 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462463', 'tblTempVendorCDR_20' ) end [2025-02-12 23:34:18] Production.INFO: ProcessCDR(1,14462463,1,1,2) [2025-02-12 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462463', 'tblTempUsageDetail_20' ) start [2025-02-12 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462463', 'tblTempUsageDetail_20' ) end [2025-02-12 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:34:21] Production.INFO: ==29518== Releasing lock... [2025-02-12 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:34:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-12 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:35:05 [end_date_ymd] => 2025-02-12 23:35:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:35:05' and `end` < '2025-02-12 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-12 23:35:19] Production.INFO: count ==847 [2025-02-12 23:35:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:35:05 - End Time 2025-02-12 23:35:05 [2025-02-12 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462468', 'tblTempUsageDetail_20' ) start [2025-02-12 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462468', 'tblTempUsageDetail_20' ) end [2025-02-12 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462468', 'tblTempVendorCDR_20' ) start [2025-02-12 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462468', 'tblTempVendorCDR_20' ) end [2025-02-12 23:35:19] Production.INFO: ProcessCDR(1,14462468,1,1,2) [2025-02-12 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462468', 'tblTempUsageDetail_20' ) start [2025-02-12 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462468', 'tblTempUsageDetail_20' ) end [2025-02-12 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:35:22] Production.INFO: ==29592== Releasing lock... [2025-02-12 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:35:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:36:06 [end_date_ymd] => 2025-02-12 23:36:06 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:36:06' and `end` < '2025-02-12 23: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-12 23:36:19] Production.INFO: count ==851 [2025-02-12 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:36:06 - End Time 2025-02-12 23:36:06 [2025-02-12 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462473', 'tblTempUsageDetail_20' ) start [2025-02-12 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462473', 'tblTempUsageDetail_20' ) end [2025-02-12 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462473', 'tblTempVendorCDR_20' ) start [2025-02-12 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462473', 'tblTempVendorCDR_20' ) end [2025-02-12 23:36:19] Production.INFO: ProcessCDR(1,14462473,1,1,2) [2025-02-12 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462473', 'tblTempUsageDetail_20' ) start [2025-02-12 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462473', 'tblTempUsageDetail_20' ) end [2025-02-12 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:36:22] Production.INFO: ==29667== Releasing lock... [2025-02-12 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:36:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:37:05 [end_date_ymd] => 2025-02-12 23:37:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:37:05' and `end` < '2025-02-12 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-12 23:37:18] Production.INFO: count ==851 [2025-02-12 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:37:05 - End Time 2025-02-12 23:37:05 [2025-02-12 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462478', 'tblTempUsageDetail_20' ) start [2025-02-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462478', 'tblTempUsageDetail_20' ) end [2025-02-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462478', 'tblTempVendorCDR_20' ) start [2025-02-12 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462478', 'tblTempVendorCDR_20' ) end [2025-02-12 23:37:18] Production.INFO: ProcessCDR(1,14462478,1,1,2) [2025-02-12 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462478', 'tblTempUsageDetail_20' ) start [2025-02-12 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462478', 'tblTempUsageDetail_20' ) end [2025-02-12 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:37:22] Production.INFO: ==29740== Releasing lock... [2025-02-12 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:37:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-12 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:38:05 [end_date_ymd] => 2025-02-12 23:38:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:38:05' and `end` < '2025-02-12 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-12 23:38:19] Production.INFO: count ==849 [2025-02-12 23:38:20] Production.ERROR: pbx CDR StartTime 2025-02-12 20:38:05 - End Time 2025-02-12 23:38:05 [2025-02-12 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462483', 'tblTempUsageDetail_20' ) start [2025-02-12 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462483', 'tblTempUsageDetail_20' ) end [2025-02-12 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462483', 'tblTempVendorCDR_20' ) start [2025-02-12 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462483', 'tblTempVendorCDR_20' ) end [2025-02-12 23:38:20] Production.INFO: ProcessCDR(1,14462483,1,1,2) [2025-02-12 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462483', 'tblTempUsageDetail_20' ) start [2025-02-12 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462483', 'tblTempUsageDetail_20' ) end [2025-02-12 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:38:23] Production.INFO: ==29816== Releasing lock... [2025-02-12 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:38:23] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:39:05 [end_date_ymd] => 2025-02-12 23:39:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:39:05' and `end` < '2025-02-12 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-12 23:39:18] Production.INFO: count ==842 [2025-02-12 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:39:05 - End Time 2025-02-12 23:39:05 [2025-02-12 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462488', 'tblTempUsageDetail_20' ) start [2025-02-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462488', 'tblTempUsageDetail_20' ) end [2025-02-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462488', 'tblTempVendorCDR_20' ) start [2025-02-12 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462488', 'tblTempVendorCDR_20' ) end [2025-02-12 23:39:18] Production.INFO: ProcessCDR(1,14462488,1,1,2) [2025-02-12 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462488', 'tblTempUsageDetail_20' ) start [2025-02-12 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462488', 'tblTempUsageDetail_20' ) end [2025-02-12 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:39:22] Production.INFO: ==29887== Releasing lock... [2025-02-12 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:39:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:40:06 [end_date_ymd] => 2025-02-12 23:40:06 [RateCDR] => 1 ) [2025-02-12 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-12 20:40:06' and `end` < '2025-02-12 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-12 23:40:19] Production.INFO: count ==830 [2025-02-12 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:40:06 - End Time 2025-02-12 23:40:06 [2025-02-12 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462494', 'tblTempUsageDetail_20' ) start [2025-02-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462494', 'tblTempUsageDetail_20' ) end [2025-02-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462494', 'tblTempVendorCDR_20' ) start [2025-02-12 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462494', 'tblTempVendorCDR_20' ) end [2025-02-12 23:40:19] Production.INFO: ProcessCDR(1,14462494,1,1,2) [2025-02-12 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462494', 'tblTempUsageDetail_20' ) start [2025-02-12 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462494', 'tblTempUsageDetail_20' ) end [2025-02-12 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:40:22] Production.INFO: ==29961== Releasing lock... [2025-02-12 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:40:22] Production.INFO: 34 MB #Memory Used# [2025-02-12 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:41:05 [end_date_ymd] => 2025-02-12 23:41:05 [RateCDR] => 1 ) [2025-02-12 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:41:05' and `end` < '2025-02-12 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:41:19] Production.INFO: count ==810 [2025-02-12 23:41:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:41:05 - End Time 2025-02-12 23:41:05 [2025-02-12 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462499', 'tblTempUsageDetail_20' ) start [2025-02-12 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462499', 'tblTempUsageDetail_20' ) end [2025-02-12 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462499', 'tblTempVendorCDR_20' ) start [2025-02-12 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462499', 'tblTempVendorCDR_20' ) end [2025-02-12 23:41:19] Production.INFO: ProcessCDR(1,14462499,1,1,2) [2025-02-12 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462499', 'tblTempUsageDetail_20' ) start [2025-02-12 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462499', 'tblTempUsageDetail_20' ) end [2025-02-12 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:41:22] Production.INFO: ==30039== Releasing lock... [2025-02-12 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:42:05 [end_date_ymd] => 2025-02-12 23:42:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:42:05' and `end` < '2025-02-12 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-12 23:42:18] Production.INFO: count ==803 [2025-02-12 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:42:05 - End Time 2025-02-12 23:42:05 [2025-02-12 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462504', 'tblTempUsageDetail_20' ) start [2025-02-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462504', 'tblTempUsageDetail_20' ) end [2025-02-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462504', 'tblTempVendorCDR_20' ) start [2025-02-12 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462504', 'tblTempVendorCDR_20' ) end [2025-02-12 23:42:18] Production.INFO: ProcessCDR(1,14462504,1,1,2) [2025-02-12 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462504', 'tblTempUsageDetail_20' ) start [2025-02-12 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462504', 'tblTempUsageDetail_20' ) end [2025-02-12 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:42:21] Production.INFO: ==30111== Releasing lock... [2025-02-12 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:43:04 [end_date_ymd] => 2025-02-12 23:43:04 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:43:04' and `end` < '2025-02-12 23: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-12 23:43:17] Production.INFO: count ==804 [2025-02-12 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-12 20:43:04 - End Time 2025-02-12 23:43:04 [2025-02-12 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462509', 'tblTempUsageDetail_20' ) start [2025-02-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462509', 'tblTempUsageDetail_20' ) end [2025-02-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462509', 'tblTempVendorCDR_20' ) start [2025-02-12 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462509', 'tblTempVendorCDR_20' ) end [2025-02-12 23:43:18] Production.INFO: ProcessCDR(1,14462509,1,1,2) [2025-02-12 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462509', 'tblTempUsageDetail_20' ) start [2025-02-12 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462509', 'tblTempUsageDetail_20' ) end [2025-02-12 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:43:22] Production.INFO: ==30190== Releasing lock... [2025-02-12 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:44:06 [end_date_ymd] => 2025-02-12 23:44:06 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:44:06' and `end` < '2025-02-12 23: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-12 23:44:19] Production.INFO: count ==805 [2025-02-12 23:44:20] Production.ERROR: pbx CDR StartTime 2025-02-12 20:44:06 - End Time 2025-02-12 23:44:06 [2025-02-12 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462514', 'tblTempUsageDetail_20' ) start [2025-02-12 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462514', 'tblTempUsageDetail_20' ) end [2025-02-12 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462514', 'tblTempVendorCDR_20' ) start [2025-02-12 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462514', 'tblTempVendorCDR_20' ) end [2025-02-12 23:44:20] Production.INFO: ProcessCDR(1,14462514,1,1,2) [2025-02-12 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462514', 'tblTempUsageDetail_20' ) start [2025-02-12 23:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462514', 'tblTempUsageDetail_20' ) end [2025-02-12 23:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:44:24] Production.INFO: ==30264== Releasing lock... [2025-02-12 23:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:44:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:45:05 [end_date_ymd] => 2025-02-12 23:45:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:45:05' and `end` < '2025-02-12 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-12 23:45:18] Production.INFO: count ==804 [2025-02-12 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:45:05 - End Time 2025-02-12 23:45:05 [2025-02-12 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462519', 'tblTempUsageDetail_20' ) start [2025-02-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462519', 'tblTempUsageDetail_20' ) end [2025-02-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462519', 'tblTempVendorCDR_20' ) start [2025-02-12 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462519', 'tblTempVendorCDR_20' ) end [2025-02-12 23:45:18] Production.INFO: ProcessCDR(1,14462519,1,1,2) [2025-02-12 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462519', 'tblTempUsageDetail_20' ) start [2025-02-12 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462519', 'tblTempUsageDetail_20' ) end [2025-02-12 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:45:22] Production.INFO: ==30337== Releasing lock... [2025-02-12 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:46:05 [end_date_ymd] => 2025-02-12 23:46:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:46:05' and `end` < '2025-02-12 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-12 23:46:19] Production.INFO: count ==801 [2025-02-12 23:46:20] Production.ERROR: pbx CDR StartTime 2025-02-12 20:46:05 - End Time 2025-02-12 23:46:05 [2025-02-12 23:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462524', 'tblTempUsageDetail_20' ) start [2025-02-12 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462524', 'tblTempUsageDetail_20' ) end [2025-02-12 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462524', 'tblTempVendorCDR_20' ) start [2025-02-12 23:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462524', 'tblTempVendorCDR_20' ) end [2025-02-12 23:46:20] Production.INFO: ProcessCDR(1,14462524,1,1,2) [2025-02-12 23:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462524', 'tblTempUsageDetail_20' ) start [2025-02-12 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462524', 'tblTempUsageDetail_20' ) end [2025-02-12 23:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:46:23] Production.INFO: ==30412== Releasing lock... [2025-02-12 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:46:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:47:05 [end_date_ymd] => 2025-02-12 23:47:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:47:05' and `end` < '2025-02-12 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-12 23:47:18] Production.INFO: count ==797 [2025-02-12 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:47:05 - End Time 2025-02-12 23:47:05 [2025-02-12 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462529', 'tblTempUsageDetail_20' ) start [2025-02-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462529', 'tblTempUsageDetail_20' ) end [2025-02-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462529', 'tblTempVendorCDR_20' ) start [2025-02-12 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462529', 'tblTempVendorCDR_20' ) end [2025-02-12 23:47:18] Production.INFO: ProcessCDR(1,14462529,1,1,2) [2025-02-12 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462529', 'tblTempUsageDetail_20' ) start [2025-02-12 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462529', 'tblTempUsageDetail_20' ) end [2025-02-12 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:47:21] Production.INFO: ==30484== Releasing lock... [2025-02-12 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:47:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:48:05 [end_date_ymd] => 2025-02-12 23:48:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:48:05' and `end` < '2025-02-12 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-12 23:48:18] Production.INFO: count ==790 [2025-02-12 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:48:05 - End Time 2025-02-12 23:48:05 [2025-02-12 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462534', 'tblTempUsageDetail_20' ) start [2025-02-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462534', 'tblTempUsageDetail_20' ) end [2025-02-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462534', 'tblTempVendorCDR_20' ) start [2025-02-12 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462534', 'tblTempVendorCDR_20' ) end [2025-02-12 23:48:18] Production.INFO: ProcessCDR(1,14462534,1,1,2) [2025-02-12 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462534', 'tblTempUsageDetail_20' ) start [2025-02-12 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462534', 'tblTempUsageDetail_20' ) end [2025-02-12 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:48:23] Production.INFO: ==30557== Releasing lock... [2025-02-12 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:49:05 [end_date_ymd] => 2025-02-12 23:49:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:49:05' and `end` < '2025-02-12 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-12 23:49:18] Production.INFO: count ==793 [2025-02-12 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:49:05 - End Time 2025-02-12 23:49:05 [2025-02-12 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462539', 'tblTempUsageDetail_20' ) start [2025-02-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462539', 'tblTempUsageDetail_20' ) end [2025-02-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462539', 'tblTempVendorCDR_20' ) start [2025-02-12 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462539', 'tblTempVendorCDR_20' ) end [2025-02-12 23:49:18] Production.INFO: ProcessCDR(1,14462539,1,1,2) [2025-02-12 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462539', 'tblTempUsageDetail_20' ) start [2025-02-12 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462539', 'tblTempUsageDetail_20' ) end [2025-02-12 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:49:23] Production.INFO: ==30670== Releasing lock... [2025-02-12 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:49:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:50:06 [end_date_ymd] => 2025-02-12 23:50:06 [RateCDR] => 1 ) [2025-02-12 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-12 20:50:06' and `end` < '2025-02-12 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-12 23:50:19] Production.INFO: count ==792 [2025-02-12 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:50:06 - End Time 2025-02-12 23:50:06 [2025-02-12 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462545', 'tblTempUsageDetail_20' ) start [2025-02-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462545', 'tblTempUsageDetail_20' ) end [2025-02-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462545', 'tblTempVendorCDR_20' ) start [2025-02-12 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462545', 'tblTempVendorCDR_20' ) end [2025-02-12 23:50:19] Production.INFO: ProcessCDR(1,14462545,1,1,2) [2025-02-12 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462545', 'tblTempUsageDetail_20' ) start [2025-02-12 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462545', 'tblTempUsageDetail_20' ) end [2025-02-12 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:50:23] Production.INFO: ==30744== Releasing lock... [2025-02-12 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-12 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:51:05 [end_date_ymd] => 2025-02-12 23:51:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:51:05' and `end` < '2025-02-12 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-12 23:51:18] Production.INFO: count ==801 [2025-02-12 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:51:05 - End Time 2025-02-12 23:51:05 [2025-02-12 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462550', 'tblTempUsageDetail_20' ) start [2025-02-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462550', 'tblTempUsageDetail_20' ) end [2025-02-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462550', 'tblTempVendorCDR_20' ) start [2025-02-12 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462550', 'tblTempVendorCDR_20' ) end [2025-02-12 23:51:18] Production.INFO: ProcessCDR(1,14462550,1,1,2) [2025-02-12 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462550', 'tblTempUsageDetail_20' ) start [2025-02-12 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462550', 'tblTempUsageDetail_20' ) end [2025-02-12 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:51:22] Production.INFO: ==30819== Releasing lock... [2025-02-12 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:51:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:52:05 [end_date_ymd] => 2025-02-12 23:52:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:52:05' and `end` < '2025-02-12 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-12 23:52:18] Production.INFO: count ==801 [2025-02-12 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:52:05 - End Time 2025-02-12 23:52:05 [2025-02-12 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462555', 'tblTempUsageDetail_20' ) start [2025-02-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462555', 'tblTempUsageDetail_20' ) end [2025-02-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462555', 'tblTempVendorCDR_20' ) start [2025-02-12 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462555', 'tblTempVendorCDR_20' ) end [2025-02-12 23:52:18] Production.INFO: ProcessCDR(1,14462555,1,1,2) [2025-02-12 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462555', 'tblTempUsageDetail_20' ) start [2025-02-12 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462555', 'tblTempUsageDetail_20' ) end [2025-02-12 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:52:22] Production.INFO: ==30895== Releasing lock... [2025-02-12 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:52:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:53:05 [end_date_ymd] => 2025-02-12 23:53:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:53:05' and `end` < '2025-02-12 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-12 23:53:19] Production.INFO: count ==801 [2025-02-12 23:53:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:53:05 - End Time 2025-02-12 23:53:05 [2025-02-12 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462560', 'tblTempUsageDetail_20' ) start [2025-02-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462560', 'tblTempUsageDetail_20' ) end [2025-02-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462560', 'tblTempVendorCDR_20' ) start [2025-02-12 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462560', 'tblTempVendorCDR_20' ) end [2025-02-12 23:53:19] Production.INFO: ProcessCDR(1,14462560,1,1,2) [2025-02-12 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462560', 'tblTempUsageDetail_20' ) start [2025-02-12 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462560', 'tblTempUsageDetail_20' ) end [2025-02-12 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:53:22] Production.INFO: ==30975== Releasing lock... [2025-02-12 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:54:05 [end_date_ymd] => 2025-02-12 23:54:05 [RateCDR] => 1 ) [2025-02-12 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:54:05' and `end` < '2025-02-12 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:54:18] Production.INFO: count ==800 [2025-02-12 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:54:05 - End Time 2025-02-12 23:54:05 [2025-02-12 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462565', 'tblTempUsageDetail_20' ) start [2025-02-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462565', 'tblTempUsageDetail_20' ) end [2025-02-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462565', 'tblTempVendorCDR_20' ) start [2025-02-12 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462565', 'tblTempVendorCDR_20' ) end [2025-02-12 23:54:18] Production.INFO: ProcessCDR(1,14462565,1,1,2) [2025-02-12 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462565', 'tblTempUsageDetail_20' ) start [2025-02-12 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462565', 'tblTempUsageDetail_20' ) end [2025-02-12 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:54:22] Production.INFO: ==31049== Releasing lock... [2025-02-12 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:54:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:55:06 [end_date_ymd] => 2025-02-12 23:55:06 [RateCDR] => 1 ) [2025-02-12 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-12 20:55:06' and `end` < '2025-02-12 23:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-12 23:55:19] Production.INFO: count ==800 [2025-02-12 23:55:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:55:06 - End Time 2025-02-12 23:55:06 [2025-02-12 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462570', 'tblTempUsageDetail_20' ) start [2025-02-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462570', 'tblTempUsageDetail_20' ) end [2025-02-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462570', 'tblTempVendorCDR_20' ) start [2025-02-12 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462570', 'tblTempVendorCDR_20' ) end [2025-02-12 23:55:19] Production.INFO: ProcessCDR(1,14462570,1,1,2) [2025-02-12 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462570', 'tblTempUsageDetail_20' ) start [2025-02-12 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462570', 'tblTempUsageDetail_20' ) end [2025-02-12 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:55:22] Production.INFO: ==31125== Releasing lock... [2025-02-12 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:56:05 [end_date_ymd] => 2025-02-12 23:56:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:56:05' and `end` < '2025-02-12 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-12 23:56:19] Production.INFO: count ==800 [2025-02-12 23:56:19] Production.ERROR: pbx CDR StartTime 2025-02-12 20:56:05 - End Time 2025-02-12 23:56:05 [2025-02-12 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462575', 'tblTempUsageDetail_20' ) start [2025-02-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462575', 'tblTempUsageDetail_20' ) end [2025-02-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462575', 'tblTempVendorCDR_20' ) start [2025-02-12 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462575', 'tblTempVendorCDR_20' ) end [2025-02-12 23:56:19] Production.INFO: ProcessCDR(1,14462575,1,1,2) [2025-02-12 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462575', 'tblTempUsageDetail_20' ) start [2025-02-12 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462575', 'tblTempUsageDetail_20' ) end [2025-02-12 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:56:22] Production.INFO: ==31199== Releasing lock... [2025-02-12 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:56:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:57:05 [end_date_ymd] => 2025-02-12 23:57:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:57:05' and `end` < '2025-02-12 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-12 23:57:18] Production.INFO: count ==799 [2025-02-12 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:57:05 - End Time 2025-02-12 23:57:05 [2025-02-12 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462580', 'tblTempUsageDetail_20' ) start [2025-02-12 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462580', 'tblTempUsageDetail_20' ) end [2025-02-12 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462580', 'tblTempVendorCDR_20' ) start [2025-02-12 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462580', 'tblTempVendorCDR_20' ) end [2025-02-12 23:57:18] Production.INFO: ProcessCDR(1,14462580,1,1,2) [2025-02-12 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462580', 'tblTempUsageDetail_20' ) start [2025-02-12 23:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462580', 'tblTempUsageDetail_20' ) end [2025-02-12 23:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:57:23] Production.INFO: ==31278== Releasing lock... [2025-02-12 23:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:57:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:58:04 [end_date_ymd] => 2025-02-12 23:58:04 [RateCDR] => 1 ) [2025-02-12 23: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-12 20:58:04' and `end` < '2025-02-12 23: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-12 23:58:18] Production.INFO: count ==793 [2025-02-12 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-12 20:58:04 - End Time 2025-02-12 23:58:04 [2025-02-12 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462585', 'tblTempUsageDetail_20' ) start [2025-02-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462585', 'tblTempUsageDetail_20' ) end [2025-02-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462585', 'tblTempVendorCDR_20' ) start [2025-02-12 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462585', 'tblTempVendorCDR_20' ) end [2025-02-12 23:58:18] Production.INFO: ProcessCDR(1,14462585,1,1,2) [2025-02-12 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462585', 'tblTempUsageDetail_20' ) start [2025-02-12 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462585', 'tblTempUsageDetail_20' ) end [2025-02-12 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:58:23] Production.INFO: ==31352== Releasing lock... [2025-02-12 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:58:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-12 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-12 20:59:05 [end_date_ymd] => 2025-02-12 23:59:05 [RateCDR] => 1 ) [2025-02-12 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-12 20:59:05' and `end` < '2025-02-12 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-12 23:59:19] Production.INFO: count ==789 [2025-02-12 23:59:20] Production.ERROR: pbx CDR StartTime 2025-02-12 20:59:05 - End Time 2025-02-12 23:59:05 [2025-02-12 23:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-12 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462590', 'tblTempUsageDetail_20' ) start [2025-02-12 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14462590', 'tblTempUsageDetail_20' ) end [2025-02-12 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462590', 'tblTempVendorCDR_20' ) start [2025-02-12 23:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14462590', 'tblTempVendorCDR_20' ) end [2025-02-12 23:59:20] Production.INFO: ProcessCDR(1,14462590,1,1,2) [2025-02-12 23:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14462590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14462590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-12 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14462590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14462590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-12 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462590', 'tblTempUsageDetail_20' ) start [2025-02-12 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14462590', 'tblTempUsageDetail_20' ) end [2025-02-12 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-12 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-12 23:59:23] Production.INFO: ==31425== Releasing lock... [2025-02-12 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-12 23:59:23] Production.INFO: 33.25 MB #Memory Used#